@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-400.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-500.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-600.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-700.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-300.ttf") format("truetype");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-400.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-500.ttf") format("truetype");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Outfit";
	src: url("../fonts/outfit-600.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--font-display: "Cormorant Garamond", serif;
	--font-body: "Outfit", sans-serif;
}

.dalia-icon,
.dalia-icon-bag,
.dalia-icon-menu,
.dalia-icon-mail,
.dalia-icon-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.dalia-icon-bag::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	display: block;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dalia-icon-menu::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	display: block;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

.js-mobile-menu-toggle.is-open .dalia-icon-menu::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dalia-icon-mail::before,
.dalia-icon-phone::before {
	content: "";
	width: 1rem;
	height: 1rem;
	display: block;
	background: currentColor;
}

.dalia-icon-mail::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='14' rx='1'/%3E%3Cpath d='m3 7 9 7 9-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dalia-icon-phone::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 20 20 0 0 1-8.6-3 19.6 19.6 0 0 1-6-6A20 20 0 0 1 2 4.2 2 2 0 0 1 4 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.7 2.6a2 2 0 0 1-.5 2.1L8 9.8A16 16 0 0 0 14.2 16l1.3-1.3a2 2 0 0 1 2.1-.5c.8.4 1.7.6 2.6.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 20 20 0 0 1-8.6-3 19.6 19.6 0 0 1-6-6A20 20 0 0 1 2 4.2 2 2 0 0 1 4 2h3a2 2 0 0 1 2 1.7c.1.9.3 1.8.7 2.6a2 2 0 0 1-.5 2.1L8 9.8A16 16 0 0 0 14.2 16l1.3-1.3a2 2 0 0 1 2.1-.5c.8.4 1.7.6 2.6.7A2 2 0 0 1 22 16.9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dalia-cart-root [data-cart-overlay] {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.dalia-cart-root [data-cart-drawer] {
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

/* Side cart: content wrapper as flex column so footer (subtotal + button) stays at bottom like Lovable */
.dalia-cart-root [data-cart-drawer-content] {
	display: flex;
	flex-direction: column;
	flex: 1 1 0%;
	min-height: 0;
}

.dalia-cart-root [data-cart-drawer-content] > div:first-child {
	flex-shrink: 0;
}

.dalia-cart-root [data-cart-drawer-content] .border-t.border-border {
	flex-shrink: 0;
}

.dalia-cart-root.is-open [data-cart-overlay] {
	opacity: 1;
	pointer-events: auto;
	display: block;
}

.dalia-cart-root.is-open [data-cart-drawer] {
	transform: translateX(0);
}

.dalia-range-wrap {
	position: relative;
	height: 1.5rem;
}

.dalia-range {
	position: absolute;
	left: 0;
	top: 4px;
	width: 100%;
	margin: 0;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.dalia-range::-webkit-slider-thumb {
	appearance: none;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background: hsl(var(--primary));
	border: 2px solid hsl(var(--background));
	box-shadow: 0 1px 2px hsl(var(--foreground) / 0.2);
	pointer-events: auto;
	cursor: pointer;
}

.dalia-range::-moz-range-thumb {
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background: hsl(var(--primary));
	border: 2px solid hsl(var(--background));
	box-shadow: 0 1px 2px hsl(var(--foreground) / 0.2);
	pointer-events: auto;
	cursor: pointer;
}

.dalia-range-track,
.dalia-range-fill {
	position: absolute;
	top: 0.625rem;
	height: 0.25rem;
	border-radius: 999px;
}

.dalia-range-track {
	left: 0;
	right: 0;
	background: hsl(var(--muted));
}

.dalia-range-fill {
	background: hsl(var(--primary));
	left: 0;
	width: 0;
}

.js-category-filter.is-active {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.js-price-filter-panel.is-open {
	max-height: 10rem;
	opacity: 1;
	padding: 0.5rem 0;
}

/* Filter by price: labels fixed at track ends, not under handles */
.js-price-filter-panel .dalia-range-wrap {
	width: 100%;
}

.js-price-filter-panel .js-price-min-label,
.js-price-filter-panel .js-price-max-label {
	white-space: nowrap;
}

.js-price-filter-panel .js-price-min-label {
	text-align: left;
}

.js-price-filter-panel .js-price-max-label {
	text-align: right;
}

.js-price-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.js-price-chevron.is-open {
	transform: rotate(180deg);
}

.dalia-sale-badge {
	position: absolute;
	left: 0.5rem;
	top: 0.5rem;
	background: hsl(var(--forest));
	color: hsl(var(--cream));
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.25rem 0.45rem;
}

.dalia-error-box {
	border: 1px solid hsl(var(--destructive) / 0.4);
	background: hsl(var(--destructive) / 0.1);
	color: hsl(var(--foreground));
}

.single-product div.product .dalia-single-gallery-wrap {
	margin: 0 !important;
	width: 100% !important;
	float: none !important;
	position: relative;
}

.single-product div.product .woocommerce-product-gallery {
	margin: 0 !important;
	width: 100% !important;
	float: none !important;
	position: relative;
}

/* FlexSlider wrapper: stack viewport and thumbnails; FlexSlider controls internal slide layout */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport,
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image--placeholder {
	flex: 0 0 auto;
}

/* FlexSlider viewport: full width, proper height for slides */
.single-product div.product .woocommerce-product-gallery .flex-viewport {
	position: relative;
	overflow: hidden;
	border-radius: 0.375rem;
	min-height: 20rem;
	width: 100%;
}

/* FlexSlider slides: opacity for fade, keep in DOM for Photoswipe lightbox */
.single-product div.product .woocommerce-product-gallery .flex-viewport .slides {
	margin: 0;
	padding: 0;
	list-style: none;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport .slides li {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport .slides li.flex-active-slide {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport .slides li.flex-active-slide img {
	opacity: 1;
}

/* Image links for lightbox - ensure block display */
.single-product div.product .woocommerce-product-gallery__image a {
	display: block;
	cursor: pointer;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image img,
.single-product div.product .woocommerce-product-gallery__image--placeholder img {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}

/* Gallery thumbnails in row below main image */
.single-product div.product .flex-control-thumbs {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.single-product div.product .flex-control-thumbs li {
	width: 4rem;
	height: 4rem;
	min-width: 4rem;
	flex-shrink: 0;
	margin: 0 !important;
}

.single-product div.product .flex-control-thumbs img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center;
	border-radius: 0.25rem;
	border: 1px solid hsl(var(--border));
	cursor: pointer;
}

/* Products without gallery (single image) - ensure image shows */
.single-product div.product .woocommerce-product-gallery--without-images .woocommerce-product-gallery__wrapper,
.single-product div.product .woocommerce-product-gallery__image--placeholder {
	overflow: hidden;
	border-radius: 0.375rem;
	display: block !important;
}

.single-product div.product .woocommerce-product-gallery__image--placeholder img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

/* Hide zoom icon; lightbox still works on image click */
.single-product .woocommerce-product-gallery__trigger,
.single-product img.zoomImg {
	display: none !important;
}

.single-product div.product .summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.single-product .product_title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 1.2;
	margin: 0.5rem 0 1rem;
}

@media (min-width: 768px) {
	.single-product .product_title {
		font-size: 1.875rem;
	}
}

.single-product .summary .price {
	font-size: 1.25rem;
	margin-bottom: 1.5rem;
	color: hsl(var(--foreground));
}

.single-product .woocommerce-product-details__short-description {
	color: hsl(var(--muted-foreground));
	line-height: 1.625;
	margin-bottom: 2rem;
}

.single-product .dalia-product-long-description {
	color: hsl(var(--muted-foreground));
	line-height: 1.625;
	margin-bottom: 1.5rem;
}

.single-product .dalia-product-long-description p {
	margin-bottom: 0.75rem;
}

.single-product .dalia-product-long-description p:last-child {
	margin-bottom: 0;
}

.single-product .dalia-product-details-section {
	margin-bottom: 2rem;
}

.single-product .dalia-product-details-content ul,
.single-product .dalia-product-details-content ol {
	margin: 0 0 0.75rem 0;
	padding-left: 1.25rem;
	list-style-position: outside;
}

.single-product .dalia-product-details-content ul {
	list-style-type: disc;
}

.single-product .dalia-product-details-content ol {
	list-style-type: decimal;
}

.single-product .dalia-product-details-content li {
	margin-bottom: 0.25rem;
}

.single-product .dalia-product-details-content p {
	margin-bottom: 0.5rem;
}

.single-product .dalia-product-details-content p:last-child {
	margin-bottom: 0;
}

.single-product .variations_form table.variations,
.single-product form.cart table.variations {
	width: 100%;
	margin-bottom: 1.5rem;
}

.single-product .variations .label {
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.75rem;
	display: block;
}

.single-product .variations select {
	min-width: 120px;
	cursor: pointer;
}

.single-product form.cart .variations_button {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 2rem;
}

.single-product form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-bottom: 2rem;
}

.single-product form.cart .quantity {
	display: flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	margin-bottom: 0;
}

.single-product form.cart .quantity .qty {
	border: 0 !important;
	border-radius: 0;
	min-width: 3rem;
	text-align: center;
}

.single-product form.cart .quantity .qty,
.woocommerce-cart-form input.qty,
.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: 0.375rem;
	padding: 0.75rem 0.875rem;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
}

.single-product .single_add_to_cart_button,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 0 !important;
	border-radius: 0.375rem !important;
	padding: 0.75rem 1rem !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.single-product .single_add_to_cart_button:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	opacity: 0.9;
}

.single-product .product_meta {
	border-top: 1px solid hsl(var(--border));
	padding-top: 2rem;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

.single-product .product_meta > span {
	display: flex;
	align-items: flex-start;
	margin-bottom: 0.5rem;
}

.single-product .product_meta > span:last-child {
	margin-bottom: 0;
}

.single-product .product_meta > span::before {
	content: "";
	width: 6px;
	height: 6px;
	min-width: 6px;
	border-radius: 50%;
	background: hsl(var(--muted-foreground));
	margin-right: 0.75rem;
	margin-top: 0.5rem;
}

.single-product .woocommerce-tabs {
	display: none;
}

.single-product .woocommerce-tabs ul.tabs {
	padding: 0;
	margin: 0 0 1.5rem;
	display: flex;
	gap: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
}

.single-product .woocommerce-tabs ul.tabs li {
	border: 0 !important;
	background: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
	padding: 0.75rem 0.25rem !important;
	font-size: 0.875rem;
	font-weight: 500 !important;
	color: hsl(var(--muted-foreground)) !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
	color: hsl(var(--foreground)) !important;
}

.single-product .related > h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin-bottom: 2.5rem;
}

.single-product .related ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (min-width: 1024px) {
	.single-product .related ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
}

/* Checkout: match Lovable - Contact / Shipping section headings */
.woocommerce-checkout form.checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout form.checkout .woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row,
.woocommerce-checkout .woocommerce-shipping-fields .form-row,
.woocommerce-checkout .woocommerce-additional-fields .form-row {
	margin-bottom: 0.75rem;
}

/* Checkout inputs: Lovable style px-4 py-3, rounded, focus:ring-1 focus:ring-primary */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0.25rem;
	color: hsl(var(--foreground));
	transition: border-color 0.15s, box-shadow 0.15s;
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
	color: hsl(var(--muted-foreground));
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
	outline: none;
	border-color: hsl(var(--primary));
	box-shadow: 0 0 0 1px hsl(var(--primary));
}

.woocommerce-checkout .form-row label {
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.25rem;
	display: block;
}

/* Lovable: grid 2 cols for first/last name */
.woocommerce-checkout .woocommerce-billing-fields .form-row-first,
.woocommerce-checkout .woocommerce-billing-fields .form-row-last,
.woocommerce-checkout .woocommerce-shipping-fields .form-row-first,
.woocommerce-checkout .woocommerce-shipping-fields .form-row-last {
	display: inline-block;
	width: calc(50% - 0.375rem);
	vertical-align: top;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row-first,
.woocommerce-checkout .woocommerce-shipping-fields .form-row-first {
	margin-right: 0.75rem;
}

.woocommerce-checkout .woocommerce-billing-fields .form-row-wide,
.woocommerce-checkout .woocommerce-shipping-fields .form-row-wide {
	display: block;
	width: 100%;
}

/* Lovable: city, state, ZIP full width (each on its own row) */
.woocommerce-checkout .woocommerce-shipping-fields .form-row.shipping_city,
.woocommerce-checkout .woocommerce-shipping-fields .form-row.shipping_state,
.woocommerce-checkout .woocommerce-shipping-fields .form-row.shipping_postcode {
	display: block;
	width: 100%;
}

.woocommerce-checkout #order_review .woocommerce-checkout-review-order {
	display: flex;
	flex-direction: column;
}

.woocommerce-checkout .shop_table {
	border: 0 !important;
	border-collapse: collapse !important;
}

.woocommerce-checkout .shop_table td,
.woocommerce-checkout .shop_table th {
	border: 0 !important;
	padding: 0.5rem 0 !important;
	font-size: 0.9375rem;
}

.woocommerce-checkout .shop_table tfoot th {
	color: hsl(var(--muted-foreground));
	font-weight: 400;
}

.woocommerce-checkout .shop_table tfoot tr.order-total th,
.woocommerce-checkout .shop_table tfoot tr.order-total td {
	padding-top: 1rem !important;
	border-top: 1px solid hsl(var(--border)) !important;
	font-size: 1rem;
	color: hsl(var(--foreground));
	font-weight: 600;
}

/* Payment: Lovable-style - subtle background/border, full-width Place Order */
.woocommerce-checkout #order_review #payment {
	margin-top: 1.5rem;
}

.woocommerce-checkout #payment {
	background: transparent !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	padding: 1.25rem !important;
	margin-top: 1.5rem !important;
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
}

.woocommerce-checkout #payment ul.payment_methods {
	border: 0 !important;
	border-bottom: 1px solid hsl(var(--border)) !important;
	padding-bottom: 1rem !important;
	margin-bottom: 1rem !important;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-checkout .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	border-top: 0;
	border-radius: 0.5rem;
	padding: 0.875rem 1rem 0.875rem 2.5rem;
}

.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce .woocommerce-notices-wrapper {
	margin-bottom: 1rem;
}

.woocommerce-checkout .woocommerce-error::before,
.woocommerce-checkout .woocommerce-info::before,
.woocommerce-checkout .woocommerce-message::before,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before {
	color: hsl(var(--primary));
}

.woocommerce-privacy-policy-text {
	font-size: 0.75rem;
	color: hsl(var(--muted-foreground));
}

.woocommerce form .form-row .required {
	color: hsl(var(--destructive));
}

.woocommerce-checkout .select2-container .select2-selection--single,
.woocommerce-checkout .select2-container .select2-selection--multiple {
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	min-height: 46px;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 0.875rem;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

/* Checkout block (native WooCommerce block): theme styles only, no structure changes */
.wp-block-woocommerce-checkout,
.wc-block-checkout {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.wp-block-woocommerce-checkout h2,
.wp-block-woocommerce-checkout h3,
.wc-block-checkout h2,
.wc-block-checkout h3,
.wp-block-woocommerce-checkout .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-item__label {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--foreground));
}

.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item__value,
.wc-block-checkout .wc-block-components-totals-footer-item__value,
.wp-block-woocommerce-checkout .wc-block-components-formatted-money-amount,
.wc-block-checkout .wc-block-components-formatted-money-amount {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.wp-block-woocommerce-checkout label,
.wc-block-checkout label,
.wp-block-woocommerce-checkout .wc-block-components-text-input-label,
.wc-block-checkout .wc-block-components-text-input-label {
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
}

.wp-block-woocommerce-checkout input[type="text"],
.wp-block-woocommerce-checkout input[type="email"],
.wp-block-woocommerce-checkout input[type="tel"],
.wp-block-woocommerce-checkout input[type="number"],
.wp-block-woocommerce-checkout textarea,
.wp-block-woocommerce-checkout select,
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="number"],
.wc-block-checkout textarea,
.wc-block-checkout select {
	padding: 0.75rem 1rem;
	font-size: 0.875rem!important;
	font-family: var(--font-body)!important;
	background: hsl(var(--background))!important;
	border: 1px solid hsl(var(--border))!important;
	border-radius: 0.25rem!important;
	color: hsl(var(--foreground))!important;
	transition: border-color 0.15s, box-shadow 0.15s!important;
}

.wp-block-woocommerce-checkout input::placeholder,
.wp-block-woocommerce-checkout textarea::placeholder,
.wc-block-checkout input::placeholder,
.wc-block-checkout textarea::placeholder {
	color: hsl(var(--muted-foreground));
}

.wp-block-woocommerce-checkout input:focus,
.wp-block-woocommerce-checkout textarea:focus,
.wp-block-woocommerce-checkout select:focus,
.wc-block-checkout input:focus,
.wc-block-checkout textarea:focus,
.wc-block-checkout select:focus {
	outline: none;
	border-color: hsl(var(--primary));
	box-shadow: 0 0 0 1px hsl(var(--primary));
}

.wp-block-woocommerce-checkout .wc-block-components-totals-item__value,
.wc-block-checkout .wc-block-components-totals-item__value {
	color: hsl(var(--muted-foreground));
}

.wp-block-woocommerce-checkout .wc-block-components-totals-footer-item,
.wc-block-checkout .wc-block-components-totals-footer-item {
	border-top: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	font-weight: 600;
	font-size: 1rem;
}

.wp-block-woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout .wc-block-components-button,
.wc-block-checkout .wc-block-components-button {
	width: 100%;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	font-family: var(--font-body);
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
	border-radius: 0.375rem;
	transition: background-color 0.15s, color 0.15s;
}

.wp-block-woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout .wc-block-components-button:not([aria-disabled="true"]):hover,
.wc-block-checkout .wc-block-components-button:not([aria-disabled="true"]):hover {
	background: hsl(var(--primary) / 0.9);
	color: hsl(var(--primary-foreground));
}

.wp-block-woocommerce-checkout .wc-block-components-payment-method-label,
.wc-block-checkout .wc-block-components-payment-method-label {
	font-family: var(--font-body);
	font-weight: 500;
	color: hsl(var(--foreground));
}

.wp-block-woocommerce-checkout .wc-block-components-payment-methods,
.wc-block-checkout .wc-block-components-payment-methods {
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	background: transparent;
}

.wp-block-woocommerce-checkout .wc-block-components-payment-method,
.wc-block-checkout .wc-block-components-payment-method {
	border-bottom: 1px solid hsl(var(--border));
}

.wp-block-woocommerce-checkout .wc-block-components-notice-banner,
.wc-block-checkout .wc-block-components-notice-banner,
.wp-block-woocommerce-checkout .wc-block-components-validation-error,
.wc-block-checkout .wc-block-components-validation-error {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	border-radius: 0.5rem;
	padding: 0.875rem 1rem;
}

.wp-block-woocommerce-checkout .wc-block-components-validation-error,
.wc-block-checkout .wc-block-components-validation-error {
	color: hsl(var(--destructive));
}

.wp-block-woocommerce-checkout .wc-block-components-checkbox-label,
.wc-block-checkout .wc-block-components-checkbox-label {
	font-size: 0.875rem;
	color: hsl(var(--foreground));
}

.wp-block-woocommerce-checkout .wc-block-components-radio-control__option label,
.wc-block-checkout .wc-block-components-radio-control__option label {
	font-weight: 400;
}

/* Thank you page: theme-aligned typography, cards, spacing */
.dalia-thankyou-page {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

.dalia-thankyou-page .container-wide {
	padding-top: 1.5rem;
	padding-bottom: 3rem;
}

.dalia-thankyou-page .woocommerce-order {
	margin-bottom: 2rem;
	padding: 2rem 0;
}

.dalia-thankyou-page .dalia-thankyou-title {
	text-align: center;
	font-family: var(--font-display);
	color: hsl(var(--primary));
	margin-bottom: 1.5rem;
}

.dalia-thankyou-page .dalia-thankyou-content {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
	padding: 2rem 1.5rem;
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
}

/* Hide duplicate WC message (we show it in h1.dalia-thankyou-title) */
.dalia-thankyou-page .woocommerce-thankyou-order-received-text,
.dalia-thankyou-page .woocommerce-notice.woocommerce-notice--success {
	display: none;
}

/* Order summary box (order number, date, email, total, payment method) */
.dalia-thankyou-page .woocommerce-order-overview {
	list-style: none;
	margin: 0 0 2rem 0;
	padding: 0;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--secondary));
	border-radius: 0.5rem;
	overflow: hidden;
}

.dalia-thankyou-page .woocommerce-order-overview li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.875rem 1.25rem;
	font-size: 0.9375rem;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
	border-bottom: 1px solid hsl(var(--border));
}

.dalia-thankyou-page .woocommerce-order-overview li:last-child {
	border-bottom: 0;
}

.dalia-thankyou-page .woocommerce-order-overview li strong {
	font-weight: 500;
	color: hsl(var(--foreground));
}

/* Section headings: left-aligned, serif, theme primary (image-style) */
.dalia-thankyou-page .woocommerce-order-details,
.dalia-thankyou-page .woocommerce-order h2 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--primary));
	text-align: left;
	margin-top: 2rem;
	margin-bottom: 1rem;
	padding-bottom: 0;
	border-bottom: 0;
}

.dalia-thankyou-page .woocommerce-order-details:first-child,
.dalia-thankyou-page .woocommerce-order > h2:first-of-type {
	margin-top: 0;
}

.dalia-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--primary));
	text-align: left;
	margin-bottom: 1rem;
	border-bottom: 0;
	padding-bottom: 0;
}

/* Order details table: same box style as order summary (image) */
.dalia-thankyou-page .woocommerce-table--order-details,
.dalia-thankyou-page .shop_table.order_details {
	border: 2px solid hsl(var(--border)) !important;
	border-collapse: collapse !important;
	width: 100% !important;
	font-family: var(--font-body) !important;
	background: hsl(var(--secondary)) !important;
	border-radius: 0.5rem !important;
	overflow: hidden !important;
}

.dalia-thankyou-page .woocommerce-order-details .woocommerce-table--order-details,
.dalia-thankyou-page .woocommerce-order-details .shop_table.order_details {
	margin-top: 0.5rem !important;
}

.dalia-thankyou-page .woocommerce-table--order-details thead,
.dalia-thankyou-page .shop_table.order_details thead {
	background: transparent !important;
}

.dalia-thankyou-page .woocommerce-table--order-details thead th,
.dalia-thankyou-page .shop_table.order_details thead th {
	border-bottom: 2px solid hsl(var(--border)) !important;
	border-right: 1px solid hsl(var(--border)) !important;
	padding: 1rem 1.5rem !important;
	color: hsl(var(--foreground)) !important;
	font-weight: 500 !important;
	font-size: 0.875rem !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.dalia-thankyou-page .woocommerce-table--order-details thead th:last-child,
.dalia-thankyou-page .shop_table.order_details thead th:last-child {
	border-right: 0 !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tbody tr,
.dalia-thankyou-page .shop_table.order_details tbody tr {
	border-bottom: 1px solid hsl(var(--border)) !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tbody td:first-child a,
.dalia-thankyou-page .shop_table.order_details tbody td:first-child a {
	color: hsl(var(--primary)) !important;
	font-weight: 500 !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tbody td:first-child a:hover,
.dalia-thankyou-page .shop_table.order_details tbody td:first-child a:hover {
	text-decoration: underline !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tbody tr:last-child,
.dalia-thankyou-page .shop_table.order_details tbody tr:last-child {
	border-bottom: 0 !important;
}

.dalia-thankyou-page .woocommerce-table--order-details th,
.dalia-thankyou-page .woocommerce-table--order-details td,
.dalia-thankyou-page .shop_table.order_details th,
.dalia-thankyou-page .shop_table.order_details td {
	padding: 1rem 1.5rem !important;
	font-size: 0.9375rem !important;
	color: hsl(var(--foreground)) !important;
	vertical-align: top !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tbody th,
.dalia-thankyou-page .woocommerce-table--order-details tbody td,
.dalia-thankyou-page .shop_table.order_details tbody th,
.dalia-thankyou-page .shop_table.order_details tbody td {
	border-right: 1px solid hsl(var(--border)) !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tbody th:last-child,
.dalia-thankyou-page .woocommerce-table--order-details tbody td:last-child,
.dalia-thankyou-page .shop_table.order_details tbody th:last-child,
.dalia-thankyou-page .shop_table.order_details tbody td:last-child {
	border-right: 0 !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tfoot th,
.dalia-thankyou-page .shop_table.order_details tfoot th {
	color: hsl(var(--muted-foreground)) !important;
	font-weight: 400 !important;
	border-right: 1px solid hsl(var(--border)) !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tfoot td,
.dalia-thankyou-page .shop_table.order_details tfoot td {
	border-right: 1px solid hsl(var(--border)) !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tfoot th:last-child,
.dalia-thankyou-page .woocommerce-table--order-details tfoot td:last-child,
.dalia-thankyou-page .shop_table.order_details tfoot th:last-child,
.dalia-thankyou-page .shop_table.order_details tfoot td:last-child {
	border-right: 0 !important;
}

.dalia-thankyou-page .woocommerce-table--order-details tfoot tr.order-total th,
.dalia-thankyou-page .woocommerce-table--order-details tfoot tr.order-total td,
.dalia-thankyou-page .shop_table.order_details tfoot tr.order-total th,
.dalia-thankyou-page .shop_table.order_details tfoot tr.order-total td {
	padding-top: 1.25rem !important;
	padding-bottom: 1.25rem !important;
	border-top: 2px solid hsl(var(--border)) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	color: hsl(var(--foreground)) !important;
	background: transparent !important;
}

/* Addresses: single parent section with grid; inner section is layout-transparent so the two address divs are direct grid children */
.dalia-thankyou-page .woocommerce-customer-details {
	margin-top: 1.5rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

/* When only billing (no shipping), WooCommerce sometimes outputs h2 + address as direct children with no inner wrapper: force column layout so details sit below the title, not beside it */
.dalia-thankyou-page .woocommerce-customer-details:has(> h2) {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	border-radius: 0.5rem;
}
.dalia-thankyou-page .woocommerce-customer-details:has(> h2) > h2 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--primary));
	text-align: left;
	margin-bottom: 0;
	padding-bottom: 0;
}
.dalia-thankyou-page .woocommerce-customer-details:has(> h2) > address {
	display: block;
	margin-top: 0.5rem;
	font-style: normal;
	font-size: 0.9375rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.65;
}

/* Inner section (col2-set) does not create a box: its children become the grid items of .woocommerce-customer-details */
.dalia-thankyou-page .woocommerce-customer-details > .woocommerce-columns--addresses,
.dalia-thankyou-page .woocommerce-customer-details > .woocommerce-column--addresses {
	display: contents;
}

@media (min-width: 480px) {
	/* Only use grid when we have the inner section wrapper (billing + shipping structure) */
	.dalia-thankyou-page .woocommerce-customer-details:has(> section) {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
		padding: 0;
		border: 0;
		background: transparent;
		border-radius: 0;
	}

	/* When only one address block (billing only, no shipping), single column so it doesn't sit in half width */
	.dalia-thankyou-page .woocommerce-customer-details:has(> section .woocommerce-column:only-child) {
		grid-template-columns: 1fr;
	}
}

.dalia-thankyou-page .woocommerce-column--addresses .woocommerce-column,
.dalia-thankyou-page .woocommerce-customer-details .woocommerce-column {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	border-radius: 0.5rem;
}

.dalia-thankyou-page .woocommerce-column--addresses .woocommerce-column address,
.dalia-thankyou-page .woocommerce-customer-details .woocommerce-column address {
	display: block;
	margin-top: 0.5rem;
}

.dalia-thankyou-page .woocommerce-column--addresses .woocommerce-column__title,
.dalia-thankyou-page .woocommerce-customer-details h2 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 500;
	color: hsl(var(--primary));
	text-align: left;
	margin-bottom: 0.75rem;
	padding-bottom: 0;
}

.dalia-thankyou-page .woocommerce-column--addresses address,
.dalia-thankyou-page .woocommerce-customer-details address {
	font-style: normal;
	font-size: 0.9375rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.65;
}

/* Buttons: theme primary/secondary, spacing when grouped */
.dalia-thankyou-page .woocommerce-order .button,
.dalia-thankyou-page a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--font-body);
	border-radius: 0.375rem;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
	text-decoration: none;
	margin-top: 1rem;
	margin-right: 0.75rem;
	margin-bottom: 0.25rem;
}

.dalia-thankyou-page .woocommerce-order .button.alt,
.dalia-thankyou-page a.button:not(.secondary) {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 0;
}

.dalia-thankyou-page .woocommerce-order .button.alt:hover,
.dalia-thankyou-page a.button:not(.secondary):hover {
	background: hsl(var(--primary) / 0.9);
	color: hsl(var(--primary-foreground));
}

.dalia-thankyou-page .woocommerce-order .button.secondary,
.dalia-thankyou-page a.button.secondary {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--background));
	color: hsl(var(--foreground));
}

.dalia-thankyou-page .woocommerce-order .button.secondary:hover,
.dalia-thankyou-page a.button.secondary:hover {
	background: hsl(var(--accent));
	color: hsl(var(--accent-foreground));
}

/* Payment method / extra info if present */
.dalia-thankyou-page .woocommerce-order .woocommerce-bacs-bank-details,
.dalia-thankyou-page .woocommerce-order .woocommerce-order-bank-details {
	padding: 1rem 0;
	margin-top: 0.5rem;
	font-size: 0.9375rem;
	color: hsl(var(--muted-foreground));
	line-height: 1.6;
}

.dalia-thankyou-page .woocommerce-order .woocommerce-bacs-bank-details h2,
.dalia-thankyou-page .woocommerce-order .woocommerce-order-bank-details h2 {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 500;
	color: hsl(var(--foreground));
	margin-bottom: 0.5rem;
}
