/*
Theme Name: Arosoft
Theme URI: https://arosoft.se
Author: Arosoft (Raxo AB)
Description: Lightweight block theme for arosoft.se. Core and WooCommerce blocks only, no page builder.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
Version: 0.9.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arosoft
*/

/* ------------------------------------------------------------------
   Look: warm paper, a soft painterly wash in the hero, softly framed screenshots, serif labels.
   Calm and editorial, not glossy.
   ------------------------------------------------------------------ */

:root {
	--aro-ink: var(--wp--preset--color--ink);
	--aro-paper: var(--wp--preset--color--canvas);
	--aro-shadow: 0 1px 2px rgb(22 19 28 / 6%), 0 18px 40px -22px rgb(22 19 28 / 28%);
	--aro-shadow-lift: 0 1px 2px rgb(22 19 28 / 6%), 0 26px 50px -24px rgb(22 19 28 / 34%);
	--aro-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .07 0 0 0 0 .11 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Paper grain on the page and on canvas sections */
body,
.has-canvas-background-color {
	background-image: var(--aro-grain);
}

/* Template sections sit flush; spacing is handled inside each section */
.wp-site-blocks > * { margin-block-start: 0; }

/* Wordmark: arosoft•se */
.aro-wordmark {
	font-family: var(--wp--preset--font-family--sans);
	font-weight: 700;
	letter-spacing: -0.02em;
	text-transform: lowercase;
}
.aro-wordmark a { color: inherit; text-decoration: none; }
.aro-wordmark .aro-dot { color: var(--wp--preset--color--accent); }

/* Header: transparent over the faded hero, paper when scrolling */
.aro-header {
	position: sticky; top: 0; z-index: 50;
	background-color: rgb(245 241 234 / 55%);
	backdrop-filter: saturate(140%) blur(12px);
	border-bottom-color: rgb(22 19 28 / 8%) !important;
}
body.admin-bar .aro-header { top: var(--wp-admin--admin-bar--height, 32px); }

/* Mega menu (template part "mega-plugins"): opens under the header from the "Plugins" link, wide screens only */
.aro-header > .aro-mega-wrap {
	position: absolute;
	left: 0; right: 0; top: 100%;
	max-width: none !important;
	margin: 0 !important;
	display: none;
}
.aro-mega {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	background-color: #f8f5ef;
	background-image: var(--aro-grain);
	border-bottom: 1px solid rgb(22 19 28 / 10%);
	box-shadow: 0 30px 60px -30px rgb(22 19 28 / 30%);
}
.aro-mega__inner { margin: 0 !important; }
.aro-mega .aro-label { margin: 0 0 .9rem; }
.aro-mega__subhead { margin-top: 1.6rem !important; }
.aro-mega__item { position: relative; margin: 0 -.75rem .35rem !important; padding: .55rem .75rem; border-radius: 12px; transition: background-color .15s ease; }
.aro-mega__item:hover, .aro-mega__item:focus-within { background: rgb(187 97 206 / 9%); }
.aro-mega__item > * { margin: 0 !important; }
.aro-mega__name { font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.25; }
.aro-mega__name a { color: inherit; text-decoration: none; }
.aro-mega__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.aro-mega__name a:focus-visible { outline: none; }
.aro-mega__item:has(a:focus-visible) { outline: 2px solid var(--wp--preset--color--accent-deep); outline-offset: 1px; }
.aro-mega__desc { font-size: .88rem; line-height: 1.45; color: var(--wp--preset--color--muted); }
.aro-mega__aside {
	align-self: stretch;
	padding: 1.4rem 1.5rem;
	border-radius: 16px;
	background: radial-gradient(120% 90% at 100% 0%, rgb(187 97 206 / 14%), transparent 60%), radial-gradient(120% 90% at 0% 100%, rgb(244 227 199 / 70%), transparent 60%), var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 8%);
}
.aro-mega__aside-title { font-family: var(--wp--preset--font-family--serif); font-weight: 500; font-size: 1.4rem; margin: 0 0 .5rem; }
.aro-mega__aside p { color: var(--wp--preset--color--muted); }
.aro-mega__links { line-height: 2; }
.aro-mega__links a { color: var(--wp--preset--color--accent-deep); font-weight: 600; text-decoration: none; }
.aro-mega__links a:hover { text-decoration: underline; }
@media (min-width: 960px) {
	.aro-header > .aro-mega-wrap {
		display: block;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
	}
	.aro-header.is-mega-open > .aro-mega-wrap {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity .18s ease, transform .18s ease, visibility 0s;
	}
	.aro-header.is-mega-open { background-color: #f8f5ef; }
	.aro-mega-trigger > a::after {
		content: "";
		display: inline-block;
		width: .38em; height: .38em;
		margin-left: .45em;
		border-right: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-.2em) rotate(45deg);
		transition: transform .18s ease;
	}
	.aro-header.is-mega-open .aro-mega-trigger > a::after { transform: translateY(0) rotate(225deg); }
}
/* Hero: a watercolour painting (assets/images/watercolor.svg) on paper, fading out at the bottom. */
.aro-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: -4.6rem !important;
	padding-top: calc(var(--wp--preset--spacing--50) + 4.6rem) !important;
	background:
		var(--aro-grain),
		url("assets/images/watercolor.svg?v=pastel-2") no-repeat 70% 55% / cover,
		var(--wp--preset--color--canvas);
}
.aro-hero::before {
	/* A soft veil behind the text so the heading always reads well */
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: radial-gradient(60% 70% at 18% 55%, rgb(245 241 234 / 70%) 0%, rgb(245 241 234 / 0%) 70%);
	pointer-events: none;
}
/* Fade the wash out at the bottom so it never ends in a hard edge */
.aro-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 0; right: 0; bottom: 0;
	height: 16%;
	background: var(--aro-grain), linear-gradient(var(--wp--preset--color--canvas), var(--wp--preset--color--canvas));
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 85%);
	mask-image: linear-gradient(180deg, transparent, #000 85%);
	pointer-events: none;
}

/* Label: small caps, with an optional serif-italic number ("01") in <strong> */
.aro-label,
.aro-eyebrow {
	font-family: var(--wp--preset--font-family--sans);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.aro-label strong,
.aro-eyebrow strong { color: var(--wp--preset--color--accent-deep); font-weight: 600; }
.aro-feature-row .aro-label strong {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-weight: 500;
	font-size: 1.3rem;
	letter-spacing: 0;
	text-transform: none;
	margin-right: .35rem;
}
.has-ink-background-color .aro-label,
.has-ink-background-color .aro-eyebrow { color: rgb(255 255 255 / 70%); }

/* Hand-drawn underline for one word in a heading */
.aro-scribble {
	position: relative;
	white-space: nowrap;
	font-style: italic;
	color: var(--wp--preset--color--accent-deep);
}
.aro-scribble::after {
	content: "";
	position: absolute;
	left: -0.05em; right: -0.05em; bottom: -0.12em;
	height: 0.32em;
	background: url("assets/images/scribble.svg") no-repeat center / 100% 100%;
	pointer-events: none;
}
.has-ink-background-color .aro-scribble { color: var(--wp--preset--color--accent); }

/* Highlighter stroke behind a word (format "Marker" in the editor) */
mark.aro-marker {
	background: none;
	color: inherit;
	padding: 0 .08em;
	background-image: linear-gradient(100deg, transparent 0 2%, rgb(187 97 206 / 30%) 3% 96%, transparent 98%);
	background-size: 100% 42%;
	background-position: 0 82%;
	background-repeat: no-repeat;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}


/* Text width inside wide sections */
.aro-hero h1 { max-width: 14ch; }
.aro-hero p { max-width: 46ch; }
.aro-section-title { max-width: 26ch; }
.aro-section-lead { max-width: 58ch; }
.aro-section-title,
.aro-section-lead {
	margin-left: max(0px, calc((100% - 1240px) / 2)) !important;
}

/* Framed screenshot: thin ink border, hard offset shadow (class or block style "Framed") */
.aro-frame,
.wp-block-image.is-style-aro-frame {
	margin: 0;
	border: 1px solid rgb(22 19 28 / 12%);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--aro-shadow);
}
.aro-frame img,
.wp-block-image.is-style-aro-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
}
.aro-frame figcaption {
	margin: 0;
	padding: .5rem .8rem;
	border-top: 1px solid rgb(22 19 28 / 10%);
	font-family: var(--wp--preset--font-family--sans);
	font-size: .75rem;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--base);
}

/* Hero collage: three screenshots laid on the table */
.aro-collage { position: relative; aspect-ratio: 6 / 5; margin: 1rem 0; }
.aro-collage > .aro-frame { position: absolute; aspect-ratio: 4 / 3; }
.aro-collage > .aro-frame:nth-child(1) { left: 0; top: 4%; width: 64%; transform: rotate(-1.5deg); z-index: 1; }
.aro-collage > .aro-frame:nth-child(2) { right: 0; top: 0; width: 50%; transform: rotate(1.2deg); z-index: 2; }
.aro-collage > .aro-frame:nth-child(3) { left: 20%; bottom: 0; width: 58%; transform: rotate(.4deg); z-index: 3; }

/* Feature rows */
.aro-feature-row > .wp-block-column:first-child .aro-frame { aspect-ratio: 4 / 3; }
@media (min-width: 782px) {
	.aro-feature-row.is-reversed { flex-direction: row-reverse; }
}
.aro-feature-row .aro-plugin-name {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: clamp(2.1rem, 3.4vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-top: .35rem;
}
.aro-feature-row .aro-tagline {
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--accent-deep);
	margin-top: .5rem;
}
/* Plugin grid cards: clearer names */
.aro-card h3 { font-family: var(--wp--preset--font-family--serif); font-weight: 500; font-size: 1.45rem; letter-spacing: -0.01em; }

/* Checklist */
.is-style-aro-check { list-style: none; padding-left: 0; }
.is-style-aro-check li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.is-style-aro-check li::before {
	content: "";
	position: absolute; left: 0; top: .45em;
	width: .85rem; height: .45rem;
	border-left: 2px solid var(--wp--preset--color--accent-deep);
	border-bottom: 2px solid var(--wp--preset--color--accent-deep);
	transform: rotate(-45deg);
}

/* Plain list (footer) */
.is-style-aro-plain { list-style: none; padding-left: 0; }
.is-style-aro-plain li { margin-bottom: .4rem; }

/* Cards: plugin grid, bundles */
.aro-card {
	border: 1px solid rgb(22 19 28 / 12%) !important;
	border-radius: 16px !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
.aro-card:hover { transform: translateY(-3px); box-shadow: var(--aro-shadow-lift); }
.aro-card img { border-radius: 10px; }
.aro-card h3 a { color: inherit; text-decoration: none; }
.aro-card h3 a::after { content: " →"; color: var(--wp--preset--color--accent); }

/* Buttons: ink, lift on hover */
.wp-element-button,
.wp-block-button__link {
	border: 1px solid var(--wp--preset--color--ink);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--base); }

/* Button style "Text link" */
.wp-block-button.is-style-aro-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--accent-deep);
	border-color: transparent;
	padding-left: .25em;
	padding-right: .25em;
	text-decoration: underline;
	text-underline-offset: .2em;
}
.wp-block-button.is-style-aro-link .wp-block-button__link:hover { transform: none; box-shadow: none; text-decoration: none; }

/* Section rule */
.aro-rule { border-top: 1px solid rgb(22 19 28 / 12%); }

/* Footer and dark sections */
.aro-footer a { color: inherit; text-decoration: none; }
.aro-footer a:hover { text-decoration: underline; }
.aro-footer-muted { opacity: .72; }
.aro-footer .wp-block-separator { border-color: rgb(255 255 255 / 15%); opacity: 1; }

/* Product page: head and long-form on the left, a sticky buy box on the right (one column on mobile) */
.aro-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "head" "buy" "body";
	gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--30);
}
.aro-product > * { margin-block: 0 !important; }
.aro-product__head { grid-area: head; }
.aro-product__buy { grid-area: buy; }
.aro-product__body { grid-area: body; min-width: 0; }
@media (min-width: 960px) {
	.aro-product {
		grid-template-columns: minmax(0, 1fr) 23rem;
		grid-template-areas: "head buy" "body buy";
		grid-template-rows: auto 1fr;
		column-gap: clamp(2.5rem, 5vw, 4.5rem);
		row-gap: var(--wp--preset--spacing--40);
	}
	.aro-product__buy { align-self: start; position: sticky; top: 5.5rem; }
	body.admin-bar .aro-product__buy { top: calc(5.5rem + var(--wp-admin--admin-bar--height, 32px)); }
}
.aro-product__icon { flex: 0 0 auto; margin: 0; }
.aro-product__icon img { border-radius: 18px; box-shadow: 0 0 0 1px rgb(22 19 28 / 10%); background: #fff; }
.aro-product__title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: clamp(2.2rem, 4.2vw, 3.4rem);
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0;
}
.aro-product__lead { margin-top: var(--wp--preset--spacing--30); }
.aro-product__lead p { font-size: var(--wp--preset--font-size--large); line-height: 1.6; color: var(--wp--preset--color--muted); max-width: 60ch; margin: 0; }

/* Buy box */
.aro-buy-card {
	padding: clamp(1.1rem, 2vw, 1.6rem);
	border: 1px solid rgb(22 19 28 / 12%);
	border-radius: 18px;
	background: var(--wp--preset--color--base);
	box-shadow: var(--aro-shadow);
}
.aro-buy-card > * { margin-block: 0; }
.aro-buy-card__price { font-family: var(--wp--preset--font-family--serif); font-size: 1.6rem; margin-bottom: 1rem !important; }
.aro-buy-card__price small, .aro-buy-card__price .subscription-details { font-family: var(--wp--preset--font-family--sans); font-size: .9rem; color: var(--wp--preset--color--muted); }
.aro-buy-card .variations_form .single_variation_wrap .woocommerce-variation-description,
.aro-buy-card .variations_form .reset_variations { display: none !important; }
.aro-buy-card .woocommerce-variation-price { margin-bottom: .75rem; font-weight: 600; }
.aro-buy-card .woocommerce-variation-price small { font-weight: 400; color: var(--wp--preset--color--muted); }
.aro-buy-card .woocommerce-variation-add-to-cart,
.aro-buy-card form.cart:not(.variations_form) { display: flex !important; gap: .6rem; align-items: stretch; }
.aro-buy-card .quantity:not(:has(input:not([type=hidden]))) { display: none !important; }
.aro-buy-card .quantity input { font: inherit; height: 100%; padding: .55rem; border: 1px solid rgb(22 19 28 / 30%); border-radius: 999px; width: 4.25rem; text-align: center; }
.aro-buy-card .single_add_to_cart_button {
	flex: 1;
	background: var(--wp--preset--color--ink) !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: .85em 1.6em !important;
	font-weight: 600;
}
.aro-buy-card .single_add_to_cart_button:hover { background: var(--wp--preset--color--accent-deep) !important; border-color: var(--wp--preset--color--accent-deep) !important; }

/* Long-form description and changes */
.aro-product-description { margin-top: var(--wp--preset--spacing--40); }
.aro-product-description > .wp-block-post-content > * { max-width: 46rem; }
.aro-product-description > .wp-block-post-content > .alignwide,
.aro-product-description > .wp-block-post-content > .aro-product-section { max-width: none; }
.aro-product-description h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: var(--wp--preset--spacing--40); }
.aro-product-description img { border-radius: 10px; max-width: 100%; height: auto; }
.aro-product-section { margin-top: var(--wp--preset--spacing--40); padding-top: var(--wp--preset--spacing--30); border-top: 1px solid rgb(22 19 28 / 12%); }
.aro-product-section .wp-block-columns { gap: var(--wp--preset--spacing--30); }
.aro-product-section h3 { font-family: var(--wp--preset--font-family--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--accent-deep); }
.aro-steps { counter-reset: aro-step; }
.aro-steps > .wp-block-column { counter-increment: aro-step; }
.aro-steps > .wp-block-column::before {
	content: counter(aro-step, decimal-leading-zero);
	display: block;
	font-family: var(--wp--preset--font-family--serif);
	font-style: italic;
	font-size: 1.6rem;
	color: var(--wp--preset--color--accent-deep);
	margin-bottom: .2rem;
}
.aro-faq .wp-block-details { border-bottom: 1px solid rgb(22 19 28 / 12%); padding: .9rem 0; margin: 0; }
.aro-faq .wp-block-details summary { font-weight: 600; cursor: pointer; }
.aro-faq .wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }
.aro-product__changes { margin-top: var(--wp--preset--spacing--50); max-width: 46rem; }
.aro-product__changes:not(:has(.aro-changes)) { display: none; }
/* Checkout, cart and order confirmation (WooCommerce blocks), in the same language as the buy box */
.aro-checkout-header { border-bottom: 1px solid rgb(22 19 28 / 8%); }
.aro-checkout-secure { margin: 0; display: flex; gap: 1.25rem; align-items: center; color: var(--wp--preset--color--muted); }
.aro-checkout-secure a { color: inherit; }
.aro-lock { display: inline-flex; align-items: center; gap: .4rem; }
.aro-lock::before {
	content: "";
	width: .9rem; height: .9rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1Zm2 0h6V7a3 3 0 0 0-6 0v3Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1Zm2 0h6V7a3 3 0 0 0-6 0v3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.aro-checkout-footer { border-top: 1px solid rgb(22 19 28 / 8%); }
@media (max-width: 600px) { .aro-checkout-secure a { display: none; } }
.aro-checkout-footer p { margin: .25rem 0; }
.aro-checkout-footer a { color: inherit; }

.aro-checkout .aro-label { margin-bottom: .2rem; }
.aro-checkout-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	letter-spacing: -0.02em;
	margin: 0;
}
.aro-checkout .aro-label, .aro-checkout-title, .aro-checkout-lead { margin-left: 0 !important; }
.aro-checkout-lead { color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--large); margin-top: .5rem; max-width: 52ch; }
.aro-checkout .wp-block-woocommerce-checkout,
.aro-checkout .wp-block-woocommerce-cart { margin-top: var(--wp--preset--spacing--30); }

/* Steps as numbered cards */
.wc-block-checkout__form { counter-reset: aro-step; }
.wc-block-checkout .wc-block-components-checkout-step {
	margin: 0 0 1rem !important;
	padding: clamp(1.1rem, 2vw, 1.6rem) !important;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%);
	border-radius: 18px;
}
.wc-block-checkout .wc-block-components-checkout-step::before,
.wc-block-checkout .wc-block-components-checkout-step::after { display: none !important; }
.wc-block-checkout .wc-block-components-checkout-step__container::after { display: none !important; }
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
}
.wc-block-checkout fieldset.wc-block-components-checkout-step { counter-increment: aro-step; }
.wc-block-checkout fieldset.wc-block-components-checkout-step .wc-block-components-checkout-step__title::before {
	content: counter(aro-step, decimal-leading-zero);
	font-style: italic;
	color: var(--wp--preset--color--accent-deep);
	margin-right: .6rem;
}
.wc-block-checkout .wc-block-components-checkout-step__heading-content a { color: var(--wp--preset--color--accent-deep); }

/* Fields */
.wc-block-components-form .wc-block-components-text-input input,
.wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-totals-coupon input {
	border: 1px solid rgb(22 19 28 / 18%) !important;
	border-radius: 12px !important;
	background-color: #fff !important;
	font-family: var(--wp--preset--font-family--sans) !important;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wc-block-components-text-input input:focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus {
	border-color: var(--wp--preset--color--accent-deep) !important;
	box-shadow: 0 0 0 3px rgb(126 46 154 / 14%) !important;
	outline: none !important;
}
.wc-block-components-text-input label,
.wc-blocks-components-select__label { color: var(--wp--preset--color--muted) !important; }
.wc-block-components-validation-error p { color: #b3261e; }

/* Payment methods */
.wc-block-checkout .wc-block-components-radio-control-accordion-option {
	border-radius: 14px;
	box-shadow: inset 0 0 0 1px rgb(22 19 28 / 14%) !important;
	margin-bottom: .6rem;
	overflow: hidden;
}
.wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--accent-deep) !important;
	border-radius: 14px;
}
.wc-block-checkout .wc-block-components-radio-control--highlight-checked::after { display: none !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--accent-deep) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--accent-deep) !important; }
.wc-block-checkout__terms { font-size: .88rem; color: var(--wp--preset--color--muted); border-top: 0 !important; padding-top: 0 !important; }
.wc-block-checkout__terms a { color: var(--wp--preset--color--accent-deep); }

/* Place order and cart buttons */
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
	background: var(--wp--preset--color--ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	min-height: 3.4rem;
	font-weight: 600 !important;
	font-size: 1.05rem !important;
	transition: background-color .2s ease;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover { background: var(--wp--preset--color--accent-deep) !important; }
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { color: var(--wp--preset--color--muted); }

/* Express checkout (PayPal button etc.) as a card like the steps, with a small label */
.wc-block-components-express-payment--checkout,
.wc-block-components-express-payment--cart {
	margin: 0 0 1rem !important;
	padding: clamp(1.1rem, 2vw, 1.6rem) !important;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%) !important;
	border-radius: 18px;
}
.wc-block-components-express-payment .wc-block-components-express-payment__title-container { display: block !important; position: static !important; top: auto !important; left: auto !important; width: auto !important; margin: 0 0 .85rem !important; }
.wc-block-components-express-payment .wc-block-components-express-payment__title-container::before,
.wc-block-components-express-payment .wc-block-components-express-payment__title-container::after { display: none !important; }
.wc-block-components-express-payment .wc-block-components-express-payment__title {
	transform: none !important;
	padding: 0 !important;
	background: none !important;
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: .75rem !important;
	font-weight: 600 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.wc-block-components-express-payment .wc-block-components-express-payment__content { border: 0 !important; padding: 0 !important; }
.wc-block-components-express-payment .wc-block-components-express-payment__content::after { display: none !important; }
.wc-block-components-express-payment-continue-rule {
	margin: .25rem 0 1rem !important;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .85rem;
	color: var(--wp--preset--color--muted);
	text-transform: none;
}
.wc-block-components-express-payment-continue-rule::before,
.wc-block-components-express-payment-continue-rule::after { border-color: rgb(22 19 28 / 12%) !important; }

/* reCAPTCHA (PayPal fraud protection): keep Google's badge visible, but bottom left and folded, so it never
   sits on the Help button */
.grecaptcha-badge {
	left: 0 !important;
	right: auto !important;
	width: 70px !important;
	overflow: hidden !important;
	transition: width .3s ease !important;
	z-index: 40 !important;
}
.grecaptcha-badge:hover, .grecaptcha-badge:focus-within { width: 256px !important; }
/* In the checkout the footer carries Google's reCAPTCHA notice instead (allowed by Google), so the badge cannot
   cover the form on small screens. */
body.woocommerce-checkout .grecaptcha-badge { visibility: hidden !important; }
.aro-recaptcha-note a { color: inherit; }

/* Order summary as a receipt card */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
.wc-block-cart .wc-block-cart__totals-title + * {
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 12%) !important;
	border-radius: 18px;
	box-shadow: var(--aro-shadow);
	overflow: hidden;
}
.wc-block-components-checkout-order-summary__title-text,
.wc-block-cart__totals-title {
	font-family: var(--wp--preset--font-family--serif) !important;
	font-weight: 500 !important;
	font-size: 1.35rem !important;
	text-transform: none !important;
	letter-spacing: -0.01em;
}
/* No product images in cart and checkout: the plugin name says enough. */
.wc-block-components-order-summary-item__image,
.wc-block-cart-item__image,
.wc-block-cart-items__header-image { display: none !important; }
.wc-block-components-order-summary-item { padding-left: 0 !important; }
.wc-block-components-order-summary-item__description { padding-left: 0 !important; }
.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 1fr auto !important; }
.wc-block-components-order-summary-item__quantity { display: none !important; }
.wc-block-components-product-name { font-weight: 600; color: inherit; text-decoration: none; }
.wc-block-components-totals-wrapper { border-color: rgb(22 19 28 / 8%) !important; }
.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block { padding: .4rem 1.25rem 1rem; }
.wc-block-cart__sidebar .wc-block-cart__totals-title { padding: .9rem 0 .4rem !important; margin: 0 !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.35rem;
	font-weight: 500;
}
.wc-block-components-totals-coupon .wc-block-components-panel__button { font-size: .92rem; color: var(--wp--preset--color--muted); }

/* Notices */
.wc-block-components-notice-banner { border-radius: 12px !important; border: 1px solid rgb(22 19 28 / 12%) !important; background: var(--wp--preset--color--base) !important; font-size: .95rem; box-shadow: none !important; }
.wc-block-components-notice-banner.is-error { border-color: rgb(179 38 30 / 40%) !important; }
/* WooCommerce moves focus to new notices for screen readers; the notice itself is not interactive. */
.wc-block-components-notice-banner:focus { outline: none !important; }
.aro-checkout .wc-block-store-notices, .aro-checkout .woocommerce-notices-wrapper { max-width: 1180px; margin-left: auto !important; margin-right: auto !important; }

/* Cart */
.wc-block-cart .wc-block-cart-items { background: var(--wp--preset--color--base); border-radius: 18px; border: 1px solid rgb(22 19 28 / 10%); border-collapse: separate; overflow: hidden; }
.wc-block-cart .wc-block-cart-items th { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.wc-block-cart .wc-block-cart-items td, .wc-block-cart .wc-block-cart-items th { padding-left: 1.2rem !important; padding-right: 1.2rem !important; }

/* Order confirmation */
.aro-order-confirmation .wc-block-order-confirmation-status { font-family: var(--wp--preset--font-family--serif); }
.aro-order-confirmation .wc-block-order-confirmation-summary,
.aro-order-confirmation .wc-block-order-confirmation-totals { background: var(--wp--preset--color--base); border-radius: 18px; border: 1px solid rgb(22 19 28 / 10%); padding: 1.2rem 1.4rem; }

/* My Account: one heading per view, the customer top right, a compact pill menu, then the view as stacked
   sections with small labels (the account is still WooCommerce's classic templates) */
.aro-account-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: clamp(2.2rem, 4vw, 3.2rem);
	letter-spacing: -0.02em;
	margin: 0 0 var(--wp--preset--spacing--30);
}
.aro-account .woocommerce { display: block; }
.aro-account .woocommerce::before, .aro-account .woocommerce::after { display: none; }
.aro-account .woocommerce-MyAccount-navigation,
.aro-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; margin: 0 !important; min-width: 0; }
.aro-account .woocommerce-MyAccount-content { padding-top: var(--wp--preset--spacing--40); }
.aro-account .woocommerce-MyAccount-content > :first-child { margin-top: 0; }
.aro-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper:empty { display: none; }
.aro-account .woocommerce-MyAccount-content .wc-block-components-notice-banner { margin: 0 0 1.25rem; }
.aro-account .woocommerce .button { text-decoration: none !important; }

/* Head: breadcrumb, view heading and lead on the left, the customer on the right */
.aro-acc-head { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: flex-end; justify-content: space-between; }
.aro-acc-head__text { min-width: 0; }
.aro-acc-crumbs { display: flex; gap: .45rem; font-size: .88rem; color: var(--wp--preset--color--muted); margin-bottom: .35rem; }
.aro-acc-crumbs a { color: inherit; text-decoration: none; }
.aro-acc-crumbs a:hover { color: var(--wp--preset--color--accent-deep); }
.aro-acc-title {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: clamp(2.1rem, 4vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0;
}
.aro-acc-lead { margin: .45rem 0 0; color: var(--wp--preset--color--muted); font-size: 1.05rem; }
.aro-acc-user {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .45rem .5rem .45rem .45rem;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%);
	border-radius: 999px;
	max-width: 100%;
}
.aro-acc-avatar {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--lilac);
	color: var(--wp--preset--color--accent-deep);
	font-weight: 600;
	font-size: .9rem;
	letter-spacing: .02em;
}
.aro-acc-user__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.aro-acc-user__text strong { font-weight: 600; font-size: .95rem; }
.aro-acc-user__text span { color: var(--wp--preset--color--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.aro-acc-logout {
	margin-left: .25rem;
	padding: .4rem .85rem;
	border-radius: 999px;
	border: 1px solid rgb(22 19 28 / 16%);
	color: var(--wp--preset--color--ink);
	font-size: .85rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.aro-acc-logout:hover { border-color: var(--wp--preset--color--ink); }

/* Menu: one rounded bar of pills */
.aro-account .woocommerce-MyAccount-navigation { margin-top: var(--wp--preset--spacing--30) !important; }
.aro-account .woocommerce-MyAccount-navigation ul {
	display: inline-flex;
	max-width: 100%;
	gap: .2rem;
	margin: 0;
	padding: .3rem;
	list-style: none;
	background: rgb(22 19 28 / 5%);
	border-radius: 999px;
	overflow-x: auto;
	scrollbar-width: none;
}
.aro-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.aro-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; flex: 0 0 auto; }
.aro-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: .5rem 1rem;
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
	font-weight: 500;
	font-size: .93rem;
	white-space: nowrap;
	text-decoration: none !important;
	transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.aro-account .woocommerce-MyAccount-navigation li a:hover { color: var(--wp--preset--color--ink); }
.aro-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	box-shadow: 0 1px 2px rgb(22 19 28 / 10%), 0 0 0 1px rgb(22 19 28 / 6%);
}
.aro-account .woocommerce-MyAccount-navigation li a:focus-visible { outline: 2px solid var(--wp--preset--color--accent-deep); outline-offset: 1px; }

/* Sections: a small label row (label left, action right), then the content */
.aro-acc-block { margin-bottom: var(--wp--preset--spacing--40); }
.aro-acc-block__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .8rem; }
.aro-acc-block__head a { font-size: .9rem; font-weight: 500; color: var(--wp--preset--color--accent-deep); text-decoration: none; }
.aro-acc-block__head a:hover { text-decoration: underline; }
.aro-account .aro-acc-label,
.aro-account .woocommerce-MyAccount-content h2:not(.aro-plugin__name),
.aro-account .woocommerce-MyAccount-content h3:not(.aro-plugin__name),
.aro-account .woocommerce-MyAccount-content legend {
	margin: var(--wp--preset--spacing--40) 0 .8rem;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.aro-account .woocommerce-MyAccount-content .aro-acc-block__head .aro-acc-label { margin: 0; }
/* The edit-address form repeats the view heading ("Billing address"); the page heading already says it. */
.aro-account .woocommerce-MyAccount-content > form > h2:first-child,
.aro-account .woocommerce-MyAccount-content > form > h3:first-child { display: none; }
.aro-muted { color: var(--wp--preset--color--muted); }
.aro-mono { font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace); font-size: .92em; letter-spacing: .02em; }

/* Status pills */
.aro-pill {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .15rem .6rem;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .01em;
	white-space: nowrap;
	vertical-align: middle;
	background: rgb(22 19 28 / 6%);
	color: var(--wp--preset--color--muted);
}
.aro-pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.aro-pill.is-ok { background: #e6f4ec; color: #17734a; }
.aro-pill.is-warn { background: #fbf0d9; color: #8a5a00; }

/* Buttons */
.aro-acc-btn {
	display: inline-flex;
	align-items: baseline;
	gap: .45rem;
	padding: .6rem 1.15rem;
	border-radius: 999px;
	background: var(--wp--preset--color--ink);
	color: #fff !important;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .15s ease;
}
.aro-acc-btn:hover { background: var(--wp--preset--color--accent-deep); }
.aro-acc-btn small { font-weight: 500; font-size: .8rem; opacity: .75; }

/* Plugins on the overview: one row per licence */
.aro-plugin {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.15rem 1.35rem;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%);
	border-radius: 18px;
}
.aro-plugin + .aro-plugin { margin-top: .75rem; }
.aro-plugin__info { min-width: 0; flex: 1 1 20rem; }
.aro-account .aro-plugin__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem .7rem;
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 500;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--wp--preset--color--ink);
}
.aro-plugin__meta { margin: .3rem 0 0; color: var(--wp--preset--color--muted); font-size: .92rem; }
.aro-plugin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; }
.aro-plugin__links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .9rem; }
.aro-plugin__links a { color: var(--wp--preset--color--ink); font-weight: 500; text-decoration: none; }
.aro-plugin__links a:hover { color: var(--wp--preset--color--accent-deep); text-decoration: underline; }
.aro-acc-empty { padding: 1.4rem; border: 1px dashed rgb(22 19 28 / 20%); border-radius: 18px; }
.aro-acc-empty p { margin: 0 0 .9rem; color: var(--wp--preset--color--muted); }

/* Billing and payment panels */
.aro-acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: var(--wp--preset--spacing--40); }
@media (min-width: 800px) { .aro-acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aro-acc-panel { padding: 1.15rem 1.35rem; background: var(--wp--preset--color--base); border: 1px solid rgb(22 19 28 / 10%); border-radius: 18px; }
.aro-acc-dl { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .55rem 1rem; margin: 0; font-size: .95rem; }
.aro-acc-dl dt { color: var(--wp--preset--color--muted); }
.aro-acc-dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.aro-acc-card-line { margin: 0 0 .3rem; font-weight: 500; }
.aro-acc-panel p.aro-muted { margin: 0; font-size: .92rem; }

/* Receipts list */
.aro-receipts { list-style: none; margin: 0; padding: 0; background: var(--wp--preset--color--base); border: 1px solid rgb(22 19 28 / 10%); border-radius: 18px; overflow: hidden; }
.aro-receipts li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 4.5rem; align-items: center; gap: .5rem 1.25rem; padding: .85rem 1.35rem; }
.aro-receipts li + li { border-top: 1px solid rgb(22 19 28 / 7%); }
.aro-receipts__main { display: flex; flex-direction: column; min-width: 0; color: var(--wp--preset--color--ink); text-decoration: none; }
.aro-receipts__main:hover .aro-receipts__what { color: var(--wp--preset--color--accent-deep); }
.aro-receipts__what { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aro-receipts__when { color: var(--wp--preset--color--muted); font-size: .85rem; }
.aro-receipts__total { font-variant-numeric: tabular-nums; }
.aro-receipts__act { text-align: right; font-size: .9rem; }
.aro-receipts__act a { color: var(--wp--preset--color--accent-deep); font-weight: 600; text-decoration: none; }
@media (max-width: 640px) {
	.aro-receipts li { grid-template-columns: minmax(0, 1fr) auto; }
	.aro-receipts .aro-pill { justify-self: start; }
}
.aro-acc-help { color: var(--wp--preset--color--muted); font-size: .95rem; }
.aro-acc-help a, .aro-account .woocommerce-MyAccount-content p a { color: var(--wp--preset--color--accent-deep); }

@media (max-width: 700px) {
	.aro-acc-user { width: 100%; }
	.aro-acc-logout { margin-left: auto; }
}

/* Tables as cards */
.aro-account .woocommerce table.shop_table,
.aro-account .woocommerce table.woocommerce-table {
	width: 100%;
	margin: 0 0 var(--wp--preset--spacing--30);
	border-collapse: separate;
	border-spacing: 0;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%) !important;
	border-radius: 18px;
	overflow: hidden;
	font-size: .95rem;
}
.aro-account .woocommerce table.shop_table th,
.aro-account .woocommerce table.shop_table td {
	padding: .8rem 1.1rem;
	border: 0;
	border-top: 1px solid rgb(22 19 28 / 7%);
	vertical-align: middle;
	text-align: left;
	line-height: 1.45;
}
.aro-account .woocommerce table.shop_table thead th {
	border-top: 0;
	background: rgb(22 19 28 / 2.5%);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.aro-account .woocommerce table.shop_table > tbody:first-child > tr:first-child > *,
.aro-account .woocommerce table.shop_table > tr:first-child > * { border-top: 0; }
.aro-account .woocommerce table.shop_table tfoot th,
.aro-account .woocommerce table.shop_table tfoot td { background: rgb(22 19 28 / 2.5%); }
.aro-account .woocommerce table.shop_table tfoot tr:last-child:not(:has(.button)) > * { font-family: var(--wp--preset--font-family--serif); font-size: 1.15rem; font-weight: 500; }
.aro-account .woocommerce table.shop_table a:not(.button) { color: var(--wp--preset--color--accent-deep); font-weight: 600; text-decoration: none; }
.aro-account .woocommerce table.shop_table a:not(.button):hover { text-decoration: underline; }
.aro-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-actions,
.aro-account .woocommerce table.shop_table .woocommerce-orders-table__header-order-actions,
.aro-account .woocommerce table.shop_table .subscription-actions,
.aro-account .woocommerce table.shop_table .order-actions,
.aro-account .woocommerce table.shop_table .download-file { text-align: right; white-space: nowrap; }
.aro-account .woocommerce table.shop_table [class*="-order-date"],
.aro-account .woocommerce table.shop_table [class*="-subscription-next-payment"],
.aro-account .woocommerce table.shop_table .order-date { white-space: nowrap; }
.aro-account .woocommerce-order-downloads:not(:has(tbody tr)) { display: none; }
.aro-account .order-again .button { color: #fff !important; background: var(--wp--preset--color--ink) !important; border: 0 !important; padding: .7em 1.4em !important; }
.aro-account .order-again .button:hover { background: var(--wp--preset--color--accent-deep) !important; }
.aro-account .woocommerce table.subscription_details td:first-child,
.aro-account .woocommerce table.woocommerce-table--subscription-details td:first-child { color: var(--wp--preset--color--muted); width: 40%; }
.aro-account .woocommerce table.shop_table .product-quantity { font-weight: 400; color: var(--wp--preset--color--muted); }

/* Status: a coloured dot before the text */
.aro-account .woocommerce table [class*="__cell-order-status"],
.aro-account .woocommerce table [class*="__cell-subscription-status"] { --aro-status: #8a8494; white-space: nowrap; }
@media (min-width: 769px) {
	.aro-account .woocommerce table [class*="__cell-order-status"],
	.aro-account .woocommerce table [class*="__cell-subscription-status"] {
		padding-left: 2rem !important;
		background: radial-gradient(circle, var(--aro-status) 0 .25rem, transparent .28rem) no-repeat 1.05rem center / .6rem .6rem;
	}
}
.aro-account .woocommerce table [class*="--status-completed"] [class*="-status"],
.aro-account .woocommerce table [class*="--status-active"] [class*="-status"] { --aro-status: #1f8a55; }
.aro-account .woocommerce table [class*="--status-processing"] [class*="-status"] { --aro-status: #2f6fd0; }
.aro-account .woocommerce table [class*="--status-pending"] [class*="-status"],
.aro-account .woocommerce table [class*="--status-on-hold"] [class*="-status"] { --aro-status: #d18a00; }
.aro-account .woocommerce table [class*="--status-failed"] [class*="-status"] { --aro-status: #c4362b; }

/* Buttons: small pills in tables, ink pills elsewhere */
.aro-account .woocommerce .button,
.aro-account .woocommerce button[type="submit"] {
	border-radius: 999px !important;
	font-weight: 600;
}
.aro-account .woocommerce table.shop_table .button {
	display: inline-flex;
	align-items: center;
	min-height: 0;
	margin: .15rem 0 .15rem .3rem !important;
	padding: .32rem .85rem !important;
	font-size: .84rem !important;
	line-height: 1.4;
	background: transparent !important;
	color: var(--wp--preset--color--ink) !important;
	border: 1px solid rgb(22 19 28 / 22%) !important;
	box-shadow: none !important;
}
.aro-account .woocommerce table.shop_table .button:hover { border-color: var(--wp--preset--color--ink) !important; background: var(--wp--preset--color--ink) !important; color: #fff !important; }
.aro-account .woocommerce table.shop_table .button.pay,
.aro-account .woocommerce table.shop_table .woocommerce-MyAccount-downloads-file { background: var(--wp--preset--color--ink) !important; color: #fff !important; border-color: var(--wp--preset--color--ink) !important; }
.aro-account .woocommerce table.shop_table .button.pay:hover,
.aro-account .woocommerce table.shop_table .woocommerce-MyAccount-downloads-file:hover { background: var(--wp--preset--color--accent-deep) !important; border-color: var(--wp--preset--color--accent-deep) !important; }
.aro-account .woocommerce table.shop_table .button.cancel { color: var(--wp--preset--color--muted) !important; }
.aro-account .woocommerce table.shop_table .button.cancel:hover { color: #fff !important; background: #c4362b !important; border-color: #c4362b !important; }
.aro-account .woocommerce-pagination { display: flex; gap: .5rem; justify-content: flex-end; }
@media (max-width: 768px) {
	.aro-account .woocommerce table.shop_table_responsive tbody tr td,
	.aro-account .woocommerce table.shop_table_responsive tbody tr th { background: transparent !important; border-top: 0; padding: .3rem 1.1rem; }
	.aro-account .woocommerce table.shop_table_responsive tbody th { display: block; padding-top: .9rem; font-size: 1.05rem; text-align: left; }
	.aro-account .woocommerce table.shop_table_responsive tbody th::before { display: none; }
	.aro-account .woocommerce table.shop_table_responsive tbody tr { display: block; padding-bottom: .6rem; }
	.aro-account .woocommerce table.shop_table_responsive tbody tr + tr { border-top: 1px solid rgb(22 19 28 / 10%); }
	.aro-account .woocommerce table.shop_table_responsive tbody td::before { font-weight: 500; color: var(--wp--preset--color--muted); }
	.aro-account .woocommerce table.shop_table_responsive tbody td:last-child:not([data-title]) { padding-top: .5rem; }
}

/* Addresses and customer details */
.aro-account .woocommerce-Addresses,
.aro-account .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: var(--wp--preset--spacing--20); }
.aro-account .woocommerce-Addresses::before, .aro-account .woocommerce-Addresses::after,
.aro-account .woocommerce-customer-details .woocommerce-columns::before, .aro-account .woocommerce-customer-details .woocommerce-columns::after { display: none; }
.aro-account .woocommerce-Addresses .woocommerce-Address,
.aro-account .woocommerce-customer-details .woocommerce-column { float: none; width: auto; max-width: none; padding: 0; margin: 0; }
.aro-account .woocommerce-Address,
.aro-account .woocommerce-customer-details address {
	padding: 1.2rem 1.3rem;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%) !important;
	border-radius: 18px;
}
.aro-account .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.aro-account .woocommerce-Address-title h2,
.aro-account .woocommerce-Address-title h3 { margin: 0 !important; font-size: 1.2rem !important; }
.aro-account .woocommerce-Address-title a.edit { float: none; font-size: .9rem; font-weight: 600; color: var(--wp--preset--color--accent-deep); text-decoration: none; }
.aro-account .woocommerce-Address-title a.edit:hover { text-decoration: underline; }
.aro-account address { font-style: normal; line-height: 1.7; color: var(--wp--preset--color--ink); }
.aro-account address strong { font-weight: 500; color: var(--wp--preset--color--muted); }
.aro-account address p { margin: .4rem 0 0; }
.aro-account .woocommerce-customer-details--email,
.aro-account .woocommerce-customer-details--phone { padding-left: 0 !important; color: var(--wp--preset--color--muted); }
.aro-account .woocommerce-customer-details--email::before,
.aro-account .woocommerce-customer-details--phone::before { display: none !important; }
.aro-account .wc-block-components-additional-fields-list { margin: .4rem 0 0; }
.aro-account .wc-block-components-additional-fields-list dt { color: var(--wp--preset--color--muted); font-weight: 500; }
.aro-account .wc-block-components-additional-fields-list dd { margin: 0; }

/* Forms: edit address, account details, add payment method */
.aro-account .woocommerce-MyAccount-content form:not(.checkout_coupon) {
	max-width: 46rem;
	padding: clamp(1.1rem, 2vw, 1.6rem);
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%);
	border-radius: 18px;
}
.aro-account .woocommerce-MyAccount-content form h2,
.aro-account .woocommerce-MyAccount-content form h3 { margin-top: 0; }
.aro-account .woocommerce form .form-row { padding: 0; margin: 0 0 1rem; }
.aro-account .woocommerce form .form-row label { font-size: .9rem; color: var(--wp--preset--color--muted); margin-bottom: .3rem; line-height: 1.4; }
.aro-account .woocommerce form .form-row .required { color: var(--wp--preset--color--accent-deep); text-decoration: none; }
.aro-account .woocommerce form .form-row input.input-text,
.aro-account .woocommerce form .form-row textarea,
.aro-account .woocommerce form .form-row select,
.aro-account .select2-container--default .select2-selection--single {
	width: 100%;
	min-height: 2.9rem;
	padding: .6rem .85rem;
	border: 1px solid rgb(22 19 28 / 18%);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	color: var(--wp--preset--color--ink);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.aro-account .select2-container--default .select2-selection--single { display: flex !important; align-items: center; height: auto !important; padding: 0 2.2rem 0 .85rem !important; }
.aro-account .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.5 !important; padding: 0 !important; font-size: 1rem; color: var(--wp--preset--color--ink); }
.aro-account .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; right: .5rem; }
.aro-account .woocommerce form .form-row input.input-text:focus,
.aro-account .woocommerce form .form-row textarea:focus,
.aro-account .woocommerce form .form-row select:focus,
.aro-account .select2-container--focus .select2-selection--single {
	border-color: var(--wp--preset--color--accent-deep);
	box-shadow: 0 0 0 3px rgb(126 46 154 / 14%);
	outline: none;
}
.aro-account .woocommerce form .form-row .description,
.aro-account .woocommerce form .form-row em,
.aro-account #account_display_name_description { display: block; margin-top: .3rem; font-size: .85rem; font-style: normal; color: var(--wp--preset--color--muted); }
.aro-account .woocommerce form fieldset { margin: var(--wp--preset--spacing--20) 0; padding: 1.1rem 1.2rem .2rem; border: 1px solid rgb(22 19 28 / 10%); border-radius: 14px; }
.aro-account .woocommerce form fieldset legend { margin: 0; padding: 0 .4rem; font-size: 1.1rem; }
.aro-account .woocommerce .woocommerce-address-fields__field-wrapper,
.aro-account .woocommerce .woocommerce-EditAccountForm { display: block; }
@media (min-width: 700px) {
	.aro-account .woocommerce form .form-row-first,
	.aro-account .woocommerce form .form-row-last { width: calc(50% - .5rem); }
}
.aro-account .woocommerce form label.checkbox,
.aro-account .woocommerce form .woocommerce-form__label-for-checkbox { display: block; position: relative; padding-left: 1.7rem; color: var(--wp--preset--color--ink); line-height: 1.5; }
.aro-account .woocommerce form label.checkbox input[type="checkbox"],
.aro-account .woocommerce form .woocommerce-form__label-for-checkbox input[type="checkbox"] { position: absolute; left: 0; top: .2rem; margin: 0; }
.aro-account .woocommerce form label.checkbox .optional { display: none; }
.aro-account .woocommerce form input[type="checkbox"] { accent-color: var(--wp--preset--color--accent-deep); }
.aro-account .woocommerce-MyAccount-content form .button[type="submit"],
.aro-account .woocommerce-MyAccount-content form button[type="submit"],
.aro-account .woocommerce-MyAccount-content > .button,
.aro-account .woocommerce-MyAccount-content > p > .button {
	padding: .8em 1.6em !important;
	background: var(--wp--preset--color--ink) !important;
	color: #fff !important;
	border: 0 !important;
}
.aro-account .woocommerce-MyAccount-content form .button[type="submit"]:hover,
.aro-account .woocommerce-MyAccount-content form button[type="submit"]:hover,
.aro-account .woocommerce-MyAccount-content > .button:hover,
.aro-account .woocommerce-MyAccount-content > p > .button:hover { background: var(--wp--preset--color--accent-deep) !important; }

/* Logged out: login form as a card */
.aro-account .woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) { max-width: 30rem; margin-left: 0 !important; }
.aro-account .woocommerce:not(:has(> .woocommerce-MyAccount-navigation)) > h2 { display: none; }
.aro-account .woocommerce-form-login,
.aro-account .woocommerce-form-register,
.aro-account .woocommerce-ResetPassword {
	margin: 0 !important;
	padding: clamp(1.2rem, 2.5vw, 1.8rem) !important;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 10%) !important;
	border-radius: 18px !important;
	box-shadow: var(--aro-shadow);
}
.aro-account .woocommerce-form-login .form-row { margin-bottom: 1rem; }
.aro-account .woocommerce-form-login .woocommerce-form-login__submit { width: 100%; margin-top: .6rem; padding: .85em 1.6em !important; background: var(--wp--preset--color--ink) !important; color: #fff !important; border: 0 !important; }
.aro-account .woocommerce-form-login .woocommerce-form-login__submit:hover { background: var(--wp--preset--color--accent-deep) !important; }
.aro-account .woocommerce-LostPassword a { color: var(--wp--preset--color--accent-deep); font-size: .92rem; }
.aro-account .woocommerce-form-login input.input-text { width: 100%; min-height: 2.9rem; padding: .6rem .85rem; border: 1px solid rgb(22 19 28 / 18%); border-radius: 12px; background: #fff; font: inherit; }
.aro-account .woocommerce-form-login input.input-text:focus { border-color: var(--wp--preset--color--accent-deep); box-shadow: 0 0 0 3px rgb(126 46 154 / 14%); outline: none; }

/* Classic notices inside the account (empty lists, saved messages) */
.aro-account .woocommerce-message,
.aro-account .woocommerce-info,
.aro-account .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin: 0 0 1rem;
	padding: 1rem 1.2rem;
	background: var(--wp--preset--color--base);
	border: 1px solid rgb(22 19 28 / 12%);
	border-radius: 14px;
	color: var(--wp--preset--color--ink);
	list-style: none;
}
.aro-account .woocommerce-message::before,
.aro-account .woocommerce-info::before,
.aro-account .woocommerce-error::before { display: none; }
.aro-account .woocommerce-message .button,
.aro-account .woocommerce-info .button { order: 2; padding: .45rem 1rem !important; font-size: .88rem; background: var(--wp--preset--color--ink) !important; color: #fff !important; border: 0 !important; }
@media (max-width: 781px) {
	.aro-collage { aspect-ratio: 5 / 4; }
	.aro-hero::before { background: linear-gradient(180deg, rgb(245 241 234 / 35%) 0%, rgb(245 241 234 / 72%) 25%, rgb(245 241 234 / 55%) 60%, rgb(245 241 234 / 0%) 85%); }
}
@media (prefers-reduced-motion: reduce) {
	.aro-card, .aro-card:hover, .wp-block-button__link, .wp-block-button__link:hover, .aro-mega__item, .aro-header > .aro-mega-wrap, .aro-mega-trigger > a::after { transition: none; transform: none; }
}
