/* Acorn styling for WooCommerce notices, buttons, forms and the basket, checkout and my-account pages.
   Overrides the theme's plain grey Woo styles site-wide; WooCommerce behaviour is unchanged.
   Tokens fall back to the Acorn values if the Elementor variables are not on the page. */

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body, "Atkinson Hyperlegible", Arial, sans-serif);
	font-size: 16px;
	line-height: 26px;
	color: var(--ink, #231f20);
}

/* Notices */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error {
	margin: 0 0 var(--space-4, 16px);
	padding: var(--space-4, 16px) var(--space-5, 24px);
	border: 1px solid var(--border, #d5d9e2);
	border-top: 4px solid var(--navy, #2e3549);
	border-radius: var(--radius-md, 8px);
	background-color: var(--surface, #fff);
	color: var(--ink, #231f20);
	list-style: none;
}


/* Notices site-wide (shop, product, basket, checkout, account) */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error,
body .woocommerce-notice,
body .wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3, 12px);
	margin: 0 0 var(--space-4, 16px);
	padding: var(--space-4, 16px) var(--space-5, 24px);
	border: 1px solid var(--border, #d5d9e2);
	border-left: 6px solid var(--navy, #2e3549);
	border-top-width: 1px;
	border-radius: var(--radius-md, 8px);
	background-color: var(--surface, #fff);
	color: var(--ink, #231f20);
	font-family: var(--font-body, "Atkinson Hyperlegible", Arial, sans-serif);
	font-size: 16px;
	line-height: 26px;
	list-style: none;
}

body .woocommerce-message {
	border-left-color: var(--success, #2e7d4f);
	background-color: var(--success-100, #eaf5ee);
}

body .woocommerce-info {
	background-color: var(--navy-100, #eceef3);
}

body .woocommerce-error {
	border-left-color: var(--red, #be202a);
	background-color: var(--red-100, #fbeaea);
}

body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before {
	position: static;
	flex: none;
	margin: 0;
	color: var(--navy, #2e3549);
}

body .woocommerce-message::before {
	color: var(--success, #2e7d4f);
}

body .woocommerce-error::before {
	color: var(--red, #be202a);
}

body .woocommerce-message .button,
body .woocommerce-info .button,
body .woocommerce-error .button {
	order: 2;
	margin-left: auto;
	float: none;
}

body .woocommerce-error li {
	margin: 0;
}

/* Buttons site-wide: pill shape, navy outline, red primary */
body .woocommerce #respond input#submit,
body .woocommerce a.button,
body .woocommerce button.button,
body .woocommerce input.button,
body .woocommerce a.added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--target-min, 44px);
	padding: var(--space-3, 12px) var(--space-5, 24px);
	border: 2px solid var(--navy, #2e3549);
	border-radius: var(--radius-pill, 999px);
	background-color: transparent;
	color: var(--navy, #2e3549);
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

body .woocommerce #respond input#submit:hover,
body .woocommerce a.button:hover,
body .woocommerce button.button:hover,
body .woocommerce input.button:hover,
body .woocommerce a.added_to_cart:hover {
	background-color: var(--navy-100, #eceef3);
	color: var(--navy, #2e3549);
}

body .woocommerce #respond input#submit.alt,
body .woocommerce a.button.alt,
body .woocommerce button.button.alt,
body .woocommerce input.button.alt,
body .woocommerce button.single_add_to_cart_button {
	border-color: var(--red, #be202a);
	background-color: var(--red, #be202a);
	color: var(--on-red, #fff);
}

body .woocommerce #respond input#submit.alt:hover,
body .woocommerce a.button.alt:hover,
body .woocommerce button.button.alt:hover,
body .woocommerce input.button.alt:hover,
body .woocommerce button.single_add_to_cart_button:hover {
	border-color: var(--red-hover, #9a1a22);
	background-color: var(--red-hover, #9a1a22);
	color: var(--on-red, #fff);
}

body .woocommerce button.button:disabled,
body .woocommerce button.button.disabled,
body .woocommerce a.button.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

body .woocommerce button.button:focus-visible,
body .woocommerce a.button:focus-visible,
body .woocommerce input.button:focus-visible {
	outline: var(--focus-width, 3px) solid var(--focus, #2e3549);
	outline-offset: 2px;
}

/* Buttons (basket, checkout, account specifics) */
body .woocommerce .button,
body.woocommerce-checkout #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--target-min, 44px);
	padding: var(--space-3, 12px) var(--space-5, 24px);
	border: 2px solid var(--navy, #2e3549);
	border-radius: var(--radius-pill, 999px);
	background-color: transparent;
	color: var(--navy, #2e3549);
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

body .woocommerce .button:hover {
	background-color: var(--navy-100, #eceef3);
	color: var(--navy, #2e3549);
}

body .woocommerce .button.alt,
body .woocommerce .checkout-button,
body.woocommerce-checkout #place_order,
body .woocommerce .button[name="login"],
body .woocommerce .button[name="register"],
body .woocommerce .woocommerce-Button {
	border-color: var(--red, #be202a);
	background-color: var(--red, #be202a);
	color: var(--on-red, #fff);
}

body .woocommerce .button.alt:hover,
body .woocommerce .checkout-button:hover,
body.woocommerce-checkout #place_order:hover,
body .woocommerce .button[name="login"]:hover,
body .woocommerce .button[name="register"]:hover,
body .woocommerce .woocommerce-Button:hover {
	border-color: var(--red-hover, #9a1a22);
	background-color: var(--red-hover, #9a1a22);
	color: var(--on-red, #fff);
}

body.woocommerce-checkout #place_order {
	width: 100%;
}

body .woocommerce .button:focus-visible,
body.woocommerce-checkout #place_order:focus-visible {
	outline: var(--focus-width, 3px) solid var(--focus, #2e3549);
	outline-offset: 2px;
}

/* Form fields */
body .woocommerce input[type="text"],
body .woocommerce input[type="email"],
body .woocommerce input[type="number"],
body .woocommerce input[type="tel"],
body .woocommerce input[type="password"],
body .woocommerce textarea,
body .woocommerce select {
	min-height: var(--target-min, 44px);
	padding: var(--space-2, 8px) var(--space-3, 12px);
	border: 2px solid var(--border-strong, #767c8c);
	border-radius: var(--radius-md, 8px);
	background-color: var(--surface, #fff);
	color: var(--ink, #231f20);
	font-family: var(--font-body, "Atkinson Hyperlegible", Arial, sans-serif);
	font-size: 16px;
	line-height: 24px;
}

body .woocommerce input:hover,
body .woocommerce textarea:hover,
body .woocommerce select:hover {
	border-color: var(--navy, #2e3549);
}

body .woocommerce input:focus-visible,
body .woocommerce textarea:focus-visible,
body .woocommerce select:focus-visible {
	outline: var(--focus-width, 3px) solid var(--focus, #2e3549);
	outline-offset: 2px;
}

body .woocommerce form .form-row label {
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--navy, #2e3549);
}

body .woocommerce form .form-row .required {
	color: var(--red, #be202a);
	text-decoration: none;
}

/* Tables: basket, order review, orders list */
body .woocommerce table.shop_table {
	border: 1px solid var(--border, #d5d9e2);
	border-radius: var(--radius-lg, 16px);
	border-collapse: separate;
	border-spacing: 0;
	background-color: var(--surface, #fff);
	overflow: hidden;
}

body .woocommerce table.shop_table th {
	padding: var(--space-3, 12px) var(--space-4, 16px);
	background-color: var(--navy-100, #eceef3);
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 14px;
	line-height: 22px;
	font-weight: 600;
	color: var(--navy, #2e3549);
}

body .woocommerce table.shop_table td {
	padding: var(--space-3, 12px) var(--space-4, 16px);
	border-top: 1px solid var(--border, #d5d9e2);
}

body .woocommerce table.cart td.product-name a,
body .woocommerce a.remove {
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-weight: 600;
	color: var(--navy, #2e3549);
}

body .woocommerce a.remove {
	color: var(--red, #be202a) !important;
}

body .woocommerce a.remove:hover {
	background-color: var(--red, #be202a);
	color: var(--on-red, #fff) !important;
}

body .woocommerce table.cart img {
	width: 72px;
	border-radius: var(--radius-md, 8px);
}

body .woocommerce .cart-collaterals .cart_totals,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
	box-sizing: border-box;
}

body .woocommerce .cart_totals h2,
body .woocommerce h3,
body .woocommerce h2 {
	margin: 0 0 var(--space-4, 16px);
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: var(--navy, #2e3549);
}

body .woocommerce .cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
	display: flex;
	width: 100%;
}

/* Checkout payment panel */
body.woocommerce-checkout #payment {
	border: 1px solid var(--border, #d5d9e2);
	border-radius: var(--radius-lg, 16px);
	background-color: var(--surface, #fff);
}

body.woocommerce-checkout #payment ul.payment_methods {
	border-bottom: 1px solid var(--border, #d5d9e2);
}

body.woocommerce-checkout #payment div.payment_box {
	border-radius: var(--radius-md, 8px);
	background-color: var(--navy-100, #eceef3);
	color: var(--ink, #231f20);
}

body.woocommerce-checkout #payment div.payment_box::before {
	border-bottom-color: var(--navy-100, #eceef3);
}

body .woocommerce-form-coupon-toggle a,
body .woocommerce-form-login-toggle a,
body .woocommerce a:not(.button):not(.remove),
body .woocommerce a:not(.button) {
	color: var(--red, #be202a);
}

/* Boxed forms: login, register, coupon, address */
body .woocommerce form.checkout_coupon,
body .woocommerce form.woocommerce-form-login,
body .woocommerce form.woocommerce-form-register,
body .woocommerce form.edit-account,
body .woocommerce .woocommerce-address-fields {
	padding: var(--space-5, 24px);
	border: 1px solid var(--border, #d5d9e2);
	border-radius: var(--radius-lg, 16px);
	background-color: var(--surface, #fff);
}

/* My account navigation */
body .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: var(--space-2, 8px);
	border: 1px solid var(--border, #d5d9e2);
	border-radius: var(--radius-lg, 16px);
	background-color: var(--surface, #fff);
	list-style: none;
}

body .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: var(--space-3, 12px) var(--space-4, 16px);
	border-radius: var(--radius-md, 8px);
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-weight: 600;
	color: var(--navy, #2e3549);
	text-decoration: none;
}

body .woocommerce-MyAccount-navigation li a:hover,
body .woocommerce-MyAccount-navigation li.is-active a {
	background-color: var(--navy-100, #eceef3);
	color: var(--navy, #2e3549);
}

body .woocommerce-MyAccount-navigation li.is-active a {
	box-shadow: inset 4px 0 0 var(--red, #be202a);
}

@media (prefers-reduced-motion: reduce) {body .woocommerce .button {
		transition: none;
	}
}

/* Search results (Elementor Archive Posts cards) */
body.search .elementor-widget-archive-posts .elementor-posts-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: var(--space-5, 24px);
}

body.search .elementor-widget-archive-posts .elementor-post {
	display: flex;
	flex-direction: column;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--border, #d5d9e2);
	border-radius: var(--radius-lg, 16px);
	background-color: var(--surface, #fff);
	transition: box-shadow 150ms ease, border-color 150ms ease;
}

body.search .elementor-widget-archive-posts .elementor-post:hover,
body.search .elementor-widget-archive-posts .elementor-post:focus-within {
	border-color: var(--border-strong, #767c8c);
	box-shadow: 0 8px 24px rgba(35, 31, 32, 0.12);
}

body.search .elementor-widget-archive-posts .elementor-post__thumbnail__link {
	order: -1;
}

body.search .elementor-widget-archive-posts .elementor-post__thumbnail img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

body.search .elementor-widget-archive-posts .elementor-post__text {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-2, 8px);
	padding: var(--space-4, 16px) var(--space-5, 24px) var(--space-5, 24px);
}

body.search .elementor-widget-archive-posts .elementor-post__title,
body.search .elementor-widget-archive-posts .elementor-post__title a {
	margin: 0;
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	color: var(--navy, #2e3549);
	text-decoration: none;
}

body.search .elementor-widget-archive-posts .elementor-post__meta-data {
	display: none;
}

body.search .elementor-widget-archive-posts .elementor-post__excerpt p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-family: var(--font-body, "Atkinson Hyperlegible", Arial, sans-serif);
	font-size: 16px;
	line-height: 24px;
	color: var(--ink-muted, #5a6275);
}

body.search .elementor-widget-archive-posts .elementor-post__read-more {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	min-height: var(--target-min, 44px);
	margin-top: auto;
	padding: var(--space-2, 8px) var(--space-4, 16px);
	border: 2px solid var(--navy, #2e3549);
	border-radius: var(--radius-pill, 999px);
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--navy, #2e3549);
	text-decoration: none;
}

body.search .elementor-widget-archive-posts .elementor-post__read-more:hover {
	background-color: var(--navy-100, #eceef3);
}

body.search .elementor-widget-archive-posts .elementor-post__read-more:focus-visible,
body.search .elementor-widget-archive-posts .elementor-post__title a:focus-visible {
	outline: var(--focus-width, 3px) solid var(--focus, #2e3549);
	outline-offset: 2px;
}

body.search .elementor-widget-archive-posts .elementor-pagination {
	margin-top: var(--space-6, 32px);
	text-align: center;
	font-family: var(--font-display, Poppins, "Helvetica Neue", Arial, sans-serif);
	font-weight: 600;
}

body.search .elementor-widget-archive-posts .elementor-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--target-min, 44px);
	min-height: var(--target-min, 44px);
	margin: 0 2px;
	border-radius: var(--radius-pill, 999px);
	color: var(--navy, #2e3549);
	text-decoration: none;
}

body.search .elementor-widget-archive-posts .elementor-pagination a.page-numbers:hover {
	background-color: var(--navy-100, #eceef3);
}

body.search .elementor-widget-archive-posts .elementor-pagination .page-numbers.current {
	background-color: var(--navy, #2e3549);
	color: var(--on-navy, #fff);
}

body.search .elementor-widget-archive-posts .elementor-posts-nothing-found {
	padding: var(--space-5, 24px);
	border: 1px solid var(--border, #d5d9e2);
	border-radius: var(--radius-lg, 16px);
	background-color: var(--surface, #fff);
	font-family: var(--font-body, "Atkinson Hyperlegible", Arial, sans-serif);
	font-size: 18px;
	line-height: 28px;
	color: var(--ink, #231f20);
}

@media (prefers-reduced-motion: reduce) {
	body.search .elementor-widget-archive-posts .elementor-post {
		transition: none;
	}
}

.acorn-search-term {
	margin: 0;
	font-family: var(--font-body, "Atkinson Hyperlegible", Arial, sans-serif);
	font-size: 20px;
	line-height: 30px;
	color: var(--on-inverse-muted, #c9ceda);
}

.acorn-search-term strong {
	color: var(--on-inverse, #fff);
}

/* Basket coupon row */
body.woocommerce-cart .woocommerce .coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3, 12px);
}

body.woocommerce-cart .woocommerce .coupon #coupon_code {
	width: 220px;
	max-width: 100%;
}

body.woocommerce-cart .woocommerce .quantity .qty {
	width: 72px;
	text-align: center;
}

/* Header bar and icon buttons: keep their padding when a template also defines .ac-flush later in the page. */
.elementor .ac-utility.ac-flush {
	padding-block: 8px;
	padding-inline: 16px;
}

.elementor .ac-iconbtn.ac-flush {
	padding-block: 0;
	padding-inline: var(--space-3, 12px);
}

/* inline text links */
p.e-paragraph-base a:not([class]) {
	color: var(--red, #be202a);
	text-decoration: underline;
	text-underline-offset: 3px;
}

p.e-paragraph-base a:not([class]):hover {
	text-decoration-thickness: 2px;
}
