/* Pergamino Tienda 1.2: carrito, checkout, pagar pedido y pedido recibido.
 * Copia el diseño aprobado (docs/referencias/diseno-1.2/carrito.html y checkout-movil.html).
 * Paleta: papel #f3efe8, verde #5d8b58 (#476f43, #e7efe3), negro #1b1a18, dorado #c9a45c, texto #56524c, títulos #1d1b19.
 * Fuentes: Poppins (títulos y botones), Jost (texto), Oswald (etiquetas). Todo cuelga de body.ept-flujo para no tocar el resto del sitio. */

body.ept-flujo {
	--ept-green: #5d8b58; --ept-green-d: #476f43; --ept-green-l: #e7efe3;
	--ept-ink: #1d1b19; --ept-text: #56524c; --ept-muted: #8a837a;
	--ept-paper: #f3efe8; --ept-gold: #c9a45c; --ept-red: #c9443a; --ept-line: #d8d0c2;
	--ept-card: #fffdf9; --ept-dark: #1b1a18;
	background: #f3efe8 var(--ept-papel-img, none) center / cover;
	color: var(--ept-text);
	font-family: "Jost", "Segoe UI", system-ui, sans-serif;
}
body.ept-flujo * { box-sizing: border-box; }

/* El header del tema (logo blanco sobre fondo blanco) se cambia por la barra propia */
body.ept-flujo:not(.ept-cab-tema) .site-header,
body.ept-flujo .page-heading { display: none !important; }
body.ept-flujo main.content-area { width: 100%; max-width: 1280px; padding: 10px 40px 70px; margin-inline: auto; }
body.ept-flujo .entry-content > * { max-width: 100%; }
body.ept-flujo .woocommerce { color: var(--ept-text); font-family: "Jost", "Segoe UI", system-ui, sans-serif; max-width: 100%; }
body.ept-flujo .woocommerce img { max-width: 100%; height: auto; }
body.ept-flujo a { color: var(--ept-green-d); }
body.ept-flujo .woocommerce h1, body.ept-flujo .woocommerce h2, body.ept-flujo .woocommerce h3 { font-family: "Poppins", "Segoe UI", sans-serif; color: var(--ept-ink); }

/* ---------- Barra superior ---------- */
.ept-barra-claro { max-width: 1280px; margin: 0 auto; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ept-barra-logo { display: block; }
.ept-barra-logo img { height: 52px; width: auto; display: block; }
.ept-pasos { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; align-items: center; font: 600 13px "Poppins", sans-serif; flex-wrap: wrap; }
.ept-paso { color: #8a837a; padding: 8px 14px; border: 1.5px solid #d8d0c2; border-radius: 999px; }
.ept-paso-act { background: #1b1a18; color: #fff; border-color: #1b1a18; }
.ept-paso-sep { color: #b5ab9c; }
.ept-barra-oscura { display: none; background: #1b1a18; padding: 14px 18px; align-items: center; justify-content: space-between; }
.ept-barra-atras { color: #f3efe8 !important; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -12px 0 -12px -12px; }
.ept-barra-oscura img { height: 34px; width: auto; }
.ept-barra-total, .ept-barra-total .amount { font: 700 14px "Poppins", sans-serif; color: #fff; }
/* 1.3: pasos 1 · 2 · 3 debajo del encabezado del tema, alineados a la derecha (carrito.html) */
.ept-pasos-fila { max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: flex-end; }
.ept-barra-menu { width: 44px; height: 44px; margin: 0 -10px 0 0; border: 0; background: none; color: #f3efe8; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
@media (max-width: 767px) {
	.ept-pasos-fila { padding: 0 18px; }
	/* checkout y pagar en celular: sin el encabezado del tema; queda la barra oscura (checkout-movil.html). El menú sigue abriéndose con ☰. */
	body.ept-ctx-checkout .ept-pasos-fila, body.ept-ctx-pago .ept-pasos-fila { display: none; }
	body.ept-ctx-checkout .ep-cab__fila > :not(.ep-cab__nav), body.ept-ctx-pago .ep-cab__fila > :not(.ep-cab__nav) { display: none; }
	body.ept-ctx-checkout .ep-cab__fila, body.ept-ctx-pago .ep-cab__fila { padding: 0; min-height: 0; }
	body.ept-ctx-checkout .ept-barra-claro, body.ept-ctx-pago .ept-barra-claro { display: none; }
	body.ept-ctx-checkout .ept-barra-oscura, body.ept-ctx-pago .ept-barra-oscura { display: flex; }
	body.ept-ctx-checkout main.content-area, body.ept-ctx-pago main.content-area { padding: 20px 18px 56px; }
}

/* ---------- Mensajes ---------- */
body.ept-flujo .woocommerce-message, body.ept-flujo .woocommerce-info, body.ept-flujo .woocommerce-error {
	border: 0; border-top: 3px solid var(--ept-green); border-radius: 12px; background: var(--ept-green-l); color: var(--ept-ink); padding: 14px 18px 14px 48px; margin: 0 0 16px;
}
body.ept-flujo .woocommerce-error { border-top-color: var(--ept-red); background: #fbeceb; list-style: none; }
body.ept-flujo .woocommerce-error li { margin: 4px 0; }
body.ept-flujo .woocommerce-message .button, body.ept-flujo .woocommerce-info .button { min-height: 44px !important; }

/* ---------- Encabezado de pantalla (checkout, pagar, recibido) ---------- */
.ept-encabezado { margin: 0 0 16px; }
.ept-paso-txt { font: 600 12px "Oswald", sans-serif; letter-spacing: .18em; color: #c9a45c; text-transform: uppercase; }
body.ept-flujo .ept-encabezado h1 { margin: 4px 0 0; font: 800 28px/1.15 "Poppins", sans-serif; color: #1d1b19; }

/* ====================== CARRITO ====================== */
.ept-carrito { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.ept-carrito .woocommerce-cart-form { min-width: 0; }
body.ept-flujo .ept-titulo { margin: 10px 0 6px; font: 800 46px/1.1 "Poppins", sans-serif; color: #1d1b19; }
.ept-subtitulo { margin: 0 0 22px; font-size: 17px; }
.ept-subtitulo strong { color: #1d1b19; }

.ept-progreso { background: #e7efe3; border-radius: 16px; padding: 16px 20px; margin-bottom: 20px; }
.ept-progreso-txt { display: flex; justify-content: space-between; gap: 12px; font: 600 14px "Poppins", sans-serif; color: #476f43; margin-bottom: 10px; }
.ept-progreso-barra { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; }
.ept-progreso-barra > div { height: 100%; background: #5d8b58; border-radius: 99px; }

.ept-items { display: flex; flex-direction: column; gap: 14px; }
.ept-item { background: #fffdf9; border-radius: 20px; padding: 16px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; box-shadow: 0 1px 0 #e6dfd2, 0 14px 30px -22px rgba(40, 30, 15, .35); }
.ept-item-foto { width: 112px; height: 112px; border-radius: 14px; background: #e7dece; flex: none; overflow: hidden; }
.ept-item-foto a { display: block; width: 100%; height: 100%; }
body.ept-flujo .ept-item-foto img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: none; }
.ept-item-info { flex: 1 1 200px; min-width: 0; }
.ept-item-tag { font: 600 11px "Oswald", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #5d8b58; }
body.ept-flujo .ept-item-nombre { margin: 4px 0 2px; font: 700 19px/1.25 "Poppins", sans-serif; color: #1d1b19; }
body.ept-flujo .ept-item-nombre a { color: inherit; text-decoration: none; }
.ept-item-linea { font-size: 15px; }
.ept-item-info dl.variation, .ept-item-info .backorder_notification { font-size: 14px; margin: 4px 0 0; }
.ept-item-info dl.variation dd, .ept-item-info dl.variation dt { margin: 0; display: inline; }
.ept-item-info dl.variation p { display: inline; margin: 0; }

.ept-qty { display: flex; align-items: center; border: 1.5px solid #d8d0c2; border-radius: 999px; overflow: hidden; background: transparent; }
body.ept-flujo .ept-qty .quantity { margin: 0; }
body.ept-flujo .ept-qty-btn { border: 0 !important; background: none !important; width: 48px; height: 48px; padding: 0; font: 600 18px "Poppins", sans-serif; color: #1d1b19; cursor: pointer; border-radius: 0; }
body.ept-flujo .ept-qty-btn:hover { background: #f3efe8 !important; }
body.ept-flujo .ept-qty input.qty { width: 32px; height: 48px; min-height: 0; padding: 0; border: 0; background: none; text-align: center; font: 600 16px "Poppins", sans-serif; color: #1d1b19; box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.ept-qty input.qty::-webkit-outer-spin-button, .ept-qty input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ept-qty-btn:focus-visible, .ept-qty input.qty:focus-visible { outline: 3px solid #c9a45c; outline-offset: -3px; }
.ept-item-total { width: 90px; text-align: right; font: 800 20px "Poppins", sans-serif; color: #1d1b19; }
.ept-item-total del { font-size: 14px; font-weight: 500; opacity: .6; display: block; }
.ept-item-total ins { text-decoration: none; }
body.ept-flujo .ept-item-quitar a.remove { display: flex !important; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0; border-radius: 50%; background: #f3efe8; color: #8a837a !important; font-size: 1rem; line-height: 1; }
body.ept-flujo .ept-item-quitar a.remove:hover { background: #c9443a; color: #fff !important; }

.ept-acciones { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.ept-cupon { display: flex; gap: 10px; flex-wrap: wrap; }
body.ept-flujo .ept-cupon input.input-text { flex: 1 1 240px; width: auto; min-width: 0; height: 48px; padding: 0 20px; border: 1.5px solid #d8d0c2; background: #fffdf9; border-radius: 999px; font: 16px "Jost", sans-serif; color: #1d1b19; box-shadow: none; }
body.ept-flujo .ept-cupon .button { height: 48px; min-height: 48px; padding: 0 22px !important; border: 1.5px solid #1b1a18 !important; background: none !important; color: #1d1b19 !important; font: 600 14px "Poppins", sans-serif !important; border-radius: 999px !important; }
body.ept-flujo .ept-cupon .button:hover { background: #1b1a18 !important; color: #fff !important; transform: none; }
body.ept-flujo .ept-actualizar { align-self: flex-start; height: 48px; min-height: 48px; background: none !important; color: #1d1b19 !important; border: 1.5px solid #d8d0c2 !important; font: 600 14px "Poppins", sans-serif !important; }
html.ept-js body.ept-flujo .ept-actualizar { display: none !important; }
.ept-items:empty { display: none; }

/* Resumen negro */
body.ept-flujo .cart-collaterals { width: 100%; float: none; }
body.ept-flujo .cart-collaterals .cart_totals { float: none; width: 100%; background: #1b1a18; color: #e9e3d8; border-radius: 26px; padding: 30px; position: relative; overflow: hidden; }
body.ept-flujo .cart-collaterals .cart_totals::before { content: ""; position: absolute; right: -40px; top: -30px; width: 150px; height: 150px; background: var(--ept-hoja-img, none) center / contain no-repeat; opacity: .18; transform: rotate(20deg); pointer-events: none; }
body.ept-flujo .cart_totals > * { position: relative; }
body.ept-flujo .cart_totals h2 { margin: 0 0 20px; font: 700 24px/1.15 "Poppins", sans-serif; color: #fff; }
.cart_totals .ept-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding: 10px 0; }
.cart_totals .ept-fila > span:last-child { color: #fff; text-align: right; }
.cart_totals .ept-fila a { color: #9fc398; }
body.ept-flujo .cart_totals .ept-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed #4a4640; margin-top: 22px; padding-top: 16px; }
.ept-total > span:first-child { font: 600 16px "Poppins", sans-serif; color: #fff; }
.ept-total .amount, .ept-total strong, .ept-total bdi { font: 800 34px/1.1 "Poppins", sans-serif; color: #fff; }
.ept-total small, .ept-total .includes_tax { font: 400 12px "Jost", sans-serif; color: #b9b1a4; display: block; text-align: right; }

.ept-envio-tit { font: 600 12px "Oswald", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #c9a45c; margin: 14px 0 10px; }
.ept-envio-carrito .ept-env-lista { list-style: none; margin: 0; padding: 0; }
.ept-envio-carrito .ept-env-op { position: relative; display: flex; gap: 12px; align-items: flex-start; background: #262421; border: 1.5px solid #3a3733; border-radius: 16px; padding: 14px 16px; margin: 0 0 10px; }
.ept-envio-carrito .ept-env-op.ept-sel, .ept-envio-carrito .ept-env-op:has(input:checked) { border-color: #5d8b58; }
.ept-envio-carrito .ept-env-op input[type="radio"] { position: relative; z-index: 1; flex: none; accent-color: #5d8b58; margin: 4px 0 0; width: 18px; height: 18px; }
.ept-envio-carrito .ept-env-op label { flex: 1; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin: 0; cursor: pointer; color: #e9e3d8; }
.ept-envio-carrito .ept-env-op label::before { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.ept-envio-carrito .ept-env-op:has(input:focus-visible) { outline: 3px solid #c9a45c; outline-offset: 2px; }
.ept-envio-carrito .ept-env-nombre { display: block; font: 600 15px/1.3 "Poppins", sans-serif; color: #fff; }
.ept-envio-carrito .ept-env-sub { display: block; font-size: 14px; }
.ept-envio-carrito .ept-env-precio, .ept-envio-carrito .ept-env-precio .amount { font: 700 15px "Poppins", sans-serif; color: #fff; white-space: nowrap; }
.ept-envio-carrito .ept-env-op:not(:has(input[type="radio"])) { padding-left: 16px; }
.ept-gratis { color: #9fc398; letter-spacing: .04em; }
.ept-env-aviso { margin: 0 0 10px; font-size: 14px; }

body.ept-flujo .wc-proceed-to-checkout { padding: 0; margin: 0; }
body.ept-flujo .wc-proceed-to-checkout a.checkout-button, body.ept-flujo .cart_totals a.checkout-button { display: flex !important; justify-content: center; align-items: center; gap: 10px; width: 100%; margin: 22px 0 0 !important; padding: 0 20px !important; min-height: 56px; height: 56px; background: #5d8b58 !important; color: #fff !important; border-radius: 999px !important; font: 700 16px "Poppins", sans-serif !important; text-decoration: none; }
body.ept-flujo .wc-proceed-to-checkout a.checkout-button:hover { background: #476f43 !important; transform: none; }
.ept-seguro { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: #b9b1a4; }

body.ept-ctx-carrito .cart-empty { margin: 30px 0 14px; padding: 26px; background: #fffdf9; border: 0; border-radius: 20px; color: #1d1b19; font: 600 18px "Poppins", sans-serif; box-shadow: 0 12px 26px -20px rgba(40, 30, 15, .4); }
body.ept-ctx-carrito .cart-empty::before { display: none; }

@media (min-width: 1040px) {
	.ept-carrito { grid-template-columns: minmax(0, 1fr) 360px; }
	body.ept-flujo .cart-collaterals { position: sticky; top: 20px; }
}

/* ====================== CHECKOUT ====================== */
.ept-co { display: flex; flex-direction: column; gap: 16px; }
.ept-co-izq { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ept-co-der { min-width: 0; }

body.ept-flujo .ept-card, body.ept-flujo #customer_details.ept-card {
	background: #fffdf9; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
	box-shadow: 0 12px 26px -20px rgba(40, 30, 15, .4); float: none; width: 100%; margin: 0;
}
body.ept-flujo #customer_details::before, body.ept-flujo #customer_details::after { display: none; }
body.ept-flujo #customer_details .col-1, body.ept-flujo #customer_details .col-2 { float: none; width: 100%; padding: 0; margin: 0; }
body.ept-flujo .ept-card h3, body.ept-flujo #customer_details h3 { margin: 0 0 4px; font: 700 17px/1.2 "Poppins", sans-serif; color: #1d1b19; }
body.ept-flujo #customer_details .woocommerce-additional-fields h3 { margin-top: 12px; font-size: 15px; }
body.ept-flujo .ept-card h4 { margin: 4px 0 0; font: 600 14px "Poppins", sans-serif; color: #1d1b19; }
.ept-card-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ept-card-cab h3 { margin: 0 !important; }
.ept-chip { font: 600 12px "Poppins", sans-serif; color: #476f43; background: #e7efe3; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.ept-datos-entrega { display: flex; flex-direction: column; gap: 16px; clear: both; margin: 0; }
.ept-grupo[hidden] { display: none !important; }

/* Campos */
body.ept-flujo .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
body.ept-flujo .woocommerce form .form-row { margin: 0; padding: 0; float: none; width: 100% !important; clear: none; }
body.ept-flujo .woocommerce form .form-row label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; margin: 0 0 6px; font: 500 14px/1.35 "Poppins", sans-serif; color: #1d1b19; }
body.ept-flujo .woocommerce form .form-row .optional { font: 400 13px "Jost", sans-serif; color: #8a837a; }
body.ept-flujo .woocommerce form .form-row .required { color: #c9443a; text-decoration: none; border: 0; }
body.ept-flujo .woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
body.ept-flujo .woocommerce form .form-row input.input-text,
body.ept-flujo .woocommerce form .form-row select,
body.ept-flujo .woocommerce form .form-row textarea {
	width: 100%; min-height: 50px; height: 50px; padding: 0 14px; font: 16px "Jost", "Segoe UI", sans-serif; color: #1d1b19; background: #fff;
	border: 1.5px solid #d8d0c2; border-radius: 14px; box-shadow: none;
}
body.ept-flujo .woocommerce form .form-row textarea { height: auto; min-height: 96px; padding: 12px 14px; }
body.ept-flujo .woocommerce form .form-row select { padding-right: 12px; }
body.ept-flujo .woocommerce form .form-row input.input-text:focus,
body.ept-flujo .woocommerce form .form-row select:focus,
body.ept-flujo .woocommerce form .form-row textarea:focus { outline: 3px solid #c9a45c; outline-offset: 2px; border-color: #5d8b58; }
body.ept-flujo .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.ept-flujo .woocommerce form .form-row.woocommerce-invalid select { border-color: #c9443a; }
body.ept-flujo .woocommerce form .form-row .description { color: #8a837a; font-size: 13px; }
body.ept-flujo #ept_fl_sucursal { border-color: #5d8b58; }
body.ept-flujo .ept-extra { margin-top: 12px; }
body.ept-flujo .ept-quien-retira { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
body.ept-flujo .ept-grupo-fletes { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) {
	body.ept-flujo .woocommerce-billing-fields__field-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.ept-flujo .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
	body.ept-flujo .woocommerce-billing-fields__field-wrapper #billing_phone_field,
	body.ept-flujo .woocommerce-billing-fields__field-wrapper #billing_email_field { grid-column: auto; }
}

/* Envío: dos botones grandes (radios reales shipping_method[0]) */
.ept-envio-checkout .ept-env-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ept-envio-checkout .ept-env-op { position: relative; margin: 0; padding: 0; border: 1.5px solid #d8d0c2; background: #fff; border-radius: 16px; min-height: 88px; }
.ept-envio-checkout .ept-env-op.ept-sel, .ept-envio-checkout .ept-env-op:has(input:checked) { border-color: #5d8b58; box-shadow: 0 0 0 .5px #5d8b58; background: #e7efe3; }
.ept-envio-checkout .ept-env-op input[type="radio"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ept-envio-checkout .ept-env-op:has(input:focus-visible) { outline: 3px solid #c9a45c; outline-offset: 2px; }
.ept-envio-checkout .ept-env-op label { display: block; margin: 0; padding: 12px; cursor: pointer; }
.ept-envio-checkout .ept-env-nombre { display: block; font: 700 14px/1.25 "Poppins", sans-serif; color: #1d1b19; }
.ept-envio-checkout .ept-env-sub { display: block; font: 13px "Jost", sans-serif; color: #56524c; margin-top: 2px; }
.ept-envio-checkout .ept-env-precio, .ept-envio-checkout .ept-env-precio .amount { display: block; margin-top: 6px; font: 800 16px "Poppins", sans-serif; color: #1d1b19; }
.ept-envio-checkout .ept-env-op.ept-sel .ept-env-precio, .ept-envio-checkout .ept-env-op.ept-sel .ept-env-precio .amount,
.ept-envio-checkout .ept-env-op:has(input:checked) .ept-env-precio, .ept-envio-checkout .ept-env-op:has(input:checked) .ept-env-precio .amount { color: #476f43; }
.ept-envio-checkout .ept-gratis { color: #476f43; }
.ept-envio-opciones:empty { display: none; }
body.ept-flujo .ept-envio-checkout .ept-env-aviso { font-size: 14px; margin: 0; }

/* Sucursal */
body.ept-flujo .ept-sucursal-detalle { margin: 0; padding: 12px 14px; background: #f3efe8; border-radius: 14px; font-size: 14px; line-height: 1.45; color: #56524c; }
body.ept-flujo .ept-sucursal-detalle p { margin: 0; }
body.ept-flujo .ept-sucursal-detalle strong { font: 600 14px "Poppins", sans-serif; color: #1d1b19; }
body.ept-flujo .ept-sucursal-detalle a { color: #476f43; font-weight: 600; text-decoration: underline; }

/* Ubicación (Red and Blue) */
.ept-card-ubicacion .ept-mapa-caja { display: flex; flex-direction: column; margin: 4px 0 0; gap: 12px; }
.ept-card-ubicacion .ept-mapa-titulo { order: 0; margin: 0; font: 500 14px "Poppins", sans-serif; color: #1d1b19; }
.ept-card-ubicacion .ept-mapa-marco { order: 1; position: relative; border-radius: 16px; box-shadow: none; }
.ept-card-ubicacion .ept-mapa-marco::after { content: "Arrastra el pin para corregir"; position: absolute; left: 12px; bottom: 12px; z-index: 1000; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 6px 12px; font: 500 13px "Jost", sans-serif; color: #1d1b19; pointer-events: none; }
.ept-card-ubicacion .ept-mapa { height: 220px; }
.ept-card-ubicacion .ept-btn-gps { order: 2; gap: 10px; width: 100%; min-height: 52px; height: 52px; background: #1b1a18; color: #fff; font: 600 15px "Poppins", sans-serif; }
.ept-card-ubicacion .ept-btn-gps::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E") center / contain no-repeat; }
.ept-card-ubicacion .ept-btn-gps:hover, .ept-card-ubicacion .ept-btn-gps:focus { background: #3a3733; }
.ept-card-ubicacion .ept-mapa-estado { order: 3; margin: 0; min-height: 0; font-size: 14px; }
.ept-card-ubicacion .ept-mapa-estado:empty { display: none; }
.ept-card-ubicacion .ept-mapa-buscar { order: 4; margin: 0; }
.ept-card-ubicacion .ept-mapa-resultados { order: 5; margin: 0; }
.ept-card-ubicacion .ept-btn-mover { order: 6; margin: 0; }
.ept-card-ubicacion .ept-mapa-ayuda { order: 7; margin: 0; font-size: 13px; }

/* ---------- Pago en bloque negro ---------- */
body.ept-flujo #order_review.woocommerce-checkout-review-order { background: #1b1a18; border-radius: 22px; padding: 20px 18px; color: #e9e3d8; display: flex; flex-direction: column; gap: 10px; float: none; width: 100%; }
.ept-resumen .ept-filas { display: flex; flex-direction: column; gap: 10px; }
.ept-resumen .ept-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.ept-resumen .ept-fila > span:last-child { color: #fff; text-align: right; }
.ept-resumen .ept-fila a { color: #9fc398; }
.ept-resumen .ept-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px dashed #4a4640; padding-top: 12px; }
.ept-resumen .ept-total .amount, .ept-resumen .ept-total strong, .ept-resumen .ept-total bdi { font: 800 28px/1.1 "Poppins", sans-serif; color: #fff; }
.ept-resumen .ept-gratis { color: #9fc398; }

body.ept-flujo #payment.ept-pago { display: flex; flex-direction: column; gap: 10px; background: transparent !important; border-radius: 0; padding: 0; margin: 0; }
body.ept-flujo .woocommerce-terms-and-conditions-wrapper { margin-top: 4px; }
body.ept-flujo .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; padding: 0; }
body.ept-flujo .woocommerce-terms-and-conditions-wrapper label.checkbox { display: flex; gap: 10px; align-items: flex-start; font: 400 14px/1.4 "Jost", sans-serif; color: #e9e3d8; cursor: pointer; }
body.ept-flujo .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #5d8b58; }
body.ept-flujo .woocommerce-terms-and-conditions-wrapper a { color: #b9d6b4; text-decoration: underline; }
body.ept-flujo .woocommerce-terms-and-conditions-wrapper .required { color: #e9a39d; text-decoration: none; }
body.ept-flujo #payment.ept-pago ul.payment_methods { list-style: none; margin: 6px 0 0; padding: 0; border: 0; }
body.ept-flujo #payment.ept-pago ul.payment_methods li { list-style: none; margin: 0; padding: 0; border: 0; background: none; }
body.ept-flujo #payment.ept-pago ul.payment_methods:not(.ept-un-metodo) li { background: #262421; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
body.ept-flujo #payment.ept-pago ul.payment_methods:not(.ept-un-metodo) li > label { color: #fff; font: 600 15px "Poppins", sans-serif; }
body.ept-flujo #payment.ept-pago ul.payment_methods.ept-un-metodo li > input.input-radio,
body.ept-flujo #payment.ept-pago ul.payment_methods.ept-un-metodo li > label { display: none; }
body.ept-flujo #payment.ept-pago div.payment_box { background: none; color: #e9e3d8; padding: 8px 0 0; margin: 0; font-size: 14px; border-radius: 0; }
body.ept-flujo #payment.ept-pago div.payment_box::before { display: none; }
body.ept-flujo #payment.ept-pago div.payment_box p { margin: 0 0 8px; }
body.ept-flujo #payment.ept-pago .ept-yappy-alias { display: flex; flex-direction: column; gap: 6px; margin: 0; }
body.ept-flujo #payment.ept-pago .ept-yappy-alias label { font: 500 14px "Poppins", sans-serif; color: #fff; margin: 0; }
body.ept-flujo #payment.ept-pago .ept-yappy-alias abbr.required { color: #e9a39d; text-decoration: none; }
body.ept-flujo #payment.ept-pago .ept-yappy-alias input.input-text { width: 100%; height: 50px; min-height: 50px; border: 0; border-radius: 14px; padding: 0 14px; font: 16px "Jost", sans-serif; background: #262421; color: #fff; box-shadow: none; }
body.ept-flujo #payment.ept-pago .ept-yappy-alias input.input-text::placeholder { color: #8a837a; }
body.ept-flujo #payment.ept-pago .ept-yappy-alias input.input-text:focus { outline: 3px solid #c9a45c; outline-offset: 2px; }
body.ept-flujo #payment.ept-pago .place-order { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
body.ept-flujo #payment #place_order { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 58px; min-height: 58px; margin: 6px 0 0; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; background: #013f8f !important; color: #fff !important; font: 700 17px "Poppins", sans-serif !important; box-shadow: none; position: static; }
body.ept-flujo #payment #place_order:hover { background: #0a50b5 !important; transform: none; }
body.ept-flujo #payment #place_order:focus-visible { outline: 3px solid #c9a45c; outline-offset: 3px; }
.ept-pago-nota { margin: 0; text-align: center; font-size: 13px; color: #b9b1a4; }

body.ept-ctx-checkout .woocommerce-checkout-payment .woocommerce-error, body.ept-ctx-checkout .woocommerce-checkout-payment .woocommerce-info { margin-bottom: 8px; }
body.ept-ctx-checkout .woocommerce-form-coupon-toggle, body.ept-ctx-checkout .woocommerce-form-login-toggle { margin-bottom: 4px; }

@media (min-width: 768px) { body.ept-flujo .ept-encabezado h1 { font-size: 34px; } }
@media (min-width: 1000px) {
	.ept-co { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
	.ept-co-der { position: sticky; top: 20px; }
	body.ept-flujo .ept-encabezado h1 { font-size: 40px; }
	body.ept-flujo #order_review.woocommerce-checkout-review-order { padding: 26px 24px; border-radius: 26px; }
	.ept-card-ubicacion .ept-mapa { height: 300px; }
}

/* ====================== PAGAR PEDIDO y PEDIDO RECIBIDO ====================== */
body.ept-ctx-pago .woocommerce, body.ept-ctx-recibido .woocommerce { max-width: 640px; margin: 0 auto; }
body.ept-ctx-recibido .woocommerce { max-width: 760px; }
body.ept-flujo ul.order_details, body.ept-flujo ul.woocommerce-order-overview {
	list-style: none; margin: 0 0 16px; padding: 16px 18px; display: grid; gap: 8px; background: #fffdf9; border-radius: 20px; box-shadow: 0 12px 26px -20px rgba(40, 30, 15, .4);
}
body.ept-flujo ul.order_details li, body.ept-flujo ul.woocommerce-order-overview li {
	float: none; margin: 0; padding: 0; border: 0; text-transform: none; font-size: 15px; line-height: 1.4; display: flex; justify-content: space-between; gap: 12px; color: #56524c;
}
body.ept-flujo ul.order_details li strong, body.ept-flujo ul.woocommerce-order-overview li strong { color: #1d1b19; text-align: right; }
body.ept-flujo .woocommerce-notice--success, body.ept-flujo .woocommerce-thankyou-order-received { margin: 0 0 16px; padding: 16px 18px; background: #e7efe3; border-radius: 16px; color: #1d1b19; font: 600 16px/1.4 "Poppins", sans-serif; }
body.ept-flujo .woocommerce-notice--error { margin: 0 0 16px; padding: 16px 18px; background: #fbeceb; border-radius: 16px; color: #1d1b19; }

body.ept-ctx-pago .ept-yappy { margin: 0 0 16px; padding: 20px 18px; background: #1b1a18; color: #e9e3d8; border-radius: 22px; }
body.ept-ctx-pago .ept-yappy strong { color: #fff; }
body.ept-ctx-pago .ept-yappy a { color: #b9d6b4; }
body.ept-ctx-pago .ept-yappy-intro { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
body.ept-ctx-pago .ept-yappy-boton { margin: 12px 0 0; min-height: 56px; }
body.ept-ctx-pago .ept-yappy .woocommerce-info { color: #1d1b19; }
body.ept-ctx-pago form#order_review { background: #1b1a18; color: #e9e3d8; border-radius: 22px; padding: 20px 18px; margin: 0; }
body.ept-ctx-pago form#order_review table.shop_table { border: 0; background: none; color: #e9e3d8; width: 100%; border-collapse: collapse; }
body.ept-ctx-pago form#order_review table.shop_table th, body.ept-ctx-pago form#order_review table.shop_table td { color: #e9e3d8; border: 0; border-bottom: 1px dashed #4a4640; padding: 10px 0; background: none; text-align: left; }
body.ept-ctx-pago form#order_review table.shop_table td:last-child, body.ept-ctx-pago form#order_review table.shop_table th:last-child { text-align: right; }
body.ept-ctx-pago form#order_review .amount { color: #fff; }
body.ept-ctx-pago form#order_review #payment { background: none; border: 0; padding: 0; margin-top: 12px; }
body.ept-ctx-pago form#order_review #payment ul.payment_methods { list-style: none; margin: 0 0 12px; padding: 0; border: 0; }
body.ept-ctx-pago form#order_review #payment ul.payment_methods > li { background: none; margin: 0; padding: 0; }
body.ept-ctx-pago form#order_review #payment ul.payment_methods > li:only-child > label, body.ept-ctx-pago form#order_review #payment ul.payment_methods > li:only-child > input { display: none; }
body.ept-ctx-pago form#order_review div.payment_box { background: none; color: #e9e3d8; padding: 0; margin: 0; }
body.ept-ctx-pago form#order_review div.payment_box::before { display: none; }
body.ept-ctx-pago form#order_review .ept-yappy-alias { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
body.ept-ctx-pago form#order_review .ept-yappy-alias label { font: 500 14px "Poppins", sans-serif; color: #fff; }
body.ept-ctx-pago form#order_review .ept-yappy-alias input.input-text { height: 50px; border: 0; border-radius: 14px; padding: 0 14px; font: 16px "Jost", sans-serif; background: #262421; color: #fff; width: 100%; }
body.ept-ctx-pago form#order_review #place_order { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 58px; padding: 0 20px !important; border: 0 !important; border-radius: 999px !important; background: #013f8f !important; color: #fff !important; font: 700 17px "Poppins", sans-serif !important; }

body.ept-ctx-recibido .woocommerce-order { display: flex; flex-direction: column; gap: 4px; }
body.ept-ctx-recibido .woocommerce-order-details, body.ept-ctx-recibido .woocommerce-customer-details, body.ept-ctx-recibido .ept-datos-gracias {
	margin: 0 0 16px; padding: 18px; background: #fffdf9; border-radius: 20px; box-shadow: 0 12px 26px -20px rgba(40, 30, 15, .4);
}
body.ept-ctx-recibido .woocommerce-order h2, body.ept-ctx-recibido .woocommerce-column__title { margin: 0 0 10px; font: 700 17px/1.2 "Poppins", sans-serif; color: #1d1b19; }
body.ept-ctx-recibido table.shop_table { width: 100%; border: 0; border-collapse: collapse; background: none; }
body.ept-ctx-recibido table.shop_table th, body.ept-ctx-recibido table.shop_table td { padding: 10px 0; border: 0; border-top: 1px solid #eee7da; background: none; text-align: left; color: #56524c; }
body.ept-ctx-recibido table.shop_table thead th { border-top: 0; font: 600 13px "Poppins", sans-serif; color: #1d1b19; }
body.ept-ctx-recibido table.shop_table td:last-child, body.ept-ctx-recibido table.shop_table th:last-child { text-align: right; }
body.ept-ctx-recibido .woocommerce-customer-details address { border: 0; padding: 0; font-style: normal; }
body.ept-ctx-recibido .woocommerce-customer-details .col2-set .col-1, body.ept-ctx-recibido .woocommerce-customer-details .col2-set .col-2 { float: none; width: 100%; }

/* ====================== TELÉFONOS ====================== */
@media (max-width: 767px) {
	body.ept-flujo .ept-titulo { font-size: 46px; }
	body.ept-flujo .whatsapp-float { bottom: 18px; right: 14px; }
}
@media (max-width: 380px) {
	.ept-envio-checkout .ept-env-op label { padding: 10px; }
	body.ept-flujo .ept-titulo { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { body.ept-flujo * { transition: none !important; } }

/* 1.2 · ajustes tras revisar en WordPress */
body.ept-flujo .woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text,
body.ept-flujo .woocommerce-terms-and-conditions-wrapper label.checkbox span { color: #e9e3d8; }
body.ept-flujo .ept-envio-dias { margin: 10px 0 0; font: 400 14px/1.4 "Jost", sans-serif; color: #8a837a; }
body.ept-flujo .ept-envio-checkout ul#shipping_method li.ept-env-op label { display: block; padding: 14px 16px !important; margin: 0 !important; }
@media (max-width: 767px) { body.ept-flujo .ept-envio-checkout ul#shipping_method li.ept-env-op label { padding: 12px 14px !important; } }
