/* =========================================================================
   The Untamed Doodler — theme additions
   Only markup with no source equivalent (WooCommerce / WordPress output) and
   functional rules live here. Source elements keep their compiled classes.
   ========================================================================= */

[hidden] {
	display: none !important;
}

body.theme-modal-open {
	overflow: hidden;
}

/* ---------------------------------------------------------------- header */
/* The source header is solid on every page, so no scroll-state rules are
   needed here; the shadow and borders come from app.css. */

.site-header .container-wide {
	position: relative;
}

.site-logo-img {
	height: var(--logo-height, 4rem);
	width: auto;
	max-width: none;
	object-fit: contain;
}

@media (min-width: 1024px) {
	.site-logo-img {
		height: var(--logo-height-lg, 5rem);
	}
}

/* WordPress admin bar: keep the fixed header below the toolbar in previews. */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

body.admin-bar #theme-mobile-menu {
	top: calc(6rem + 32px);
}

@media (min-width: 1024px) {
	body.admin-bar #theme-mobile-menu {
		top: calc(7rem + 32px);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar #theme-mobile-menu {
		top: calc(6rem + 46px);
	}
}

body.admin-bar .theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* Consistent pointer cursor on interactive controls. */
a[href],
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
select,
label[for],
summary,
[role="button"],
[data-contact-open],
[data-cart-open],
[data-menu-toggle],
[data-scroll-link],
[data-cat-toggle],
[data-cat-option],
[data-collection-jump],
[data-riff-prev],
[data-riff-next],
[data-riff-dot],
.theme-media-select-btn {
	cursor: pointer;
}

button:disabled,
input:disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}

/* ---------------------------------------------------------- page padding */
/* The source pages carry their own top padding (hero pt-28, product page
   pt-24 lg:pt-28), so the fixed header overlays content exactly as it does
   in the source. Only WordPress-owned page types need an offset. */

.theme-page,
.woocommerce-account .site-main,
.woocommerce-cart .site-main,
body.theme-checkout-page .site-main {
	padding-top: 6rem;
}

@media (min-width: 1024px) {
	.theme-page,
	.woocommerce-account .site-main,
	.woocommerce-cart .site-main,
	body.theme-checkout-page .site-main {
		padding-top: 7rem;
	}
}

/* ----------------------------------------------------------- hero motion */
.theme-hero-glow {
	background: radial-gradient(
		ellipse 55% 50% at 50% 50%,
		hsl(var(--background) / 0.75) 0%,
		hsl(var(--background) / 0.45) 55%,
		transparent 100%
	);
}

.theme-hero-item {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s cubic-bezier(0.25, 0.4, 0.25, 1),
		transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
	transition-delay: 0s;
}

.theme-hero-item[data-hero-item="1"] {
	transform: translateY(20px);
	transition-duration: 0.8s;
	transition-delay: 0.12s;
}

.theme-hero-item[data-hero-item="2"] {
	transform: translateY(18px);
	transition-duration: 0.75s;
	transition-delay: 0.24s;
}

.theme-hero-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* -------------------------------------------------------- scroll reveals */
[data-reveal] {
	opacity: 0;
	transform: translateY(28px);
	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);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

.is-customizer [data-reveal],
.is-customizer .theme-hero-item,
.no-js [data-reveal],
.no-js .theme-hero-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	.theme-hero-item {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.animate-marquee {
		animation: none !important;
	}
}

/* -------------------------------------------------------- scroll progress */
.theme-scroll-progress {
	transform: scaleX(0);
	transform-origin: 0% 50%;
	will-change: transform;
}

/* --------------------------------------------------------- cart drawer */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 45;
	background-color: hsl(var(--foreground) / 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#theme-cart-drawer {
	position: fixed;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1), visibility 0.4s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

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-count:empty {
	display: none;
}

.theme-cart-count:empty {
	display: none;
}

/* ---------------------------------------------- add-to-cart button states */
.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;
}

.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;
}

.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;
}

/* -------------------------------------------------- single product layout */
.single-product .theme-product-layout,
.single-product #product-main-img {
	min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}

/* Match the source's description block spacing (pre-line copy, no <p> margins). */
.theme-product-info p.font-display,
.theme-product-info div.font-display {
	margin: 0;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	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 {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-source {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.theme-qty-input[type="hidden"] {
	display: none;
}

/* ------------------------------------------------------- product cards */
.theme-product-card {
	position: relative;
}

.theme-product-card img {
	display: block;
}

.theme-shop-archive .theme-product-card,
.front-page-shop .theme-product-card {
	min-width: 0;
}

/* ------------------------------------------------------ modal animation */
.theme-success-badge {
	animation: themePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes themePop {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}

[data-contact-overlay][data-state="closed"] {
	opacity: 0;
	visibility: hidden;
}

[data-contact-overlay][data-state="open"] {
	opacity: 1;
	visibility: visible;
	animation: themeFadeIn 0.2s ease both;
}

[data-contact-content][data-state="closed"] {
	opacity: 0;
	visibility: hidden;
}

[data-contact-content][data-state="open"] {
	visibility: visible;
	animation: themeDialogIn 0.2s ease both;
}

@keyframes themeFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes themeDialogIn {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* =========================================================================
   WooCommerce / WordPress generated markup
   ========================================================================= */

.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;
}

.screen-reader-text:focus {
	background-color: hsl(var(--background));
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--foreground));
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: 0.5rem;
	top: 0.5rem;
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	width: auto;
	z-index: 100000;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	list-style: none;
	margin: 0 0 2rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-left-width: 3px;
	background-color: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
	border-radius: 0;
}

.woocommerce .woocommerce-message {
	border-left-color: hsl(var(--teal));
}

.woocommerce .woocommerce-info {
	border-left-color: hsl(var(--primary));
}

.woocommerce .woocommerce-error {
	border-left-color: hsl(var(--destructive));
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-error::before {
	display: none;
}

.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-error .button {
	float: right;
	margin-left: 1rem;
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	padding: 0.5rem 1rem;
	border-radius: 9999px;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message,
#theme-cart-drawer .woocommerce-info {
	display: none;
}

/* WooCommerce price output inside the theme's cards and product page */
.woocommerce-Price-amount,
.theme-product-card .price {
	font-variant-numeric: tabular-nums;
}

.theme-product-card .price del,
.theme-product-card .price ins {
	text-decoration: none;
}

.theme-product-card .price del .woocommerce-Price-amount {
	color: hsl(var(--muted-foreground));
	font-weight: 400;
	text-decoration: line-through;
}

.theme-product-card .price ins .woocommerce-Price-amount {
	color: hsl(var(--accent));
}

.single-product .price del {
	color: hsl(var(--muted-foreground));
	font-weight: 400;
}

.woocommerce-product-details__short-description {
	margin-top: 1.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.7;
	color: hsl(var(--muted-foreground));
}

/* Shop pagination */
.woocommerce-pagination {
	margin-top: 4rem;
}

.woocommerce-pagination ul {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
	text-decoration: none;
}

.woocommerce-pagination ul li span.current {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.woocommerce-pagination ul li a:hover {
	border-color: hsl(var(--primary));
}

/* ============================ checkout / cart blocks ==================== */

body.woocommerce-checkout .site-main,
body.theme-checkout-page .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content,
body.theme-checkout-page .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .page-title,
body.theme-checkout-page .page-title,
.woocommerce-cart .page-title,
.woocommerce-account .page-title {
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout,
body.theme-checkout-page .wc-block-checkout {
	display: block;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.theme-checkout-page .wc-block-checkout__main,
body.theme-checkout-page .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.theme-checkout-page .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main,
body.theme-checkout-page .wc-block-components-sidebar-layout > .wc-block-checkout__main {
	grid-column: 1;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar,
body.theme-checkout-page .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
	grid-column: 2;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.theme-checkout-page .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar,
body.theme-checkout-page .wc-block-checkout__sidebar {
	background-color: hsl(var(--secondary));
	border-radius: 1rem;
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.theme-checkout-page .wc-block-components-title,
body.theme-checkout-page .wc-block-checkout__main h2,
body.theme-checkout-page .wc-block-components-checkout-step__title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.005em;
	color: hsl(var(--foreground));
}

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,
body.theme-checkout-page .wc-block-components-text-input input,
body.theme-checkout-page .wc-block-components-select select,
body.theme-checkout-page .wc-blocks-components-select__select,
body.theme-checkout-page .wc-block-components-textarea textarea,
body.theme-checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !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.theme-checkout-page .wc-block-components-text-input input:focus,
body.theme-checkout-page .wc-block-components-select select:focus,
body.theme-checkout-page .wc-blocks-components-select__select:focus,
body.theme-checkout-page .wc-block-components-textarea textarea:focus {
	outline: none !important;
	border-color: hsl(var(--primary)) !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.theme-checkout-page .wc-block-components-text-input label,
body.theme-checkout-page .wc-block-components-select label {
	font-family: var(--font-body) !important;
	font-size: 0.6875rem !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.theme-checkout-page .wc-block-components-checkout-place-order-button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.theme-checkout-page .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.theme-checkout-page .wc-block-cart-items__row {
	border-color: hsl(var(--border));
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value,
body.theme-checkout-page .wc-block-components-totals-item__label,
body.theme-checkout-page .wc-block-components-totals-item__value {
	font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.theme-checkout-page .wc-block-components-totals-item.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--font-display);
}

body.woocommerce-checkout .wc-block-components-button,
body.theme-checkout-page .wc-block-components-button {
	border-radius: 0;
}

/* Classic form rows (fallback when Blocks is unavailable) */
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
}

/* WooCommerce Blocks notices */
body.woocommerce-checkout .wc-block-components-notice-banner,
body.theme-checkout-page .wc-block-components-notice-banner {
	font-family: var(--font-body);
	border-radius: 0.5rem;
	background-color: hsl(var(--secondary));
	border-color: hsl(var(--border));
	color: hsl(var(--foreground));
}

/* ============================== thank you ============================== */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order > p {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: hsl(var(--muted-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;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.2;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 3rem;
	padding: 0;
	border: 1px solid hsl(var(--border));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	padding: 1rem 1.25rem;
	border-right: 1px solid hsl(var(--border));
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li:last-child {
	border-right: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.9375rem;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
	margin-top: 3rem;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	vertical-align: top;
}

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 {
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.7;
	max-width: 480px;
	overflow-wrap: break-word;
	border: 1px solid hsl(var(--border));
	padding: 1.25rem;
}

/* ========================= cart / account pages ========================= */

.woocommerce-cart .woocommerce,
.woocommerce-account .woocommerce {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.woocommerce-cart .entry-content,
.woocommerce-account .entry-content,
.theme-cart-page .entry-content {
	max-width: 100%;
}

.woocommerce-cart .wc-block-cart,
.theme-cart-page .wc-block-cart {
	display: block;
}

@media (min-width: 768px) {
	.woocommerce-cart .wc-block-components-sidebar-layout,
	.theme-cart-page .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
		align-items: start;
	}
}

.woocommerce-cart .wc-block-cart__main,
.woocommerce-cart .wc-block-cart__sidebar,
.theme-cart-page .wc-block-cart__main,
.theme-cart-page .wc-block-cart__sidebar,
.woocommerce-cart .wc-block-cart-items,
.theme-cart-page .wc-block-cart-items {
	min-width: 0;
	width: 100%;
	max-width: none;
}

.woocommerce-account .woocommerce {
	max-width: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
	margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
}

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
	border: 1px solid hsl(var(--border));
	padding: 2rem;
	max-width: 480px;
}

.woocommerce-account .woocommerce-Input,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"] {
	font-family: var(--font-body);
	font-size: 0.875rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	padding: 0.625rem 0.75rem;
	width: 100%;
}

.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button {
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
	border-radius: 0;
	padding: 0.75rem 1.5rem;
	cursor: pointer;
}

/* ============================ entry content ============================ */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.005em;
	color: hsl(var(--foreground));
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content p {
	margin-bottom: 1rem;
}

.entry-content a {
	color: hsl(var(--primary));
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1rem 1.25rem;
	list-style: disc;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

/* ---------------- checkout/account title inset parity ---------------- */
.woocommerce-account .page-title,
.woocommerce-cart .page-title,
body.theme-checkout-page .page-title,
body.theme-thankyou-page .page-title {
	margin-left: auto;
	margin-right: auto;
}

/* Cart block buttons */
.woocommerce-cart .wc-block-components-button,
.theme-cart-page .wc-block-components-button {
	border-radius: 0;
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

/* Order-received inner wrapper keeps the site container width */
.theme-thankyou {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

@media (min-width: 1024px) {
	.theme-thankyou {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}
