/* Fractal Whop Pay · carrito, checkout, pago y gracias con la marca del sitio.
   Los colores y fuentes vienen de los ajustes (variables --fx-*); estos son los de Agencia Fractal por defecto. */
body.fxw-store {
	--fx-night: #07061a;
	--fx-ink: #1d1838;
	--fx-muted: #6c6590;
	--fx-line: #e9e4f5;
	--fx-soft: #f7f4fd;
	--fx-violet: #7a45c8;
	--fx-magenta: #d65fc7;
	--fx-pink: #f08bd6;
	--fx-font-h: "Unbounded", "Manrope", sans-serif;
	--fx-font-b: "Manrope", system-ui, -apple-system, sans-serif;
	--fx-grad: linear-gradient(120deg, var(--fx-violet) 0%, var(--fx-magenta) 65%, var(--fx-pink) 100%);
	--fx-radius: 18px;
	--fx-shadow: 0 18px 50px -28px rgba(45, 20, 110, .45);
	background: var(--fx-soft);
	color: var(--fx-ink);
	font-family: var(--fx-font-b);
}
body.fxw-store #content,
body.fxw-store .site-content { background: transparent; }
body.fxw-store .ast-container { max-width: 1180px; }

/* Título de la página */
body.fxw-store .entry-header { margin-bottom: 8px; }
body.fxw-store .entry-title {
	font-family: var(--fx-font-h);
	font-weight: 700;
	font-size: clamp(28px, 4vw, 40px);
	letter-spacing: -.02em;
	background: var(--fx-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
body.fxw-store h2, body.fxw-store h3,
body.fxw-store .cart_totals h2,
body.fxw-store #order_review_heading {
	font-family: var(--fx-font-h);
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--fx-ink);
}
body.fxw-store a { color: var(--fx-violet); }
body.fxw-store a:hover { color: var(--fx-magenta); }

/* Pasos */
.fxw-steps { margin: 6px 0 26px; }
.fxw-steps ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.fxw-steps li {
	display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 120px;
	padding: 10px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--fx-line);
	color: var(--fx-muted); font-weight: 600; font-size: 14px; margin: 0;
}
.fxw-steps__n {
	display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
	border-radius: 50%; background: var(--fx-soft); font-size: 12px; font-weight: 800; flex: none;
}
.fxw-steps li.is-current { color: #fff; background: var(--fx-grad); border-color: transparent; box-shadow: var(--fx-shadow); }
.fxw-steps li.is-current .fxw-steps__n { background: rgba(255, 255, 255, .25); color: #fff; }
.fxw-steps li.is-done { color: var(--fx-violet); }
.fxw-steps li.is-done .fxw-steps__n { background: #efe6fb; color: var(--fx-violet); }
@media (max-width: 640px) {
	.fxw-steps ol { flex-wrap: nowrap; }
	.fxw-steps li { flex: 0 0 auto; min-width: 0; padding: 6px; justify-content: center; }
	.fxw-steps li.is-current { flex: 1 1 auto; padding: 6px 12px 6px 6px; justify-content: flex-start; }
	.fxw-steps__l { white-space: nowrap; }
	.fxw-steps li:not(.is-current) .fxw-steps__l { display: none; }
}

/* Avisos */
body.fxw-store .woocommerce-info,
body.fxw-store .woocommerce-message,
body.fxw-store .woocommerce-error {
	border: 1px solid var(--fx-line); border-left: 4px solid var(--fx-violet); border-radius: 14px;
	background: #fff; color: var(--fx-ink); box-shadow: none; font-size: 15px;
}
body.fxw-store .woocommerce-error { border-left-color: #d6336c; }
body.fxw-store .woocommerce-info::before,
body.fxw-store .woocommerce-message::before { color: var(--fx-violet); }

/* Tarjetas */
body.fxw-store .woocommerce-cart-form,
body.fxw-store .cart_totals,
body.fxw-store .woocommerce-billing-fields,
body.fxw-store .woocommerce-additional-fields,
body.fxw-store #order_review,
body.fxw-store .woocommerce-order,
body.fxw-store form.checkout_coupon,
body.fxw-store form.woocommerce-form-login,
body.fxw-store .fxw-pay {
	background: #fff; border: 1px solid var(--fx-line); border-radius: var(--fx-radius);
	box-shadow: var(--fx-shadow); padding: 22px 24px;
}
body.fxw-store .woocommerce-additional-fields { margin-top: 18px; }
body.fxw-store .cart-collaterals .cart_totals { padding: 22px 24px; }
body.fxw-store .cart-collaterals { margin-top: 24px; }
body.fxw-store .cart_totals > h2 { font-size: 18px !important; border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; background: none !important; }
body.fxw-store table.shop_table thead,
body.fxw-store table.shop_table thead tr,
body.fxw-store table.shop_table thead th { background: transparent !important; }

/* Tablas */
body.fxw-store table.shop_table {
	border: 0; border-radius: 0; margin: 0; border-collapse: collapse; background: transparent;
}
body.fxw-store table.shop_table th,
body.fxw-store table.shop_table td {
	border: 0; border-bottom: 1px solid var(--fx-line); padding: 14px 10px; background: transparent;
}
body.fxw-store table.shop_table thead th {
	font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fx-muted); font-weight: 700;
}
body.fxw-store table.shop_table tr:last-child td,
body.fxw-store table.shop_table tr:last-child th { border-bottom: 0; }
body.fxw-store table.shop_table .order-total th,
body.fxw-store table.shop_table .order-total td { font-size: 18px; font-weight: 800; color: var(--fx-ink); }
body.fxw-store table.shop_table .order-total .amount {
	background: var(--fx-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.fxw-store .product-name a { font-weight: 700; color: var(--fx-ink); }
body.fxw-store .product-thumbnail img { border-radius: 12px; width: 64px; }
body.fxw-store a.remove {
	border-radius: 50%; border: 1px solid var(--fx-line) !important; color: var(--fx-muted) !important; line-height: 22px;
}
body.fxw-store a.remove:hover { background: #fde8f3 !important; color: #d6336c !important; }

/* Campos */
body.fxw-store .form-row label { font-weight: 700; font-size: 13px; color: var(--fx-ink); }
body.fxw-store input.input-text,
body.fxw-store textarea,
body.fxw-store select,
body.fxw-store .select2-container .select2-selection,
body.fxw-store #coupon_code {
	border: 1px solid #ddd5ef !important; border-radius: 12px !important; background: #fff;
	min-height: 46px; padding: 10px 14px; font-family: inherit; font-size: 15px; color: var(--fx-ink);
	box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
body.fxw-store .select2-container .select2-selection--single .select2-selection__rendered { line-height: 26px; padding: 0; }
body.fxw-store .select2-container .select2-selection--single .select2-selection__arrow { top: 10px; right: 10px; }
body.fxw-store input.input-text:focus,
body.fxw-store textarea:focus,
body.fxw-store select:focus,
body.fxw-store #coupon_code:focus {
	border-color: var(--fx-violet) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-violet) 15%, transparent) !important; outline: 0;
}

/* Botones */
body.fxw-store .button,
body.fxw-store button.button,
body.fxw-store a.button,
body.fxw-store #place_order,
body.fxw-store .checkout-button,
body.fxw-store .wc-forward {
	background: var(--fx-grad) !important; color: #fff !important; border: 0 !important;
	border-radius: 999px !important; font-family: var(--fx-font-b); font-weight: 800;
	letter-spacing: .01em; padding: 14px 26px !important; box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--fx-violet) 80%, transparent);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; text-transform: none;
}
body.fxw-store .button:hover,
body.fxw-store #place_order:hover,
body.fxw-store .checkout-button:hover {
	transform: translateY(-1px); filter: saturate(1.15); box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--fx-magenta) 90%, transparent);
}
body.fxw-store .button:disabled,
body.fxw-store .button[disabled] { opacity: .45; transform: none; box-shadow: none; }
body.fxw-store button[name="update_cart"],
body.fxw-store button[name="apply_coupon"] {
	background: #fff !important; color: var(--fx-violet) !important; border: 1px solid #d9cdf2 !important; box-shadow: none;
}
body.fxw-store #place_order,
body.fxw-store .checkout-button { width: 100%; font-size: 17px; padding: 18px 26px !important; }

/* Checkout: columnas y resumen fijo */
@media (min-width: 922px) {
	body.fxw-store form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 32px; align-items: start; }
	body.fxw-store form.checkout .col2-set { grid-column: 1; grid-row: 1 / span 3; width: 100% !important; float: none !important; margin: 0 !important; }
	body.fxw-store form.checkout #order_review_heading { grid-column: 2; grid-row: 1; width: 100% !important; float: none !important; margin: 0 0 12px !important; }
	body.fxw-store form.checkout #order_review { grid-column: 2; grid-row: 2; width: 100% !important; float: none !important; position: sticky; top: 24px; }
	body.fxw-store form.checkout .col2-set .col-1,
	body.fxw-store form.checkout .col2-set .col-2 { width: 100% !important; float: none !important; padding: 0 !important; }
}
body.fxw-store #order_review_heading {
	font-size: 18px; border: 0 !important; background: none !important; padding: 0 !important;
}

/* Medios de pago */
body.fxw-store #payment { background: transparent; border-radius: 0; }
body.fxw-store #payment ul.payment_methods { border: 0; padding: 0; margin: 6px 0 14px; }
body.fxw-store #payment ul.payment_methods li {
	background: #fff; border: 1px solid var(--fx-line); border-radius: 14px; padding: 14px 16px; margin: 0 0 10px; list-style: none;
}
body.fxw-store #payment ul.payment_methods li label { font-weight: 700; color: var(--fx-ink); cursor: pointer; }
body.fxw-store #payment ul.payment_methods li input[type=radio] { accent-color: var(--fx-violet); }
body.fxw-store #payment div.payment_box { background: var(--fx-soft); border-radius: 12px; color: var(--fx-muted); margin: 12px 0 0; }
body.fxw-store #payment div.payment_box::before { display: none; }
body.fxw-store #payment .place-order { padding: 0 !important; margin: 0; background: transparent; display: block !important; }
body.fxw-store #payment #place_order { float: none !important; display: block; }
body.fxw-store #payment .place-order .fxw-trust { clear: both; width: 100%; }
body.fxw-store .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--fx-muted); }

/* Whop en la lista de medios de pago */
#payment li.payment_method_whop { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
li.payment_method_whop > input { margin: 0 !important; }
li.payment_method_whop > label { display: flex !important; align-items: center; gap: 10px; line-height: 1.35; margin: 0 !important; }
li.payment_method_whop > .payment_box { grid-column: 1 / -1; }
.fxw-methods { width: 100%; margin-left: 0 !important; }
li.payment_method_whop img.fxw-logo { height: 16px !important; width: auto !important; max-height: 16px; margin: 0 0 0 auto !important; float: none !important; flex: none; }
li.payment_method_whop .payment_box { text-align: left; }
.fxw-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; justify-content: flex-start; }
.fxw-methods li { margin: 0 !important; padding: 4px 9px !important; border-radius: 999px !important; background: #fff !important; border: 1px solid var(--fx-line, #e9e4f5) !important; font-size: 12px; font-weight: 700; color: #3d3762; }

/* Sello de confianza */
.fxw-trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: #6c6590; }
.fxw-trust img { height: 14px; width: auto; }

/* Página de pago (order-pay) */
body.fxw-store ul.order_details,
body.fxw-store ul.woocommerce-order-overview {
	display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 20px; list-style: none;
}
body.fxw-store ul.order_details li,
body.fxw-store ul.woocommerce-order-overview li {
	flex: 1 1 160px; margin: 0; padding: 12px 16px; border: 1px solid var(--fx-line) !important; border-radius: 14px;
	background: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fx-muted);
}
body.fxw-store ul.order_details li strong,
body.fxw-store ul.woocommerce-order-overview li strong {
	display: block; margin-top: 4px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--fx-ink);
}
body.fxw-store .fxw-pay { max-width: 680px; margin: 0 auto 40px; }
body.fxw-store .fxw-pay__head h2 { font-family: var(--fx-font-h); font-size: 24px; }
body.fxw-store .fxw-pay__loading::before { border-color: #e3d6f7; border-top-color: var(--fx-violet); }

/* Gracias */
body.fxw-store .woocommerce-order { padding: 28px; }
body.fxw-store .woocommerce-thankyou-order-received {
	font-family: var(--fx-font-h); font-size: 22px; font-weight: 600; color: var(--fx-ink);
	padding: 18px 20px; border-radius: 14px; background: #f1fbf5; border: 1px solid #c8eed8;
}
body.fxw-store .woocommerce-thankyou-order-received::before { content: "✓ "; color: #19b46b; }

/* Carrito vacío */
body.fxw-store .cart-empty { font-size: 16px; }
body.fxw-store .return-to-shop .button { width: auto; }

/* Móvil */
@media (max-width: 921px) {
	body.fxw-store .woocommerce-cart-form,
	body.fxw-store .cart_totals,
	body.fxw-store .woocommerce-billing-fields,
	body.fxw-store #order_review { padding: 18px 16px; }
	body.fxw-store #order_review_heading { margin-top: 22px; }
}
