/* Florin — Miere Pură. Ordinary, editable CSS; no preprocessor or build step.
   Shared layout helpers retain the original template's spacing and colours. */

/* Palette and document defaults */
:root {
  --background: 45 40% 97%; --foreground: 30 20% 15%;
  --card: 42 60% 95%; --card-foreground: 30 20% 15%;
  --primary: 42 95% 45%; --primary-foreground: 30 10% 98%;
  --muted-foreground: 30 15% 40%; --accent: 45 90% 55%;
  --accent-foreground: 30 10% 98%; --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%; --border: 40 25% 85%;
  --ring: 42 95% 45%; --radius: .75rem;
}
*, ::before, ::after { box-sizing: border-box; border: 0 solid hsl(var(--border)); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, input[type=submit] { appearance: button; background: transparent; cursor: pointer; }
button:disabled { cursor: default; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
textarea { resize: vertical; }
fieldset { margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
img, svg { display: block; vertical-align: middle; }
img { max-width: 100%; height: auto; }
summary { display: list-item; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid hsl(var(--ring)); outline-offset: 2px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: 2rem; }

/* Reusable controls */
.field-label { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.field { display: block; width: 100%; margin-top: .5rem; border-width: 1px; border-radius: calc(var(--radius) - 2px); background: hsl(var(--background)); padding: .5rem .75rem; font-size: 1rem; line-height: 1.5rem; }
.field[aria-invalid="true"] { border-color: hsl(var(--destructive)); }
.field-hint, .field-feedback { display: block; margin-top: .5rem; font-size: .875rem; line-height: 1.4; font-weight: 400; }
.field-hint { color: #4b5563; }
.field-feedback { color: hsl(var(--destructive)); }
.field-feedback:empty { display: none; }
.field-feedback[data-state="valid"], .field-feedback[data-state="pending"], .field-feedback[data-state="unavailable"] { color: #4b5563; }
.primary-button { display: inline-flex; min-height: 2.5rem; align-items: center; justify-content: center; border-radius: 9999px; background: #facc15; padding: .5rem 1.25rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: #111827; }
.primary-button:hover { background: #eab308; }
.primary-button:disabled { opacity: .5; }
.htmx-request button[type=submit] { cursor: wait; opacity: .5; }
[data-form-message]:empty { display: none; }

/* Layout */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.right-0 { right: 0; }
.top-2 { top: .5rem; }
.right-2 { right: .5rem; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.-top-2 { top: -.5rem; }
.-right-2 { right: -.5rem; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.grid-cols-1 { grid-template-columns: repeat(1,minmax(0,1fr)); }
.col-span-full { grid-column: 1 / -1; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer { cursor: pointer; }
.resize-none { resize: none; }
.object-cover { object-fit: cover; }
.break-words { overflow-wrap: break-word; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.mx-auto { margin-inline: auto; }
.ml-auto { margin-left: auto; }
.z-50 { z-index: 50; }
.z-\[70\] { z-index: 70; }
.z-\[71\] { z-index: 71; }
.z-\[100\] { z-index: 100; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.p-0 { padding: 0rem; }
.p-1 { padding: 0.25rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-8 { padding-right: 2rem; }
.pl-3 { padding-left: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-56 { height: 14rem; }
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-h-screen { max-height: 100vh; }
.max-h-32 { max-height: 8rem; }
.min-h-24 { min-height: 6rem; }
.min-h-\[80px\] { min-height: 80px; }
.max-w-lg { max-width: 32rem; }
.max-w-4xl { max-width: 56rem; }

/* Type and surfaces */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-none { line-height: 1; }
.tracking-tight { letter-spacing: -.025em; }
.not-italic { font-style: normal; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.underline { text-decoration-line: underline; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bg-background { background-color: hsl(var(--background)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-destructive { background-color: hsl(var(--destructive)); }
.bg-white { background-color: #fff; }
.bg-gray-800 { background-color: #1f2937; }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-50 { background-color: #fefce8; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-yellow-200 { background-color: #fef08a; }
.bg-yellow-400 { background-color: #facc15; }
.bg-yellow-500 { background-color: #eab308; }
.bg-white\/80 { background-color: rgb(255 255 255 / .8); }
.bg-black\/80 { background-color: rgb(0 0 0 / .8); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom,#fef9c3,#fefce8,#fff); }
.text-foreground { color: hsl(var(--foreground)); }
.text-card-foreground { color: hsl(var(--card-foreground)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-destructive { color: hsl(var(--destructive)); }
.text-destructive-foreground { color: hsl(var(--destructive-foreground)); }
.text-white { color: #fff; }
.text-black { color: #000; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-yellow-500 { color: #eab308; }
.text-foreground\/50 { color: hsl(var(--foreground) / .5); }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-l-2 { border-left-width: 2px; }
.border-input { border-color: hsl(var(--border)); }
.border-destructive { border-color: hsl(var(--destructive)); }
.border-yellow-200 { border-color: #fef08a; }
.border-yellow-300 { border-color: #fde047; }
.rounded { border-radius: .25rem; }
.rounded-sm { border-radius: calc(var(--radius) - 4px); }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-full { border-radius: 9999px; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
.hover\:bg-accent:hover { background-color: hsl(var(--accent)); }
.hover\:bg-yellow-100:hover { background-color: #fef9c3; }
.hover\:bg-yellow-500:hover { background-color: #eab308; }
.hover\:bg-yellow-600:hover { background-color: #ca8a04; }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / .9); }
.hover\:bg-destructive\/90:hover { background-color: hsl(var(--destructive) / .9); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:text-accent-foreground:hover { color: hsl(var(--accent-foreground)); }
.hover\:text-yellow-400:hover { color: #facc15; }
.hover\:underline:hover { text-decoration-line: underline; }
.placeholder\:text-muted-foreground::placeholder { color: hsl(var(--muted-foreground)); }
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }
.hover\:opacity-100:hover { opacity: 1; }
.focus\:opacity-100:focus { opacity: 1; }
.disabled\:opacity-50:disabled { opacity: .5; }
.disabled\:pointer-events-none:disabled { pointer-events: none; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* Keep each product's purchase action in the same bottom-right position. */
.store-account-icon { display: none; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-card > .overflow-hidden { flex-shrink: 0; }
.product-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.product-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .75rem; margin-top: auto; padding-top: 1.5rem; }
.product-card-price { min-width: 0; overflow-wrap: anywhere; }
.product-card-amount { display: block; }
.product-card-actions > button { min-width: 9.25rem; }
.product-title-link:hover { text-decoration: underline; text-underline-offset: .2rem; }
.product-breadcrumbs { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; color: #4b5563; }
.product-breadcrumbs a { text-decoration: underline; }
.product-detail-grid .product-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.product-detail-grid .product-card img { height: 100%; max-height: 38rem; aspect-ratio: 1; object-fit: contain; }
.product-detail-grid .product-card-body { padding: 2rem; }
.product-detail-grid h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 1.25rem; }
.product-detail-grid .product-card-actions { margin-top: 1.5rem; }
.product-variants { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem; }
.product-variants a { display: inline-flex; align-items: center; min-height: 2.75rem; border: 1px solid #9a8358; border-radius: .5rem; padding: .5rem .875rem; }
.product-variants a[aria-current] { background: #facc15; color: #111827; border-color: #a16207; font-weight: 600; }
.product-stock { font-weight: 600; margin-block: .5rem; }
@media (max-width: 760px) {
  .product-detail-grid .product-card { grid-template-columns: minmax(0, 1fr); }
  .product-detail-grid .product-card-body { padding: 1.5rem; }
}

/* Phone storefront: spend space on products, with the same 44px touch controls
   and 16px form text used in checkout and the account workspace. */
@media (max-width: 639px) {
  .store-header-shell { gap: .5rem; padding: .5rem .75rem; }
  .store-brand { min-width: 0; gap: .375rem; }
  .store-brand > svg { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; }
  .store-brand > a { display: flex; align-items: center; min-height: 2.75rem; font-size: 1.125rem; line-height: 1.25; }
  .store-header-actions { flex-shrink: 0; gap: .25rem; }
  .store-account-link, .store-header [data-cart-open] { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; }
  .store-account-icon { display: block; }
  .store-account-link > span { display: none; }
  .store-header #cart-count-badge { right: -.25rem; top: -.25rem; }
  .store-main { padding: 1rem .75rem; }
  .product-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .product-catalog .product-card img { height: auto; aspect-ratio: 4 / 3; }
  .product-catalog .product-card-body { padding: .75rem; }
  .product-catalog h2 { min-height: 2.75rem; margin-bottom: .375rem; font-size: 1rem; line-height: 1.375; }
  .product-catalog .line-clamp-2 { height: 2.5rem; margin-bottom: 0; font-size: .875rem; line-height: 1.25rem; }
  .product-catalog .product-card-actions { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-top: .75rem; }
  .product-catalog .product-card-price { font-size: 1.25rem; line-height: 1.5rem; }
  .product-catalog .product-card-price .text-base { font-size: .8125rem; line-height: 1.25rem; }
  .product-catalog .product-card-actions > button { width: 100%; min-width: 0; gap: .375rem; padding-inline: .5rem; }
  .store-main [data-add-to-cart], .store-main .field { min-height: 2.75rem; }
  .store-main [data-add-to-cart] svg { flex-shrink: 0; }
  .product-breadcrumbs { gap: .5rem; margin-bottom: .75rem; font-size: .875rem; }
  .product-detail-grid .product-card img { height: min(65vw, 18rem); }
  .product-detail-grid .product-card-body { padding: 1rem; }
  .product-detail-grid h1 { font-size: 1.5rem; margin-bottom: .75rem; }
  .product-detail-grid .product-card-actions { margin-top: .5rem; padding-top: .75rem; }
  .store-benefits { margin-top: 1rem; padding: 1.5rem .75rem; }
  .store-benefits > .container { padding: 0; }
  .store-benefits-grid { gap: 1.25rem; text-align: left; }
  .store-benefits-grid > div { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .75rem; }
  .store-benefits-grid .text-5xl { grid-row: span 2; margin: 0; font-size: 2rem; }
  .store-benefits h3 { margin-bottom: .25rem; font-size: 1rem; line-height: 1.5; }
  .store-benefits p { font-size: .875rem; }
  #cart-drawer { padding: 1rem; }
  .cart-close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; top: .5rem; right: .5rem; }
  #cart-title { padding-inline: 2rem; }
  #cart-content { margin-top: 1rem; }
  .cart-line-body { padding: .75rem; }
  .cart-line-image { flex: 0 0 3.5rem; width: 3.5rem; height: 3.5rem; }
  #cart-drawer .cart-quantity-controls { gap: .25rem; }
  #cart-drawer .cart-quantity-controls button { width: 2.75rem; height: 2.75rem; }
  #cart-drawer .cart-quantity-input { width: 3rem; height: 2.75rem; }
  #cart-checkout-button { min-height: 2.75rem; }
}
@media (max-width: 359px) {
  .product-catalog { grid-template-columns: minmax(0, 1fr); }
  .product-catalog .product-card img { height: 11rem; }
  .product-catalog h2 { min-height: 0; }
  .product-catalog .product-card-actions { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Shared storefront footer, using the grouped layout from allparts_new. */
.site-footer { margin-top: 4rem; background: #1f2937; color: #d1d5db; font-size: .9375rem; line-height: 1.65; overflow-wrap: anywhere; }
.site-footer-shell { padding: 3rem 1rem 1.5rem; }
.site-footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1.15fr); gap: 3rem; }
.site-footer-grid > * { min-width: 0; }
.site-footer h2 { margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid #4b5563; color: #fff; font-size: .9375rem; font-weight: 600; }
.site-footer a:hover { color: #facc15; text-decoration: underline; text-underline-offset: .25rem; }
.site-footer a:focus-visible { outline: 2px solid #facc15; outline-offset: 4px; border-radius: .25rem; }
.site-footer-brand { display: inline-flex; align-items: center; gap: .625rem; color: #fff; font-size: 1.375rem; font-weight: 700; }
.site-footer-brand svg { flex: 0 0 1.75rem; color: #facc15; }
.site-footer-intro > p { margin-top: .875rem; }
.site-footer address { font-style: normal; }
.site-footer-contact { margin-top: 1.125rem; }
.site-footer-contact a { display: flex; align-items: center; gap: .625rem; width: fit-content; max-width: 100%; min-height: 2.75rem; padding-block: .5rem; }
.site-footer-contact svg { flex: 0 0 1.125rem; fill: none; stroke: #facc15; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-footer nav a { display: block; width: fit-content; max-width: 100%; min-height: 2.75rem; padding-block: .5rem; }
.site-footer-legal-name { margin-bottom: .5rem; color: #fff; font-weight: 600; }
.site-footer-company dl { display: grid; gap: .25rem; }
.site-footer-company dl > div { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.site-footer-company dt { color: #9ca3af; }
.site-footer-company address { margin-top: 1rem; }
.site-footer-address-label { display: block; margin-bottom: .25rem; color: #9ca3af; font-size: .8125rem; }
.site-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #4b5563; }
.site-footer-bottom p { font-size: .8125rem; }
.site-footer-sal { display: block; flex: 0 0 auto; max-width: 100%; border-radius: .75rem; }
.site-footer-sal img { width: 250px; height: auto; }
#products-grid { scroll-margin-top: 6rem; }
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .site-footer-intro { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { margin-top: 2rem; }
  .site-footer-shell { padding-top: 1.5rem; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .site-footer h2 { margin-bottom: .5rem; padding-bottom: .5rem; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 1.5rem; padding-top: 1rem; }
}

/* Motion and dialog surfaces */
.transition-all { transition-property: all; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-colors { transition-property: color, background-color, border-color; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-opacity { transition-property: opacity; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-shadow { transition-property: box-shadow; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.transition-transform { transition-property: transform; transition-duration: .15s; transition-timing-function: cubic-bezier(.4,0,.2,1); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.translate-x-full { transform: translateX(100%); }
.translate-x-0 { transform: translateX(0); }
.hover\:scale-110:hover { transform: scale(1.1); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
/* A single scrolling body keeps the dialog heading and close control visible. */
#checkout-modal { left: 50%; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 2rem); max-width: 72rem; max-height: calc(100dvh - 2rem); grid-template-rows: auto minmax(0, 1fr); overflow: clip; border-radius: var(--radius); }
.checkout-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid hsl(var(--border)); }
.checkout-heading h2 { font-size: 1.375rem; line-height: 1.4; font-weight: 700; }
.checkout-heading p { margin-top: .25rem; font-size: .875rem; color: hsl(var(--muted-foreground)); }
.checkout-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border: 1px solid hsl(var(--border)); border-radius: .5rem; background: hsl(var(--background)); }
.checkout-close:hover { background: #fef3c7; }
#checkout-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 1.25rem 1.5rem; }
.animate-in { animation: appear .2s ease-out; }
.animate-jump { animation: jump .3s ease-out; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Responsive layout */
@media (min-width: 640px) {
.sm\:flex-col { flex-direction: column; }
.sm\:flex-row { flex-direction: row; }
.sm\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.sm\:justify-end { justify-content: flex-end; }
.sm\:max-w-\[425px\] { max-width: 425px; }
.sm\:max-w-lg { max-width: 32rem; }
.sm\:p-8 { padding: 2rem; }
.sm\:right-0 { right: 0; }
.sm\:rounded-lg { border-radius: var(--radius); }
.sm\:text-left { text-align: left; }
.sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: .5rem; }
}
@media (min-width: 768px) {
.md\:col-span-2 { grid-column: span 2 / span 2; }
.md\:flex { display: flex; }
.md\:grid { display: grid; }
.md\:grid-cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.md\:max-w-\[500px\] { max-width: 500px; }
.md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
.md\:text-sm { font-size: .875rem; line-height: 1.25rem; }
}
@media (min-width: 1024px) {
.lg\:col-span-2 { grid-column: span 2 / span 2; }
.lg\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lg\:grid-cols-5 { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (min-width: 1280px) {
.xl\:grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.xl\:grid-cols-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Native media manager. Uniform thumbnail rows, independent gallery scrolling,
   and fixed actions follow the familiar WordPress media-picker layout. */
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid #8d7958; border-radius: .5rem; background: #fff; font-size: .875rem; font-weight: 600; }
.secondary-button:hover { background: #fef3c7; }
.editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.editor-heading p { margin-top: .25rem; }
.form-notice { padding: 1rem 1.25rem; border: 1px solid #69834b; border-left-width: 4px; border-radius: .4rem; background: #f0f7e9; color: #294118; }
.form-error { border-color: #b42318; background: #fff1f0; color: #8d2018; }
.image-preview { display: flex; align-items: center; gap: var(--ui-section-gap, 1.5rem); }
.image-preview > img { width: 7rem; height: 7rem; flex-shrink: 0; object-fit: contain; border: 1px solid hsl(var(--border)); border-radius: .75rem; background: white; }
.image-picker-open { gap: .65rem; text-align: left; }
.image-picker-open svg { flex-shrink: 0; }
.image-picker { width: min(74rem, calc(100vw - 3rem)); height: min(46rem, calc(100dvh - 3rem)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #c7bca6; border-radius: .75rem; background: #fff; color: #30291f; box-shadow: 0 24px 90px #241c1266; }
.image-picker:popover-open { display: flex; flex-direction: column; }
.image-picker::backdrop { background: #211a1273; }
.picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-shrink: 0; min-height: 4.75rem; padding: 1rem 1.5rem; background: #fffdf8; }
.picker-heading h2 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.picker-close { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; border: 1px solid #d5ccbc; border-radius: .4rem; background: white; font-size: 1.65rem; line-height: 1; }
.picker-close:hover { background: #f5f1e9; }
.picker-tabs { display: flex; flex-shrink: 0; gap: .25rem; padding: 0 1.5rem; border-bottom: 1px solid #dcd5c8; background: #fffdf8; }
.picker-tabs label { position: relative; display: block; cursor: pointer; }
.picker-tabs input, .media-choice > input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.picker-tabs span { display: block; padding: .8rem 1rem; border-bottom: 3px solid transparent; color: #62594b; font-size: .9rem; font-weight: 600; }
.picker-tabs input:checked + span { border-bottom-color: #916000; color: #664100; background: #fff5d4; }
.picker-tabs input:focus-visible + span { outline: 2px solid #8b5b00; outline-offset: -4px; }
.picker-body { min-height: 0; flex: 1; }
.picker-library-panel { height: 100%; display: flex; flex-direction: column; }
.picker-toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-shrink: 0; padding: .8rem 1.5rem; border-bottom: 1px solid #e8e3d9; font-size: .8rem; color: #6c6254; }
.picker-workspace { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 16rem; flex: 1; min-height: 0; background: #faf9f6; }
.picker-gallery { grid-column: 1; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.25rem; }
.media-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; align-content: start; align-items: start; }
.image-picker .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.media-item { min-width: 0; }
.media-card { position: relative; display: block; min-width: 0; overflow: hidden; border: 2px solid #ddd6c9; border-radius: .5rem; background: #fff; }
.media-thumb { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; background: #f0eee8; }
.media-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.media-caption { display: flex; flex-direction: column; gap: .35rem; padding: .65rem .7rem; }
.media-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 600; }
.media-meta { color: #6c6254; font-size: .75rem; }
.media-choice { cursor: pointer; }
.media-choice:hover { border-color: #aa8950; }
.media-choice:has(input:checked) { border-color: #966300; box-shadow: 0 0 0 2px #966300; background: #fff1bd; }
.media-choice:has(input:focus-visible) { outline: 3px solid #33280f; outline-offset: 4px; }
.media-check { position: absolute; z-index: 1; display: none; align-items: center; justify-content: center; right: .4rem; top: .4rem; width: 1.6rem; height: 1.6rem; border: 2px solid white; border-radius: .3rem; background: #805300; color: white; font-size: .9rem; font-weight: 700; box-shadow: 0 1px 4px #0003; }
.media-choice:has(input:checked) .media-check { display: flex; }
.media-details { display: none; position: absolute; inset: 0 0 0 auto; width: 16rem; overflow-y: auto; padding: 1.25rem; border-left: 1px solid #dcd5c8; background: #fffdf8; }
.media-item:has(input:checked) > .media-details { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; }
.media-details h3 { font-size: .8rem; font-weight: 700; color: #6c6254; }
.media-details > img { width: 100%; height: 12rem; padding: .5rem; object-fit: contain; border: 1px solid #e0d8ca; border-radius: .35rem; background: #f4f1e9; }
.media-detail-name { font-size: .85rem; font-weight: 700; overflow-wrap: anywhere; }
.media-details dl { font-size: .8rem; }
.media-details dt { margin-top: .6rem; color: #776b58; }
.media-details dd { margin-top: .15rem; }
.media-detail-hint { margin-top: auto; padding-top: 1rem; font-size: .8rem; color: #776b58; }
.picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-shrink: 0; padding: 1rem 1.5rem; border-top: 1px solid #dcd5c8; background: #fff; }
.picker-footer > p { color: #6c6254; font-size: .8rem; }
.picker-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.picker-actions .primary-button { border: 1px solid #ac7900; border-radius: .5rem; min-height: 2.75rem; white-space: nowrap; }
.picker-upload-panel { display: none; height: 100%; overflow: auto; padding: 2rem; align-items: center; justify-content: center; }
.picker-upload-panel .upload-box { width: min(100%, 36rem); align-items: center; padding: 2rem; text-align: center; }
.picker-upload-panel h3 { font-size: 1.2rem; font-weight: 700; }
.picker-upload-panel input[type=file] { max-width: 26rem; }
.image-picker .picker-upload-submit { display: none; }
.image-picker:has(#media-source-upload:checked) .picker-library-panel, .image-picker:has(#media-source-upload:checked) .picker-select { display: none; }
.image-picker:has(#media-source-upload:checked) .picker-upload-panel, .image-picker:has(#media-source-upload:checked) .picker-upload-submit { display: flex; }
.upload-box { display: flex; align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px dashed #ad9975; border-radius: .6rem; background: #fffdf8; }
.upload-box input[type=file] { display: block; width: 100%; max-width: 32rem; min-height: 2.75rem; font-size: .875rem; }
.upload-box input::file-selector-button { margin-right: .75rem; padding: .65rem 1rem; border: 1px solid #8d7958; border-radius: .4rem; background: #fef3c7; cursor: pointer; }
.library-upload-disclosure { margin-bottom: 1.5rem; }
.library-upload-disclosure > summary { width: fit-content; display: list-item; cursor: pointer; padding-left: 1.6rem; border: 1px solid #ac7900; border-radius: .5rem; }
.library-upload-disclosure .upload-box { margin-top: 1rem; }
.media-search { display: flex; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.media-search label { flex: 1; max-width: 30rem; }
@media (max-width: 1200px) {
  .media-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .image-picker .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 950px) {
  .media-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .picker-workspace { grid-template-columns: minmax(0, 1fr) 13rem; }
  .media-details { width: 13rem; padding: 1rem; }
}
@media (max-width: 760px) {
  .image-picker { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); border-radius: .5rem; }
  .picker-workspace { grid-template-columns: minmax(0, 1fr); }
  .media-item:has(input:checked) > .media-details { display: none; }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .picker-heading, .picker-footer { padding: .8rem 1rem; }
  .picker-heading h2 { font-size: 1.15rem; }
  .picker-tabs { padding-inline: .5rem; }
  .picker-gallery { padding: 1rem; }
  .picker-toolbar { padding: .7rem 1rem; }
  .picker-footer > p { display: none; }
  .picker-actions { width: 100%; justify-content: space-between; }
  .picker-upload-panel { padding: 1rem; }
  .picker-upload-panel .upload-box { padding: 1.25rem; }
}
@media (max-width: 520px) {
  .image-preview { align-items: flex-start; flex-direction: column; }
  .media-grid, .image-picker .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .picker-toolbar span:last-child { display: none; }
  .picker-tabs span { font-size: .8rem; padding: .75rem .65rem; }
  .picker-footer { padding: .75rem; }
  .picker-actions { gap: .5rem; }
  .picker-actions .primary-button { padding-inline: .85rem; }
}
@supports not selector(:popover-open) {
  .image-picker { position: static; display: flex; flex-direction: column; width: 100%; margin-block: 1rem; }
}

.cart-quantity-input { width: 3.5rem; height: 2.5rem; text-align: center; border: 1px solid hsl(var(--border)); border-radius: .375rem; background: transparent; color: inherit; }
.cart-quantity-input:focus-visible { outline: 2px solid #d6a300; outline-offset: 2px; }

.cart-line-copy { min-width: 0; overflow-wrap: anywhere; }
.cart-quantity-controls { flex-wrap: wrap; }

.google-signin{display:flex;align-items:center;justify-content:center;gap:12px;min-height:44px;width:100%;padding:10px 16px;border:1px solid #747775;border-radius:999px;background:#fff;color:#1f1f1f;font:500 14px/20px Arial,sans-serif;cursor:pointer}.google-signin:hover{background:#f2f2f2}.google-signin:focus-visible{outline:3px solid #1a73e8;outline-offset:3px}.google-signin svg{flex-shrink:0}

.checkout-profile { max-width: 48rem; }
.checkout-section { display: grid; gap: 1rem; border: 0; padding: 0; margin-block: 1.25rem; min-width: 0; }
.checkout-section legend { float: left; width: 100%; padding: 0; font-size: 1.05rem; font-weight: 700; }
.checkout-fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.checkout-street-grid { grid-template-columns: minmax(0,3fr) minmax(5rem,1fr); }
.checkout-postal { max-width: 12rem; }
.field-hint { display: block; font-size: .8rem; line-height: 1.5; color: #665e51; font-weight: 400; margin-top: .25rem; }
.checkout-check { display: flex; align-items: flex-start; gap: .65rem; font-size: .875rem; line-height: 1.5; margin-block: 1rem; }
.checkout-check input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: #8b6500; }
.billing-disclosure { padding-block: 1rem; border-top: 1px solid #ddd6c9; border-bottom: 1px solid #ddd6c9; }
.billing-disclosure summary { cursor: pointer; font-size: .875rem; font-weight: 600; }
.account-notice { padding: 1rem; margin-bottom: 1rem; border: 1px solid #d9c675; background: #fef9df; border-radius: .5rem; }
.customer-order-shell { max-width: 64rem; margin-inline: auto; }
.customer-order-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(16rem, 2fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.customer-order-card { min-width: 0; border: 1px solid #e5dfd3; border-radius: .75rem; padding: 1.5rem; background: hsl(var(--card)); box-shadow: 0 2px 8px #302a1810; }
.customer-order-card h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.customer-order-card h3 { font-size: .875rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem; }
.customer-order-address { white-space: pre-line; font-style: normal; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.customer-order-items li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid #e5dfd3; }
.customer-order-items li:first-child { padding-top: 0; }
.customer-order-items small { display: block; color: #665e51; margin-top: .25rem; }
.customer-order-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.customer-order-actions .secondary-button { border-radius: 9999px; }
.customer-order-history { display: grid; gap: 1rem; font-size: .875rem; }
.customer-order-history li { border-left: 3px solid #e6c44a; padding-left: 1rem; }
.customer-order-history time { display: block; color: #665e51; margin-top: .25rem; font-size: .8rem; }
.shipment-editor { margin-block: 1.5rem; padding-block: 1.25rem; border-block: 1px solid #e5dfd3; }
.shipment-help { margin-block: .5rem 1rem; color: #665e51; font-size: .875rem; line-height: 1.5; }
.shipment-item { margin-block: .75rem; border: 1px solid #e5dfd3; border-radius: .5rem; background: #fffdf7; }
.shipment-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; cursor: pointer; }
.shipment-item summary>span:first-child { min-width: 0; overflow-wrap: anywhere; }
.shipment-edit-label { font-size: .875rem; text-decoration: underline; flex-shrink: 0; }
.shipment-awb { display: block; font-size: .875rem; margin-top: .35rem; overflow-wrap: anywhere; }
.shipment-add { margin-top: 1rem; }
.shipment-add summary { padding-block: .5rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.shipment-form { display: grid; gap: 1rem; padding-top: .75rem; max-width: 48rem; }
.shipment-item .shipment-form { padding: 0 1rem 1rem; }
.shipment-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.shipment-form .field-label { min-width: 0; }
.shipment-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.shipment-form .shipment-help { margin: 0; }
.shipment-form [data-form-message]:empty { display: none; }
.shipment-list { display: grid; gap: 1rem; }
.shipment-list li { padding-block: 0 1rem; border-bottom: 1px solid #e5dfd3; overflow-wrap: anywhere; }
.shipment-list li:last-child { border: 0; padding-bottom: 0; }
.shipment-list .secondary-button { margin-top: .75rem; }
.user-list-help { max-width: 58rem; margin-bottom: 1.5rem; font-size: .875rem; line-height: 1.6; color: #665e51; }
.user-table-wrap { border: 1px solid #e5dfd3; border-radius: .75rem; background: hsl(var(--card)); overflow-x: auto; }
.user-table { width: 100%; text-align: left; font-size: .875rem; border-collapse: collapse; }
.user-table th,.user-table td { padding: 1rem; vertical-align: middle; }
.user-table thead { background: #f4efdf; }
.user-table tbody tr { border-top: 1px solid #e5dfd3; }
.user-table tbody th { max-width: 22rem; overflow-wrap: anywhere; }
.user-list-name { display: block; font-weight: 600; }
.user-list-email { display: block; margin-top: .3rem; font-weight: 400; color: #665e51; }
.user-state { display: inline-block; padding: .25rem .65rem; border-radius: 9999px; font-size: .8rem; font-weight: 600; }
.user-state-active { background: #e9f1df; color: #31551d; }
.user-state-disabled { background: #f4e3de; color: #873820; }
.user-verification { display: block; margin-top: .35rem; color: #665e51; }
.user-actions { width: 12rem; }
.user-actions [data-form-message]:empty { display: none; }
.user-actions [data-form-message]:not(:empty) { margin-top: .75rem; max-width: 18rem; }
@media (max-width: 760px) {
  .user-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .user-table,.user-table tbody { display: block; }
  .user-table tbody tr { display: grid; gap: .75rem; padding: 1rem; }
  .user-table tbody tr:first-child { border-top: 0; }
  .user-table th,.user-table td { display: block; padding: 0; max-width: none; min-width: 0; }
  .user-table td[data-label]::before { content: attr(data-label) ": "; color: #665e51; margin-right: .3rem; }
  .user-table .user-actions { width: auto; padding-top: .25rem; }
}
@media (max-width: 540px) { .shipment-fields { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) { .customer-order-grid { grid-template-columns: minmax(0,1fr); } .customer-order-card { padding: 1.25rem; } }
@media (max-width: 460px) { .checkout-fields-grid:not(.checkout-street-grid) { grid-template-columns: minmax(0,1fr); } }

.shop-testing-banner { padding: .5rem 1rem; background: #fff5cf; border-bottom: 1px solid #e8d99e; color: #65521b; text-align: center; font-size: .8125rem; line-height: 1.5; }
.shop-settings { scroll-margin-top: 1rem; }
.shop-mode-options { display: grid; gap: .75rem; min-width: 0; }
.shop-mode-option { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem; border: 1px solid #dcd5c8; border-radius: .6rem; cursor: pointer; }
.shop-mode-option:has(input:checked) { background: #fff8de; border-color: #b08b24; box-shadow: 0 0 0 1px #b08b24; }
.shop-mode-option:has(input:focus-visible) { outline: 2px solid #73591b; outline-offset: 3px; }
.shop-mode-option input { flex: 0 0 auto; margin-top: .2rem; width: 1rem; height: 1rem; accent-color: #8b6500; }
.shop-mode-option strong { display: block; margin-bottom: .3rem; font-size: .95rem; }
.shop-mode-option span span { display: block; font-size: .875rem; line-height: 1.6; color: #665e51; }
.shop-offline { min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1.25rem; background: #fffdf3; color: #332e24; }
.shop-offline-message { width: 100%; max-width: 34rem; text-align: center; }
.shop-offline-icon { display: block; margin: 0 auto 1.5rem; color: #9d7a20; }
.shop-offline-message h1 { font-size: clamp(1.65rem,4vw,2.2rem); font-weight: 700; line-height: 1.25; }
.shop-offline-message p { margin-top: 1rem; color: #6b6251; font-size: 1rem; line-height: 1.7; }

/* Delivery controls share the shop's existing button, field and card styles. */
.payment-settings-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1rem; }
.delivery-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.delivery-setting { min-width: 0; padding: 1rem; border: 1px solid #dcd5c8; border-radius: .6rem; }
.delivery-setting legend { padding-inline: .25rem; font-weight: 600; }
.delivery-county-form { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-block: 1rem; }
.delivery-county-form .field-label { flex: 1; min-width: 13rem; max-width: 30rem; }
.delivery-area-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: .75rem; }
.delivery-area-filters > .field-label { flex: 1 1 15rem; max-width: 30rem; }
.delivery-area-visibility legend { margin-bottom: .375rem; }
.delivery-area-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(16rem,1fr)); max-height: 24rem; overflow-y: auto; border: 1px solid #dcd5c8; border-radius: .6rem; padding: .5rem; }
.delivery-area-list label { display: flex; align-items: start; gap: .65rem; padding: .65rem; cursor: pointer; }
.delivery-area-list label:has(input:checked) { background: #fff5cf; border-radius: .4rem; }
.delivery-area-list input { margin-top: .2rem; accent-color: #8b6500; }
.delivery-area-list small { display: block; color: #665e51; margin-top: .2rem; font-size: .75rem; }
.delivery-notice { padding: .85rem 1rem; margin-bottom: 1rem; background: #fff5cf; color: #65521b; border-radius: .5rem; font-size: .875rem; line-height: 1.6; }
.delivery-option { display: flex; align-items: start; gap: .75rem; padding: 1rem; border: 1px solid #dcd5c8; border-radius: .6rem; cursor: pointer; margin-block: .75rem; }
.delivery-option:has(input:checked) { background: #fff8de; border-color: #b08b24; }
.delivery-option:has(input:focus-visible) { outline: 2px solid #73591b; outline-offset: 3px; }
.delivery-option input { margin-top: .25rem; accent-color: #8b6500; flex: 0 0 auto; }
.delivery-option>span { flex: 1; min-width: 0; font-size: .875rem; }
.delivery-option small { display: block; color: #665e51; margin-top: .3rem; line-height: 1.5; }
.delivery-price { white-space: nowrap; font-size: .875rem; }
.delivery-totals { display: none; gap: .6rem; border-top: 1px solid #dcd5c8; padding-block: 1rem; font-size: .875rem; }
.checkout-delivery:has(input[value=local]:checked) .delivery-total-local,
.checkout-delivery:has(input[value=courier]:checked) .delivery-total-courier { display: grid; }
.delivery-totals>div { display: flex; justify-content: space-between; gap: 1rem; }
.delivery-totals dd { white-space: nowrap; }
.delivery-grand-total { font-weight: 700; font-size: 1.1rem; }
.checkout-actions { display: flex; justify-content: end; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.checkout-actions button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 540px) { .delivery-settings-grid,.delivery-area-list { grid-template-columns: minmax(0,1fr); } .delivery-option { flex-wrap: wrap; } .delivery-price { margin-left: auto; } }


/* Admin and account share a compact spacing scale. Opt in on the main element;
   storefront, checkout, header and footer retain their original presentation.
   Keep 16px input text and 44px controls instead of shrinking click targets. */
.workspace-ui {
  --ui-section-gap: 1rem;
  --ui-field-gap: .75rem;
  --ui-panel-padding: 1.25rem;
  --ui-control-height: 2.75rem;
  padding-block: 1.5rem;
}
.ui-panel { min-width: 0; padding: var(--ui-panel-padding, 1.5rem); border-radius: var(--radius); background: hsl(var(--card)); box-shadow: 0 1px 2px #0000000d; }
.ui-stack > :not([hidden], input[type=hidden], [data-form-message]:empty) ~ :not([hidden], input[type=hidden], [data-form-message]:empty) { margin-top: var(--ui-section-gap, 1.5rem); }
.ui-grid { display: grid; gap: var(--ui-section-gap, 1.5rem); }
.ui-fields { display: grid; gap: var(--ui-field-gap, 1rem) var(--ui-section-gap, 1rem); }
.ui-fields > *, .workspace-ui .field-label { min-width: 0; }
.ui-page-title, .ui-nav { margin-bottom: var(--ui-section-gap, 1.5rem); }
.ui-section-heading { margin-bottom: var(--ui-field-gap, 1rem); }
.ui-section-space { margin-top: var(--ui-section-gap, 1.5rem); }
.ui-field-help { margin-top: .375rem; }
.ui-check { display: flex; align-items: center; gap: .5rem; min-height: var(--ui-control-height, 2.75rem); cursor: pointer; }
.ui-check:has(> span) { align-items: flex-start; }
.ui-check:has(> span) > input { margin-top: .25rem; }
.ui-check input { flex: 0 0 auto; width: 1rem; height: 1rem; accent-color: #8b6500; }
.workspace-ui .field { margin-top: .375rem; min-height: var(--ui-control-height); }
.workspace-ui textarea.field { min-height: 4.5rem; }
.workspace-ui :is(.primary-button, .secondary-button) { min-height: var(--ui-control-height); padding-block: .5rem; line-height: 1.25rem; }
.workspace-ui .ui-nav > a { display: inline-flex; align-items: center; min-height: 2rem; }
.workspace-ui .checkout-section { gap: var(--ui-field-gap); margin-block: var(--ui-section-gap); }
.workspace-ui :is(.checkout-fields-grid, .shipment-fields, .shipment-form) { row-gap: var(--ui-field-gap); }
.workspace-ui :is(.library-upload-disclosure, .user-list-help) { margin-bottom: var(--ui-section-gap); }
.workspace-ui .shipment-editor { margin-block: var(--ui-section-gap); padding-block: var(--ui-section-gap); }
#product-editor { margin-top: var(--ui-section-gap, 1.5rem); }
@media (min-width: 761px) {
  .workspace-ui .user-table :is(th, td) { padding-block: var(--ui-field-gap); }
}
@media (max-width: 640px) {
  .workspace-ui { --ui-panel-padding: 1rem; }
  .workspace-ui .ui-nav > a { min-height: var(--ui-control-height); }
  .workspace-ui [data-remove-variant] { min-height: var(--ui-control-height); }
}


/* Checkout reuses the same fields and controls, with a wider review column. */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.checkout-customer, .checkout-review { min-width: 0; }
.checkout-review { padding: 1.25rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.checkout-summary h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.checkout-summary-items { display: grid; gap: .75rem; max-height: 12rem; overflow-y: auto; padding-right: .25rem; font-size: .875rem; }
.checkout-summary-items li, .checkout-summary-subtotal { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.checkout-summary-items li > span { min-width: 0; overflow-wrap: anywhere; }
.checkout-summary-items strong { white-space: nowrap; font-weight: 500; }
.checkout-summary-subtotal { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid hsl(var(--border)); font-weight: 600; }
.checkout-review-note { font-size: .8rem; color: hsl(var(--muted-foreground)); margin-top: 1rem; }
#checkout-content .checkout-section { gap: .75rem; margin-block: 0 1.25rem; }
#checkout-content .checkout-fields-grid { gap: .75rem 1rem; }
#checkout-content .checkout-review .checkout-section { margin-top: 1.25rem; margin-bottom: .75rem; }
#checkout-content .field-label, #checkout-content .checkout-fields-grid > * { min-width: 0; }
#checkout-content .field { min-height: 2.75rem; margin-top: .375rem; }
#checkout-content .billing-disclosure .checkout-section { margin-top: 1rem; margin-bottom: 0; }
#checkout-content .delivery-option { flex-wrap: wrap; margin-block: 0; padding: .75rem; }
#checkout-content .delivery-price { margin-left: auto; }
#checkout-content .delivery-notice { margin-bottom: 0; }
#checkout-content .checkout-actions { gap: .5rem; }
#checkout-content .checkout-actions button { min-height: 2.75rem; }
#checkout-content [data-submit-checkout] { flex: 1; }
#checkout-content [data-form-message]:not(:empty) { margin-top: 1rem; }
@media (min-width: 960px) {
  .checkout-layout { grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr); }
}
@media (min-width: 960px) and (min-height: 800px) {
  .checkout-review { position: sticky; top: 0; }
}
@media (max-width: 600px) {
  #checkout-modal { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .checkout-heading { padding: .75rem 1rem; }
  .checkout-heading h2 { font-size: 1.2rem; }
  #checkout-content { padding: 1rem; scrollbar-gutter: auto; }
  .checkout-review { padding: 1rem; }
  .checkout-layout { gap: 1rem; }
  #checkout-content .checkout-section { gap: .625rem; margin-bottom: 1rem; }
  #checkout-content .checkout-fields-grid { row-gap: .625rem; }
}

/* Plain-text customer and internal order notes share wrapping rules. */
.order-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.order-notes, .order-note-list > li { min-width: 0; }
.order-note-list { overflow-wrap: anywhere; }

/* Customer administration uses the shared workspace fields, panels and tables. */
.user-search { grid-template-columns: minmax(14rem, 2fr) repeat(2, minmax(9rem, 1fr)) auto; align-items: end; }
.user-search-help { grid-column: 1 / -1; }
.admin-detail-list { display: grid; gap: var(--ui-field-gap, 1rem); font-size: .875rem; }
.admin-detail-list > div { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr); gap: .5rem 1rem; }
.admin-detail-list dt, .admin-customer-summary dt { color: #665e51; }
.admin-detail-list dd { overflow-wrap: anywhere; }
.admin-customer-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: .875rem; }
.admin-customer-summary dd { margin-top: .25rem; font-size: 1.125rem; font-weight: 700; }
@media (max-width: 1000px) { .user-search { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .user-search { grid-template-columns: minmax(0, 1fr); }
  .admin-detail-list > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
  .admin-customer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
