/* Copy-Tec Web · pago y pedido recibido (bloques de WooCommerce).
   Mismo lenguaje que el resto del sitio: fondo papel, tarjetas blancas redondeadas, campos con borde de 2 px,
   botón en píldora magenta y el resumen como ticket dentado. Usa las variables --ct-* de copy-tec-web.css.
   Todo va con el prefijo body.ct-checkout para ganar en especificidad a los estilos de WooCommerce. */

body.ct-checkout { background: var(--ct-paper); }
body.ct-checkout .entry-hero,
body.ct-checkout .page-hero-section,
body.ct-checkout .entry-header { display: none; }
body.ct-checkout .content-container.site-container { max-width: 1440px; padding-inline: var(--ct-m); }
body.ct-checkout .content-bg, body.ct-checkout .entry.content-bg { background: transparent; box-shadow: none; }
body.ct-checkout .entry-content-wrap { padding: 0; }
body.ct-checkout .woocommerce, body.ct-checkout .wc-block-checkout { font-family: var(--ct-font); color: var(--ct-ink); }
body.ct-checkout #colophon { margin-top: clamp(40px, 6vw, 96px); }

/* ---------- cabecera y notas ---------- */
.ct-co-intro { padding: clamp(32px, 5vw, 72px) 0 clamp(20px, 3vw, 40px); }
.ct-co-intro h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.94; margin: 0 0 0.3em; }
.ct-co-intro p { font-size: clamp(1.0625rem, 1.3vw, 1.3rem); max-width: 46ch; margin: 0; }
.ct-co-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ct-gap); margin-top: clamp(32px, 4vw, 56px); }
.ct-co-notes p { margin: 0; padding: clamp(16px, 2vw, 24px); background: var(--ct-mint-soft); border-radius: 20px; font-size: var(--ct-fs-small); line-height: 1.5; }
.ct-co-notes strong { display: block; font-size: 1.125rem; letter-spacing: -0.02em; margin-bottom: 4px; }
@media (max-width: 780px) { .ct-co-notes { grid-template-columns: 1fr; } }

/* ---------- títulos de cada paso ---------- */
body.ct-checkout .wc-block-components-checkout-step__title,
body.ct-checkout .wc-block-components-title,
body.ct-checkout .wc-block-components-express-payment__title {
	font-family: var(--ct-font);
	font-size: clamp(1.375rem, 2vw, 1.75rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.1;
}
body.ct-checkout .wc-block-components-checkout-step__description { color: var(--ct-muted); }

/* ---------- campos ---------- */
body.ct-checkout .wc-block-components-form .wc-block-components-text-input input,
body.ct-checkout .wc-block-components-text-input input,
body.ct-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
body.ct-checkout .wc-block-components-textarea,
body.ct-checkout textarea.wc-block-components-textarea {
	border: 2px solid #cfccbd;
	border-radius: 12px;
	background: var(--ct-white);
	color: var(--ct-ink);
	font-family: var(--ct-font);
	box-shadow: none;
}
body.ct-checkout .wc-block-components-text-input input:focus,
body.ct-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.ct-checkout .wc-block-components-textarea:focus {
	border-color: var(--ct-magenta);
	outline: 3px solid rgba(199, 2, 110, 0.22);
	outline-offset: 0;
	box-shadow: none;
}
body.ct-checkout .wc-block-components-text-input.has-error input { border-color: #b00020; }
body.ct-checkout .wc-block-components-text-input label,
body.ct-checkout .wc-blocks-components-select__label { color: var(--ct-muted); }
body.ct-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border: 2px solid #8d8a7b; border-radius: 6px; background: var(--ct-white); }
body.ct-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--ct-magenta); border-color: var(--ct-magenta); }
body.ct-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--ct-white); }
body.ct-checkout a { text-underline-offset: 0.2em; }

/* ---------- pago exprés (Apple Pay, Google Pay, Link) ---------- */
body.ct-checkout .wc-block-components-express-payment__content,
body.ct-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content {
	border: 0;
	border-radius: 20px;
	background: var(--ct-mint-soft);
	padding: clamp(14px, 1.6vw, 22px);
}
body.ct-checkout .wc-block-components-express-payment__title-container { position: static; margin: 0 0 12px; padding: 0; }
body.ct-checkout .wc-block-components-express-payment { margin-bottom: 8px; }
body.ct-checkout .wc-block-components-express-payment__title-container::before,
body.ct-checkout .wc-block-components-express-payment__title-container::after,
body.ct-checkout .wc-block-components-express-payment-continue-rule::before,
body.ct-checkout .wc-block-components-express-payment-continue-rule::after { display: none; }
body.ct-checkout .wc-block-components-express-payment__title { text-align: left; padding: 0; }
body.ct-checkout .wc-block-components-express-payment-continue-rule { text-align: left; margin: 20px 0 32px !important; color: var(--ct-muted); font-weight: 600; font-size: var(--ct-fs-small); }

/* ---------- método de pago ---------- */
body.ct-checkout .wc-block-components-radio-control-accordion-option,
body.ct-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option {
	border-radius: 20px;
	background: var(--ct-white);
	box-shadow: none;
}
body.ct-checkout .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.ct-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	box-shadow: none;
	outline: 3px solid var(--ct-ink);
	outline-offset: -3px;
}
body.ct-checkout .wc-block-components-radio-control__input:checked { border-color: var(--ct-magenta); }
body.ct-checkout .wc-block-components-radio-control__input:checked::before { background: var(--ct-magenta); }
body.ct-checkout .wc-block-components-radio-control__label { font-weight: 700; letter-spacing: -0.01em; }
body.ct-checkout .wc-block-components-radio-control-accordion-content { background: transparent; }

/* ---------- botones ---------- */
body.ct-checkout .wc-block-components-button:not(.is-link),
body.ct-checkout .wc-block-components-checkout-place-order-button {
	background: var(--ct-magenta);
	color: var(--ct-white);
	border: 0;
	border-radius: 999px;
	min-height: 56px;
	font-family: var(--ct-font);
	font-weight: 700;
	font-size: 1.0625rem;
	letter-spacing: -0.01em;
	transition: transform 0.18s var(--ct-ease), background-color 0.18s;
}
body.ct-checkout .wc-block-components-button:not(.is-link):hover,
body.ct-checkout .wc-block-components-checkout-place-order-button:hover { background: var(--ct-magenta-dark); color: var(--ct-white); transform: translateY(-2px); }
body.ct-checkout .wc-block-components-button:not(.is-link):active { transform: none; }
body.ct-checkout .wc-block-components-checkout-return-to-cart-button { display: none; }
body.ct-checkout .wc-block-checkout__terms { color: var(--ct-muted); font-size: var(--ct-fs-small); }
body.ct-checkout .wc-block-checkout__actions { padding-top: 20px; }
body.ct-checkout .wc-block-checkout__actions::before { display: none; }

/* ---------- resumen: el ticket ---------- */
body.ct-checkout .wp-block-woocommerce-checkout-order-summary-block {
	position: relative;
	background: var(--ct-white);
	border: 0;
	border-radius: 0;
	padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.2vw, 32px);
	margin-top: 8px;
}
body.ct-checkout .wp-block-woocommerce-checkout-order-summary-block::before,
body.ct-checkout .wp-block-woocommerce-checkout-order-summary-block::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 8px;
	background-repeat: repeat-x;
	background-size: 16px 8px;
}
body.ct-checkout .wp-block-woocommerce-checkout-order-summary-block::before {
	top: -7px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 8L8 0L16 8Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
body.ct-checkout .wp-block-woocommerce-checkout-order-summary-block::after {
	bottom: -7px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 0L8 8L16 0Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
body.ct-checkout .wc-block-components-order-summary__button-text,
body.ct-checkout .wc-block-components-checkout-order-summary__title-text { font-weight: 800; letter-spacing: -0.03em; font-size: 1.375rem; }
body.ct-checkout .wc-block-components-order-summary-item__image { display: none; }
body.ct-checkout .wc-block-components-order-summary-item__description { padding-left: 0; }
body.ct-checkout .wc-block-components-product-name { font-weight: 800; letter-spacing: -0.02em; font-size: 1.125rem; }
body.ct-checkout .wc-block-components-product-metadata { color: var(--ct-muted); }
/* Separadores del resumen: la perforación del ticket, no una línea. */
body.ct-checkout .wc-block-components-totals-wrapper { border: 0 !important; border-top: 4px dotted rgba(28, 27, 34, 0.25) !important; }
body.ct-checkout .wp-block-woocommerce-checkout-order-summary-cart-items-block.wc-block-components-totals-wrapper { border-top: 0 !important; }
body.ct-checkout .wc-block-components-totals-item__label { font-weight: 600; }
body.ct-checkout .wc-block-components-totals-footer-item { font-weight: 800; letter-spacing: -0.03em; }
body.ct-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-size: 1.75rem; font-variant-numeric: tabular-nums; }
body.ct-checkout .wc-block-components-totals-item__value { font-variant-numeric: tabular-nums; }

/* ---------- pedido recibido ---------- */
body.woocommerce-order-received { background: var(--ct-paper); }
body.ct-checkout [class*="wp-block-woocommerce-order-confirmation-"] { font-family: var(--ct-font); }
body.ct-checkout .wp-block-woocommerce-order-confirmation-status {
	background: var(--ct-mint);
	border-radius: 24px;
	padding: clamp(28px, 4vw, 56px);
	margin: clamp(24px, 3vw, 40px) 0 clamp(16px, 2vw, 24px);
}
body.ct-checkout .wp-block-woocommerce-order-confirmation-status h1,
body.ct-checkout .wp-block-woocommerce-order-confirmation-status .wc-block-order-confirmation-status__title { font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.96; margin: 0 0 0.3em; }
body.ct-checkout .wp-block-woocommerce-order-confirmation-status p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 52ch; }
body.ct-checkout .wp-block-woocommerce-order-confirmation-summary,
body.ct-checkout .wp-block-woocommerce-order-confirmation-totals-wrapper,
body.ct-checkout .wp-block-woocommerce-order-confirmation-shipping-wrapper,
body.ct-checkout .wp-block-woocommerce-order-confirmation-billing-wrapper,
body.ct-checkout .wp-block-woocommerce-order-confirmation-additional-fields-wrapper,
body.ct-checkout .wp-block-woocommerce-order-confirmation-additional-information,
body.ct-checkout .wp-block-woocommerce-order-confirmation-downloads-wrapper,
body.ct-checkout .woocommerce-order-details,
body.ct-checkout .woocommerce-customer-details,
body.ct-checkout .woocommerce-subscriptions-related-orders,
body.ct-checkout .woocommerce-subscription-details {
	background: var(--ct-white);
	border: 0;
	border-radius: 20px;
	padding: clamp(20px, 2.4vw, 32px);
	margin: 0 0 clamp(16px, 2vw, 24px);
}
body.ct-checkout .wc-block-order-confirmation-summary-list { gap: 20px 40px; border: 0; }
body.ct-checkout .wc-block-order-confirmation-summary-list-item__key { font-weight: 600; color: var(--ct-muted); }
body.ct-checkout .wc-block-order-confirmation-summary-list-item__value { font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
body.ct-checkout .wp-block-woocommerce-order-confirmation-totals-wrapper h2,
body.ct-checkout .wp-block-woocommerce-order-confirmation-billing-wrapper h2,
body.ct-checkout .wp-block-woocommerce-order-confirmation-shipping-wrapper h2,
body.ct-checkout .woocommerce-order-details__title,
body.ct-checkout .woocommerce-column__title { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -0.035em; }
body.ct-checkout .wc-block-order-confirmation-totals__table,
body.ct-checkout .woocommerce-table { border: 0; border-collapse: collapse; width: 100%; }
body.ct-checkout .wc-block-order-confirmation-totals__table th,
body.ct-checkout .wc-block-order-confirmation-totals__table td,
body.ct-checkout .woocommerce-table th,
body.ct-checkout .woocommerce-table td { border: 0; border-top: 4px dotted rgba(28, 27, 34, 0.2); padding: 14px 8px; font-variant-numeric: tabular-nums; }
body.ct-checkout .wc-block-order-confirmation-totals__table thead th,
body.ct-checkout .woocommerce-table thead th { border-top: 0; color: var(--ct-muted); font-weight: 600; }
body.ct-checkout .wc-block-order-confirmation-totals__table tfoot th,
body.ct-checkout .woocommerce-table tfoot th { font-weight: 800; }
body.ct-checkout address { font-style: normal; line-height: 1.6; border: 0; padding: 0; }

.ct-co-next { background: var(--ct-yellow); color: var(--ct-ink); border-radius: 24px; padding: clamp(24px, 3.4vw, 48px); margin: 0 0 clamp(16px, 2vw, 24px); font-family: var(--ct-font); }
.ct-co-next h2 { font-size: clamp(1.75rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.6em; }
.ct-co-next ol { margin: 0 0 1em; padding-left: 1.4em; display: grid; gap: 14px; font-size: clamp(1.0625rem, 1.2vw, 1.2rem); }
.ct-co-next li::marker { font-weight: 800; }
.ct-co-next li strong { display: block; font-size: 1.25em; letter-spacing: -0.02em; line-height: 1.15; }
.ct-co-next .ct-co-help { margin: 0; font-size: var(--ct-fs-small); }
.ct-co-next a { color: inherit; font-weight: 700; }

/* ---------- pedido recibido con la plantilla clásica de WooCommerce (la que usa Kadence) ---------- */
body.ct-checkout .woocommerce-order { font-family: var(--ct-font); color: var(--ct-ink); display: grid; gap: clamp(16px, 2vw, 24px); }
body.ct-checkout .woocommerce-order > * { margin: 0; }
/* aviso de gracias: panel menta con el texto grande */
body.ct-checkout .woocommerce-order .woocommerce-notice--success,
body.ct-checkout .woocommerce-thankyou-order-received {
	background: var(--ct-mint);
	color: var(--ct-ink);
	border: 0;
	border-radius: 24px;
	padding: clamp(24px, 3.4vw, 48px);
	font-size: clamp(1.25rem, 2.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin: 0;
}
body.ct-checkout .woocommerce-notice--success::before,
body.ct-checkout .woocommerce-thankyou-order-received::before { display: none; }
/* resumen: número, fecha, correo, total, método */
body.ct-checkout ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px 32px;
	background: var(--ct-white);
	border: 0;
	border-radius: 20px;
	padding: clamp(20px, 2.4vw, 32px);
	margin: 0;
	list-style: none;
}
body.ct-checkout ul.woocommerce-order-overview li {
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--ct-fs-small);
	font-weight: 600;
	color: var(--ct-muted);
	text-transform: none;
	line-height: 1.3;
}
body.ct-checkout ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ct-ink); font-variant-numeric: tabular-nums; }
/* bloques de detalle, suscripción y direcciones: tarjetas blancas */
body.ct-checkout .woocommerce-order-details,
body.ct-checkout .woocommerce-customer-details,
body.ct-checkout .woocommerce-order > header,
body.ct-checkout .woocommerce-order .woocommerce-subscriptions-related-orders,
body.ct-checkout .woocommerce-order section {
	background: var(--ct-white);
	border: 0;
	border-radius: 20px;
	padding: clamp(20px, 2.4vw, 32px);
	margin: 0;
}
body.ct-checkout .woocommerce-order h2,
body.ct-checkout .woocommerce-order .woocommerce-order-details__title,
body.ct-checkout .woocommerce-order .woocommerce-column__title { font-family: var(--ct-font); font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 16px; }
body.ct-checkout .woocommerce-order table.shop_table,
body.ct-checkout .woocommerce-order table.woocommerce-table,
body.ct-checkout.woocommerce-order-pay table.shop_table { width: 100%; border: 0; border-collapse: collapse; background: transparent; margin: 0; }
body.ct-checkout .woocommerce-order table.shop_table th,
body.ct-checkout .woocommerce-order table.shop_table td,
body.ct-checkout.woocommerce-order-pay table.shop_table th,
body.ct-checkout.woocommerce-order-pay table.shop_table td { border: 0; border-top: 4px dotted rgba(28, 27, 34, 0.2); padding: 14px 8px; background: transparent; font-variant-numeric: tabular-nums; vertical-align: top; }
body.ct-checkout .woocommerce-order table.shop_table thead th { border-top: 0; color: var(--ct-muted); font-weight: 600; font-size: var(--ct-fs-small); }
body.ct-checkout .woocommerce-order table.shop_table tfoot th { font-weight: 800; }
body.ct-checkout .woocommerce-order table.shop_table tfoot tr:last-child th,
body.ct-checkout .woocommerce-order table.shop_table tfoot tr:last-child td { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
body.ct-checkout .woocommerce-order table.shop_table .product-name a,
body.ct-checkout .woocommerce-order table.shop_table td a { font-weight: 700; color: var(--ct-ink); }
/* direcciones */
body.ct-checkout .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
body.ct-checkout .woocommerce-columns--addresses .woocommerce-column { float: none; width: auto; }
body.ct-checkout .woocommerce-order address { font-style: normal; line-height: 1.6; border: 0; padding: 0; }
/* botones de WooCommerce y de Subscriptions */
body.ct-checkout .woocommerce-order a.button,
body.ct-checkout .woocommerce-order .button,
body.ct-checkout.woocommerce-order-pay #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	background: var(--ct-magenta);
	color: var(--ct-white);
	font-family: var(--ct-font);
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.18s var(--ct-ease), background-color 0.18s;
}
body.ct-checkout .woocommerce-order a.button:hover,
body.ct-checkout .woocommerce-order .button:hover,
body.ct-checkout.woocommerce-order-pay #place_order:hover { background: var(--ct-magenta-dark); color: var(--ct-white); transform: translateY(-2px); }
/* la nota de «Qué pasa ahora» va dentro de la rejilla del pedido */
body.ct-checkout .woocommerce-order .ct-co-next { margin: 0; }
body.ct-checkout .woocommerce-order .ct-co-intro { padding: clamp(24px, 4vw, 56px) 0 0; }
/* pago pendiente (order-pay) */
body.ct-checkout.woocommerce-order-pay #payment,
body.ct-checkout.woocommerce-order-pay #order_review { background: var(--ct-white); border-radius: 20px; padding: clamp(20px, 2.4vw, 32px); }
body.ct-checkout.woocommerce-order-pay #payment ul.payment_methods { border: 0; padding: 0; }
body.ct-checkout .woocommerce-order section.ct-co-next { background: var(--ct-yellow); border-radius: 24px; padding: clamp(24px, 3.4vw, 48px); }

/* ---------- ajustes del pedido recibido (vistos en la web real) ---------- */
body.ct-checkout .woocommerce-order p { max-width: none; }
/* WooCommerce añade pseudo-elementos de «clearfix» a la lista: en una rejilla ocupan columnas */
body.ct-checkout ul.woocommerce-order-overview::before,
body.ct-checkout ul.woocommerce-order-overview::after { display: none; content: none; }
/* las secciones anidadas no son tarjetas dentro de tarjetas */
body.ct-checkout .woocommerce-order section section,
body.ct-checkout .woocommerce-order .woocommerce-order-details section { background: transparent; border-radius: 0; padding: 0; margin: 28px 0 0; }
body.ct-checkout .woocommerce-order-details > h2:not(:first-child),
body.ct-checkout .woocommerce-order-details table + h2,
body.ct-checkout .woocommerce-order-details h2 + table + h2 { margin-top: 40px; }
body.ct-checkout .woocommerce-table--order-details th:last-child,
body.ct-checkout .woocommerce-table--order-details td:last-child { text-align: right; }
body.ct-checkout .woocommerce-order dl { margin: 0 0 16px; }
body.ct-checkout .woocommerce-order dt { font-weight: 800; letter-spacing: -0.01em; }
body.ct-checkout .woocommerce-order dd { margin: 0 0 12px; padding: 0; }
body.woocommerce-order-received .ct-co-intro { padding-top: clamp(8px, 2vw, 24px); }
body.woocommerce-order-received .ct-co-intro h1 { margin-bottom: 0; }
