/*
Theme Name: Blocksy Child - Reynborg EN
Template: blocksy
Version: 1.0.0
Text Domain: blocksy-child-reynborg-en
*/

/*
 * Classic WooCommerce checkout (one-page / 3 sections) layout.
 * Applies only when the checkout form includes the `aa-onepage-checkout` class
 * (added by this child theme's `woocommerce/checkout/form-checkout.php` override).
 */

:root {
	--aa-box-padding-block: 18px;
	--aa-box-padding-inline: 20px;
	--aa-box-legend-padding-block: 4px;
	--aa-box-legend-padding-inline: 12px;
	--aa-box-border-width: 1px;
	--aa-box-border-style: dashed;
	--aa-box-border-radius: 0;
	--aa-box-border-color: rgba(0, 0, 0, 0.14);

	--aa-notice-green-bg: #eef7ef;
	--aa-notice-green-bg-strong: #d9ebdc;
	--aa-notice-green-heading-bg: #d9ebdc;
	--aa-notice-green-border: #a9c7ae;
	--aa-notice-blue-bg: #edf5fb;
	--aa-notice-blue-bg-strong: #d7e8f5;
	--aa-notice-blue-heading-bg: #d7e8f5;
	--aa-notice-blue-border: #a9c2d7;
	--aa-notice-yellow-bg: #fbf6e7;
	--aa-notice-yellow-bg-strong: #f2e7be;
	--aa-notice-yellow-heading-bg: #f2e7be;
	--aa-notice-yellow-border: #d3bd75;
	--aa-notice-red-bg: #fbefef;
	--aa-notice-red-bg-strong: #f3d6d7;
	--aa-notice-red-heading-bg: #f3d6d7;
	--aa-notice-red-border: #d8acaf;
	--aa-notice-grey-bg: #f4f4f3;
	--aa-notice-grey-bg-strong: #e6e6e4;
	--aa-notice-grey-heading-bg: #e6e6e4;
	--aa-notice-grey-border: #c8c8c4;

	--aa-navigation-feedback-start: var(--theme-palette-color-1, #0f766e);
	--aa-navigation-feedback-middle: var(--theme-palette-color-2, #d3bd75);
	--aa-navigation-feedback-end: var(--theme-palette-color-4, #b22222);
}

html.aa-navigation-pending,
body.aa-navigation-pending {
	cursor: progress;
}

body.aa-navigation-pending::before {
	content: "";
	position: fixed;
	z-index: 2147483647;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		var(--aa-navigation-feedback-start, var(--theme-palette-color-1, #0f766e)),
		var(--aa-navigation-feedback-middle, var(--theme-palette-color-2, #d3bd75)),
		var(--aa-navigation-feedback-end, var(--theme-palette-color-4, #b22222))
	);
	transform: scaleX(0.22);
	transform-origin: left center;
	animation: aa-navigation-pending 1200ms ease-in-out infinite;
}

a[data-aa-navigation-pending-link="1"] {
	opacity: 0.72;
}

@keyframes aa-navigation-pending {
	0% {
		transform: scaleX(0.18);
		opacity: 0.75;
	}

	55% {
		transform: scaleX(0.82);
		opacity: 1;
	}

	100% {
		transform: scaleX(1);
		opacity: 0.2;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.aa-navigation-pending::before {
		animation: none;
		transform: scaleX(1);
	}
}

/*
 * Keep inline content links visibly distinct without affecting menus, buttons,
 * checkout controls, or other navigation UI.
 */
:is(.entry-content, .ct-entry-content-block, .wp-block-post-content, .ct-comment-content)
	:is(p, li, dt, dd, blockquote, figcaption, cite, td, th)
	a:is(:link, :visited, :hover, :focus-visible, :active) {
	text-decoration-line: underline;
	text-underline-offset: 0.14em;
	text-decoration-thickness: 0.08em;
}

.aa-onepage-checkout.ct-woocommerce-checkout {
	grid-template-columns: minmax(0, 1fr);
}

.aa-onepage-checkout[data-aa-checkout-root] {
	display: grid;
	gap: 35px;
}

.woocommerce-checkout .aa-checkout-titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.woocommerce-checkout .aa-checkout-titlebar .aa-back-to-cart {
	white-space: nowrap;
}

.aa-toast-container {
	position: fixed;
	left: 50%;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: min(520px, 92vw);
	pointer-events: none;
}

.aa-toast {
	pointer-events: auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(18, 18, 18, 0.92);
	color: rgba(255, 255, 255, 0.95);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.aa-toast__text {
	font-size: 14px;
	line-height: 1.35;
}

.aa-toast__controls {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.aa-toast__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1;
	font-weight: 600;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.95);
}

.aa-toast__action:hover {
	background: rgba(255, 255, 255, 0.18);
}

.aa-toast__action:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
}

.aa-toast__close {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font-size: 22px;
	line-height: 1;
	padding: 0 2px;
	margin: -2px -2px 0 0;
	cursor: pointer;
}

.aa-toast__close:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.6);
	outline-offset: 3px;
	border-radius: 8px;
}

.aa-toast__close:hover {
	color: rgba(255, 255, 255, 1);
}

.aa-add-to-cart-disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

a.aa-add-to-cart-disabled {
	pointer-events: none;
}

p.stock.out-of-stock {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 8px;
	background: #b22222;
	color: #fff;
	font-weight: 600;
	line-height: 1.2;
}

.aa-onepage-checkout[data-aa-checkout-root] > form.woocommerce-checkout {
	margin: 0;
}

.aa-onepage-checkout .aa-checkout-login-toggle .woocommerce-info {
	gap: 12px;
}

.aa-onepage-checkout .aa-checkout-login-toggle .aa-checkout-login-modal-trigger {
	margin-inline-start: auto;
	white-space: nowrap;
}

.aa-onepage-checkout .aa-checkout-section__title {
	margin: 0;
	padding: 12px 16px;
	font-size: 17px;
	background-color: rgba(0, 0, 0, 0.04);
	background-color: color-mix(in srgb, var(--theme-palette-color-1) 12%, transparent);
	border-radius: 0;
	border: 0;
}

.aa-onepage-checkout .aa-checkout-step__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.aa-onepage-checkout .aa-checkout-step__edit {
	padding: 0.35em 0.75em;
	font-size: 0.9em;
}

.aa-onepage-checkout .aa-checkout-step.is-disabled {
	opacity: 0.75;
}

/* WooCommerce cart page layout tweaks. */
.woocommerce-cart .aa-incl-tax-note {
	margin-top: 4px;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.85;
}

/* WooCommerce single product price suffix (tax + shipping). */
.single-product .aa-product-price-suffix {
	display: block;
	margin-top: 0;
	padding-top: 0;
	font-size: 0.75em;
	font-weight: 400;
	opacity: 0.85;
	line-height: 1.3;
}

.ct-floating-bar .aa-product-price-suffix--floating {
	display: inline;
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

.woocommerce-cart .shop_table.cart td.product-subtotal,
.woocommerce-cart .shop_table.cart th.product-subtotal {
	text-align: right;
}

.woocommerce-cart .cart_totals .aa-tax-total th,
.woocommerce-cart .cart_totals .aa-tax-total td {
	font-size: 0.9em;
	font-weight: 400;
	opacity: 0.8;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-totals th {
	display: none;
}

.woocommerce-cart .cart_totals tr.shipping > th {
	display: none;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-totals td {
	padding-left: 0;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-methods label {
	cursor: default !important;
}

.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
	cursor: default;
}

.woocommerce-cart .aa-cart-proceed-top {
	margin: 0 0 18px;
}

.woocommerce-cart .aa-cart-proceed-top .aa-cart-proceed-top__button {
	width: 100%;
	display: block;
	text-align: center;
}

.aa-shipping-method-description {
	display: block;
	margin-top: 4px;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.85;
	line-height: 1.3;
}

.aa-shipping-method-description p {
	margin: 0 0 0.5em;
}

.aa-shipping-method-description p:last-child {
	margin-bottom: 0;
}

.woocommerce-cart .woocommerce-cart-form__contents .aa-cart-coupon-area {
	width: 100%;
	text-align: left;
	margin-bottom: 0.8em;
}

@media (min-width: 690px) {
	.woocommerce-cart .woocommerce-cart-form__contents .aa-cart-coupon-area {
		float: left;
		width: auto;
		margin-bottom: 0;
	}
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon {
	display: block;
	padding: 12px;
	background-color: #eaeaea;
	border-radius: 8px;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box input {
	--theme-form-field-height: var(--theme-button-min-height);
	margin: 0 !important;
	background-color: #fff !important;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box button {
	margin: 0 !important;
}

@media (max-width: 689.98px) {
	.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box {
		flex-direction: column;
	}

	.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box input,
	.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box button {
		width: 100%;
	}
}

@media (min-width: 690px) {
	.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon {
		float: left;
	}

	.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .aa-cart-coupon-box input {
		width: 220px;
	}
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .coupon-error-notice,
.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .coupon-success-notice,
.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .coupon-info-notice {
	display: block;
	margin: 8px 0 0;
	font-size: 0.8em;
	line-height: 1.3;
	text-align: left !important;
	float: none !important;
	clear: both;
	width: 100%;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .coupon-error-notice {
	color: var(--wc-red, #b22222) !important;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon .coupon-success-notice {
	color: #007c2a !important;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages {
	margin-top: 8px;
	font-size: 0.8em;
	line-height: 1.3;
	text-align: left !important;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages > * + * {
	margin-top: 6px;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages:empty {
	display: none;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages .coupon-error-notice,
.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages .coupon-success-notice,
.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages .coupon-info-notice {
	display: block;
	margin: 0;
	float: none;
	clear: both;
	width: 100%;
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages .coupon-error-notice {
	color: var(--wc-red, #b22222);
}

.woocommerce-cart .woocommerce-cart-form__contents td.actions .aa-cart-coupon-messages .coupon-success-notice {
	color: #007c2a;
}

.woocommerce-cart .cart_totals tr.cart-discount,
.woocommerce-cart .cart_totals tr.cart-discount th,
.woocommerce-cart .cart_totals tr.cart-discount td,
.woocommerce-cart .cart_totals tr.cart-discount a {
	color: #007c2a;
}

.aa-onepage-checkout:not(.aa-has-js) .aa-checkout-step.is-disabled {
	opacity: 1;
}

.aa-onepage-checkout:not(.aa-has-js) .aa-checkout-step__actions,
.aa-onepage-checkout:not(.aa-has-js) .aa-checkout-step__edit,
.aa-onepage-checkout:not(.aa-has-js) .aa-checkout-step__summary,
.aa-onepage-checkout:not(.aa-has-js) [data-aa-payment-options],
.aa-onepage-checkout:not(.aa-has-js) .aa-email-summary,
.aa-onepage-checkout:not(.aa-has-js) .aa-billing-address__summary {
	display: none !important;
}

/* Checkout: explicitly white backgrounds for address fields (shipping + billing). */
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-billing-fields input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-billing-fields select,
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-billing-fields textarea,
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-shipping-fields input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-shipping-fields select,
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-shipping-fields textarea {
	background-color: #fff;
}

.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-billing-fields .select2-container .select2-selection,
.aa-onepage-checkout[data-aa-checkout-root] .woocommerce-shipping-fields .select2-container .select2-selection {
	background-color: #fff;
}

/* Checkout: field-level validation errors (WooCommerce applies classes on `.form-row`). */
.aa-onepage-checkout[data-aa-checkout-root] {
	--aa-checkout-error-color: #d63638;
	--aa-checkout-error-bg: rgba(214, 54, 56, 0.06);
	--aa-checkout-error-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23fff' stroke='%23d63638' stroke-width='2'/%3E%3Cpath d='M8 4.2v5.2' stroke='%23d63638' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.1' r='1' fill='%23d63638'/%3E%3C/svg%3E");
	--aa-checkout-warning-color: #b07800;
	--aa-checkout-warning-bg: rgba(176, 120, 0, 0.08);
	--aa-checkout-warning-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23fff' stroke='%23b07800' stroke-width='2'/%3E%3Cpath d='M8 4.2v5.2' stroke='%23b07800' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.1' r='1' fill='%23b07800'/%3E%3C/svg%3E");
}

.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid
	:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-required-field
	:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-email
	:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-phone
	:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
	border-color: var(--aa-checkout-error-color) !important;
	background-color: var(--aa-checkout-error-bg) !important;
	background-image: var(--aa-checkout-error-icon);
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px 16px;
	padding-right: 36px !important;
}

.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid
	select,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-required-field
	select,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-email
	select,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-phone
	select {
	background-position: right 30px center;
	padding-right: 52px !important;
}

.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid
	textarea,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-required-field
	textarea,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-email
	textarea,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-phone
	textarea {
	background-position: right 10px top 10px;
}

.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid
	.select2-container
	.select2-selection,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-required-field
	.select2-container
	.select2-selection,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-email
	.select2-container
	.select2-selection,
.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.woocommerce-invalid-phone
	.select2-container
	.select2-selection {
	border-color: var(--aa-checkout-error-color) !important;
	background-color: var(--aa-checkout-error-bg) !important;
	background-image: var(--aa-checkout-error-icon);
	background-repeat: no-repeat;
	background-position: right 30px center;
	background-size: 16px 16px;
	padding-right: 52px !important;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-checkout-inline-error {
	display: block;
	margin-top: 6px;
	font-size: 0.875em;
	line-height: 1.25;
	color: var(--aa-checkout-error-color);
}

.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.aa-checkout-warning:not(.woocommerce-invalid):not(.woocommerce-invalid-required-field):not(.woocommerce-invalid-email):not(.woocommerce-invalid-phone)
	:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea) {
	border-color: var(--aa-checkout-warning-color) !important;
	background-color: var(--aa-checkout-warning-bg) !important;
	background-image: var(--aa-checkout-warning-icon);
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px 16px;
	padding-right: 36px !important;
}

.aa-onepage-checkout[data-aa-checkout-root]
	.form-row.aa-checkout-warning:not(.woocommerce-invalid):not(.woocommerce-invalid-required-field):not(.woocommerce-invalid-email):not(.woocommerce-invalid-phone)
	textarea {
	background-position: right 10px top 10px;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-checkout-inline-warning {
	display: block;
	margin-top: 6px;
	font-size: 0.875em;
	line-height: 1.25;
	color: var(--aa-checkout-warning-color);
}

.aa-onepage-checkout[data-aa-checkout-root] .form-row[hidden] {
	display: none !important;
}

.aa-onepage-checkout[data-aa-checkout-root] #ship-to-different-address.aa-ship-to-different-address {
	display: none !important;
}

/* Checklist: green check icons instead of bullets (no external assets). */
.aa-onepage-checkout[data-aa-checkout-root] .aa-checklist,
.aa-onepage-checkout[data-aa-checkout-root] .aa-shipping-method-summary__details :is(ul, ol) {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-checklist > li,
.aa-onepage-checkout[data-aa-checkout-root] .aa-shipping-method-summary__details :is(ul, ol) > li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-checklist > li + li,
.aa-onepage-checkout[data-aa-checkout-root] .aa-shipping-method-summary__details :is(ul, ol) > li + li {
	margin-top: 0.68em;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-checklist > li::before,
.aa-onepage-checkout[data-aa-checkout-root] .aa-shipping-method-summary__details :is(ul, ol) > li::before {
	content: "✓";
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background-color: #0a8f3c;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	font-weight: 700;
	flex: 0 0 18px;
	margin-top: 0.28em;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-shipping-method-summary__details > :first-child {
	margin-top: 0;
}

.aa-onepage-checkout[data-aa-checkout-root] .aa-shipping-method-summary__details > :last-child {
	margin-bottom: 0;
}

.aa-onepage-checkout[data-aa-checkout-root] [data-aa-shipping-method-name] {
	text-transform: capitalize;
}

.aa-onepage-checkout .aa-checkout-step__actions {
	margin-top: 18px;
}

.aa-onepage-checkout .aa-checkout-step__actions .button {
	width: 100%;
	min-height: 3.5em;
	height: 3.5em;
}

.aa-onepage-checkout .aa-checkout-customer-details {
	display: grid;
	gap: 30px;
}

.aa-onepage-checkout #customer_details .col-2 {
	margin-top: 40px;
}

@media (min-width: 1024px) {
	.aa-onepage-checkout .aa-checkout-customer-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aa-onepage-checkout #customer_details .col-2 {
		margin-top: 0;
	}
}

.aa-onepage-checkout .aa-checkout-summary-box {
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-color: color-mix(in srgb, var(--theme-palette-color-1) 18%, transparent);
	background-color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	line-height: 1.4;
}

.aa-onepage-checkout .aa-checkout-step__summary .aa-checkout-summary-box + .aa-checkout-summary-box {
	margin-top: 18px;
}

.aa-onepage-checkout .aa-checkout-summary-box__title {
	font-weight: 600;
	margin-bottom: 8px;
}

.aa-onepage-checkout .aa-checkout-summary-box__value {
	color: var(--theme-text-color);
	white-space: normal;
	text-align: left;
}

.aa-onepage-checkout .aa-checkout-summary-box__value[data-aa-address-summary],
.aa-onepage-checkout .aa-checkout-summary-box__value[data-aa-billing-summary],
.aa-onepage-checkout .aa-checkout-summary-box__value[data-aa-billing-summary-confirmed-value] {
	white-space: pre-line;
}

.aa-onepage-checkout[data-aa-checkout-root] :is(.aa-checklist, .aa-shipping-method-summary__details :is(ul, ol)) > li :is(p) {
	margin: 0;
}

.aa-onepage-checkout[data-aa-checkout-root] :is(.aa-checklist, .aa-shipping-method-summary__details :is(ul, ol)) > li > :first-child {
	margin-top: 0;
}

.aa-onepage-checkout[data-aa-checkout-root] :is(.aa-checklist, .aa-shipping-method-summary__details :is(ul, ol)) > li > :last-child {
	margin-bottom: 0;
}

.aa-onepage-checkout .aa-checkout-summary-box__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.aa-onepage-checkout .aa-link-button {
	padding: 0;
	border: 0;
	background: transparent;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.95em;
}

.aa-checkout-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.55);
}

.aa-checkout-modal-overlay[hidden] {
	display: none !important;
}

.aa-checkout-modal {
	width: min(520px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: #fff;
	color: var(--theme-text-color);
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	padding: 16px;
}

.aa-checkout-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.aa-checkout-modal__x {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 1;
	font-size: 22px;
	padding: 4px 8px;
	color: inherit;
}

.aa-checkout-modal__x:hover {
	background: rgba(0, 0, 0, 0.06);
	border-radius: 6px;
}

.aa-checkout-modal__title {
	font-weight: 600;
}

.aa-checkout-modal__content > p {
	margin: 0;
}

.aa-checkout-modal__actions {
	margin-top: 14px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.aa-checkout-modal--login .aa-checkout-modal__actions {
	justify-content: stretch;
}

.aa-checkout-modal--login .aa-checkout-modal__actions .button {
	width: 100%;
}

.aa-checkout-modal__logout.button {
	background-color: rgba(0, 0, 0, 0.06) !important;
	border-color: rgba(0, 0, 0, 0.18) !important;
	color: var(--theme-text-color) !important;
	box-shadow: none !important;
}

.aa-checkout-modal__logout.button:hover {
	background-color: rgba(0, 0, 0, 0.09) !important;
}

.aa-onepage-checkout .aa-checkout-payment-details {
	display: grid;
	gap: 30px;
}

@media (min-width: 1024px) {
	.aa-onepage-checkout .aa-checkout-payment-details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.aa-onepage-checkout .aa-billing-address {
	margin-bottom: 18px;
}

.aa-onepage-checkout .aa-billing-address__heading {
	margin: 0 0 10px;
	font-size: 1em;
	font-weight: 600;
}

.aa-onepage-checkout .aa-payment-options__heading {
	margin: 14px 0 10px;
	font-size: 1em;
	font-weight: 600;
}

.aa-onepage-checkout .aa-trust-box__logo {
	display: inline-block;
	margin-right:1.3em;
	margin-top: 14px;
	max-height: 28px;
	width: auto;
	max-width: 100%;
	height: auto;
}

.aa-onepage-checkout .aa-payment-options {
	display: grid;
	gap: 10px;
}

.aa-onepage-checkout .aa-payment-option {
	width: 100%;
	text-align: left;
	padding: 0.9em 1em 0.9em 2.8em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	cursor: pointer;
	position: relative;
}

.aa-onepage-checkout .aa-payment-option__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}

.aa-onepage-checkout .aa-payment-option__title {
	flex: 1 1 auto;
	min-width: 0;
}

.aa-onepage-checkout .aa-payment-option__icons {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}

.aa-onepage-checkout .aa-payment-option__icon {
	display: block;
	height: 26px;
	width: auto;
	max-width: 96px;
}

.aa-onepage-checkout .aa-payment-option::before {
	content: "";
	position: absolute;
	left: 1em;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border: 1.5px solid rgba(0, 0, 0, 0.3);
	border-radius: 999px;
	background: transparent;
}

.aa-onepage-checkout .aa-payment-option.is-selected::before {
	border-color: var(--theme-palette-color-1);
	background: var(--theme-palette-color-1);
}

.aa-onepage-checkout .aa-payment-option.is-selected::after {
	content: "";
	position: absolute;
	left: calc(1em + 9px);
	top: 50%;
	width: 6px;
	height: 10px;
	border: 2px solid #fff;
	border-top: 0;
	border-left: 0;
	transform: translate(-50%, -60%) rotate(45deg);
}

.aa-onepage-checkout .aa-payment-option.is-selected {
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-palette-color-1) 25%, transparent);
}

.aa-onepage-checkout #place_order {
	min-height: 3.5em;
	height: 3.5em;
}

.aa-onepage-checkout .aa-order-box {
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-color: color-mix(in srgb, var(--theme-palette-color-1) 18%, transparent);
}

.aa-onepage-checkout .ct-order-review {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-item__details {
	min-width: 0;
	flex: 1 1 auto;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-item__thumb img {
	width: 48px;
	height: auto;
	display: block;
	border-radius: 4px;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table td.product-total,
.aa-onepage-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-subtotal > td,
.aa-onepage-checkout .woocommerce-checkout-review-order-table tfoot tr.cart-discount > td,
.aa-onepage-checkout .woocommerce-checkout-review-order-table tfoot tr.fee > td,
.aa-onepage-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total > td {
	min-width: 14em;
	white-space: nowrap;
}

@media (max-width: 689.98px) {
	.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-item {
		flex-direction: column;
	}
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-item__meta {
	margin-top: 4px;
	font-size: 0.9em;
	opacity: 0.85;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-item__meta-line + .aa-order-item__meta-line {
	margin-top: 2px;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-incl-tax-note {
	margin-top: 4px;
	font-size: 0.85em;
	font-weight: 400;
	opacity: 0.85;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-order-total-tax {
	margin-top: 4px;
	font-size: 0.9em;
	font-weight: 400;
	opacity: 0.8;
	white-space: normal;
	line-height: 1.3;
}

.aa-onepage-checkout .woocommerce-checkout-review-order-table .aa-tax-label,
.woocommerce-cart .cart_totals .aa-tax-label {
	font-weight: 400;
}

	.aa-onepage-checkout .aa-payment-button-text {
		margin: 0 0 12px;
		font-size: 0.9em;
		line-height: 1.35;
		opacity: 0.85;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

.aa-onepage-checkout.aa-payment-locked #payment li.wc_payment_method[hidden] {
	display: none !important;
}

.aa-onepage-checkout.aa-payment-locked #payment li.wc_payment_method.aa-is-selected input[name="payment_method"],
.aa-onepage-checkout.aa-payment-locked #payment li.wc_payment_method.aa-is-selected label {
	display: none !important;
}

/* Checkout: tighten order + payment UI. */
.aa-onepage-checkout #payment ul.payment_methods > li.wc_payment_method {
	border: 0 !important;
}

.aa-onepage-checkout #payment ul.payment_methods .payment_box {
	border-top: 0 !important;
	padding: 0 0 !important;
}

@media (max-width: 689.98px) {
	.aa-onepage-checkout #payment ul.payment_methods .payment_box {
		padding-left: 25px !important;
		padding-right: 25px !important;
	}
}

.aa-onepage-checkout #order_review table.shop_table {
	margin-bottom: 0 !important;
}

.aa-onepage-checkout #order_review .woocommerce-remove-coupon {
	display: none !important;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.cart-discount th,
.aa-onepage-checkout #order_review table.shop_table tfoot tr.cart-discount td {
	font-weight: 400;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals td {
	text-align: left;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals ul#shipping_method,
.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals ul.woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals li {
	margin: 0;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals label,
.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals a {
	color: inherit;
	text-decoration: none;
	cursor: default;
	transition: none !important;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals th,
.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals td,
.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals label,
.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals strong {
	font-weight: 400;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals td {
	padding-left: 0;
	width: 100%;
}

.aa-onepage-checkout #order_review table.shop_table tfoot tr.woocommerce-shipping-totals .ct-shipping-heading {
	display: none !important;
}

.aa-onepage-checkout .woocommerce-checkout-payment .place-order {
	margin-top: 0 !important;
}

.aa-onepage-checkout .woocommerce-privacy-policy-text {
	font-size: 0.85em;
}

/* Checkout boot loading (async sections + WC fragments) */
.aa-onepage-checkout.aa-is-booting .woocommerce-NoticeGroup-checkout,
.aa-onepage-checkout.aa-is-booting .woocommerce-NoticeGroup-updateOrderReview,
.aa-onepage-checkout.aa-is-booting .woocommerce-error,
.aa-onepage-checkout.aa-is-booting .woocommerce-message,
.aa-onepage-checkout.aa-is-booting .woocommerce-info {
	display: none !important;
}

.aa-onepage-checkout .aa-checkout-skeleton {
	display: none;
}

.aa-onepage-checkout.aa-async-sections-loading .aa-checkout-skeleton {
	display: block;
}

.aa-onepage-checkout .aa-payment-options-skeleton {
	display: none;
}

.aa-onepage-checkout.aa-payment-methods-loading .aa-payment-options-skeleton {
	display: block;
}

.aa-onepage-checkout.aa-payment-methods-loading [data-aa-payment-options] > :not(.aa-payment-options-skeleton) {
	display: none !important;
}

.aa-onepage-checkout .aa-checkout-skeleton__line {
	height: 44px;
	border-radius: 10px;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.06) 0%,
		rgba(0, 0, 0, 0.10) 40%,
		rgba(0, 0, 0, 0.06) 80%
	);
	background-size: 200% 100%;
	animation: aa-checkout-skeleton-shimmer 1.1s ease-in-out infinite;
}

.aa-onepage-checkout .aa-checkout-skeleton__line + .aa-checkout-skeleton__line {
	margin-top: 12px;
}

.aa-onepage-checkout .aa-checkout-skeleton__line--wide {
	width: 100%;
}

.aa-onepage-checkout .aa-checkout-skeleton__line--half {
	width: 55%;
}

@keyframes aa-checkout-skeleton-shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

.aa-onepage-checkout.aa-order-fragments-loading .woocommerce-privacy-policy-text {
	display: none !important;
}

.aa-order-loading {
	display: none;
	align-items: center;
	justify-content: flex-start;
	padding: 14px 0;
}

.aa-onepage-checkout.aa-order-fragments-loading .aa-order-loading {
	display: flex !important;
}

/* Avoid double spinners during the initial checkout fragment load. */
.aa-onepage-checkout.aa-order-fragments-loading #order_review .blockUI.blockOverlay,
.aa-onepage-checkout.aa-order-fragments-loading #order_review .blockUI.blockMsg {
	display: none !important;
}

.aa-checkout-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.02);
}

.aa-checkout-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(0, 0, 0, 0.18);
	border-top-color: rgba(0, 0, 0, 0.55);
	animation: aa-checkout-spin 0.8s linear infinite;
	flex: 0 0 auto;
}

@keyframes aa-checkout-spin {
	to {
		transform: rotate(360deg);
	}
}

/* WooCommerce: highlight BACS bank details box (thank-you + view order). */
.woocommerce-order-received .woocommerce-bacs-bank-details,
.woocommerce-view-order .woocommerce-bacs-bank-details {
	padding: var(--theme-content-spacing);
	margin: var(--theme-content-spacing) 0;
	background: var(--theme-palette-color-6);
	border: 1px solid var(--theme-border-color);
	border-radius: 12px;
}

.woocommerce-order-received .woocommerce-bacs-bank-details > :last-child,
.woocommerce-view-order .woocommerce-bacs-bank-details > :last-child {
	margin-bottom: 0;
}

/* WooCommerce: keep tax "includes X% VAT" rows non-bold even when placed after Total. */
.woocommerce-table--order-details tr.order-totals-tax th,
.woocommerce-table--order-details tr.order-totals-tax td {
	font-weight: 400 !important;
}

/* WooCommerce: keep Total emphasized even when it’s no longer the last row. */
.woocommerce-order-received .woocommerce-table--order-details tr.order-totals-total th,
.woocommerce-order-received .woocommerce-table--order-details tr.order-totals-total td,
.woocommerce-view-order .woocommerce-table--order-details tr.order-totals-total th,
.woocommerce-view-order .woocommerce-table--order-details tr.order-totals-total td {
	font-weight: 700;
}
