/* ==========================================================================
   Flores El Patio · cesta, pago y Mi cuenta (WooCommerce clásico: [woocommerce_cart],
   [woocommerce_checkout] y [woocommerce_my_account]).
   Solo se carga ahí (body.fep-wc). Solo cambia el aspecto: los campos, los Fragmentos de código,
   Order Delivery Date y los pagos funcionan igual.
   Las mismas piezas que el resto de la web: bloque blanco redondeado sobre el fondo, títulos en
   Poppins fina, fichas cálidas por dentro, campos y botones en píldora, botón principal negro.
   Móvil primero; a partir de 900 px, ordenador.
   ========================================================================== */

/* --- Quitar los contenedores de GeneratePress (como en la ficha y la tienda) -- */
body.fep-wc { background: var(--fep-fondo); }
body.fep-wc #page.grid-container,
body.fep-wc .site.grid-container { max-width: none; padding: 0; margin: 0; background: transparent; }
body.fep-wc .site-content { display: block; padding: 0; }
body.fep-wc .content-area,
body.fep-wc .site-main { width: 100%; margin: 0; padding: 0; float: none; }
body.fep-wc #right-sidebar,
body.fep-wc #left-sidebar { display: none; }
body.fep-wc .site-main > article { margin: 0; }
body.fep-wc .entry-content { margin: 0; }
body.fep-wc .featured-image { display: none; }

/* --- El bloque blanco con el título ---------------------------------------- */
body.fep-wc .inside-article {
	max-width: 1180px;
	margin: var(--fep-hueco) var(--fep-margen) var(--fep-hueco);
	padding: var(--fep-arriba) var(--fep-dentro) 22px;
	border-radius: var(--fep-radio);
	background: var(--fep-blanco);
	box-shadow: var(--fep-sombra);
	box-sizing: border-box;
	color: var(--fep-texto);
	font-family: var(--fep-cuerpo);
	font-size: var(--fep-t-texto);
	line-height: 1.5;
}
body.fep-wc .entry-header { margin: 0 0 16px; }
body.fep-wc .entry-title {
	margin: 0;
	font-family: var(--fep-titulos);
	font-weight: 300;
	font-size: var(--fep-t-h1);
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--fep-tinta);
}
@media (min-width: 900px) {
	body.fep-wc .inside-article { margin: var(--fep-hueco) auto; width: calc(100% - 32px); padding: 26px 32px 32px; }
	body.fep-wc .entry-title { font-size: 40px; }
	body.fep-wc .entry-header { margin-bottom: 22px; }
}

/* Títulos de cada parte («Detalles de facturación», «Tu pedido», «Totales del carrito»…). */
body.fep-wc .woocommerce h2,
body.fep-wc .woocommerce h3 {
	margin: 0 0 14px;
	font-family: var(--fep-titulos);
	font-weight: 400;
	font-size: var(--fep-t-h2);
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--fep-tinta);
}
body.fep-wc .woocommerce :where(a:not(.button):not(.checkout-button)) { color: var(--fep-tinta); text-decoration: underline; text-underline-offset: 3px; }
body.fep-wc .woocommerce :where(a:not(.button):not(.checkout-button)):hover { color: var(--fep-azul); }

/* Fichas cálidas dentro del bloque (como la foto de la ficha). */
body.fep-wc .woocommerce-billing-fields,
body.fep-wc .woocommerce-shipping-fields,
body.fep-wc .woocommerce-additional-fields,
body.fep-wc .woocommerce-checkout-review-order,
body.fep-wc .cart_totals,
body.fep-wc .woocommerce-form-login,
body.fep-wc .woocommerce-form-register,
body.fep-wc .woocommerce-ResetPassword {
	padding: 16px 14px 18px;
	border: 0;
	border-radius: var(--fep-radio-ficha);
	background: var(--fep-ficha);
	box-sizing: border-box;
}
@media (min-width: 900px) {
	body.fep-wc .woocommerce-billing-fields,
	body.fep-wc .woocommerce-shipping-fields,
	body.fep-wc .woocommerce-additional-fields,
	body.fep-wc .woocommerce-checkout-review-order,
	body.fep-wc .cart_totals,
	body.fep-wc .woocommerce-form-login,
	body.fep-wc .woocommerce-form-register,
	body.fep-wc .woocommerce-ResetPassword { padding: 22px 24px 24px; }
}

/* --- Campos ------------------------------------------------------------------ */
body.fep-wc .woocommerce form .form-row { margin: 0 0 12px; padding: 0; }
body.fep-wc .woocommerce form .form-row label,
body.fep-wc .woocommerce form .form-row .woocommerce-input-wrapper + .description {
	display: block;
	margin: 0 0 6px;
	font-family: var(--fep-titulos);
	font-size: 14px;
	line-height: 1.35;
	color: var(--fep-tinta);
}
body.fep-wc .woocommerce form .form-row .required { color: var(--fep-temporada); text-decoration: none; border: 0; }
body.fep-wc .woocommerce form .form-row .optional { color: var(--fep-texto); }
body.fep-wc .woocommerce input.input-text,
body.fep-wc .woocommerce form .form-row input.input-text,
body.fep-wc .woocommerce textarea,
body.fep-wc .woocommerce form .form-row textarea,
body.fep-wc .woocommerce select,
body.fep-wc .woocommerce form .form-row select,
body.fep-wc .woocommerce #coupon_code,
body.fep-wc .woocommerce .select2-container .select2-selection--single {
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	box-sizing: border-box;
	border: 1px solid var(--fep-borde);
	border-radius: 999px;
	background-color: var(--fep-blanco);
	font-family: var(--fep-titulos);
	font-size: 16px; /* 16 px: el iPhone no se acerca solo al tocar el campo */
	line-height: 48px;
	color: var(--fep-tinta);
	box-shadow: none;
	transition: border-color .2s ease;
}
body.fep-wc .woocommerce textarea,
body.fep-wc .woocommerce form .form-row textarea { height: auto; min-height: 96px; padding: 12px 18px; border-radius: 18px; line-height: 1.45; resize: vertical; }
body.fep-wc .woocommerce select {
	padding-right: 44px;
	background: var(--fep-blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231A1A1A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 18px center;
	-webkit-appearance: none;
	appearance: none;
}
body.fep-wc .woocommerce input.input-text:focus,
body.fep-wc .woocommerce textarea:focus,
body.fep-wc .woocommerce select:focus { border-color: var(--fep-tinta); outline: 2px solid var(--fep-azul); outline-offset: 2px; }
body.fep-wc .woocommerce input::placeholder,
body.fep-wc .woocommerce textarea::placeholder { color: #8A8F93; }
body.fep-wc .woocommerce form .form-row.woocommerce-invalid input.input-text,
body.fep-wc .woocommerce form .form-row.woocommerce-invalid select { border-color: var(--fep-temporada); }
body.fep-wc .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--fep-borde); }
/* Ayudas debajo de un campo (p. ej. «Haremos todo lo posible…»). */
body.fep-wc .woocommerce form .form-row .description { margin: 6px 4px 0; padding: 0; background: none; color: var(--fep-texto); font-size: 13px; line-height: 1.4; }
body.fep-wc .woocommerce form .form-row .description::before { display: none; }
/* Casillas («Solicitar factura», términos): del tamaño del dedo y alineadas con su texto. */
body.fep-wc .woocommerce form .form-row label.checkbox,
body.fep-wc .woocommerce form .woocommerce-form__label-for-checkbox {
	position: relative;
	display: block;
	min-height: 24px;
	margin: 0;
	padding: 1px 0 0 32px;
	font-size: 15px;
	line-height: 1.45;
	cursor: pointer;
}
body.fep-wc .woocommerce form .form-row label.checkbox input[type="checkbox"],
body.fep-wc .woocommerce form .woocommerce-form__label-for-checkbox input[type="checkbox"] { position: absolute; top: 2px; left: 0; margin: 0; }
body.fep-wc .woocommerce input[type="checkbox"],
body.fep-wc .woocommerce input[type="radio"] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--fep-tinta); }
/* Nombre y apellidos a medias solo si caben: en el móvil, uno debajo de otro. */
body.fep-wc .woocommerce form .form-row-first,
body.fep-wc .woocommerce form .form-row-last { float: none; width: 100%; }
@media (min-width: 600px) {
	body.fep-wc .woocommerce .woocommerce-billing-fields__field-wrapper,
	body.fep-wc .woocommerce .woocommerce-shipping-fields__field-wrapper {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
	}
	body.fep-wc .woocommerce .woocommerce-billing-fields__field-wrapper > *,
	body.fep-wc .woocommerce .woocommerce-shipping-fields__field-wrapper > * { grid-column: 1 / -1; }
	body.fep-wc .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-first,
	body.fep-wc .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-first { grid-column: 1; }
	body.fep-wc .woocommerce .woocommerce-billing-fields__field-wrapper > .form-row-last,
	body.fep-wc .woocommerce .woocommerce-shipping-fields__field-wrapper > .form-row-last { grid-column: 2; }
}

/* --- Botones ----------------------------------------------------------------- */
/* Principal (Finalizar compra, Confirmar pedido, Acceder…): negro, como «Añadir a la cesta». */
body.fep-wc .woocommerce .checkout-button,
body.fep-wc .woocommerce #place_order,
body.fep-wc .woocommerce button.button.alt,
body.fep-wc .woocommerce a.button.alt,
body.fep-wc .woocommerce .woocommerce-form-login__submit,
body.fep-wc .woocommerce .woocommerce-form-register__submit,
body.fep-wc .woocommerce .woocommerce-Button,
body.fep-wc .woocommerce .woocommerce-button,
body.fep-wc .woocommerce .return-to-shop .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--fep-tinta);
	color: #FFFFFF;
	font-family: var(--fep-titulos);
	font-weight: 500;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: .02em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, opacity .2s ease;
}
body.fep-wc .woocommerce .checkout-button:hover,
body.fep-wc .woocommerce #place_order:hover,
body.fep-wc .woocommerce button.button.alt:hover,
body.fep-wc .woocommerce a.button.alt:hover,
body.fep-wc .woocommerce .woocommerce-form-login__submit:hover,
body.fep-wc .woocommerce .woocommerce-form-register__submit:hover,
body.fep-wc .woocommerce .woocommerce-Button:hover,
body.fep-wc .woocommerce .woocommerce-button:hover,
body.fep-wc .woocommerce .return-to-shop .button:hover { background: #000000; color: #FFFFFF; }
/* Secundarios (Aplicar cupón, Actualizar carrito): blancos con borde, en píldora. */
body.fep-wc .woocommerce button.button:not(.alt):not(.woocommerce-form-login__submit):not(.woocommerce-form-register__submit):not(.woocommerce-Button):not(.woocommerce-button),
body.fep-wc .woocommerce a.button:not(.alt):not(.checkout-button):not(.woocommerce-button):not(.wc-backward) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--fep-tinta);
	border-radius: 999px;
	background: var(--fep-blanco);
	color: var(--fep-tinta);
	font-family: var(--fep-titulos);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease;
}
body.fep-wc .woocommerce button.button:not(.alt):hover,
body.fep-wc .woocommerce a.button:not(.alt):not(.checkout-button):hover { background: var(--fep-ficha); color: var(--fep-tinta); }
body.fep-wc .woocommerce button.button:disabled,
body.fep-wc .woocommerce button.button:disabled[disabled] { opacity: .4; padding: 0 22px; cursor: not-allowed; }

/* --- Avisos de WooCommerce (cupón, errores, «añadido»…) --------------------- */
/* El aviso flotante «Añadido a la cesta» (base.css, .fep-aviso) no se toca. */
body.fep-wc .woocommerce-message:not(:has(.fep-aviso)),
body.fep-wc .woocommerce-info,
body.fep-wc .woocommerce-error {
	margin: 0 0 14px;
	padding: 14px 16px 14px 46px;
	border: 0;
	border-radius: 16px;
	background: var(--fep-ficha);
	color: var(--fep-tinta);
	font-size: 15px;
	line-height: 1.45;
	list-style: none;
}
body.fep-wc .woocommerce-message:not(:has(.fep-aviso))::before,
body.fep-wc .woocommerce-info::before,
body.fep-wc .woocommerce-error::before { top: 14px; left: 16px; color: var(--fep-azul); }
body.fep-wc .woocommerce-error { background: #FBEDEF; }
body.fep-wc .woocommerce-error::before { color: var(--fep-temporada); }
body.fep-wc .woocommerce-error li { margin: 0; }
/* En los errores del pago, cada línea es un enlace a su campo: sin subrayar todo el aviso. */
body.fep-wc .woocommerce-error a { color: inherit; text-decoration: none; }
body.fep-wc .woocommerce-error a:hover { text-decoration: underline; }
body.fep-wc .woocommerce-message:not(:has(.fep-aviso)) .button,
body.fep-wc .woocommerce-info .button { float: none; margin: 8px 0 0; }

/* ==========================================================================
   Cesta
   ========================================================================== */
body.fep-wc .woocommerce-cart-form { margin: 0; }
body.fep-wc table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; }
body.fep-wc table.shop_table th,
body.fep-wc table.shop_table td { padding: 12px 0; border: 0; border-top: 1px solid var(--fep-linea); background: none; vertical-align: middle; text-align: left; }
body.fep-wc table.shop_table thead th {
	padding-top: 0;
	border-top: 0;
	font-family: var(--fep-titulos);
	font-weight: 400;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--fep-texto);
}
body.fep-wc table.cart .product-thumbnail { width: 76px; }
body.fep-wc table.cart .product-thumbnail img {
	display: block;
	width: 64px;
	height: 64px;
	padding: 4px;
	box-sizing: border-box;
	border-radius: 14px;
	background: var(--fep-ficha);
	object-fit: contain;
	mix-blend-mode: multiply;
}
body.fep-wc table.cart .product-thumbnail a { display: block; width: 64px; border-radius: 14px; background: var(--fep-ficha); }
body.fep-wc table.cart .product-name a { font-family: var(--fep-titulos); font-size: 16px; color: var(--fep-tinta); text-decoration: none; }
body.fep-wc table.cart .product-name a:hover { text-decoration: underline; }
body.fep-wc table.cart .product-name dl.variation { margin: 4px 0 0; font-size: 13px; color: var(--fep-texto); }
body.fep-wc table.cart .product-name dl.variation dt,
body.fep-wc table.cart .product-name dl.variation dd,
body.fep-wc table.cart .product-name dl.variation p { display: inline; margin: 0; padding: 0; }
body.fep-wc table.shop_table .amount { font-family: var(--fep-titulos); color: var(--fep-tinta); white-space: nowrap; }
body.fep-wc table.cart .product-subtotal .amount { color: var(--fep-azul); }
body.fep-wc .woocommerce table.cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--fep-texto) !important; /* WooCommerce lo pone en rojo con !important */
	font-size: 24px;
	font-weight: 300;
	line-height: 1;
	text-decoration: none !important;
}
body.fep-wc .woocommerce table.cart a.remove:hover { background: var(--fep-ficha) !important; color: var(--fep-tinta) !important; }
/* Cantidad: píldora, como en la ficha. */
body.fep-wc table.cart .quantity .qty {
	width: 76px;
	min-height: 44px;
	padding: 0 8px;
	border: 1px solid var(--fep-borde);
	border-radius: 999px;
	background: var(--fep-blanco);
	font-family: var(--fep-titulos);
	font-size: 16px;
	text-align: center;
	color: var(--fep-tinta);
}
/* Fila de abajo: cupón a la izquierda, «Actualizar carrito» a la derecha. */
body.fep-wc table.cart td.actions { padding: 16px 0 4px; }
body.fep-wc table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.fep-wc table.cart td.actions .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
body.fep-wc table.cart td.actions .coupon #coupon_code { flex: 1 1 180px; width: auto; min-height: 48px; margin: 0; line-height: 46px; }
body.fep-wc table.cart td.actions > .button { margin-top: 10px; }

/* Totales: ficha cálida con el botón negro. */
body.fep-wc .cart-collaterals { margin-top: 16px; }
body.fep-wc .cart-collaterals .cart_totals { float: none; width: auto; }
body.fep-wc .cart_totals table.shop_table th,
body.fep-wc .cart_totals table.shop_table td { padding: 12px 0; border-top-color: #E2E6E8; font-size: 15px; }
body.fep-wc .cart_totals table.shop_table tr:first-child th,
body.fep-wc .cart_totals table.shop_table tr:first-child td { border-top: 0; }
body.fep-wc .cart_totals table.shop_table th { width: 34%; font-family: var(--fep-titulos); font-weight: 400; color: var(--fep-tinta); vertical-align: top; }
body.fep-wc .cart_totals .order-total .amount { font-size: 20px; color: var(--fep-azul); }
body.fep-wc .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
body.fep-wc .woocommerce-shipping-methods li { margin: 0 0 6px; }
body.fep-wc .woocommerce-shipping-destination { margin: 6px 0 0; font-size: 14px; color: var(--fep-texto); }
body.fep-wc .woocommerce-shipping-destination strong { font-weight: 400; color: var(--fep-tinta); }
body.fep-wc .woocommerce-shipping-calculator .shipping-calculator-button { font-size: 14px; }
body.fep-wc .woocommerce-shipping-calculator .shipping-calculator-button::after { display: none; }
body.fep-wc .wc-proceed-to-checkout { padding: 16px 0 0; }
body.fep-wc .wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; margin: 0; font-size: 16px; }
body.fep-wc .cart-empty.woocommerce-info { margin-bottom: 16px; }

/* Móvil: cada producto en una fila (foto · nombre y precio · cantidad · quitar), sin la tabla. */
@media (max-width: 768px) {
	body.fep-wc table.cart thead { display: none; }
	body.fep-wc table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 64px minmax(0, 1fr) auto;
		grid-template-areas:
			"foto nombre quitar"
			"foto precio quitar"
			"foto cantidad total";
		column-gap: 12px;
		row-gap: 2px;
		align-items: center;
		padding: 14px 0;
		border-top: 1px solid var(--fep-linea);
	}
	body.fep-wc table.cart tr.cart_item:first-child { border-top: 0; padding-top: 0; }
	body.fep-wc table.cart tr.cart_item td { display: block; padding: 0; border: 0; background: none !important; text-align: left !important; }
	body.fep-wc table.cart tr.cart_item td::before { display: none !important; } /* sin «Producto:», «Precio:»… */
	body.fep-wc table.cart td.product-thumbnail { grid-area: foto; display: block !important; width: 64px; align-self: start; }
	body.fep-wc table.cart td.product-name { grid-area: nombre; }
	body.fep-wc table.cart td.product-price { grid-area: precio; font-size: 14px; }
	body.fep-wc table.cart td.product-quantity { grid-area: cantidad; margin-top: 8px; }
	body.fep-wc table.cart td.product-subtotal { grid-area: total; align-self: end; margin-bottom: 12px; text-align: right !important; }
	body.fep-wc table.cart td.product-remove { grid-area: quitar; align-self: start; margin: -8px -8px 0 0; }
	body.fep-wc table.cart tr:not(.cart_item) { display: block; }
	body.fep-wc table.cart td.actions { display: block; border-top: 1px solid var(--fep-linea); background: none !important; } /* sin el gris de WooCommerce */
	body.fep-wc table.cart td.actions::before { display: none; }
	body.fep-wc table.cart td.actions .coupon { float: none; }
	body.fep-wc table.cart td.actions .coupon .button { flex: 0 0 auto; }
	body.fep-wc table.cart td.actions > .button { width: 100%; }
	/* Totales: «Subtotal · 40,00 €» en una fila (WooCommerce los apila con «Subtotal:» delante). */
	body.fep-wc .cart_totals table.shop_table_responsive tr { display: table-row; }
	body.fep-wc .cart_totals table.shop_table_responsive th { display: table-cell; }
	body.fep-wc .cart_totals table.shop_table_responsive td { display: table-cell; text-align: right !important; background: none !important; }
	body.fep-wc .cart_totals table.shop_table_responsive td::before { display: none !important; }
	body.fep-wc .cart_totals .woocommerce-shipping-destination,
	body.fep-wc .cart_totals .woocommerce-shipping-calculator { text-align: right; }
}
/* Ordenador: productos a la izquierda y totales a la derecha. */
@media (min-width: 900px) {
	body.fep-wc.woocommerce-cart .entry-content > .woocommerce {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 380px;
		column-gap: 32px;
		align-items: start;
	}
	body.fep-wc.woocommerce-cart .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
	body.fep-wc.woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
	body.fep-wc.woocommerce-cart .cart-collaterals { grid-column: 2; margin-top: 0; position: sticky; top: 80px; }
	body.fep-wc.woocommerce-cart .cart-empty,
	body.fep-wc.woocommerce-cart .return-to-shop { grid-column: 1 / -1; }
	body.fep-wc table.cart td.actions { text-align: left; }
	body.fep-wc table.cart td.actions .coupon { float: left; }
	body.fep-wc table.cart td.actions .coupon #coupon_code { width: 220px; flex: none; }
	body.fep-wc table.cart td.actions > .button { float: right; margin-top: 0; }
	body.fep-wc table.cart .product-remove { width: 44px; }
	body.fep-wc table.cart .product-quantity,
	body.fep-wc table.cart .product-price,
	body.fep-wc table.cart .product-subtotal { width: 1%; padding-left: 16px; white-space: nowrap; }
}

/* «‹ Seguir comprando» (debajo de los productos) y «‹ Volver al carrito» (debajo de «Confirmar pedido»). */
body.fep-wc .woocommerce .fep-wc-seguir {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	margin-top: 8px;
	font-family: var(--fep-titulos);
	font-size: 15px;
	color: var(--fep-tinta);
	text-decoration: none;
}
body.fep-wc .woocommerce .fep-wc-seguir span { text-decoration: underline; text-underline-offset: 4px; }
body.fep-wc .woocommerce .fep-wc-seguir:hover,
body.fep-wc .woocommerce .fep-wc-seguir:focus { color: var(--fep-azul); }
body.fep-wc .woocommerce .fep-wc-seguir--centro { display: flex; justify-content: center; margin-top: 2px; }
/* «🔒 Pago seguro» debajo del botón. */
body.fep-wc .fep-wc-seguro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 32px;
	margin: 10px 0 0;
	font-family: var(--fep-titulos);
	font-size: 14px;
	color: var(--fep-texto);
}

/* ==========================================================================
   Pago
   ========================================================================== */
body.fep-wc .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 12px; }
body.fep-wc form.checkout_coupon { margin: 0 0 14px; padding: 14px; border: 0; border-radius: 16px; background: var(--fep-ficha); }
body.fep-wc form.checkout_coupon p { margin: 0 0 8px; }
body.fep-wc form.checkout_coupon .form-row-first,
body.fep-wc form.checkout_coupon .form-row-last { margin: 0 0 8px; }
body.fep-wc form.checkout { display: flex; flex-direction: column; gap: 12px; }
body.fep-wc form.checkout::before,
body.fep-wc form.checkout::after { display: none; }
body.fep-wc form.checkout .col2-set { display: flex; flex-direction: column; gap: 12px; width: auto; }
body.fep-wc form.checkout .col2-set::before,
body.fep-wc form.checkout .col2-set::after { display: none; }
body.fep-wc form.checkout .col2-set .col-1,
body.fep-wc form.checkout .col2-set .col-2 { float: none; width: auto; display: flex; flex-direction: column; gap: 12px; }
/* «¿Enviar a una dirección diferente?»: la casilla en línea con el título. */
body.fep-wc #ship-to-different-address { margin-bottom: 14px; }
body.fep-wc #ship-to-different-address label { display: flex; align-items: center; gap: 10px; font: inherit; color: inherit; cursor: pointer; }
body.fep-wc #ship-to-different-address input { margin: 0; }
/* Texto suelto que meten otros (p. ej. el horario de reparto, encima de la fecha). */
body.fep-wc .woocommerce-shipping-fields > p:not(.form-row),
body.fep-wc .woocommerce-shipping-fields .shipping_address > p:not(.form-row) { margin: 4px 4px 14px; font-size: 14px; line-height: 1.45; color: var(--fep-texto); }
body.fep-wc .woocommerce-additional-fields h3 { margin-top: 0; }
body.fep-wc .woocommerce-additional-fields .form-row { margin-bottom: 0; }

/* «Tu pedido»: tabla y pago en la misma ficha. */
body.fep-wc #order_review_heading { margin: 4px 0 0; padding: 0 2px; }
body.fep-wc table.woocommerce-checkout-review-order-table th,
body.fep-wc table.woocommerce-checkout-review-order-table td { padding: 11px 0; border-top-color: #E2E6E8; font-size: 15px; }
body.fep-wc table.woocommerce-checkout-review-order-table thead th { padding-top: 0; }
body.fep-wc table.woocommerce-checkout-review-order-table td:last-child,
body.fep-wc table.woocommerce-checkout-review-order-table th:last-child { text-align: right; }
body.fep-wc table.woocommerce-checkout-review-order-table .product-name { color: var(--fep-tinta); }
body.fep-wc table.woocommerce-checkout-review-order-table .product-quantity { font-weight: 400; color: var(--fep-texto); }
body.fep-wc table.woocommerce-checkout-review-order-table tfoot th { font-family: var(--fep-titulos); font-weight: 400; color: var(--fep-tinta); }
body.fep-wc table.woocommerce-checkout-review-order-table .woocommerce-shipping-methods { text-align: right; }
body.fep-wc table.woocommerce-checkout-review-order-table .order-total .amount { font-size: 20px; color: var(--fep-azul); }

body.fep-wc #payment { margin-top: 14px; border-radius: 0; background: none; }
body.fep-wc #payment ul.payment_methods { margin: 0 0 14px; padding: 0; border: 0; list-style: none; }
body.fep-wc #payment ul.payment_methods li {
	margin: 0 0 8px;
	padding: 14px 16px;
	border: 1px solid var(--fep-borde);
	border-radius: 16px;
	background: var(--fep-blanco);
	line-height: 1.4;
}
body.fep-wc #payment ul.payment_methods li > input { vertical-align: middle; margin-right: 8px; }
body.fep-wc #payment ul.payment_methods li > label { font-family: var(--fep-titulos); font-size: 15px; color: var(--fep-tinta); cursor: pointer; }
body.fep-wc #payment ul.payment_methods li img { display: inline-block; max-height: 22px; margin: 0 0 0 6px; vertical-align: middle; }
body.fep-wc #payment div.payment_box { margin: 10px 0 0; padding: 0; border-radius: 0; background: none; color: var(--fep-texto); font-size: 14px; }
body.fep-wc #payment div.payment_box::before { display: none; }
body.fep-wc #payment ul.payment_methods li.woocommerce-notice,
body.fep-wc #payment ul.payment_methods > .woocommerce-info { padding: 14px 16px 14px 46px; border: 0; background: var(--fep-blanco); }
/* En una columna: términos, «Confirmar pedido», «Pago seguro» y «Volver al carrito» (WooCommerce la pone en fila). */
body.fep-wc #payment div.form-row.place-order { display: flex; flex-direction: column; align-items: stretch; margin: 0; padding: 0; }
body.fep-wc .woocommerce-privacy-policy-text p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--fep-texto); }
body.fep-wc .woocommerce-terms-and-conditions-wrapper .form-row { margin-bottom: 14px; }
body.fep-wc #place_order { display: flex; float: none; width: 100%; font-size: 16px; }

@media (min-width: 900px) {
	/* Datos a la izquierda; «Tu pedido» y el pago a la derecha, quietos al bajar. */
	body.fep-wc form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 400px;
		grid-template-rows: auto 1fr;
		column-gap: 32px;
		row-gap: 12px;
		align-items: start;
	}
	body.fep-wc form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	body.fep-wc form.checkout > .col2-set { grid-column: 1; grid-row: 1 / span 2; }
	body.fep-wc form.checkout > #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	body.fep-wc form.checkout > #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 80px; }
}

/* --- Pedido recibido (después de pagar) y detalle de un pedido en Mi cuenta --- */
body.fep-wc .woocommerce-order > p:first-child,
body.fep-wc .woocommerce-thankyou-order-received { margin: 0 0 16px; font-family: var(--fep-titulos); font-size: 18px; color: var(--fep-tinta); }
body.fep-wc ul.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
body.fep-wc ul.woocommerce-order-overview::before,
body.fep-wc ul.woocommerce-order-overview::after { display: none; }
body.fep-wc ul.woocommerce-order-overview li {
	flex: 1 1 140px;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 14px;
	background: var(--fep-ficha);
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fep-texto);
}
body.fep-wc ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-family: var(--fep-titulos); font-weight: 400; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--fep-tinta); }
body.fep-wc .woocommerce-order-details,
body.fep-wc .woocommerce-customer-details { margin: 0 0 18px; }
body.fep-wc table.woocommerce-table--order-details tfoot th { font-family: var(--fep-titulos); font-weight: 400; color: var(--fep-tinta); }
/*
 * Debajo de la tabla del pedido van los datos de entrega de dos plugins: la fecha y la franja
 * (Order Delivery Date, en <p><strong>…</strong> valor</p>) y el teléfono y el texto de la tarjeta
 * (Checkout Field Editor, en otra tabla .custom-fields). Se ponen como filas de la misma tabla:
 * columnas fijas al 50 % en las dos tablas, para que los valores empiecen a la misma altura.
 */
body.fep-wc table.woocommerce-table--order-details,
body.fep-wc .woocommerce-order-details table.woocommerce-table--custom-fields { table-layout: fixed; }
body.fep-wc table.woocommerce-table--order-details tr > :first-child,
body.fep-wc .woocommerce-order-details table.woocommerce-table--custom-fields tr > :first-child { width: 50%; padding-right: 12px; box-sizing: border-box; }
body.fep-wc table.woocommerce-table--order-details td,
body.fep-wc .woocommerce-order-details table.woocommerce-table--custom-fields td { overflow-wrap: anywhere; }
body.fep-wc .woocommerce-order-details table.woocommerce-table--custom-fields th { font-family: var(--fep-titulos); font-weight: 400; color: var(--fep-tinta); }
body.fep-wc .woocommerce-order-details > p:has(> strong:first-child) {
	display: grid;
	grid-template-columns: 50% minmax(0, 1fr);
	align-items: center;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--fep-linea);
}
body.fep-wc .woocommerce-order-details > p:has(> strong:first-child) > strong { padding-right: 12px; font-family: var(--fep-titulos); font-weight: 400; color: var(--fep-tinta); }
body.fep-wc .woocommerce-customer-details .woocommerce-columns { display: grid; gap: 12px; }
body.fep-wc .woocommerce-customer-details .woocommerce-columns::before,
body.fep-wc .woocommerce-customer-details .woocommerce-columns::after { display: none; }
body.fep-wc .woocommerce-customer-details .woocommerce-column { float: none; width: auto; }
body.fep-wc .woocommerce-customer-details address {
	padding: 16px;
	border: 0;
	border-radius: var(--fep-radio-ficha);
	background: var(--fep-ficha);
	font-style: normal;
	line-height: 1.6;
	color: var(--fep-tinta);
}
@media (min-width: 900px) {
	body.fep-wc .woocommerce-customer-details .woocommerce-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   Mi cuenta
   ========================================================================== */
/* Menú de la cuenta: botones en píldora (como los de la tienda), sin puntos de lista. */
body.fep-wc .woocommerce-MyAccount-navigation { float: none; width: auto; margin: 0 0 18px; }
body.fep-wc .woocommerce-MyAccount-navigation ul {
	display: flex;
	gap: 8px;
	margin: 0 calc(-1 * var(--fep-dentro));
	padding: 2px var(--fep-dentro);
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
body.fep-wc .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
body.fep-wc .woocommerce-MyAccount-navigation li { flex: none; margin: 0; padding: 0; }
body.fep-wc .woocommerce-MyAccount-navigation li a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	box-sizing: border-box;
	border: 1px solid var(--fep-borde);
	border-radius: 999px;
	background: var(--fep-blanco);
	color: var(--fep-tinta) !important;
	font-family: var(--fep-titulos);
	font-size: 14px;
	white-space: nowrap;
	text-decoration: none !important;
}
body.fep-wc .woocommerce-MyAccount-navigation li.is-active a { border-color: var(--fep-tinta); background: var(--fep-tinta); color: #FFFFFF !important; }
body.fep-wc .woocommerce-MyAccount-content { float: none; width: auto; }
body.fep-wc .woocommerce-MyAccount-content > p:first-child { font-family: var(--fep-titulos); font-size: 18px; color: var(--fep-tinta); }
body.fep-wc .woocommerce-MyAccount-content p { max-width: 62ch; }
body.fep-wc .woocommerce-MyAccount-content mark { background: none; color: var(--fep-tinta); }
/* Tablas de la cuenta (pedidos): como las de la cesta. */
body.fep-wc .woocommerce-MyAccount-content table.shop_table td,
body.fep-wc .woocommerce-MyAccount-content table.shop_table th { padding: 12px 10px 12px 0; }
body.fep-wc .woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; gap: 12px; }
body.fep-wc .woocommerce-MyAccount-content .woocommerce-Address { float: none; width: auto; padding: 16px; border-radius: var(--fep-radio-ficha); background: var(--fep-ficha); }
body.fep-wc .woocommerce-MyAccount-content .woocommerce-Address address { font-style: normal; }
body.fep-wc .woocommerce-MyAccount-content fieldset { margin: 14px 0; padding: 16px; border: 0; border-radius: var(--fep-radio-ficha); background: var(--fep-ficha); }
body.fep-wc .woocommerce-MyAccount-content fieldset legend { padding: 0; font-family: var(--fep-titulos); color: var(--fep-tinta); }
@media (min-width: 900px) {
	body.fep-wc .woocommerce-MyAccount-navigation ul { flex-wrap: wrap; margin: 0; padding: 2px 0; overflow: visible; }
	body.fep-wc .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Entrar / registrarse: ficha centrada, no más ancha de lo que se lee bien. */
body.fep-wc .woocommerce-form-login,
body.fep-wc .woocommerce-ResetPassword { max-width: 460px; margin: 0; }
body.fep-wc .woocommerce .u-columns.col2-set { display: grid; gap: 16px; width: auto; }
body.fep-wc .woocommerce .u-columns.col2-set::before,
body.fep-wc .woocommerce .u-columns.col2-set::after { display: none; }
body.fep-wc .woocommerce .u-columns .u-column1,
body.fep-wc .woocommerce .u-columns .u-column2 { float: none; width: auto; }
@media (min-width: 900px) { body.fep-wc .woocommerce .u-columns.col2-set { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.fep-wc .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 6px; }
/* Sin el «clearfix» de WooCommerce, que en una fila flexible ocupa sitio y desplaza «Recuérdame». */
body.fep-wc .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme)::before,
body.fep-wc .woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme)::after { display: none; }
body.fep-wc .woocommerce-form-login .woocommerce-form-login__submit { flex: 1 1 auto; }
body.fep-wc .woocommerce-LostPassword { margin: 14px 0 0; font-size: 14px; }
body.fep-wc .woocommerce-password-strength { margin-top: 6px; border-radius: 10px; font-size: 13px; }
