/*
 * Carrito y "Pedido recibido" (Figma 209:31, 209:249, 209:391, 209:504, 209:679).
 * Usa las variables de tienda.css.
 */

.cgc-cart .cgc-shop-title em { font-style: normal; color: var(--cgc-red); }
.cgc-cart .cgc-shop-in { gap: 32px; }
.cgc-cart header { padding-top: 48px; }

.cgc-cart-notices:empty { display: none; }

.cgc-cart-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 412px;
	gap: 28px;
	align-items: start;
}

/* Articulos */
.cgc-cart-items {
	background: #fff;
	border-radius: 16px;
	padding: 28px 28px;
}

.cgc-cart-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto 96px 32px;
	align-items: center;
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid #e2e2e2;
}

.cgc-cart-item:first-child { padding-top: 14px; }
.cgc-cart-item:last-of-type { border-bottom: 0; }
.cgc-cart-item.is-busy { opacity: .5; pointer-events: none; }

.cgc-cart-tile {
	width: 88px;
	height: 88px;
	border-radius: 10px;
	background: var(--cgc-red);
	color: #fff;
	display: grid;
	place-items: center;
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	flex: none;
}

.cgc-cart-tile.is-lime { background: var(--cgc-lime); color: #000; }
.cgc-cart-tile.is-sm { width: 48px; height: 48px; font-size: 24px; border-radius: 8px; }

.cgc-cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.cgc-cart .cgc-cart-item__name {
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	color: var(--cgc-ink);
	text-decoration: none;
}

.cgc-cart-item__line { display: block; font-size: 14px; color: var(--cgc-muted); }

.cgc-cart-item__meta { font-size: 13px; color: var(--cgc-muted); }
.cgc-cart-item__meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; }
.cgc-cart-item__meta dt, .cgc-cart-item__meta dd { margin: 0; }
.cgc-cart-item__meta dd p { margin: 0; }

.cgc-cart-qty {
	display: flex;
	align-items: center;
	height: 40px;
	border: 1.5px solid #c9c9c9;
	border-radius: 99px;
	padding: 0 6px;
}

.cgc-cart-qty.is-fixed {
	border: 0;
	font-weight: 600;
	color: var(--cgc-muted);
	padding: 0 8px;
}

.cgc-cart .cgc-cart-qty button {
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	color: var(--cgc-ink);
	font: 400 20px/1 var(--cgc-text);
	padding: 0;
	cursor: pointer;
}

.cgc-cart .cgc-cart-qty input {
	width: 28px;
	border: 0;
	background: transparent;
	text-align: center;
	font: 700 15px var(--cgc-text);
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0;
}

.cgc-cart-qty input::-webkit-outer-spin-button,
.cgc-cart-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cgc-cart-item__price {
	text-align: right;
	font-weight: 700;
	font-size: 17px;
	white-space: nowrap;
}

.cgc-cart .cgc-cart-remove {
	width: 32px;
	height: 32px;
	border: 0;
	background: transparent;
	color: var(--cgc-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
}

.cgc-cart .cgc-cart-remove:hover { color: var(--cgc-red); }

.cgc-shop .cgc-cart-note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: #f3f3f3;
	border-radius: 10px;
	padding: 14px 16px;
	margin-top: 8px !important;
	font-size: 14px;
	line-height: 1.35;
}

.cgc-cart-note svg { color: var(--cgc-red); flex: none; margin-top: 1px; }

/* Resumen */
.cgc-cart-sum {
	background: #000;
	color: #fff;
	border-radius: 16px;
	padding: 32px 28px 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cgc-shop .cgc-cart-sum .cgc-cart-sum__title {
	color: #fff;
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 32px;
	line-height: 1;
	text-transform: uppercase;
	margin-bottom: 8px !important;
}

.cgc-cart-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 15px;
	color: #cfcfcf;
}

.cgc-cart-row.is-fee { color: var(--cgc-lime); }
.cgc-order .cgc-cart-row { color: var(--cgc-muted); }
.cgc-order .cgc-cart-row.is-fee { color: var(--cgc-red); }

/* Campo de codigo de regalo del plugin, sobre negro */
.cgc-cart-sum .cgc-gift-card-box { margin: 0; padding: 0 0 20px; border: 0; border-bottom: 1px solid #333; background: transparent; }
.cgc-cart-sum .cgc-gift-card-form label { display: block; font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 10px; }
.cgc-cart-sum .cgc-gift-card-row { display: flex; gap: 8px; }
.cgc-cart-sum .cgc-gift-card-row input {
	flex: 1;
	min-width: 0;
	height: 48px;
	border: 1.5px solid #444;
	border-radius: 10px;
	background: #1c1c1c;
	color: #fff;
	padding: 0 14px;
	font: 500 15px var(--cgc-text);
}
.cgc-cart-sum .cgc-gift-card-row .cgc-gift-card-apply {
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 99px;
	background: #fff;
	color: #000;
	font: 700 15px var(--cgc-text);
	white-space: nowrap;
	cursor: pointer;
}
.cgc-cart-sum .cgc-gift-card-msg { font-size: 13px; margin-top: 6px; }
.cgc-cart-sum .cgc-gift-card-applied { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #1c1c1c; border-radius: 10px; padding: 12px 14px; color: #fff; }
.cgc-cart-sum .cgc-gift-card-applied div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cgc-cart-sum .cgc-gift-card-remove { border: 0; background: transparent; color: var(--cgc-lime); font: 700 14px var(--cgc-text); cursor: pointer; white-space: nowrap; }
.cgc-cart-sum .cgc-gift-card-warning { font-size: 13px; color: #ffcf6b; margin-top: 8px; }

.cgc-cart-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
}

.cgc-cart-total span { font-weight: 700; font-size: 16px; }

.cgc-cart-total strong {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	white-space: nowrap;
}

.cgc-cart-total.is-light { border-top: 1px solid #e2e2e2; padding-top: 20px; margin-top: 4px; }
.cgc-cart-total.is-light strong { font-size: 34px; }

.cgc-cart .cgc-cart-pay {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 56px;
	border-radius: 99px;
	background: var(--cgc-red);
	color: #fff;
	font: 700 19px var(--cgc-text);
	text-decoration: none;
	white-space: nowrap;
}

.cgc-cart .cgc-cart-pay:hover { filter: brightness(.92); }

.cgc-cart .cgc-cart-more {
	align-self: center;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.cgc-cart-safe {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	color: #bdbdbd;
}

.cgc-cart-safe svg { color: var(--cgc-lime); width: 16px; height: 16px; }

/* Agrega a tu visita */
.cgc-cart-add { margin-top: 16px; }
.cgc-cart-add .cgc-shop-h2 { font-size: 36px; margin-bottom: 20px !important; }

.cgc-cart-add__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cgc-cart-sug {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cgc-cart-sug__top { display: flex; gap: 14px; align-items: center; }
.cgc-cart-sug__top .cgc-cart-item__name { font-size: 16px; }
.cgc-cart-sug__top .cgc-cart-item__line { font-size: 13px; }

.cgc-cart-sug__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cgc-cart-sug__bottom strong { font-size: 16px; white-space: nowrap; }

.cgc-cart .cgc-cart-sug__add {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 20px;
	border: 1.5px solid var(--cgc-red);
	border-radius: 99px;
	color: var(--cgc-red);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.cgc-cart .cgc-cart-sug__add span { font-size: 20px; line-height: 1; }
.cgc-cart .cgc-cart-sug__add:hover { background: var(--cgc-red); color: #fff; }

/* Botones genericos */
.cgc-cart .cgc-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	padding: 0 24px;
	border: 1.5px solid var(--cgc-ink);
	border-radius: 99px;
	color: var(--cgc-ink);
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
}

.cgc-cart .cgc-cart-btn.is-red { background: var(--cgc-red); border-color: var(--cgc-red); color: #fff; }

/* Vacio */
.cgc-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	padding: 96px 0 120px;
}

.cgc-cart-empty__icon {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: #fff;
	color: var(--cgc-red);
	display: grid;
	place-items: center;
	margin-bottom: 8px;
}

.cgc-cart-empty p { font-size: 18px; }
.cgc-cart-empty__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.cgc-shop .cgc-cart-msg { padding: 80px 0; text-align: center; font-size: 18px; }

/* Pedido recibido */
.cgc-order .cgc-shop-in { padding-top: 40px; }

.cgc-order-hero {
	background: #000;
	color: #fff;
	border-radius: 16px;
	padding: 48px;
}

.cgc-order-check {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--cgc-lime);
	color: #000;
	display: grid;
	place-items: center;
	margin-bottom: 24px;
}

.cgc-order-title {
	font-family: var(--cgc-display);
	font-weight: 800;
	font-size: 80px;
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
}

.cgc-order-title em { font-style: normal; color: var(--cgc-red); }
.cgc-order-lead { font-size: 18px; margin-top: 14px !important; }

.cgc-order-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0 0;
}

.cgc-order-facts div { background: #1c1c1c; border-radius: 10px; padding: 14px 16px; }
.cgc-order-facts dt { font-family: var(--cgc-ui); font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #bdbdbd; }
.cgc-order-facts dd { margin: 6px 0 0; font-weight: 700; font-size: 16px; }

.cgc-order-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 412px;
	gap: 28px;
	align-items: start;
}

.cgc-order-card { background: #fff; border-radius: 16px; padding: 32px 28px; }
.cgc-shop .cgc-order-card .cgc-cart-sum__title { color: var(--cgc-ink); margin-bottom: 20px !important; }

.cgc-shop .cgc-order-steps { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.cgc-order-steps li { display: flex; gap: 14px; align-items: flex-start; }
.cgc-order-steps__ico { width: 40px; height: 40px; border-radius: 50%; background: #f0f0f0; color: var(--cgc-red); display: grid; place-items: center; flex: none; }
.cgc-order-steps strong { display: block; font-size: 16px; }
.cgc-order-steps small { display: block; font-size: 14px; color: var(--cgc-muted); margin-top: 2px; }

.cgc-order-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.cgc-shop .cgc-order-items { list-style: none; display: flex; flex-direction: column; gap: 18px; padding-bottom: 20px !important; }
.cgc-order-items li { display: flex; align-items: center; gap: 14px; }
.cgc-order-items__name { flex: 1; font-weight: 600; font-size: 15px; }
.cgc-order-items__name small { display: block; font-weight: 400; font-size: 13px; color: var(--cgc-muted); }
.cgc-order-items strong { font-size: 15px; white-space: nowrap; }

/* Responsivo */
@media (max-width: 1023px) {
	.cgc-cart-main,
	.cgc-order-main { grid-template-columns: 1fr; }
	.cgc-cart-add__grid { grid-template-columns: 1fr 1fr; }
	.cgc-order-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
	.cgc-cart header { padding-top: 24px; }
	.cgc-cart-items { padding: 12px 16px; }
	.cgc-cart-item {
		grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas: "tile info info" "tile qty price";
		gap: 8px 14px;
		position: relative;
	}
	.cgc-cart-tile { width: 64px; height: 64px; font-size: 30px; grid-area: tile; align-self: start; }
	.cgc-cart-item__info { grid-area: info; padding-right: 28px; }
	.cgc-cart-qty { grid-area: qty; justify-self: start; }
	.cgc-cart-item__price { grid-area: price; }
	.cgc-cart-remove { position: absolute; top: 12px; right: -6px; }
	.cgc-cart-sum { padding: 28px 20px 24px; }
	.cgc-cart-total strong { font-size: 34px; }
	.cgc-cart-add__grid { grid-template-columns: 1fr; }
	.cgc-order-hero { padding: 32px 20px; }
	.cgc-order-title { font-size: 52px; }
	.cgc-order-card { padding: 28px 20px; }
	.cgc-cart-empty { padding: 48px 0 72px; }
}
