/**
 * WooCommerce Checkout Block — Dodho form language.
 * Compact spacing; required/optional marks match Dodho forms.
 */

.wc-block-checkout,
.wc-block-cart {
	--dodho-bg: #ffffff;
	--dodho-paper: #ffffff;
	--dodho-ink: #111111;
	--dodho-muted: rgba(0, 0, 0, 0.45);
	--dodho-border: #cccccc;
	--dodho-accent: #cb3234;
	--dodho-error: #cb3234;
	--dodho-border-width: 1px;
	--dodho-radius-medium: 5px;
	--dodho-font: "Poppins", sans-serif;
	--dodho-text-base: 11.7px;
	--dodho-text-md: 12.6px;
	--dodho-text-lg: 13.5px;
	--dodho-speed: 0.18s;
	--dodho-ease: ease;
	--dodho-checkout-gap-y: 0.65rem;
	--dodho-checkout-gap-x: 0.65rem;
	--dodho-checkout-label-gap: 0.35rem;
	--dodho-checkout-control-h: 2.35rem;
	/* Left ticket column; right stage reserved for purchased-item form + buy button. */
	--dodho-checkout-ticket-w: 22rem;
	--dodho-checkout-ticket-bg: #fafaf8;
	--dodho-checkout-billing-w: var(--dodho-checkout-ticket-w);

	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	line-height: 1.4;
	color: var(--dodho-ink);
	-webkit-font-smoothing: antialiased;
}

.wc-block-checkout h2,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block h2,
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-title,
.wc-block-cart h2 {
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-lg);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--dodho-ink);
	line-height: 1.25;
}

.wc-block-checkout .wc-block-components-checkout-step__description,
.wc-block-checkout .wc-block-components-checkout-step__container p,
.wc-block-checkout .wc-block-components-checkout-policies,
.wc-block-checkout .wc-block-components-totals-item,
.wc-block-checkout .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-metadata,
.wc-block-checkout .wc-block-components-order-summary-item,
.wc-block-cart .wc-block-cart-items {
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	color: var(--dodho-ink);
}

/*
 * Classic “Billing details”: one heading, hide Contact / Billing address step titles.
 * Payment options keeps its own title.
 */
.wc-block-checkout .wc-block-checkout__contact-fields > .wc-block-components-checkout-step__heading-container,
.wc-block-checkout .wc-block-checkout__billing-fields > .wc-block-components-checkout-step__heading-container,
.wc-block-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-checkout__billing-fields .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__description,
.wc-block-checkout .wc-block-checkout__billing-fields .wc-block-components-checkout-step__description {
	display: none !important;
}

/*
 * Layout:
 *  [ ticket: order + billing + totals ]  [ stage: form of what you bought + Place Order ]
 */
.wc-block-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
	display: block !important;
	width: 100%;
	max-width: 100%;
}

.wc-block-checkout .wc-block-checkout__main {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	padding: 0 !important;
}

.wc-block-checkout.is-dodho-ticket-layout .wc-block-checkout__sidebar {
	display: none !important;
}

/*
 * Woo leftovers we do not use on this checkout (kept in DOM for React, hidden for UI/inspector noise).
 */
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-express-payment-block,
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-shipping-method-block,
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-pickup-options-block,
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-shipping-address-block,
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-shipping-methods-block,
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-additional-information-block,
.wc-block-checkout.is-dodho-ticket-layout .wc-block-checkout__order-notes,
.wc-block-checkout.is-dodho-ticket-layout .wp-block-woocommerce-checkout-order-note-block,
.wc-block-checkout.is-dodho-ticket-layout .wc-block-components-address-form__address_2-toggle,
.wc-block-checkout.is-dodho-ticket-layout .wc-block-components-address-form__address_2-hidden-input,
.wc-block-checkout.is-dodho-ticket-layout .wc-block-components-address-form__address_2,
.wc-block-checkout.is-dodho-ticket-layout .dodho-checkout-stash {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-shell {
	display: grid;
	grid-template-columns: minmax(0, var(--dodho-checkout-ticket-w)) minmax(0, 1fr);
	grid-template-areas: "ticket stage";
	gap: 1.5rem;
	align-items: start;
	width: 100%;
}

.wc-block-checkout .dodho-checkout-ticket {
	grid-area: ticket;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	max-width: var(--dodho-checkout-ticket-w);
	box-sizing: border-box;
	padding: 0.9rem;
	border: 1px solid var(--dodho-border);
	border-radius: var(--dodho-radius-medium);
	background: var(--dodho-checkout-ticket-bg);
	color: var(--dodho-ink);
}

/* Three ticket zones: product | billing | prices */
.wc-block-checkout .dodho-checkout-ticket__header,
.wc-block-checkout .dodho-checkout-ticket__body,
.wc-block-checkout .dodho-checkout-ticket__footer {
	display: flex;
	flex-direction: column;
	gap: var(--dodho-checkout-gap-y);
	min-width: 0;
}

.wc-block-checkout .dodho-checkout-ticket__sep {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex: 0 0 auto;
	margin: 0;
	padding: 1.15rem 0;
	border: 0;
	background: transparent;
}

.wc-block-checkout .dodho-checkout-ticket__sep::after {
	content: "";
	flex: 1 1 auto;
	min-width: 1rem;
	border-top: 1px dashed var(--dodho-border);
}

.wc-block-checkout .dodho-checkout-ticket__sep .dodho-checkout-billing-details {
	display: block;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	color: var(--dodho-border);
	white-space: nowrap;
}

/* —— Header: synced product title (cart-items stay inside React summary, hidden below) —— */
.wc-block-checkout .dodho-checkout-ticket__product {
	margin: 0;
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-lg);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.3;
	color: var(--dodho-ink);
}

/*
 * Woo summary hosts stay in the footer only for the coupon React tree.
 * All Woo price rows are hidden — Dodho owns .dodho-checkout-ticket__totals.
 */
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-cart-items-block,
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-totals-block,
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-taxes-block,
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-discount-block,
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-fee-block,
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-shipping-block,
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-footer-item,
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-checkout-order-summary__title,
.wc-block-checkout .dodho-checkout-ticket__footer .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__heading,
.wc-block-checkout .dodho-checkout-ticket__footer .checkout-order-summary-block-fill-wrapper .wc-block-components-checkout-step__title {
	display: none !important;
}

.wc-block-checkout.is-dodho-ticket-layout .checkout-order-summary-block-fill-wrapper {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer > .checkout-order-summary-block-fill-wrapper {
	display: block !important;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wc-block-checkout .dodho-checkout-ticket__footer > .checkout-order-summary-block-fill-wrapper[aria-hidden="true"] {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer .checkout-order-summary-block-fill,
.wc-block-checkout .dodho-checkout-ticket__footer .checkout-order-summary-block-fill .wc-block-components-checkout-order-summary__content-container {
	display: block !important;
	height: auto !important;
	overflow: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	font-variant-numeric: tabular-nums;
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	padding: 0.15rem 0;
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	line-height: 1.35;
	color: var(--dodho-ink);
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-row--muted {
	color: var(--dodho-muted);
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-row--total {
	margin-top: 0.2rem;
	padding-top: 0.4rem;
	border-top: 1px solid var(--dodho-ink);
	font-size: var(--dodho-text-md);
	font-weight: 700;
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-label {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 400;
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-row--total .dodho-checkout-ticket__totals-label,
.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-row--total .dodho-checkout-ticket__totals-value {
	font-weight: 700;
}

.wc-block-checkout .dodho-checkout-ticket__footer .dodho-checkout-ticket__totals-value {
	flex: 0 0 auto;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

/* —— Footer: coupons + price rows —— */
.wc-block-checkout .dodho-checkout-ticket__footer .wp-block-woocommerce-checkout-order-summary-block {
	margin: 0;
	padding: 0;
	border: 0;
	font-variant-numeric: tabular-nums;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-checkout-order-summary__title {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-checkout-order-summary__content,
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-checkout-order-summary__content-container {
	display: block !important;
	height: auto !important;
	overflow: visible !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-wrapper {
	margin: 0;
	padding: 0;
	border: 0 !important;
	background: transparent;
}

/* Never paint Woo price rows — only the coupon panel stays from Woo. */
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-item,
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-footer-item {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-coupon {
	margin: 0 0 0.35rem;
	border: 0 !important;
	background: transparent;
	box-shadow: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-coupon .wc-block-components-panel__button {
	width: 100%;
	justify-content: space-between;
	padding: 0.2rem 0 !important;
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-sm, 10.8px);
	font-weight: 600;
	color: var(--dodho-muted);
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	pointer-events: auto;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
	color: var(--dodho-ink);
}

/* Keep coupon panel content usable when opened. */
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-coupon .wc-block-components-panel__content,
.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-panel.is-opened > .wc-block-components-panel__content {
	display: block !important;
	height: auto !important;
	overflow: visible !important;
	visibility: visible !important;
	padding: 0.35rem 0 0.15rem;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-coupon-link {
	display: flex;
	gap: 0.35rem;
	align-items: stretch;
	width: 100%;
}

.wc-block-checkout .dodho-checkout-ticket__footer .wc-block-components-totals-coupon__input input {
	min-height: var(--dodho-checkout-control-h) !important;
	height: var(--dodho-checkout-control-h) !important;
	font-family: var(--dodho-font) !important;
	font-size: var(--dodho-text-base) !important;
	border: var(--dodho-border-width) solid var(--dodho-border) !important;
	border-radius: var(--dodho-radius-medium) !important;
	background: var(--dodho-paper) !important;
	box-shadow: none !important;
}

.wc-block-checkout .dodho-checkout-stage {
	grid-area: stage;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 16rem;
	gap: 1rem;
}

.wc-block-checkout .dodho-checkout-stage__body {
	flex: 1 1 auto;
	min-height: 12rem;
	padding: 0.9rem;
	border: 1px dashed var(--dodho-border);
	border-radius: var(--dodho-radius-medium);
	background: transparent;
	color: var(--dodho-muted);
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-md);
}

.wc-block-checkout .dodho-checkout-stage__body.has-dodho-form {
	min-height: 0;
}

.wc-block-checkout .dodho-checkout-stage__body .dodho-form {
	max-width: none;
	width: 100%;
}

/* Belt-and-suspenders: hide Dodho submit if form CSS loses the race. */
.wc-block-checkout .dodho-form[data-dodho-woo-checkout="1"] .dodho-form__actions,
.wc-block-checkout .dodho-form.is-woo-checkout .dodho-form__actions,
.wc-block-checkout .dodho-form[data-dodho-woo-checkout="1"] .dodho-form__submit,
.wc-block-checkout .dodho-form.is-woo-checkout .dodho-form__submit {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button {
	appearance: none;
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	height: auto !important;
	margin: 0;
	padding: 0.65rem 1.25rem !important;
	border: 1px solid var(--dodho-ink, #111) !important;
	border-radius: var(--dodho-radius-medium, 4px) !important;
	background: var(--dodho-ink, #111) !important;
	color: #fff !important;
	font-family: var(--dodho-font, "Poppins", sans-serif) !important;
	font-size: var(--dodho-text-md, 12.6px) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	box-shadow: none !important;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button .dodho-form__hard-pill {
	position: absolute;
	left: 0.55rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: var(--dodho-chip-size, 22px);
	padding: 0 9px;
	border: none;
	border-radius: var(--dodho-radius-pill, 999px);
	background: #cb3234;
	color: #fff;
	font-family: var(--dodho-font, "Poppins", sans-serif);
	font-size: calc(var(--dodho-chip-size, 22px) * 0.58);
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button .dodho-form__hard-pill[hidden] {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-stage__body:empty::before {
	content: attr(data-placeholder);
}

.wc-block-checkout .dodho-checkout-stage .wc-block-checkout__payment-method {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.wc-block-checkout .dodho-checkout-stage .wc-block-checkout__actions {
	margin-top: 0;
	width: 100%;
	max-width: none;
}

.wc-block-checkout .dodho-checkout-ticket__body .wc-block-checkout__contact-fields,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-checkout__billing-fields {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/*
 * Billing field order (visual):
 * 1 nombre + apellido → 2 email → 3 país → 4 dirección → 5 provincia + ciudad → 6 CP + teléfono
 * Contact + billing flatten into one flex via display:contents (no React DOM moves).
 */
.wc-block-checkout .dodho-checkout-ticket__body {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--dodho-checkout-gap-y) var(--dodho-checkout-gap-x);
}

.wc-block-checkout .dodho-checkout-ticket__body > .wc-block-checkout__contact-fields,
.wc-block-checkout .dodho-checkout-ticket__body > .wc-block-checkout__billing-fields,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-checkout-step__content,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-address-wrapper,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form-wrapper,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form {
	display: contents !important;
}

.wc-block-checkout .dodho-checkout-ticket__body > .wc-block-checkout__contact-fields > legend,
.wc-block-checkout .dodho-checkout-ticket__body > .wc-block-checkout__billing-fields > legend,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-notices:empty,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-notices__snackbar:empty,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-card-wrapper {
	display: none !important;
}

.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__first_name {
	order: 1;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__last_name {
	order: 2;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__email {
	order: 3;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__country,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-country-input {
	order: 4;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__address_1 {
	order: 5;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__state,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-state-input {
	order: 6;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__city {
	order: 7;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__postcode {
	order: 8;
}
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__phone {
	order: 9;
}

/* Legal line — tiny text at the very bottom of the ticket. */
.wc-block-checkout .dodho-checkout-ticket > .wc-block-checkout__terms,
.wc-block-checkout .dodho-checkout-ticket > .dodho-checkout-ticket__legal,
.wc-block-checkout .dodho-checkout-ticket__legal {
	order: 99;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	margin: 0.85rem 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--dodho-font);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--dodho-muted);
}

.wc-block-checkout .dodho-checkout-ticket__legal a,
.wc-block-checkout .dodho-checkout-ticket > .wc-block-checkout__terms a {
	color: inherit;
	text-decoration: underline;
}

.wc-block-checkout .dodho-checkout-ticket__legal .wc-block-components-checkbox,
.wc-block-checkout .dodho-checkout-ticket > .wc-block-checkout__terms .wc-block-components-checkbox {
	display: none !important;
}

.wc-block-checkout .wc-block-checkout__contact-fields,
.wc-block-checkout .wc-block-checkout__billing-fields {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}

@media (max-width: 782px) {
	.wc-block-checkout .dodho-checkout-shell {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"ticket"
			"stage";
	}

	.wc-block-checkout .dodho-checkout-ticket {
		max-width: none;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.wc-block-checkout .dodho-checkout-stage__body {
		padding: 0;
		border: 0;
		border-radius: 0;
	}
}

.wc-block-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content,
.wc-block-checkout .wc-block-checkout__billing-fields .wc-block-components-checkout-step__content {
	margin: 0;
	padding: 0;
}

.wc-block-checkout .wc-block-checkout__contact-fields .wc-block-components-checkout-step__content > *:not(.wc-block-components-address-form):not(.wc-block-components-notices):empty,
.wc-block-checkout .wc-block-checkout__contact-fields .wc-block-components-notices:empty,
.wc-block-checkout .wc-block-checkout__contact-fields .wc-block-components-notices__snackbar:empty {
	display: none;
}

/* Fixed compact grid — only on real address forms, never on the step wrappers. */
.wc-block-checkout .wc-block-components-address-form {
	display: flex !important;
	flex-wrap: wrap;
	gap: var(--dodho-checkout-gap-y) var(--dodho-checkout-gap-x) !important;
	justify-content: flex-start;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Address card: restore normal card layout (do not inherit form flex grid). */
.wc-block-checkout .wc-block-components-address-card {
	display: block;
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--dodho-border);
	border-radius: var(--dodho-radius-medium);
	background: var(--dodho-paper);
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	line-height: 1.4;
	color: var(--dodho-ink);
}

.wc-block-checkout .wc-block-components-address-card address {
	margin: 0;
	padding: 0;
	font-style: normal;
}

.wc-block-checkout .wc-block-components-address-card__address-section {
	display: block;
}

.wc-block-checkout .wc-block-components-address-card__address-section--primary {
	font-weight: 700;
}

.wc-block-checkout .wc-block-components-address-card__edit {
	display: inline-block;
	margin-top: 0.45rem;
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	font-weight: 600;
	color: var(--dodho-ink);
	text-decoration: underline;
	cursor: pointer;
}

.wc-block-checkout .wc-block-components-address-form > * {
	margin: 0 !important;
	box-sizing: border-box;
}

/* Full-width rows */
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__email,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__country,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-country-input,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__address_1,
.wc-block-checkout .wc-block-components-address-form > .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-address-form > .wc-block-components-country-input,
.wc-block-checkout .wc-block-components-address-form > .wc-block-components-state-input,
.wc-block-checkout .wc-block-components-address-form > .wc-block-components-combobox,
.wc-block-checkout .wc-block-components-address-form > .wc-blocks-components-select,
.wc-block-checkout .wc-block-components-address-form > .wc-block-components-address-form__email {
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Half-width pairs: nombre|apellido, provincia|ciudad, CP|teléfono */
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__first_name,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__last_name,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__state,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-state-input,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__city,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__postcode,
.wc-block-checkout .dodho-checkout-ticket__body .wc-block-components-address-form__phone {
	flex: 1 1 calc(50% - (var(--dodho-checkout-gap-x) / 2)) !important;
	width: calc(50% - (var(--dodho-checkout-gap-x) / 2)) !important;
	max-width: calc(50% - (var(--dodho-checkout-gap-x) / 2)) !important;
	box-sizing: border-box;
}

/* —— Field shells —— */
.wc-block-checkout .wc-block-components-text-input,
.wc-block-checkout .wc-block-components-textarea,
.wc-block-checkout .wc-block-components-combobox,
.wc-block-checkout .wc-block-components-country-input,
.wc-block-checkout .wc-block-components-state-input,
.wc-block-cart .wc-block-components-text-input {
	display: flex;
	flex-direction: column;
	position: relative;
	height: auto !important;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	gap: var(--dodho-checkout-label-gap);
	white-space: normal;
	line-height: 1.4;
}

.wc-block-checkout .wc-blocks-components-select,
.wc-block-checkout .wc-blocks-components-select__container {
	display: flex;
	flex-direction: column;
	position: relative;
	gap: var(--dodho-checkout-label-gap);
	width: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
}

/* Labels = .dodho-form-field__title */
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-block-components-textarea label,
.wc-block-checkout .wc-block-components-combobox label,
.wc-block-checkout .wc-block-components-country-input label,
.wc-block-checkout .wc-block-components-state-input label,
.wc-block-checkout .wc-blocks-components-select__label,
.wc-block-cart .wc-block-components-text-input label {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
	order: -1;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-lg);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.25;
	color: var(--dodho-ink);
	pointer-events: auto;
	max-width: none;
	overflow: visible;
	white-space: normal;
}

/* Required / optional — same as Dodho forms */
.wc-block-checkout .dodho-forms-hub__req {
	color: #cb3234;
	font-weight: 700;
	font-size: 1.15em;
	line-height: 1;
}

.wc-block-checkout .dodho-form-field__optional {
	font-weight: 400;
	font-size: 0.85em;
	letter-spacing: 0;
	color: var(--dodho-muted);
}

/* —— Controls = simple field input —— */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input input[type="text"],
.wc-block-checkout .wc-block-components-text-input input[type="email"],
.wc-block-checkout .wc-block-components-text-input input[type="tel"],
.wc-block-checkout .wc-block-components-text-input input[type="password"],
.wc-block-checkout .wc-block-components-textarea textarea,
.wc-block-checkout .wc-block-components-combobox input,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout select.wc-blocks-components-select__select,
.wc-block-cart .wc-block-components-text-input input {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	box-sizing: border-box;
	min-height: var(--dodho-checkout-control-h) !important;
	height: var(--dodho-checkout-control-h) !important;
	margin: 0;
	padding: 0.55rem 0.65rem !important;
	font-family: var(--dodho-font) !important;
	font-size: var(--dodho-text-base) !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	border: var(--dodho-border-width) solid var(--dodho-border) !important;
	border-radius: var(--dodho-radius-medium) !important;
	background: var(--dodho-paper) !important;
	background-image: none !important;
	color: var(--dodho-ink) !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color var(--dodho-speed) var(--dodho-ease);
}

.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout select.wc-blocks-components-select__select {
	padding-right: 2rem !important;
	cursor: pointer;
}

.wc-block-checkout .wc-block-components-textarea textarea {
	min-height: 4.5rem !important;
	height: auto !important;
	resize: vertical;
}

.wc-block-checkout .wc-block-components-text-input input:hover,
.wc-block-checkout .wc-block-components-textarea textarea:hover,
.wc-block-checkout .wc-block-components-combobox input:hover,
.wc-block-checkout .wc-blocks-components-select__select:hover,
.wc-block-cart .wc-block-components-text-input input:hover {
	border-color: var(--dodho-ink) !important;
}

.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea textarea:focus,
.wc-block-checkout .wc-block-components-combobox input:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus,
.wc-block-cart .wc-block-components-text-input input:focus {
	outline: none !important;
	border-color: var(--dodho-ink) !important;
	box-shadow: none !important;
}

.wc-block-checkout .wc-block-components-text-input.is-active input:not(:focus):not(:hover),
.wc-block-checkout .wc-block-components-combobox.is-active input:not(:focus):not(:hover) {
	border-color: var(--dodho-border) !important;
}

/*
 * Errors = Dodho simple fields: red border only (+ shake). No Woo message under the field.
 */
.wc-block-checkout .wc-block-components-text-input.has-error input,
.wc-block-checkout .wc-block-components-text-input.has-error input:hover,
.wc-block-checkout .wc-block-components-text-input.has-error input:focus,
.wc-block-checkout .wc-block-components-text-input input.is-invalid,
.wc-block-checkout .wc-block-components-text-input input.is-invalid:hover,
.wc-block-checkout .wc-block-components-text-input input.is-invalid:focus,
.wc-block-checkout .wc-block-components-text-input input[aria-invalid="true"],
.wc-block-checkout .wc-block-components-text-input input[aria-invalid="true"]:hover,
.wc-block-checkout .wc-block-components-text-input input[aria-invalid="true"]:focus,
.wc-block-checkout .wc-block-components-textarea.has-error textarea,
.wc-block-checkout .wc-block-components-textarea textarea.is-invalid,
.wc-block-checkout .wc-block-components-textarea textarea[aria-invalid="true"],
.wc-block-checkout .wc-block-components-combobox.has-error input,
.wc-block-checkout .wc-block-components-combobox input.is-invalid,
.wc-block-checkout .wc-block-components-combobox input[aria-invalid="true"],
.wc-block-checkout .wc-block-components-country-input.has-error .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-state-input.has-error .wc-blocks-components-select__select,
.wc-block-checkout .wc-blocks-components-select.has-error .wc-blocks-components-select__select,
.wc-block-checkout .wc-blocks-components-select__select.is-invalid,
.wc-block-checkout .wc-blocks-components-select__select.is-invalid:hover,
.wc-block-checkout .wc-blocks-components-select__select.is-invalid:focus,
.wc-block-checkout .wc-blocks-components-select__select[aria-invalid="true"],
.wc-block-checkout .wc-blocks-components-select__select[aria-invalid="true"]:hover,
.wc-block-checkout .wc-blocks-components-select__select[aria-invalid="true"]:focus {
	border-color: #cb3234 !important;
	background: #fff !important;
	color: #111 !important;
	box-shadow: none !important;
}

.wc-block-checkout .wc-block-components-validation-error {
	display: none !important;
}

@keyframes dodho-field-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-4px);
	}
	40% {
		transform: translateX(4px);
	}
	60% {
		transform: translateX(-3px);
	}
	80% {
		transform: translateX(3px);
	}
}

.wc-block-checkout .is-shaking {
	animation: dodho-field-shake 0.35s ease;
}

/* Chevron: pin to the select control, not the label+select box. */
.wc-block-checkout .wc-blocks-components-select__expand {
	position: absolute !important;
	top: auto !important;
	right: 0.4rem !important;
	bottom: calc((var(--dodho-checkout-control-h) - 1.25rem) / 2) !important;
	width: 1.25rem !important;
	height: 1.25rem !important;
	margin: 0 !important;
	transform: none !important;
	pointer-events: none;
	color: var(--dodho-ink);
}

.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control,
.wc-block-checkout .wc-block-components-combobox .components-base-control,
.wc-block-checkout .wc-block-components-combobox .components-base-control__field {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* —— Checkboxes —— */
.wc-block-checkout .wc-block-components-checkbox,
.wc-block-checkout .wc-block-components-checkbox label {
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	font-weight: 400;
	color: var(--dodho-ink);
}

.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input,
.wc-block-checkout input[type="checkbox"].wc-block-components-checkbox__input {
	-webkit-appearance: none;
	appearance: none;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px;
	min-height: 16px;
	margin: 0;
	padding: 0;
	border: 1.5px solid #bbb !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	vertical-align: middle;
	flex-shrink: 0;
}

.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:hover {
	border-color: var(--dodho-ink) !important;
}

.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:checked,
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input:checked:hover {
	background-color: var(--dodho-ink) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l3 3.1 6-6.4' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 12px 12px !important;
	border-color: var(--dodho-ink) !important;
}

.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	display: none !important;
}

/* —— Payment / place order —— */
.wc-block-checkout .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-components-radio-control__option-layout {
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	border-color: var(--dodho-border) !important;
	border-radius: var(--dodho-radius-medium);
	background: var(--dodho-paper);
}

.wc-block-checkout .wc-block-components-radio-control__input {
	accent-color: var(--dodho-ink);
}

.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout button.wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-button.contained,
.wc-block-cart .wc-block-cart__submit-button {
	appearance: none;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	height: auto !important;
	margin: 0;
	padding: 0.65rem 1.25rem !important;
	border: 1px solid var(--dodho-ink) !important;
	border-radius: var(--dodho-radius-medium) !important;
	background: var(--dodho-ink) !important;
	color: #fff !important;
	font-family: var(--dodho-font) !important;
	font-size: var(--dodho-text-md) !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none !important;
	cursor: pointer;
	transition:
		background var(--dodho-speed) var(--dodho-ease),
		border-color var(--dodho-speed) var(--dodho-ease),
		color var(--dodho-speed) var(--dodho-ease);
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-checkout-place-order-button:focus,
.wc-block-checkout .wc-block-components-button.contained:hover,
.wc-block-checkout .wc-block-components-button.contained:focus,
.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-cart__submit-button:focus {
	background: var(--dodho-accent) !important;
	border-color: var(--dodho-accent) !important;
	color: #fff !important;
	box-shadow: none !important;
	opacity: 1;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:disabled,
.wc-block-checkout .wc-block-components-checkout-place-order-button[aria-disabled="true"],
.wc-block-checkout .wc-block-components-checkout-place-order-button.is-dodho-form-blocked,
.wc-block-checkout .wc-block-components-button.contained:disabled {
	opacity: 1 !important;
	background: var(--dodho-border, #ccc) !important;
	border-color: var(--dodho-border, #ccc) !important;
	color: #fff !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}

.wc-block-checkout .wc-block-components-button:not(.contained):not(.wc-block-components-checkout-place-order-button),
.wc-block-checkout .wc-block-components-panel__button,
.wc-block-checkout a.wc-block-components-checkout-return-to-cart-button {
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-base);
	font-weight: 600;
	color: var(--dodho-ink);
	border-radius: var(--dodho-radius-medium);
	box-shadow: none !important;
}

.wc-block-checkout .wc-block-components-button:not(.contained):hover {
	color: var(--dodho-accent);
}

.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout .wc-block-components-sidebar {
	font-family: var(--dodho-font);
}

.wc-block-checkout .wc-block-components-totals-wrapper,
.wc-block-checkout .wc-block-components-panel,
.wc-block-checkout .wc-block-components-order-summary {
	border-color: var(--dodho-border);
}

.wc-block-checkout .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-totals-footer-item {
	font-family: var(--dodho-font);
	font-size: var(--dodho-text-md);
	color: var(--dodho-ink);
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-weight: 700;
}

.wc-block-checkout .wc-block-components-express-payment,
.wc-block-checkout .wc-block-components-express-payment-continue-rule {
	font-family: var(--dodho-font);
	color: var(--dodho-muted);
	font-size: var(--dodho-text-sm, 10.8px);
}

.wc-block-checkout .wc-block-components-checkout-step {
	margin-bottom: 1.1rem;
}

/*
 * Loading skeleton — same ticket | stage composition as the live layout.
 * Sibling of .wc-block-checkout (survives React hydration); hides Woo’s
 * default sidebar/main skeleton until is-dodho-ticket-layout is ready.
 */

/* Before JS mounts the Dodho skeleton: kill the flash of Woo’s default layout. */
.wc-block-checkout.is-loading:not(.is-dodho-ticket-layout):not(.is-dodho-skeleton) {
	min-height: 22rem;
}

.wc-block-checkout.is-loading:not(.is-dodho-ticket-layout):not(.is-dodho-skeleton) .wc-block-components-sidebar-layout,
.wc-block-checkout.is-loading:not(.is-dodho-ticket-layout):not(.is-dodho-skeleton) .wc-block-checkout__main,
.wc-block-checkout.is-loading:not(.is-dodho-ticket-layout):not(.is-dodho-skeleton) .wc-block-checkout__sidebar,
.wc-block-checkout.is-loading:not(.is-dodho-ticket-layout):not(.is-dodho-skeleton) .wc-block-components-skeleton {
	visibility: hidden !important;
}

@keyframes dodho-checkout-skeleton-shimmer {
	to {
		transform: translateX(100%);
	}
}

.is-dodho-skeleton-host {
	position: relative;
	/* Inherit Dodho tokens when skeleton sits outside .wc-block-checkout. */
	--dodho-bg: #ffffff;
	--dodho-ink: #111111;
	--dodho-border: #cccccc;
	--dodho-radius-medium: 5px;
	--dodho-checkout-ticket-w: 22rem;
	--dodho-checkout-ticket-bg: #fafaf8;
	--dodho-checkout-control-h: 2.35rem;
	--dodho-checkout-gap-y: 0.65rem;
	--dodho-checkout-gap-x: 0.65rem;
}

.is-dodho-skeleton-host > .wc-block-checkout.is-dodho-skeleton {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	pointer-events: none !important;
}

.is-dodho-skeleton-host > .dodho-checkout-skeleton {
	display: grid;
	/* Mirror live shell only: ticket LEFT | stage RIGHT */
	grid-template-columns: minmax(0, var(--dodho-checkout-ticket-w)) minmax(0, 1fr);
	grid-template-areas: "ticket stage";
	gap: 1.5rem;
	align-items: stretch;
	width: 100%;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

/* Ticket — mirrors measured live ticket (~352×702) */
.is-dodho-skeleton-host .dodho-checkout-skeleton__ticket {
	grid-area: ticket;
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	max-width: var(--dodho-checkout-ticket-w);
	min-height: 43.875rem; /* 702px @ 16px root — live ticket height */
	box-sizing: border-box;
	padding: 0.9rem;
	border: 1px solid var(--dodho-border);
	border-radius: var(--dodho-radius-medium);
	background: var(--dodho-checkout-ticket-bg);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__header {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	min-width: 0;
	min-height: 1.125rem;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__sep {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex: 0 0 auto;
	margin: 0;
	padding: 1.15rem 0;
	min-height: 2.35rem;
	box-sizing: content-box;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__sep::after {
	content: "";
	flex: 1 1 auto;
	min-width: 1rem;
	border-top: 1px dashed var(--dodho-border);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__body {
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: var(--dodho-checkout-gap-y, 0.65rem) var(--dodho-checkout-gap-x, 0.65rem);
	flex: 1 1 auto;
	min-width: 0;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__field {
	display: flex;
	flex-direction: column;
	gap: var(--dodho-checkout-label-gap, 0.35rem);
	min-width: 0;
	box-sizing: border-box;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__field--full {
	flex: 1 1 100%;
	width: 100%;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__field--half {
	flex: 1 1 calc(50% - (var(--dodho-checkout-gap-x, 0.65rem) / 2));
	width: calc(50% - (var(--dodho-checkout-gap-x, 0.65rem) / 2));
	max-width: calc(50% - (var(--dodho-checkout-gap-x, 0.65rem) / 2));
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__footer {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 0 0 auto;
	min-width: 0;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__totals {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-top: 0.15rem;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__totals-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__totals-row--total {
	margin-top: 0.2rem;
	padding-top: 0.4rem;
	border-top: 1px solid var(--dodho-ink);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__legal {
	flex: 0 0 auto;
	margin-top: 0.85rem;
}

/* Stage — mirrors body | payment | actions (button outside dashed body) */
.is-dodho-skeleton-host .dodho-checkout-skeleton__stage {
	grid-area: stage;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	/* Stretch with ticket column height (reference: dashed slot dominates). */
	align-self: stretch;
	min-height: 100%;
	box-sizing: border-box;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__stage-body {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 1 1 auto;
	/* Tall dashed form slot — same role as live .dodho-checkout-stage__body */
	min-height: 16rem;
	padding: 0.9rem;
	border: 1px dashed var(--dodho-border);
	border-radius: var(--dodho-radius-medium);
	box-sizing: border-box;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__payment,
.is-dodho-skeleton-host .dodho-checkout-skeleton__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 0 0 auto;
	width: 100%;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone {
	display: block;
	position: relative;
	overflow: hidden;
	flex: 0 0 auto;
	border-radius: 3px;
	background: color-mix(in srgb, var(--dodho-ink) 6%, transparent);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--dodho-ink) 7%, transparent) 50%,
		transparent
	);
	animation: dodho-checkout-skeleton-shimmer 1.25s infinite;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--title {
	width: 78%;
	height: 1.15rem; /* ~live product title */
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--billing-label {
	width: 5.5rem;
	height: 0.7rem;
	flex: 0 0 auto;
	background: color-mix(in srgb, var(--dodho-border) 85%, transparent);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--label {
	width: 42%;
	height: 1.125rem; /* ~18px live label */
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--control {
	width: 100%;
	height: var(--dodho-checkout-control-h); /* ~37.6px live input */
	flex: 1 1 auto;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--coupon {
	width: 38%;
	height: 0.7rem;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--totals-label {
	width: 4.5rem;
	height: 0.75rem;
	flex: 0 0 auto;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__totals-row--total .dodho-checkout-skeleton__bone--totals-label {
	width: 3.25rem;
	height: 0.95rem;
	background: color-mix(in srgb, var(--dodho-ink) 10%, transparent);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--totals-value {
	width: 3.75rem;
	height: 0.75rem;
	flex: 0 0 auto;
	margin-left: auto;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__totals-row--total .dodho-checkout-skeleton__bone--totals-value {
	width: 4.25rem;
	height: 0.95rem;
	background: color-mix(in srgb, var(--dodho-ink) 10%, transparent);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--legal {
	width: 92%;
	height: 0.55rem;
}

/* Placeholder text line inside dashed form slot (like live copy). */
.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--placeholder {
	width: 55%;
	max-width: 22rem;
	height: 0.85rem;
	margin-top: 0.15rem;
	background: color-mix(in srgb, var(--dodho-ink) 5%, transparent);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--payment-title {
	width: 7.5rem;
	height: 0.95rem;
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--button {
	width: 100%;
	height: 2.6rem;
	border-radius: var(--dodho-radius-medium);
	background: color-mix(in srgb, var(--dodho-ink) 88%, transparent);
}

.is-dodho-skeleton-host .dodho-checkout-skeleton__bone--button::after {
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, #fff 18%, transparent) 50%,
		transparent
	);
}

@media (prefers-reduced-motion: reduce) {
	.is-dodho-skeleton-host .dodho-checkout-skeleton__bone::after {
		animation: none;
	}
}

@media (max-width: 782px) {
	.is-dodho-skeleton-host > .dodho-checkout-skeleton {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"ticket"
			"stage";
	}

	.is-dodho-skeleton-host .dodho-checkout-skeleton__ticket {
		max-width: none;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.is-dodho-skeleton-host .dodho-checkout-skeleton__body {
		min-height: 0;
	}

	.is-dodho-skeleton-host .dodho-checkout-skeleton__stage {
		min-height: 0;
	}

	.is-dodho-skeleton-host .dodho-checkout-skeleton__stage-body {
		padding: 0;
		border: 0;
		border-radius: 0;
		min-height: 8rem;
	}
}

