/* Regional checkout, matching the approved US six-stage design. */
body.woocommerce-checkout.sk-us-checkout {
	/* The checkout footer is deliberately light beige. Let it consume any
	 * spare viewport height on short steps instead of leaving a white strip
	 * below the Trustpilot carousel. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.woocommerce-checkout.sk-us-checkout > .site-footer--checkout {
	flex: 1 0 auto;
}

/* The supplied book covers are portrait artwork. Keep the full cover visible
 * in review and payment order summaries instead of cropping it to fill the
 * thumbnail slot. */
body.sk-us-checkout .sk-order-summary__item-image img.storykeeper-localized-cart-cover {
	object-fit: contain;
	object-position: center;
	background-color: #f9f3ea;
}

body.sk-us-checkout .sk-step-progress-label {
	display: none;
}

/* The compact United States occasion selector keeps the original checkout
 * option controls and simply presents the secondary choices as a disclosure. */
body.sk-us-checkout [data-sk-screen="celebrating"] .sk-celebrating__grid {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: min(100%, 836px);
}

body.sk-us-checkout .sk-us-celebrating__primary,
body.sk-us-checkout .sk-us-celebrating__other-toggle {
	width: min(100%, 588px);
}

body.sk-us-checkout .sk-us-celebrating__primary .sk-celebrating-option {
	width: 100% !important;
	min-height: 76px;
}

body.sk-us-checkout .sk-us-celebrating__other-toggle {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 76px;
	padding: 12px 56px 12px 16px;
	border: 1px solid #fae0c0;
	border-radius: 12px;
	background: #f9f3ea;
	color: var(--color-grey-1);
	font-family: var(--font-family-base);
	font-size: 18px;
	line-height: 26px;
	text-align: left;
	cursor: pointer;
}

body.sk-us-checkout .sk-us-celebrating__other-toggle:hover,
body.sk-us-checkout .sk-us-celebrating__other-toggle:focus-visible {
	border-color: var(--color-orange-dark);
	box-shadow: inset 0 0 0 1px var(--color-orange-dark);
}

body.sk-us-checkout .sk-us-celebrating__other-toggle.is-selected {
	border-color: var(--color-grey-2);
	background: var(--color-grey-2);
	color: var(--color-beige-2);
	box-shadow: none;
}

body.sk-us-checkout .sk-us-celebrating__other-toggle.is-selected .sk-celebrating-option__icon {
	border-color: var(--color-beige-2);
}

body.sk-us-checkout .sk-us-celebrating__other-toggle.is-selected .sk-celebrating-option__icon svg path {
	stroke: var(--color-beige-2);
}

body.sk-us-checkout .sk-us-celebrating__other-label {
	flex: 1;
}

body.sk-us-checkout .sk-us-celebrating__other-chevron {
	position: absolute;
	top: 50%;
	right: 16px;
	display: block;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	transition: transform 0.15s ease;
}

body.sk-us-checkout .sk-us-celebrating__other-toggle[aria-expanded="true"] .sk-us-celebrating__other-chevron {
	transform: translateY(-50%) rotate(180deg);
}

body.sk-us-checkout .sk-us-celebrating__other-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	width: 100%;
}

body.sk-us-checkout .sk-us-celebrating__other-options[hidden] {
	display: none;
}

body.sk-us-checkout .sk-us-celebrating__other-options .sk-celebrating-option {
	width: 100% !important;
	min-height: 68px;
}

body.sk-us-checkout [data-sk-step="2"] .sk-step2 {
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
}

body.sk-us-checkout .sk-us-review {
	max-width: 1100px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}

body.sk-us-checkout .sk-us-review__intro {
	max-width: 660px;
	margin: 0 auto 34px;
	text-align: center;
}

body.sk-us-checkout .sk-us-review__intro h1 {
	margin: 0;
}

body.sk-us-checkout .sk-us-review__intro p {
	margin: 12px 0 0;
	color: #5f6258;
}

body.sk-us-checkout .sk-us-review__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
	gap: 28px;
	align-items: start;
}

body.sk-us-checkout .sk-us-review__details {
	display: grid;
	gap: 16px;
}

body.sk-us-checkout .sk-us-review__card {
	border: 1px solid #e2d6c6;
	border-radius: 12px;
	background: #fcf7ef;
	padding: 22px;
}

body.sk-us-checkout .sk-us-review__card-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 10px;
}

body.sk-us-checkout .sk-us-review__card h2 {
	margin: 0;
	font-size: 28px;
}

body.sk-us-checkout .sk-us-review__edit {
	border: 0;
	padding: 0;
	background: transparent;
	color: #2c301f;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

body.sk-us-checkout .sk-us-review__book-actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	white-space: nowrap;
}

/* The existing server-rendered regional chevron uses an empty span. */
body.sk-us-checkout span.sk-us-celebrating__other-chevron {
	width: 9px;
	height: 9px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	font-size: 0;
	transform: translateY(-75%) rotate(45deg);
}
body.sk-us-checkout [aria-expanded="true"] span.sk-us-celebrating__other-chevron {
	transform: translateY(-25%) rotate(225deg);
}

body.sk-us-checkout .sk-us-review__summary {
	margin: 0;
	color: #45483f;
	line-height: 1.55;
}

body.sk-us-checkout .sk-us-review__summary + .sk-us-review__summary {
	margin-top: 8px;
}

body.sk-us-checkout .sk-us-review__order .sk-step2__aside {
	width: auto;
}

body.sk-us-checkout .sk-us-review__continue {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 58px;
	margin: 0;
	font-size: 17px;
}

@media (max-width: 781px) {
	body.sk-us-checkout .sk-us-celebrating__primary,
	body.sk-us-checkout .sk-us-celebrating__other-toggle {
		width: 100%;
	}

	body.sk-us-checkout .sk-us-celebrating__other-options {
		grid-template-columns: 1fr;
	}

	body.sk-us-checkout .sk-us-review {
		padding: 32px 16px 56px;
	}

	body.sk-us-checkout .sk-us-review__layout {
		grid-template-columns: 1fr;
	}

	body.sk-us-checkout .sk-us-review__card {
		padding: 18px;
	}

	body.sk-us-checkout .sk-us-review__card h2 {
		font-size: 24px;
	}

	body.sk-us-checkout .sk-us-review__book-actions {
		gap: 14px;
		white-space: normal;
	}
}
