/**
 * WooCommerce pages skin — Minha conta, Carrinho, Finalizar compra.
 *
 * The three pages use the classic WooCommerce shortcodes inside our Oxygen
 * header/footer. There is no staging design for them, so this skins the native
 * markup to the Curel storefront style: Geist + JetBrains Mono, the fg/hair/
 * muted/warm/red tokens, hairline borders, mono uppercase labels, and the dark
 * 2px buttons used across the site. Loaded after WooCommerce's own CSS so these
 * rules win (see curel_enqueue_woocommerce_css).
 */

:root {
	--cur-fg: #0a0a0a;
	--cur-bg: #ffffff;
	--cur-warm: #f4f2ee;
	--cur-hair: rgba( 10, 10, 10, 0.12 );
	--cur-muted: rgba( 10, 10, 10, 0.55 );
	--cur-red: #df1e26;
	--cur-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ==========================================================================
   Layout container
   ========================================================================== */

.woocommerce-account .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-page .woocommerce {
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 24px 96px;
	color: var( --cur-fg );
	font-size: 15px;
	line-height: 1.6;
}

@media ( min-width: 768px ) {
	.woocommerce-account .woocommerce,
	.woocommerce-cart .woocommerce,
	.woocommerce-checkout .woocommerce,
	.woocommerce-page .woocommerce {
		padding: 72px 48px 120px;
	}
}

.woocommerce a {
	color: var( --cur-fg );
	text-decoration: none;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.woocommerce a:hover {
	opacity: 0.7;
}

.woocommerce h1,
.woocommerce h2,
.woocommerce h3 {
	letter-spacing: -0.01em;
	font-weight: 600;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce input[type="submit"],
.woocommerce #place_order,
.woocommerce .button.alt,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var( --cur-fg );
	color: #fff;
	border: 1px solid var( --cur-fg );
	border-radius: 2px;
	padding: 0 26px;
	min-height: 48px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	box-shadow: none;
	cursor: pointer;
	transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce input[type="submit"]:hover,
.woocommerce #place_order:hover,
.woocommerce .button.alt:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background: var( --cur-fg );
	color: #fff;
	opacity: 0.9;
}

/* Secondary / outline buttons (Update cart, Apply coupon, Continue shopping). */
.woocommerce button.button[name="update_cart"],
.woocommerce .coupon button.button,
.woocommerce .button.wc-backward,
.woocommerce-cart-form .button:not( .checkout-button ) {
	background: transparent;
	color: var( --cur-fg );
	border: 1px solid var( --cur-hair );
}

.woocommerce button.button[name="update_cart"]:hover,
.woocommerce .coupon button.button:hover,
.woocommerce .button.wc-backward:hover,
.woocommerce-cart-form .button:not( .checkout-button ):hover {
	background: transparent;
	color: var( --cur-fg );
	border-color: var( --cur-fg );
	opacity: 1;
}

.woocommerce button.button[name="update_cart"]:disabled,
.woocommerce button.button[name="update_cart"][disabled] {
	opacity: 0.35;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	width: 100%;
	font-size: 15px;
	min-height: 52px;
}

/* ==========================================================================
   Form fields
   ========================================================================== */

.woocommerce form .form-row label,
.woocommerce-account .woocommerce-form-row label,
.woocommerce form .woocommerce-form__label {
	display: block;
	font-size: 13px;
	color: var( --cur-fg );
	margin-bottom: 6px;
}

.woocommerce form .form-row .required {
	color: var( --cur-red );
	border: 0;
}

/* The type-based selectors match any input under body.woocommerce (that class is
   on the body of every shop/category page), so they would leak onto third-party
   forms placed on those pages — e.g. the Nuvem newsletter input in the archive
   template. Exclude anything carrying a nuvem-form* class so the form keeps its
   own skin; WooCommerce's own fields (.input-text) are unaffected. */
.woocommerce .input-text,
.woocommerce input[type="text"]:not( [class*="nuvem-form"] ),
.woocommerce input[type="email"]:not( [class*="nuvem-form"] ),
.woocommerce input[type="tel"]:not( [class*="nuvem-form"] ),
.woocommerce input[type="password"]:not( [class*="nuvem-form"] ),
.woocommerce input[type="number"]:not( [class*="nuvem-form"] ),
.woocommerce textarea:not( [class*="nuvem-form"] ),
.woocommerce select:not( [class*="nuvem-form"] ),
.woocommerce .select2-container .select2-selection {
	width: 100%;
	background: var( --cur-bg );
	border: 1px solid var( --cur-hair );
	border-radius: 2px;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: var( --cur-fg );
	box-shadow: none;
	transition: border-color 0.2s ease;
}

.woocommerce .input-text:focus,
.woocommerce input:not( [class*="nuvem-form"] ):focus,
.woocommerce textarea:not( [class*="nuvem-form"] ):focus,
.woocommerce select:not( [class*="nuvem-form"] ):focus,
.woocommerce .select2-container--focus .select2-selection {
	border-color: var( --cur-fg );
	outline: none;
}

.woocommerce input:not( [class*="nuvem-form"] )::placeholder,
.woocommerce textarea:not( [class*="nuvem-form"] )::placeholder {
	color: var( --cur-muted );
}

/* Checkboxes: the theme reset collapses the native box to a thin vertical line ("|").
   Restore a real checkbox (near-black when ticked, via accent-color) and lay the row
   out as box + label. Covers WooCommerce's own checkboxes (create account, ship to a
   different address, terms) and third-party opt-ins like the newsletter at checkout.
   !important is deliberate: it guarantees the win over the Winden/Tailwind reset
   regardless of stylesheet load order. */
.woocommerce input[type="checkbox"],
.woocommerce-checkout input[type="checkbox"],
.woocommerce-account input[type="checkbox"] {
	-webkit-appearance: checkbox !important;
	appearance: auto !important;
	width: 1.05rem !important;
	height: 1.05rem !important;
	min-width: 1.05rem;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	opacity: 1;
	accent-color: var( --cur-fg );
	cursor: pointer;
}

.woocommerce form .woocommerce-form__label-for-checkbox,
.woocommerce form .form-row label.checkbox {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	margin-bottom: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.woocommerce form .woocommerce-form__label-for-checkbox input[type="checkbox"] {
	margin-top: .12rem; /* align the box with the first line of the label */
}

/* WooCommerce 10.x styles form fields through --wc-form-* variables plus a
   higher-specificity rule (.woocommerce form .form-row .input-text, 0-4-0) that
   beats the lighter .input-text rule above — its default border resolves to a
   muddy rgba(32,7,7,.8). Feed those variables our palette so the native rule
   adopts the Curel look, and match its specificity for the padding/size it
   hard-codes (.5em). */
.woocommerce {
	--wc-form-border-color: var( --cur-hair );
	--wc-form-border-width: 1px;
	--wc-form-border-radius: 2px;
}
.woocommerce form .form-row .input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: var( --cur-fg );
	background: var( --cur-bg );
}
.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: var( --cur-fg );
}

/* select2 (country/state) align to our input height. */
.woocommerce .select2-container .select2-selection--single {
	height: 46px;
	display: flex;
	align-items: center;
}

.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.4;
	padding-left: 0;
	color: var( --cur-fg );
}

/* ==========================================================================
   Notices (message / info / error)
   ========================================================================== */

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper > * {
	background: var( --cur-warm );
	border: 1px solid var( --cur-hair );
	border-left: 2px solid var( --cur-fg );
	border-radius: 2px;
	color: var( --cur-fg );
	padding: 14px 18px;
	font-size: 14px;
	list-style: none;
}

.woocommerce .woocommerce-error {
	border-left-color: var( --cur-red );
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
	display: none;
}

.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button {
	min-height: 36px;
	padding: 0 16px;
}

/* Mono eyebrow look for small uppercase labels (column titles etc.). */
.woocommerce h3#ship-to-different-address,
.woocommerce-checkout #order_review_heading,
.woocommerce-cart h2.cart_totals-title,
.woocommerce-cart .cart_totals h2 {
	font-family: var( --cur-mono );
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --cur-muted );
	margin: 0 0 18px;
}

/* ==========================================================================
   My account
   ========================================================================== */

/* Login / register forms: narrow, centred cards. */
.woocommerce-account:not( .logged-in ) .woocommerce {
	max-width: 920px;
}

.woocommerce .col2-set#customer_login,
.woocommerce #customer_login.u-columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
}

@media ( min-width: 768px ) {
	.woocommerce #customer_login.u-columns {
		grid-template-columns: 1fr 1fr;
		gap: 56px;
	}
}

.woocommerce #customer_login .u-column1,
.woocommerce #customer_login .u-column2 {
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	border: 1px solid var( --cur-hair );
	border-radius: 2px;
	padding: 32px;
}

.woocommerce-account h2 {
	font-size: 20px;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
}

.woocommerce-form-login__rememberme,
.woocommerce-form-register__rememberme {
	font-size: 13px;
	color: var( --cur-muted );
}

.woocommerce-LostPassword {
	font-size: 13px;
	margin-top: 14px;
}

/* Logged-in: a wide two-column shell (the index + the content) that fills the
   page instead of the narrow WooCommerce default. */
.woocommerce-account.logged-in .woocommerce {
	max-width: 1440px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

/* A (usually empty) notices wrapper is the first child; span it so it never
   steals a grid cell and offsets the nav / content. */
.woocommerce-account.logged-in .woocommerce > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
}

/* WooCommerce floats the nav/content at 30% / 68% width; as grid items that
   percentage resolves against the track, leaving the nav ~78px (its labels wrap)
   and the content far narrower than its column. Let both fill their track. */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
	width: auto;
	float: none;
	margin: 0;
}

@media ( min-width: 900px ) {
	.woocommerce-account.logged-in .woocommerce {
		grid-template-columns: 280px 1fr;
		gap: 72px;
		align-items: start;
	}
	.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
		grid-column: 1;
		position: sticky;
		top: 108px;
	}
	.woocommerce-account.logged-in .woocommerce-MyAccount-content {
		grid-column: 2;
	}
}

/* Navigation — the account's signature: a hairline vertical index in mono caps,
   the current page marked by a thin brand-red bar and a darkened label. */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-MyAccount-navigation li {
	border-top: 1px solid var( --cur-hair );
}
.woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 1px solid var( --cur-hair );
}

.woocommerce-MyAccount-navigation li a {
	display: block;
	position: relative;
	padding: 15px 4px 15px 16px;
	font-family: var( --cur-mono );
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --cur-muted );
	transition: color 0.2s ease, padding-left 0.2s ease;
}

/* The active marker: a 2px brand-red bar that grows in on the current item. */
.woocommerce-MyAccount-navigation li a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 2px;
	height: 0;
	background: var( --cur-red );
	transform: translateY( -50% );
	transition: height 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
	color: var( --cur-fg );
	opacity: 1;
	padding-left: 20px;
}

.woocommerce-MyAccount-navigation li.is-active a {
	color: var( --cur-fg );
}
.woocommerce-MyAccount-navigation li.is-active a::before {
	height: 13px;
}

/* Logout: kept in the same even rhythm as the rest of the index (no extra gap, so
 * the item above it lines up like the others); set apart by its muted colour only. */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var( --cur-muted );
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
	color: var( --cur-fg );
}

.woocommerce-MyAccount-content {
	min-width: 0;
}

/* Intro / section-lead paragraphs: readable, muted, with room before the block
   that follows (address cards, forms). */
.woocommerce-MyAccount-content > p {
	font-size: 16px;
	line-height: 1.65;
	color: var( --cur-muted );
	max-width: 60ch;
	margin: 0 0 16px;
}
.woocommerce-MyAccount-content > p strong {
	color: var( --cur-fg );
	font-weight: 600;
}

/* Dashboard greeting reads as the page's opening line. */
.cur-acc-dashboard .woocommerce-MyAccount-content > p:first-of-type {
	font-size: 20px;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var( --cur-fg );
	max-width: none;
	margin-bottom: 6px;
}
.cur-acc-dashboard .woocommerce-MyAccount-content > p:first-of-type a {
	font-family: var( --cur-mono );
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --cur-muted );
}

/* Dashboard quick-link cards (curel_account_dashboard_links): the account's main
   destinations, filling the content column with something useful. */
.cur-acc-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-top: 30px;
}
@media ( min-width: 640px ) {
	.cur-acc-cards {
		grid-template-columns: repeat( 3, 1fr );
	}
}
.cur-acc-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 148px;
	padding: 22px 22px 20px;
	border: 1px solid var( --cur-hair );
	border-radius: 2px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.cur-acc-card:hover {
	border-color: var( --cur-fg );
	opacity: 1;
	transform: translateY( -2px );
}
.cur-acc-card-label {
	font-family: var( --cur-mono );
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --cur-fg );
}
.cur-acc-card-desc {
	flex: 1;
	font-size: 13.5px;
	line-height: 1.55;
	color: var( --cur-muted );
}
.cur-acc-card-arrow {
	font-size: 16px;
	line-height: 1;
	color: var( --cur-fg );
	transition: transform 0.2s ease;
}
.cur-acc-card:hover .cur-acc-card-arrow {
	transform: translateX( 4px );
}

/* Addresses: two cards, clearly separated from the intro line above. */
.woocommerce-Addresses.addresses {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 32px 0 0;
}
/* WooCommerce's .u-columns clearfix pseudo-elements would become stray grid items
   and shove the two cards onto separate rows; remove them. */
.woocommerce-Addresses.addresses::before,
.woocommerce-Addresses.addresses::after {
	content: none;
}
@media ( min-width: 720px ) {
	.woocommerce-Addresses.addresses {
		grid-template-columns: 1fr 1fr;
	}
}
/* Beat WooCommerce's .col2-set .col-1/.col-2 float + 47% width (equal specificity,
   later in the cascade) so each address fills its grid cell. */
.woocommerce-Addresses.addresses > .woocommerce-Address {
	float: none;
	width: auto;
	margin: 0;
	border: 1px solid var( --cur-hair );
	border-radius: 2px;
	padding: 26px 28px;
}
.woocommerce-Address-title.title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 16px;
}
.woocommerce-Address-title.title h2 {
	margin: 0;
	font-family: var( --cur-mono );
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --cur-muted );
}
.woocommerce-Address-title.title .edit {
	flex: none;
	font-family: var( --cur-mono );
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --cur-fg );
	border-bottom: 1px solid var( --cur-hair );
	padding-bottom: 2px;
}
.woocommerce-Address-title.title .edit:hover {
	opacity: 1;
	border-bottom-color: var( --cur-fg );
}
.woocommerce-Address address {
	font-style: normal;
	font-size: 15px;
	line-height: 1.7;
	color: var( --cur-fg );
}

/* Account-details change-password fieldset: reset the native box and turn the
   legend into a mono section label with a rule above. */
.woocommerce-EditAccountForm fieldset {
	margin: 30px 0 0;
	padding: 26px 0 0;
	border: 0;
	border-top: 1px solid var( --cur-hair );
}
.woocommerce-EditAccountForm legend {
	margin-bottom: 20px;
	padding: 0;
	font-family: var( --cur-mono );
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --cur-muted );
}

/* ==========================================================================
   Tables (cart + checkout order review + account orders/addresses)
   ========================================================================== */

.woocommerce table.shop_table {
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	width: 100%;
	margin: 0 0 28px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border: 0;
	border-bottom: 1px solid var( --cur-hair );
	padding: 18px 12px;
	vertical-align: middle;
	text-align: left;
}

.woocommerce table.shop_table thead th {
	font-family: var( --cur-mono );
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var( --cur-muted );
	padding-top: 0;
}

.woocommerce table.shop_table tfoot th,
.woocommerce table.shop_table .order-total .amount {
	font-weight: 600;
}

.woocommerce .quantity .qty {
	width: 64px;
	text-align: center;
	padding: 8px;
}

/* Cart/mini-cart product thumbnail. The image is filtered to an aspect-keeping
   size (curel_cart_native_thumbnail); contain + a warm frame show the whole tall
   product centered, like the cards and the search suggestions. */
.woocommerce .product-thumbnail img,
.woocommerce td.product-thumbnail img {
	width: 64px;
	height: 80px;
	object-fit: contain;
	object-position: center;
	background: #F4F2EE;
	border-radius: 2px;
}

/* No product image: the same warm frame with the faded Curel logo (the filter
   emits an empty span in this case). */
.woocommerce .product-thumbnail .cur-cart-native-thumb.is-empty,
.woocommerce td.product-thumbnail .cur-cart-native-thumb.is-empty {
	position: relative;
	display: inline-block;
	width: 64px;
	height: 80px;
	background: #F4F2EE;
	border-radius: 2px;
	vertical-align: middle;
}
.woocommerce .product-thumbnail .cur-cart-native-thumb.is-empty::before,
.woocommerce td.product-thumbnail .cur-cart-native-thumb.is-empty::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/curel-logo.svg") center / 56% no-repeat;
	opacity: 0.12;
	filter: grayscale(1);
	pointer-events: none;
}

.woocommerce a.remove {
	color: var( --cur-muted );
	font-weight: 400;
	border: 1px solid var( --cur-hair );
	border-radius: 50%;
	width: 22px;
	height: 22px;
	line-height: 20px;
	font-size: 16px;
}

.woocommerce a.remove:hover {
	color: #fff;
	background: var( --cur-fg );
	border-color: var( --cur-fg );
}

/* ==========================================================================
   Cart page
   ========================================================================== */

/* Spread the cart row full width: fixed layout honours the column widths exactly
   (auto layout treats width as a hint and stretched the remove column to fill).
   The name column takes the slack; the rest are fixed. */
.woocommerce-cart table.cart {
	table-layout: fixed;
}

.woocommerce-cart table.cart th.product-remove,
.woocommerce-cart table.cart td.product-remove {
	width: 36px;
	text-align: center;
	padding-left: 0;
	padding-right: 0;
}

.woocommerce-cart table.cart th.product-thumbnail,
.woocommerce-cart table.cart td.product-thumbnail {
	width: 96px;
}

.woocommerce-cart table.cart th.product-name,
.woocommerce-cart table.cart td.product-name {
	width: auto;
}

.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-subtotal {
	width: 130px;
}

.woocommerce-cart .cart-collaterals {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

.woocommerce-cart .cart-collaterals .cart_totals {
	width: 100%;
	max-width: 420px;
	float: none;
}

.woocommerce-cart .cart_totals table.shop_table {
	border: 1px solid var( --cur-hair );
	border-radius: 2px;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
	padding: 16px 18px;
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: 18px 0 0;
}

/* The actions cell is a <td colspan="6"> in the cart table. With table-layout:
   fixed a display:flex cell drops out of the column model and collapses to the
   first column's width, which wraps both buttons onto stacked rows. Keep it a
   normal full-width table cell and float the two groups onto one row: the coupon
   (input + apply) left, update-cart right. */
.woocommerce-cart .cart .actions {
	padding-top: 24px;
}

.woocommerce-cart .cart .actions::after {
	content: "";
	display: block;
	clear: both;
}

.woocommerce-cart .cart .actions .coupon {
	float: left;
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.woocommerce-cart .cart .actions .coupon .input-text {
	width: 220px;
}

.woocommerce-cart .cart .actions button[name="update_cart"] {
	float: right;
}

/* ==========================================================================
   Checkout page
   ========================================================================== */

/* Comfortably constrained; two columns (billing left, order review right) on wide
   screens. Floats are used (not grid) so the leading notices/coupon wrapper does
   not offset the layout. */
.woocommerce-checkout form.checkout {
	max-width: 860px;
	margin: 0 auto;
}

.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	width: 100%;
	float: none;
}

@media ( min-width: 1000px ) {
	.woocommerce-checkout form.checkout {
		max-width: 1140px;
	}
	.woocommerce-checkout form.checkout::after {
		content: "";
		display: table;
		clear: both;
	}
	.woocommerce-checkout #customer_details {
		float: left;
		width: 56%;
	}
	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review {
		float: right;
		width: 40%;
		clear: right;
	}
	.woocommerce-checkout #order_review_heading {
		margin-top: 0;
	}
	.woocommerce-checkout #order_review {
		position: sticky;
		top: 96px;
	}
}

.woocommerce-checkout .form-row {
	margin: 0 0 16px;
	padding: 0;
}

@media ( min-width: 600px ) {
	.woocommerce-checkout .form-row-first {
		width: calc( 50% - 8px );
		float: left;
	}
	.woocommerce-checkout .form-row-last {
		width: calc( 50% - 8px );
		float: right;
	}
	.woocommerce-checkout .form-row-wide,
	.woocommerce-checkout .col2-set .form-row-wide {
		clear: both;
	}
}

.woocommerce-checkout #order_review {
	border: 1px solid var( --cur-hair );
	border-radius: 2px;
	padding: 28px;
}

.woocommerce-checkout #order_review table.shop_table {
	margin-bottom: 0;
}

/* Order review type hierarchy: product name one step down, quantity unchanged,
   attribute name two steps down and its value one step down (base is 15px). */
.woocommerce-checkout #order_review td.product-name {
	font-size: 14px;
}

.woocommerce-checkout #order_review td.product-name .product-quantity {
	font-size: 15px;
}

.woocommerce-checkout #order_review td.product-name .variation dt {
	font-size: 13px;
}

.woocommerce-checkout #order_review td.product-name .variation dd {
	font-size: 14px;
}

/* Amount column (header, line totals and the footer totals): narrow it and hug
   the values to the right edge instead of a wide left-aligned column. */
.woocommerce-checkout #order_review th.product-total,
.woocommerce-checkout #order_review td.product-total,
.woocommerce-checkout #order_review tfoot td {
	width: 1%;
	white-space: nowrap;
	text-align: right;
}

/* Put the included-VAT note under the total amount (still right-aligned), not
   inline beside it, and keep it light. It inherits the footer's white-space:nowrap,
   so long localized notes (e.g. the German "beinhaltet … MwSt.; Schätzwert für …")
   could not wrap and overflowed the order box; let this note wrap. */
.woocommerce-checkout #order_review .order-total .includes_tax {
	display: block;
	white-space: normal;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	color: var( --cur-muted );
}

.woocommerce-checkout #order_review .order-total .includes_tax .amount {
	font-weight: 400;
}

.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0;
	margin-top: 8px;
}

.woocommerce-checkout #payment ul.payment_methods {
	border: 0;
	border-top: 1px solid var( --cur-hair );
	padding: 16px 0 8px;
	margin: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
	margin-bottom: 8px;
}

.woocommerce-checkout #payment div.payment_box {
	background: var( --cur-warm );
	border-radius: 2px;
	font-size: 13px;
	color: var( --cur-muted );
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment .place-order {
	padding: 8px 0 0;
}

.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 52px;
	font-size: 15px;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	font-size: 13px;
	color: var( --cur-muted );
	margin-bottom: 16px;
}

/* ==========================================================================
   Order received (thank you)
   ========================================================================== */

/* WooCommerce ships the thank-you line and the bank-transfer instructions intro
   as plain 15px text with no bottom margin, so they collide with the details
   below. Give them heading weight and breathing room. */
.woocommerce-order > p.woocommerce-thankyou-order-received {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var( --cur-fg );
	margin: 0 0 30px;
}

/* The bank-transfer instructions intro paragraph (no class of its own), which
   sits just before the bank-details section. */
.woocommerce-order > p:not( [class] ) {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var( --cur-fg );
	margin: 8px 0 18px;
}

/* Bank-details headings: a little space so they don't hug their values. */
.woocommerce-order .wc-bacs-bank-details-heading {
	font-size: 16px;
	margin-bottom: 4px;
}
.woocommerce-order .wc-bacs-bank-details-account-name {
	margin-bottom: 10px;
}

/* ==========================================================================
   Responsive: stacked cart/checkout tables on small screens
   ========================================================================== */

@media ( max-width: 768px ) {
	.woocommerce table.shop_table_responsive tr td {
		text-align: right;
		border-bottom: 1px solid var( --cur-hair );
	}
	.woocommerce table.shop_table_responsive tr td::before {
		font-family: var( --cur-mono );
		font-size: 11px;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var( --cur-muted );
	}
	.woocommerce-cart .cart-collaterals .cart_totals {
		max-width: 100%;
	}
	.woocommerce-cart .cart .actions .coupon .input-text {
		width: 100%;
	}
	/* Stack the coupon group and the update button on narrow screens. */
	.woocommerce-cart .cart .actions .coupon {
		float: none;
		width: 100%;
	}
	.woocommerce-cart .cart .actions button[name="update_cart"] {
		float: none;
		width: 100%;
		margin-top: 12px;
	}
}
