/* ==========================================================================
   8th House Coffee — functional styles and WordPress/WooCommerce markup.
   Source utility classes from app.css are always kept in the templates; this
   file only adds behaviour and styling for markup without a source equivalent.
   ========================================================================== */

[hidden] {
	display: none !important;
}

body.theme-modal-open {
	overflow: hidden;
}

html,
body {
	max-width: 100%;
	overflow-x: clip;
}

:root {
	--checkout-max-width: 1280px;
	--checkout-gap: 2rem;
}

/* Contact dialog — exit animation must hold opacity 0 (Radix-style, no close flicker). */
#theme-contact-modal:not([hidden]):not([data-closing]) .theme-contact-overlay[data-state="closed"],
#theme-contact-modal:not([hidden]):not([data-closing]) .theme-contact-panel[data-state="closed"] {
	opacity: 0;
	pointer-events: none;
}

#theme-contact-modal .theme-contact-overlay[data-state="closed"],
#theme-contact-modal .theme-contact-panel[data-state="closed"] {
	animation-fill-mode: forwards;
}

#theme-contact-modal[data-closing] .theme-contact-overlay,
#theme-contact-modal[data-closing] .theme-contact-panel {
	pointer-events: none;
}

/* --------------------------------------------------------------- Logo height (Lovable: h-24 / md:h-28, footer h-28) */
.site-logo-img {
	display: block;
}

.site-header .site-logo-img {
	height: var(--logo-height-mobile, 96px) !important;
	width: auto !important;
}

@media (min-width: 768px) {
	.site-header .site-logo-img {
		height: var(--logo-height-desktop, 112px) !important;
	}
}

footer .site-logo-img {
	height: var(--logo-height-desktop, 112px) !important;
	width: var(--logo-height-desktop, 112px) !important;
	object-fit: contain;
}

.site-logo-text {
	display: block;
}

/* Footer column links — Work Sans like Lovable (not display / underline link button). */
footer nav .theme-footer-link,
footer .theme-footer-link {
	font-family: var(--font-body) !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	color: hsl(var(--muted-foreground));
}

footer nav .theme-footer-link:hover,
footer .theme-footer-link:hover {
	color: hsl(var(--foreground));
	text-decoration: none !important;
}

/* WordPress admin bar + sticky header in preview and logged-in front-end. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

/* Pointer cursor on interactive controls (links, buttons, toggles). */
a[href],
button:not(:disabled),
summary,
input[type="submit"],
input[type="button"],
input[type="reset"],
select,
label[for],
[data-contact-open],
[data-cart-open],
[data-menu-toggle],
[data-cat-filter],
[data-search-jump],
[data-show-more],
[data-announcement-dismiss],
[data-cart-close],
[data-cart-remove],
.theme-attr-pill,
.theme-nav-link,
.theme-footer-link,
.link-underline {
	cursor: pointer;
}

/* ------------------------------------------------------- Entry / page content */
.page-title {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: -0.015em;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content table {
	width: 100%;
}

/* ============================================================== Animations */
.theme-hero-fade {
	animation: themeHeroFade 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

.theme-hero-title {
	animation: themeHeroTitle 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) 0.35s both;
}

.theme-hero-sub {
	animation: themeHeroSub 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 0.55s both;
}

.theme-hero-cta {
	animation: themeHeroSub 0.65s cubic-bezier(0.25, 0.4, 0.25, 1) 0.75s both;
}

@keyframes themeHeroFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes themeHeroTitle {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes themeHeroSub {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

.theme-reveal,
.reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
	transition-delay: var(--reveal-delay, 0s);
}

.theme-reveal.is-visible,
.reveal-item.is-visible,
body.is-customizer .theme-reveal,
body.is-customizer .reveal-item {
	opacity: 1;
	transform: translateY(0);
}

/* Staggered entry delays mirroring the source variants. */
#about .text-left > .theme-reveal:nth-child(2) { --reveal-delay: 0.1s; }
#about .text-left > .theme-reveal:nth-child(3) { --reveal-delay: 0.2s; }
#about .text-left > .theme-reveal:nth-child(4) { --reveal-delay: 0.3s; }
#about .text-left > .theme-reveal:nth-child(5) { --reveal-delay: 0.4s; }

#owners .max-w-xl > .theme-reveal:nth-child(2) { --reveal-delay: 0.1s; }
#owners .max-w-xl > .theme-reveal:nth-child(3) { --reveal-delay: 0.2s; }
#owners .max-w-xl > .theme-reveal:nth-child(4) { --reveal-delay: 0.3s; }
#owners .max-w-xl > .theme-reveal:nth-child(5) { --reveal-delay: 0.4s; }
#owners .max-w-xl > .theme-reveal:nth-child(6) { --reveal-delay: 0.5s; }

#gift-boxes .max-w-xl > .theme-reveal:nth-child(2) { --reveal-delay: 0.1s; }
#gift-boxes .max-w-xl > .theme-reveal:nth-child(3) { --reveal-delay: 0.2s; }
#gift-boxes .max-w-xl > .theme-reveal:nth-child(4) { --reveal-delay: 0.3s; }
#gift-boxes .max-w-xl > .theme-reveal:nth-child(5) { --reveal-delay: 0.4s; }
#gift-boxes .max-w-xl > .theme-reveal:nth-child(6) { --reveal-delay: 0.5s; }
#gift-boxes .max-w-xl > .theme-reveal:nth-child(7) { --reveal-delay: 0.6s; }

#contact .mx-auto > .theme-reveal:nth-child(2) { --reveal-delay: 0.1s; }
#contact .mx-auto > .theme-reveal:nth-child(3) { --reveal-delay: 0.2s; }
#contact .mx-auto > .theme-reveal:nth-child(4) { --reveal-delay: 0.3s; }
#contact .mx-auto > .theme-reveal:nth-child(5) { --reveal-delay: 0.4s; }

#faq .max-w-4xl > .theme-reveal:nth-child(2) { --reveal-delay: 0.1s; }
#faq .max-w-4xl > .theme-reveal:nth-child(3) { --reveal-delay: 0.2s; }
#faq .max-w-4xl > .theme-reveal:nth-child(4) { --reveal-delay: 0.3s; }
#faq .max-w-4xl > .theme-reveal:nth-child(5) { --reveal-delay: 0.4s; }
#faq .max-w-4xl > .theme-reveal:nth-child(6) { --reveal-delay: 0.5s; }
#faq .max-w-4xl > .theme-reveal:nth-child(7) { --reveal-delay: 0.6s; }
#faq .max-w-4xl > .theme-reveal:nth-child(n + 8) { --reveal-delay: 0.7s; }

#shop [data-shop-grid] > .theme-product-card-col:nth-child(2) .reveal-item { --reveal-delay: 0.1s; }
#shop [data-shop-grid] > .theme-product-card-col:nth-child(3) .reveal-item { --reveal-delay: 0.2s; }
#shop [data-shop-grid] > .theme-product-card-col:nth-child(4) .reveal-item { --reveal-delay: 0.3s; }
#shop [data-shop-grid] > .theme-product-card-col:nth-child(5) .reveal-item { --reveal-delay: 0.4s; }
#shop [data-shop-grid] > .theme-product-card-col:nth-child(6) .reveal-item { --reveal-delay: 0.5s; }
#shop [data-shop-grid] > .theme-product-card-col:nth-child(7) .reveal-item { --reveal-delay: 0.6s; }
#shop [data-shop-grid] > .theme-product-card-col:nth-child(n + 8) .reveal-item { --reveal-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
	.theme-hero-fade,
	.theme-hero-title,
	.theme-hero-sub,
	.theme-hero-cta {
		animation: none !important;
	}
	.theme-reveal,
	.reveal-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ============================================================ Product cards */
.theme-product-card-wrap,
.theme-product-card-col {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover {
	transform: translateY(-4px);
}

.theme-product-card__image-link {
	display: block;
	overflow: hidden;
}

.theme-product-card__image-link img {
	display: block;
	width: 100%;
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-product-card__image-link img {
	transform: scale(1.04);
}

.theme-product-card .add_to_cart_button {
	transition: transform 0.2s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.3s;
}

.theme-product-card .add_to_cart_button:hover {
	transform: scale(1.08);
}

.theme-tile-image {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .theme-tile-image {
	transform: scale(1.05);
}

/* ================================================================ Cart drawer */
#theme-cart-drawer {
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth), visibility 0s linear 0.6s;
	will-change: opacity, transform;
}

#theme-cart-drawer.animate-slide-up {
	animation: none;
}

body.cart-open #theme-cart-drawer {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition-delay: 0s;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

.theme-cart-count:empty {
	display: none;
}

/* ================================================== Add to cart button states */
.single-product .single_add_to_cart_button.button:disabled,
.single-product .single_add_to_cart_button.button.disabled,
.single-product .add_to_cart_button.button:disabled,
.single-product .add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.6 !important;
	pointer-events: none !important;
}

.single-product .single_add_to_cart_button.button:disabled:hover,
.single-product .single_add_to_cart_button.button.disabled:hover,
.single-product .add_to_cart_button.button:disabled:hover,
.single-product .add_to_cart_button.button.disabled:hover {
	opacity: 0.6 !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

.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;
}

/* ============================================================ Product page */
.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: block;
	width: 100%;
}

/* PDP quantity + add to cart (matches Lovable ProductDetail) */
.single-product .theme-product-info .theme-pdp-purchase {
	width: 100%;
}

.single-product .theme-product-info .theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
	background: transparent;
}

.single-product .theme-product-info .theme-qty-minus,
.single-product .theme-product-info .theme-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	margin: 0;
	border: 0;
	background: transparent;
	color: hsl(var(--foreground));
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.single-product .theme-product-info .theme-qty-minus:hover,
.single-product .theme-product-info .theme-qty-plus:hover {
	background: hsl(var(--secondary));
}

.single-product .theme-product-info .theme-qty-value {
	display: inline-block;
	min-width: 2.75rem;
	padding: 0.5rem 1rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: hsl(var(--foreground));
}

.single-product .theme-product-info .theme-qty-field {
	display: none !important;
}

.single-product .theme-product-info a.theme-pdp-add-btn,
.single-product .theme-product-info button.theme-pdp-add-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 1rem 1.75rem;
	border: none !important;
	border-radius: 9999px !important;
	background: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	text-align: center;
	text-decoration: none !important;
	line-height: 1.5;
	box-shadow: none !important;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.single-product .theme-product-info a.theme-pdp-add-btn:hover,
.single-product .theme-product-info button.theme-pdp-add-btn:hover:not(:disabled):not(.disabled) {
	background: hsl(var(--foreground) / 0.9) !important;
	color: hsl(var(--background)) !important;
}

.single-product .theme-product-info a.theme-pdp-add-btn.disabled,
.single-product .theme-product-info button.theme-pdp-add-btn:disabled,
.single-product .theme-product-info button.theme-pdp-add-btn.disabled {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

.single-product .single_add_to_cart_button {
	width: 100%;
	min-width: 0;
}

.single-product .variations {
	display: none !important;
}

.single-product .single_variation_wrap .woocommerce-variation {
	display: none !important;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-pill {
	cursor: pointer;
}

.theme-qty-input {
	appearance: textfield;
	-moz-appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-product-info [data-accordion-panel="features"] > div p {
	margin-bottom: 1rem;
}

.theme-product-info [data-accordion-panel="features"] > div p:last-child {
	margin-bottom: 0;
}

/* ========================================================== Price range bar */
.price-range-wrapper {
	position: relative;
	height: 1.5rem;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 4px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 9999px;
}

.range-track-bg {
	left: 0;
	right: 0;
	background: hsl(var(--secondary));
}

.range-track-fill {
	background: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.range-input::-webkit-slider-runnable-track {
	background: transparent;
	border: none;
}

.range-input::-moz-range-track {
	background: transparent;
	border: none;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	margin-top: 0;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	box-shadow: 0 1px 2px hsl(var(--foreground) / 0.15);
	cursor: pointer;
}

.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;
}

.range-input--max {
	z-index: 3;
}

.range-input--min {
	z-index: 4;
}

/* ================================================== WooCommerce notices/forms */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.6;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.5);
	background: hsl(var(--destructive) / 0.08);
}

.woocommerce-message .button,
.woocommerce-info .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.25rem;
	padding: 0 1rem;
	margin-left: 0.75rem;
	border-radius: 9999px;
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.75rem 1rem;
}

.woocommerce form .form-row label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
}

.woocommerce .button.alt:not(.theme-add-cart-btn):not(.add_to_cart_button):not(.single_add_to_cart_button),
.woocommerce #respond input#submit,
.woocommerce a.button:not(.theme-add-cart-btn):not(.theme-pdp-add-btn):not(.add_to_cart_button):not(.single_add_to_cart_button),
.woocommerce button.button:not(.theme-add-cart-btn):not(.theme-pdp-add-btn):not(.add_to_cart_button):not(.single_add_to_cart_button) {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-radius: 9999px;
	font-family: var(--font-body);
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	padding: 0.9rem 1.75rem;
}

.woocommerce .woocommerce-cart-form table.shop_table,
.woocommerce .woocommerce-checkout-review-order table.shop_table,
.woocommerce table.shop_table {
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	border-collapse: separate;
	border-spacing: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-color: hsl(var(--border));
	font-family: var(--font-body);
}

/* ============================================ Cart / account page containers */
.woocommerce-cart .page-title,
.woocommerce-account .page-title,
body.woocommerce-checkout .page-title,
body.theme-thankyou-page .page-title {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
}

.woocommerce-cart .woocommerce,
.woocommerce-account .woocommerce,
.theme-wc-block-page .entry-content,
.theme-account-page .entry-content {
	max-width: none;
	width: 100%;
}

/* ============================================================ Checkout (Blocks) */
body.woocommerce-checkout .theme-checkout-main {
	padding-top: 0 !important;
}

body.woocommerce-checkout .theme-checkout-shell,
body.woocommerce-checkout .theme-checkout-main > .container-wide {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	padding-bottom: 4rem;
	padding-top: calc(6rem + 0.5rem);
}

@media (min-width: 1024px) {
	body.woocommerce-checkout .theme-checkout-shell,
	body.woocommerce-checkout .theme-checkout-main > .container-wide {
		padding-left: 2rem;
		padding-right: 2rem;
		padding-top: calc(7rem + 0.5rem);
	}
}

.theme-checkout-header {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-bottom: 0;
}

.checkout-continue-link {
	margin-bottom: 1rem;
}

.theme-checkout-title {
	margin: 0;
}

.theme-checkout-intro {
	margin: 0.75rem 0 0;
}

body.woocommerce-checkout .theme-checkout-main .entry-content,
.entry-content:has(.wc-block-checkout) {
	margin-top: 0;
	padding-top: 0;
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .theme-checkout-main .entry-content > .wc-block-checkout,
body.woocommerce-checkout .theme-checkout-main .entry-content > .wp-block-woocommerce-checkout,
.entry-content > .wc-block-checkout:first-child,
.entry-content > .wp-block-woocommerce-checkout:first-child {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout,
.entry-content .wc-block-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout {
	max-width: var(--checkout-max-width);
	width: 100%;
	min-width: 0;
	margin-inline: auto;
	box-sizing: border-box;
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout.alignwide,
.entry-content .wc-block-checkout.alignwide {
	margin-top: 0;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-components-main,
.entry-content .wc-block-checkout__main,
.entry-content .wc-block-components-main {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
	margin-top: 0;
	padding-top: 0;
}

body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices:empty,
.entry-content .wc-block-checkout > .wc-block-components-notices:empty {
	display: none;
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: var(--checkout-max-width);
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	margin-top: 0;
	padding-top: 0;
	margin-bottom: var(--checkout-gap);
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
		flex-direction: unset;
		flex-wrap: nowrap;
		margin: 0;
	}

	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__main,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-main,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-checkout__sidebar,
	.entry-content .wc-block-checkout .wc-block-checkout-sidebar-layout .wc-block-components-sidebar {
		width: auto !important;
		max-width: 100%;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}

	body.woocommerce-checkout .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar),
	.entry-content .wc-block-checkout:has(> .wc-block-checkout__main):has(> .wc-block-checkout__sidebar) {
		display: grid;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: var(--checkout-gap);
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout > .wc-block-components-notices,
	.entry-content .wc-block-checkout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .wp-block-woocommerce-checkout-totals-block,
.entry-content .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar,
.entry-content .wp-block-woocommerce-checkout-totals-block {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	box-sizing: border-box;
	background-color: hsl(var(--secondary));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-checkout-empty,
.entry-content .wc-block-checkout-empty {
	margin-inline: auto;
	max-width: 36rem;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
.entry-content .wc-block-components-notice-banner {
	border-radius: var(--radius);
	border-color: hsl(var(--border));
	background-color: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-notice-banner.is-error,
.entry-content .wc-block-components-notice-banner.is-error {
	background-color: hsl(var(--destructive) / 0.08);
	border-color: hsl(var(--destructive) / 0.5);
}

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 .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.entry-content .wc-block-checkout .wc-block-components-text-input input,
.entry-content .wc-block-checkout .wc-block-components-select select,
.entry-content .wc-block-checkout .wc-blocks-components-select__select,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea,
.entry-content .wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 16px !important;
	box-shadow: none !important;
	width: 100% !important;
	max-width: 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-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox-control input:focus,
.entry-content .wc-block-checkout .wc-block-components-text-input input:focus,
.entry-content .wc-block-checkout .wc-block-components-select select:focus,
.entry-content .wc-block-checkout .wc-block-components-textarea textarea:focus,
.entry-content .wc-block-checkout .wc-block-components-combobox-control input:focus {
	border-color: hsl(var(--foreground)) !important;
	outline: 2px solid hsl(var(--ring) / 0.5) !important;
	outline-offset: 1px !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-components-radio-control__label,
.entry-content .wc-block-checkout .wc-block-components-text-input label,
.entry-content .wc-block-checkout .wc-block-components-select label,
.entry-content .wc-block-checkout .wc-block-components-checkbox__label,
.entry-content .wc-block-checkout .wc-block-components-radio-control__label {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-title,
.entry-content .wc-block-checkout .wc-block-components-checkout-step__title,
.entry-content .wc-block-checkout .wc-block-components-title {
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
	letter-spacing: -0.01em !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link),
.entry-content .wc-block-checkout .wc-block-components-checkout-place-order-button,
.entry-content .wc-block-checkout .wc-block-components-button:not(.is-link) {
	border-radius: 9999px !important;
	background-color: hsl(var(--foreground)) !important;
	color: hsl(var(--background)) !important;
	font-family: var(--font-body) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.22em !important;
	font-size: 12px !important;
}

body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-cart-items__row,
.entry-content .wc-block-checkout .wc-block-components-product-name,
.entry-content .wc-block-checkout .wc-block-cart-items__row {
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-cart-items td,
body.woocommerce-checkout .wc-block-cart-items th,
.entry-content .wc-block-checkout .wc-block-cart-items td,
.entry-content .wc-block-checkout .wc-block-cart-items th {
	border-color: hsl(var(--border)) !important;
}

/* ========================================================= Thank you page */
body.theme-thankyou-page {
	overflow-x: clip;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
	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-weight: 500;
	font-size: 1.5rem;
	padding: 0 0 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--secondary));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	margin: 0;
	padding: 0;
	font-size: 0.85rem;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
	font-size: 0.95rem;
}

body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	font-style: normal;
	max-width: 480px;
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	border-collapse: separate;
	border-spacing: 0;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	border-color: hsl(var(--border));
	padding: 0.75rem 1rem;
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
}

/* ============================================================ Accessibility */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.theme-product-card .add_to_cart_button {
	z-index: 3;
}

.single-product .single_variation_wrap {
	display: block !important;
}

.site-header .site-logo-text {
	margin-left: 0.75rem;
	align-self: center;
}

.single-product .theme-qty-input {
	min-width: 2.75rem;
}

/* ==================================================== Cart / account blocks */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .woocommerce,
body.woocommerce-account .woocommerce {
width: 100%;
max-width: none;
}

body.woocommerce-cart .wc-block-components-button:not(.is-link),
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce a.button {
border-radius: calc(var(--radius) - 2px);
background-color: hsl(var(--foreground));
color: hsl(var(--background));
font-family: var(--font-body);
font-size: 12px;
letter-spacing: 0.2em;
text-transform: uppercase;
}

body.woocommerce-cart .wc-block-cart-items td,
body.woocommerce-cart .wc-block-cart-items th,
body.woocommerce-account .woocommerce table.shop_table td,
body.woocommerce-account .woocommerce table.shop_table th {
border-color: hsl(var(--border));
font-family: var(--font-body);
}
