/**
 * Theme additions.
 *
 * Contains only rules for markup that has no equivalent in the compiled design
 * stylesheet (WooCommerce output, WordPress output) plus the functional rules
 * the templates and scripts rely on. Layout, spacing, typography and colours of
 * designed elements come from assets/css/app.css.
 */

/* -------------------------------------------------------------------------
 * Functional basics
 * ---------------------------------------------------------------------- */

[hidden] {
	display: none !important;
}

html:has(body.is-customizer) {
	scroll-behavior: auto !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.theme-no-hero {
	padding-top: 96px;
}

@media (min-width: 768px) {
	body.theme-no-hero {
		padding-top: 112px;
	}
}

/* Logged-in preview: keep the fixed header and progress bar below the WP admin bar. */
body.admin-bar .theme-site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

body.admin-bar .theme-scroll-progress {
	top: var(--wp-admin--admin-bar--height, 32px);
}

body.admin-bar.theme-no-hero {
	padding-top: calc(96px + var(--wp-admin--admin-bar--height, 32px));
}

@media (min-width: 768px) {
	body.admin-bar.theme-no-hero {
		padding-top: calc(112px + var(--wp-admin--admin-bar--height, 32px));
	}
}

/* -------------------------------------------------------------------------
 * Clickable affordance
 * ---------------------------------------------------------------------- */

a[href],
button:not(:disabled),
[type="button"]:not(:disabled),
[type="submit"]:not(:disabled),
[type="reset"]:not(:disabled),
label[for],
select:not(:disabled),
summary,
.category-tile,
.theme-contact-trigger,
.theme-card-button,
.theme-attr-pill,
[data-cart-open],
[data-cart-close],
[data-cart-remove],
[data-cart-qty-update],
[data-contact-open],
[data-contact-close],
[data-mobile-menu-toggle],
[data-price-toggle],
[data-shop-more],
[data-accordion-toggle],
.woocommerce .reset_variations,
.theme-pagination .page-numbers {
	cursor: pointer;
}

.site-logo-img {
	max-height: var(--logo-height, 97px);
	height: auto !important;
	width: auto !important;
	display: block;
}

/* Header: desktop logo follows Customizer height; mobile bar uses a smaller cap (96px tall). */
@media (max-width: 1023px) {
	.theme-site-header .site-logo-img {
		max-height: min(var(--logo-height, 97px), 4rem);
	}

	.theme-site-header .site-logo-text--header-mobile {
		font-size: 1.125rem;
		line-height: 1.2;
		max-width: 5.75rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (min-width: 1024px) {
	.theme-site-header .site-logo-img {
		max-height: min(var(--logo-height, 97px), 6.0625rem);
	}
}

.site-logo-text {
	display: block;
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: var(--logo-height, 97px);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.theme-cart-count:empty {
	display: none;
}

.theme-header-logo-link,
.theme-footer-logo-link {
	display: block;
}

.theme-site-header nav > div.flex.lg\:hidden > a[href] {
	min-height: 0;
	max-height: 100%;
	align-items: center;
}

/* Hero gradients (Customizer: Colours tab) */
.hero-shade {
	background: linear-gradient(
		180deg,
		hsl(var(--hero-shade-top, var(--hero-overlay)) / 0.55),
		hsl(var(--hero-shade-mid, var(--hero-overlay)) / 0.45) 50%,
		hsl(var(--hero-shade-bottom, var(--hero-overlay)) / 0.65)
	);
}

.text-gradient-brand {
	background: linear-gradient(
		90deg,
		hsl(var(--hero-gradient-1, 200 95% 60%)),
		hsl(var(--hero-gradient-2, 270 90% 70%)),
		hsl(var(--hero-gradient-3, 316 90% 65%))
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* -------------------------------------------------------------------------
 * Header states (source toggles background classes; these rules keep the PHP
 * initial state and the scroll state in sync without touching design classes)
 * ---------------------------------------------------------------------- */

.theme-site-header .theme-nav-list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 1280px) {
	.theme-site-header .theme-nav-list {
		gap: 2.5rem;
	}
}

/* -------------------------------------------------------------------------
 * Motion inventory
 * ---------------------------------------------------------------------- */

.theme-hero-title {
	animation: themeRise 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

[data-anim="hero-text"] {
	animation: themeRise 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) 0.2s both;
}

[data-anim="hero-cta"] {
	animation: themeRise 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) 0.4s both;
}

@keyframes themeRise {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes themeRiseSmall {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Scroll reveals: initial hidden state, activated by main.js. */
.theme-reveal-item {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.65s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.65s cubic-bezier(0.25, 0.4, 0.25, 1);
	will-change: opacity, transform;
}

.theme-reveal-item.is-visible,
.no-js .theme-reveal-item,
body.is-customizer .theme-reveal-item,
body.theme-reveal-fallback .theme-reveal-item {
	opacity: 1;
	transform: none;
}

.theme-reveal-item[data-delay="1"] {
	transition-delay: 0.08s;
}
.theme-reveal-item[data-delay="2"] {
	transition-delay: 0.16s;
}
.theme-reveal-item[data-delay="3"] {
	transition-delay: 0.24s;
}
.theme-reveal-item[data-delay="4"] {
	transition-delay: 0.32s;
}
.theme-reveal-item[data-delay="5"] {
	transition-delay: 0.4s;
}
.theme-reveal-item[data-delay="6"] {
	transition-delay: 0.48s;
}

/* Owner section uses a shorter travel and 0.7s duration. */
#owner .theme-reveal-item {
	transform: translateY(24px);
	transition-duration: 0.7s;
}

#owner .theme-reveal-item[data-reveal-image] {
	transform: translateX(40px);
}

/* Shop cards animate 0.5s with a per-column stagger. */
.theme-shop-card.theme-reveal-item {
	transition-duration: 0.5s;
}

/* Page loader */
.theme-page-loader {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	background: hsl(var(--background));
	opacity: 1;
	pointer-events: none;
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-page-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.theme-page-loader__spinner {
	width: 4rem;
	height: 4rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary) / 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: themeWobble 2.4s ease-in-out infinite;
}

@keyframes themeWobble {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(8deg);
	}
	75% {
		transform: rotate(-8deg);
	}
}

.theme-page-loader__bar {
	height: 2px;
	width: 11rem;
	overflow: hidden;
	border-radius: 9999px;
	background: hsl(var(--secondary));
}

.theme-page-loader__bar span {
	display: block;
	height: 100%;
	width: 50%;
	background: linear-gradient(90deg, transparent, hsl(var(--accent)), transparent);
	animation: themeBar 1.2s ease-in-out infinite;
}

@keyframes themeBar {
	from {
		transform: translateX(-100%);
	}
	to {
		transform: translateX(100%);
	}
}

/* Scroll progress bar */
.theme-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--marigold)));
	z-index: 100;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.theme-reveal-item,
	.theme-hero-title,
	[data-anim="hero-text"],
	[data-anim="hero-cta"] {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}

	.theme-page-loader__spinner,
	.theme-page-loader__bar span {
		animation: none !important;
	}
}

/* -------------------------------------------------------------------------
 * Product card interaction (hit-area overlay pattern)
 * ---------------------------------------------------------------------- */

.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.theme-product-card-wrap {
	height: 100%;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card .theme-card-button {
	z-index: 3;
	pointer-events: auto;
	display: block;
}

.theme-product-card .theme-card-button.add_to_cart_button {
	display: block;
}

/* -------------------------------------------------------------------------
 * Cart drawer
 * ---------------------------------------------------------------------- */

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 40;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

.theme-cart-drawer {
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
	visibility: hidden;
}

body.cart-open .theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}

body.cart-open {
	overflow: hidden;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-drawer .theme-cart-thumb {
	display: block;
}

#theme-cart-drawer .added_to_cart {
	display: none;
}

/* -------------------------------------------------------------------------
 * Contact dialog
 * ---------------------------------------------------------------------- */

#theme-contact-dialog {
	z-index: 120;
}

#theme-contact-dialog .theme-dialog-overlay {
	z-index: 1;
	animation: themeFadeIn 0.2s ease both;
}

#theme-contact-dialog .theme-dialog-panel {
	z-index: 2;
	animation: themeDialogIn 0.2s ease both;
}

#theme-contact-dialog #theme-contact-inquiry {
	padding-left: 0.75rem;
	padding-right: 4.5rem;
}

#theme-contact-dialog.is-closing .theme-dialog-overlay {
	animation: themeFadeOut 0.2s ease both;
}

#theme-contact-dialog.is-closing .theme-dialog-panel {
	animation: themeDialogOut 0.2s ease both;
}

@keyframes themeFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes themeFadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes themeDialogIn {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes themeDialogOut {
	from {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
	to {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.95);
	}
}

/* -------------------------------------------------------------------------
 * Price filter (overlapping dual range)
 * ---------------------------------------------------------------------- */

.theme-range-wrapper {
	position: relative;
	height: 1.5rem;
	width: 100%;
}

.theme-range-track,
.theme-range-fill {
	position: absolute;
	height: 0.5rem;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 9999px;
	pointer-events: none;
}

.theme-range-track {
	left: 0;
	right: 0;
	background: hsl(var(--secondary));
}

.theme-range-fill {
	background: hsl(var(--primary));
	left: 0;
	width: 100%;
}

.theme-range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.theme-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 1px 2px hsl(var(--foreground) / 0.2);
}

.theme-range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.theme-range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

.theme-range-input--max {
	z-index: 3;
}

.theme-range-input--min {
	z-index: 4;
}

/* -------------------------------------------------------------------------
 * WooCommerce generated markup
 * ---------------------------------------------------------------------- */

.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
	display: none !important;
}

.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}

.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.theme-attr-select-hidden {
	display: none !important;
}

/* Single product layout guards */
.single-product .theme-product-layout,
.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.single-product .product-description-body {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .product-description-body p {
	margin-bottom: 1rem;
}

.single-product .product-description-body p:last-child {
	margin-bottom: 0;
}

/* Variation table: label above control */
.single-product .variations,
.single-product .variations.shop_attributes {
	width: 100%;
	border-collapse: collapse;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
	display: none;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: hsl(var(--muted-foreground));
}

.single-product .single_variation_wrap {
	margin-top: 0.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-size: 1.25rem;
}

.single-product .woocommerce-variation-availability p {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.theme-quantity-wrapper {
	display: inline-flex;
}

.theme-qty-input {
	-moz-appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Attribute pills */
.theme-attr-pill {
	cursor: pointer;
}

.theme-attr-pill.is-active,
.theme-attr-pill[aria-pressed="true"] {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* Sale/stock badges inside WooCommerce loops */
.woocommerce span.onsale {
	display: none;
}

/* Pagination */
.theme-pagination {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
}

.theme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	color: hsl(var(--foreground));
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-pagination .page-numbers.current,
.theme-pagination .page-numbers:hover {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.5;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	margin-bottom: 1.5rem;
	list-style: none;
}

.woocommerce-message {
	border-left: 4px solid hsl(var(--primary));
}

.woocommerce-info {
	border-left: 4px solid hsl(var(--muted-foreground));
}

.woocommerce-error {
	border-left: 4px solid hsl(var(--destructive));
}

.woocommerce-notices-wrapper {
	max-width: 100%;
}

.woocommerce-error li {
	margin: 0.25rem 0;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

/* WooCommerce forms outside the checkout block */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea {
	font-family: var(--font-body);
	font-size: 1rem;
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	color: hsl(var(--foreground));
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	border-color: hsl(var(--primary));
	outline: none;
	box-shadow: 0 0 0 1px hsl(var(--primary));
}

/* Cart / account tables */
.woocommerce-cart .shop_table,
.woocommerce-account .shop_table,
.woocommerce-order-details .shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 0.9375rem;
}

.woocommerce-cart .shop_table th,
.woocommerce-account .shop_table th,
.woocommerce-order-details .shop_table th {
	text-align: left;
	font-weight: 600;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid hsl(var(--border));
}

.woocommerce-cart .shop_table td,
.woocommerce-account .shop_table td,
.woocommerce-order-details .shop_table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid hsl(var(--border));
	vertical-align: middle;
}

/* -------------------------------------------------------------------------
 * Page titles and content containers
 * ---------------------------------------------------------------------- */

.page-title {
	font-family: var(--font-display);
	font-size: 40px;
	font-weight: 600;
	line-height: 1.05;
	margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 60px;
	}
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--font-display);
}

.entry-content p,
.entry-content li {
	font-family: var(--font-body);
	line-height: 1.7;
	color: hsl(var(--muted-foreground));
}

.entry-content a {
	color: hsl(var(--primary));
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 1rem 0;
}

/* -------------------------------------------------------------------------
 * Checkout, cart and account (WooCommerce Blocks)
 * ---------------------------------------------------------------------- */

body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		min-width: 0;
	}

	body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		width: 100%;
		max-width: none;
	}
}

body.woocommerce-checkout .wc-block-checkout__main {
	order: 1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	order: 2;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notices {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
	gap: var(--checkout-gap, 2rem);
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-order-summary__title,
body.woocommerce-checkout .wc-block-components-panel__title {
	font-family: var(--font-display);
	font-weight: 600;
	color: hsl(var(--foreground));
	letter-spacing: 0;
}

body.woocommerce-checkout .wc-block-components-title {
	font-size: 1.5rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: var(--radius) !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text:focus {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-blocks-components-select__label {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.22em !important;
	font-weight: 600 !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	min-height: 3rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-cart-items .wc-block-components-product-name {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price,
body.woocommerce-checkout .wc-block-components-product-price {
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: hsl(var(--foreground));
	font-weight: 700;
}

/* -------------------------------------------------------------------------
 * Order received page
 * ---------------------------------------------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order > p:first-child,
body.theme-thankyou-page .woocommerce-order .woocommerce-thankyou-order-received {
	font-family: var(--font-display);
	font-size: 1.75rem;
	line-height: 1.2;
	color: hsl(var(--foreground));
	margin-bottom: 2rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-display);
	font-size: 1.125rem;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-bottom: 2.5rem;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}

body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	line-height: 1.7;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid hsl(var(--border));
	overflow-wrap: break-word;
}

/* Customer details / account navigation */
.woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-family: var(--font-body);
}

.woocommerce-MyAccount-navigation ul li a {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	text-decoration: none;
	color: hsl(var(--foreground));
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
 * Customizer preview helpers
 * ---------------------------------------------------------------------- */

.customize-partial-edit-shortcut button {
	border-radius: 9999px;
}

.theme-customizer-notice {
	font-size: 12px;
	line-height: 1.5;
	color: #50575e;
	margin: 0 0 8px;
}

.theme-media-control {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.theme-media-url-input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.theme-media-preview {
	max-width: 100%;
	height: auto;
	display: block;
}
