/*
 * Checkout and order confirmation (WooCommerce blocks; theme templates page-checkout and order-confirmation,
 * header pattern header-checkout). Not in Figma (2026-10-03): the page sits below the floating header like
 * the 404 page (.rs-main--offset), on the site's fonts and colours.
 */

/* "Secure checkout" with a lock, at the right of the header pill. */
.rs-header--checkout .rs-header__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding-right: 8px;
	line-height: 20px;
	white-space: nowrap;
}

.rs-header--checkout .rs-header__secure::before {
	content: "";
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2'/%3E%3C/svg%3E") center / 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='10' height='7' rx='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2'/%3E%3C/svg%3E") center / 16px no-repeat;
}

body:has(.rs-checkout) {
	background-color: #f6f6f6;
}

.rs-checkout {
	--wp--style--global--wide-size: 1280px; /* as wide as the header pill */
	font-family: var(--wp--preset--font-family--inter);
}

/* WooCommerce's block checkout: card for the form and summary, site fonts for headings. */
.rs-checkout .wc-block-checkout {
	margin-top: 0;
}

.rs-checkout :is(.wc-block-components-title, .wc-block-components-checkout-step__title) {
	font-family: var(--wp--preset--font-family--stack-sans-headline);
	font-weight: 500;
	letter-spacing: 0;
}

.rs-checkout .wc-block-components-sidebar .wc-block-components-totals-wrapper,
.rs-checkout .wc-block-checkout__sidebar {
	background: var(--wp--preset--color--white);
}

.rs-checkout .wc-block-checkout__sidebar {
	box-sizing: border-box;
	padding: 8px 16px;
	border-radius: 16px;
	box-shadow: inset 0 0 0 0.5px var(--wp--preset--color--gray-20);
}

.rs-checkout .wc-block-components-checkout-place-order-button {
	min-height: 48px;
	border-radius: 24px;
	background: var(--wp--preset--color--purple-100);
	color: var(--wp--preset--color--white);
	font-weight: 500;
}

.rs-checkout .wc-block-components-checkout-place-order-button:hover {
	background: var(--wp--preset--color--purple-90);
}

/* Order received */
.rs-order-received > * {
	max-width: 800px;
}

.rs-order-received .rs-order-received__next {
	margin-top: 32px;
}

@media (max-width: 781px) {
	.rs-header--checkout .rs-header__secure {
		padding-right: 0;
		font-size: var(--wp--preset--font-size--xs);
	}

	.rs-checkout .wc-block-checkout__sidebar {
		padding: 0 12px;
	}
}
