/* Generated by pnpm base-next:tokens. */
@layer zappie-base-tokens {
  [data-zappie-theme="base"] {
    --z-bg: #f9fafb;
    --z-surface: #ffffff;
    --z-surface-raised: #ffffff;
    --z-overlay: #00000080;
    --z-text: #101828;
    --z-text-muted: #344054;
    --z-text-inverse: #ffffff;
    --z-accent: #9fe870;
    --z-accent-contrast: #163300;
    --z-brand-1: #9fe870;
    --z-brand-2: #163300;
    --z-brand-3: #edc843;
    --z-success: #027a48;
    --z-warning: #ed7a37;
    --z-danger: #f04438;
    --z-border: #eaecf0;
    --z-focus-ring: #163300;
    --z-radius-sm: 6px;
    --z-radius-md: 12px;
    --z-radius-lg: 20px;
    --z-radius-pill: 9999px;
    --z-space-1: 4px;
    --z-space-2: 8px;
    --z-space-3: 12px;
    --z-space-4: 16px;
    --z-space-5: 24px;
    --z-space-6: 32px;
    --z-space-7: 48px;
    --z-space-8: 64px;
    --z-text-xs: 12px;
    --z-text-sm: 14px;
    --z-text-md: 16px;
    --z-text-lg: 18px;
    --z-text-xl: 20px;
    --z-text-2xl: 24px;
    --z-text-3xl: 32px;
    --z-drawer-width: 420px;
    --z-dialog-width: min(1000px, calc(100vw - 32px));
    --z-dialog-height: min(780px, 90dvh);
    --z-media-sm: 64px;
    --z-font-display: system-ui, sans-serif;
    --z-font-body: system-ui, sans-serif;
    --z-font-mono: ui-monospace, monospace;
    --z-duration-fast: 120ms;
    --z-duration-base: 200ms;
    --z-duration-slow: 320ms;
    --z-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --z-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    color-scheme: light;
  }
  :root:is([data-theme="dark"], .dark) [data-zappie-theme="base"] {
    --z-bg: #000000;
    --z-surface: #242424;
    --z-surface-raised: #333333;
    --z-text: #ffffff;
    --z-text-muted: #bfbfbf;
    --z-text-inverse: #101828;
    --z-border: #474747;
    --z-focus-ring: #9fe870;
    color-scheme: dark;
  }
  @media (prefers-reduced-motion: reduce) {
    [data-zappie-theme="base"] {
      --z-duration-fast: 0ms;
      --z-duration-base: 0ms;
      --z-duration-slow: 0ms;
    }
  }
}
/* Cart overlay surface, header and primary buttons. */
@layer components {
  [data-zappie-theme="base"].z-base-cart {
    position: fixed;
    z-index: 1201;
    display: flex;
    flex-direction: column;
    color: var(--z-text);
    background: var(--z-surface);
    font-family: var(--z-font-body);
    font-size: var(--z-text-md);
    box-shadow: 0 0 0 100vmax var(--z-overlay);
    overflow: auto;
    overscroll-behavior: contain;
  }
  [data-zappie-theme="base"][data-presentation="drawer"] {
    inset: 0;
    height: 100dvh;
    transform: translateY(var(--drawer-swipe-movement-y, 0px));
  }
  [data-zappie-theme="base"][data-presentation="dialog"] {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--z-dialog-width);
    height: var(--z-dialog-height);
    border-radius: var(--z-radius-lg);
  }
  [data-zappie-theme="base"] .z-base-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--z-space-5);
    border-bottom: 1px solid var(--z-border);
  }
  [data-zappie-theme="base"] .z-base-cart-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    gap: var(--z-space-4);
    padding: var(--z-space-5);
  }
  [data-zappie-theme="base"] .z-base-button {
    padding: var(--z-space-3) var(--z-space-4);
    color: var(--z-accent-contrast);
    background: var(--z-accent);
    border-radius: var(--z-radius-md);
    cursor: pointer;
  }
  [data-zappie-theme="base"] .z-base-button:focus-visible {
    outline: 2px solid var(--z-focus-ring);
    outline-offset: 2px;
  }
}

/* Cart contents: empty state, lines, quantities, totals and issues. */
@layer components {
  [data-zappie-theme="base"] .z-base-cart-empty {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--z-space-4);
    text-align: center;
    padding: var(--z-space-5);
  }
  [data-zappie-theme="base"] .z-base-cart-placeholder {
    width: 100%;
    height: var(--z-media-sm);
    background: var(--z-bg);
    border-radius: var(--z-radius-md);
  }
  [data-zappie-theme="base"] .z-base-button-secondary {
    padding: var(--z-space-2) var(--z-space-3);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    color: var(--z-text);
    background: var(--z-surface);
    cursor: pointer;
    min-height: 44px;
  }
  [data-zappie-theme="base"] button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  [data-zappie-theme="base"] :is(button, input, textarea):focus-visible {
    outline: 2px solid var(--z-focus-ring);
    outline-offset: 2px;
  }
  [data-zappie-theme="base"] :is(h2, h3) {
    font-weight: 600;
  }
  [data-zappie-theme="base"] .z-base-cart-tools,
  [data-zappie-theme="base"] .z-base-line-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--z-space-3);
  }
  [data-zappie-theme="base"] .z-base-cart-columns {
    display: grid;
    gap: var(--z-space-5);
  }
  [data-zappie-theme="base"][data-presentation="dialog"] .z-base-cart-columns {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
  [data-zappie-theme="base"] .z-base-line {
    padding: var(--z-space-4) 0;
    border-bottom: 1px solid var(--z-border);
  }
  [data-zappie-theme="base"] .z-base-line-group + .z-base-line-group {
    margin-top: var(--z-space-5);
  }
  [data-zappie-theme="base"] .z-base-line-group > h2 {
    padding-bottom: var(--z-space-2);
    border-bottom: 1px solid var(--z-border);
  }
  [data-zappie-theme="base"] :is(.z-base-line-options, .z-base-muted) {
    font-size: var(--z-text-sm);
    color: var(--z-text-muted);
    margin-block: var(--z-space-2);
  }
  [data-zappie-theme="base"] .z-base-line-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--z-space-2);
    align-items: center;
  }
  [data-zappie-theme="base"] .z-base-quantity {
    display: inline-flex;
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    overflow: hidden;
  }
  [data-zappie-theme="base"] .z-base-quantity :is(button, input) {
    min-height: 44px;
    width: 44px;
    text-align: center;
    color: var(--z-text);
    background: var(--z-surface);
  }
  [data-zappie-theme="base"] .z-base-summary {
    border: 1px solid var(--z-border);
    padding: var(--z-space-4);
    border-radius: var(--z-radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--z-space-3);
  }
  [data-zappie-theme="base"] .z-base-totals > div {
    display: flex;
    justify-content: space-between;
    gap: var(--z-space-3);
    margin-block: var(--z-space-2);
  }
  [data-zappie-theme="base"] .z-base-total {
    border-top: 1px solid var(--z-border);
    padding-top: var(--z-space-3);
    font-weight: 600;
  }
  [data-zappie-theme="base"] .z-base-checkout button {
    width: 100%;
    min-height: 44px;
  }
  [data-zappie-theme="base"] .z-base-issues {
    border: 1px solid var(--z-danger);
    border-radius: var(--z-radius-md);
    padding: var(--z-space-3);
  }
  [data-zappie-theme="base"] .z-base-issues li {
    margin-top: var(--z-space-2);
  }
  [data-zappie-theme="base"] .z-base-option-list {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-3);
  }
  [data-zappie-theme="base"] .z-base-option-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--z-space-3);
    padding-block: var(--z-space-2);
    border-bottom: 1px solid var(--z-border);
  }
  [data-zappie-theme="base"] .z-base-notice {
    padding: var(--z-space-3);
    border: 1px solid var(--z-warning);
    border-radius: var(--z-radius-md);
    color: var(--z-text);
    background: var(--z-surface);
  }
  [data-zappie-theme="base"] .z-base-notice[data-severity="error"] {
    border-color: var(--z-danger);
  }
  [data-zappie-theme="base"] .z-base-fulfilment {
    margin-bottom: var(--z-space-3);
    font-weight: 600;
  }
}

/* Nested sheets: line editor, confirmation, options, fields, fulfilment and address search. */
@layer components {
  [data-zappie-theme="base"].z-base-editor {
    z-index: 1202;
  }
  [data-zappie-theme="base"][data-presentation="dialog"].z-base-confirm {
    z-index: 1202;
    width: min(400px, calc(100vw - 32px));
    height: auto;
    padding: var(--z-space-5);
    gap: var(--z-space-3);
  }
  [data-zappie-theme="base"] .z-base-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--z-space-2);
  }
  [data-zappie-theme="base"][data-presentation="sheet"].z-base-editor {
    inset: 0;
    height: 100dvh;
    transform: translateX(var(--drawer-swipe-movement-x, 0px));
  }
  [data-zappie-theme="base"] :is(.z-base-option-group, .z-base-field) {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-2);
  }
  [data-zappie-theme="base"] .z-base-choice-row {
    display: flex;
    gap: var(--z-space-2);
    align-items: center;
  }
  [data-zappie-theme="base"] .z-base-choice {
    flex: 1;
    text-align: left;
    padding: var(--z-space-3);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
  }
  [data-zappie-theme="base"] .z-base-choice[data-selected] {
    border-color: var(--z-accent-contrast);
    background: var(--z-accent);
    color: var(--z-accent-contrast);
  }
  [data-zappie-theme="base"] .z-base-input {
    padding: var(--z-space-3);
    border: 1px solid var(--z-border);
    border-radius: var(--z-radius-md);
    background: var(--z-surface);
    color: var(--z-text);
  }
}

@layer components {
  [data-zappie-theme="base"] .z-base-fulfilment-panel {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-3);
    margin-bottom: var(--z-space-4);
  }
  [data-zappie-theme="base"] .z-base-button-secondary[aria-pressed="true"] {
    background: var(--z-accent);
    color: var(--z-accent-contrast);
    border-color: var(--z-accent-contrast);
  }
  [data-zappie-theme="base"] .z-base-suggestions {
    display: flex;
    flex-direction: column;
    gap: var(--z-space-2);
    margin-top: var(--z-space-2);
  }
  [data-zappie-theme="base"] .z-base-suggestions [aria-selected="true"] {
    background: var(--z-accent);
    color: var(--z-accent-contrast);
  }
  [data-zappie-theme="base"] select:focus-visible {
    outline: 2px solid var(--z-focus-ring);
    outline-offset: 2px;
  }
  /* The API's static map is 640×320; it scales to the sheet's width. */
  [data-zappie-theme="base"] .z-base-address-map {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: var(--z-radius-md);
  }
}

.z-base-catalogue {
  color: var(--z-text);
  font-family: var(--z-font-body);
  padding: 1rem;
  padding-bottom: 6rem;
}
.z-base-catalogue header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.z-base-catalogue button,
.z-base-catalogue select,
.z-base-catalogue input {
  font: inherit;
}
.z-base-catalogue input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--z-border);
  border-radius: 0.5rem;
}
.z-base-category-nav {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--z-bg);
  padding: 1rem 0;
}
.z-base-category-nav a {
  white-space: nowrap;
  padding: 0.5rem;
  border-bottom: 2px solid transparent;
}
.z-base-category-nav a[aria-current="true"] {
  border-color: var(--z-accent);
  font-weight: 600;
}
.z-base-category {
  scroll-margin-top: 6rem;
}
.z-base-category[data-unloaded="true"] {
  min-height: 70vh;
}
.z-base-category:last-of-type {
  min-height: 0;
}
.z-base-category h3 {
  font-size: 1.3rem;
  margin: 1rem 0;
}
.z-base-item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.z-base-item-list[data-layout="LIST"] {
  grid-template-columns: 1fr;
}
.z-base-item-list[data-columns="1"]:not([data-layout="LIST"]) {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.z-base-item-list[data-columns="2"]:not([data-layout="LIST"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.z-base-item-list[data-columns="3"]:not([data-layout="LIST"]) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.z-base-item-list[data-columns="4"]:not([data-layout="LIST"]) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.z-base-item-list[data-density="compact"] {
  gap: var(--z-space-2);
}
.z-base-item-list[data-density="comfortable"] {
  gap: var(--z-space-5);
}
.z-base-item-tile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem;
  background: var(--z-surface);
  border: 1px solid var(--z-border);
  border-radius: 0.75rem;
}
.z-base-item-tile img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
}
.z-base-item-name {
  font-weight: 600;
}
.z-base-amount {
  font-family: var(--z-font-body);
}
.z-base-catalogue-cart {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 1rem;
  right: 1rem;
  z-index: 5;
  padding: 1rem;
  border-radius: 0.75rem;
  background: var(--z-accent);
  color: var(--z-accent-contrast);
}
@media (min-width: 768px) {
  .z-base-item-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-medium="1"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-medium="2"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-medium="3"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-medium="4"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .z-base-item-list[data-columns-large="1"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-large="2"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-large="3"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .z-base-item-list[data-columns-large="4"]:not([data-layout="LIST"]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.z-base-search-mobile {
  display: none;
}
@media (max-width: 767px) {
  .z-base-search-desktop {
    display: none;
  }
  .z-base-search-mobile {
    display: inline-flex;
  }
}
.z-base-info-banners {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.z-base-info-banners article {
  flex: 0 0 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  scroll-snap-align: start;
}
.z-base-info-copy {
  line-height: 1.5rem;
  max-height: 3rem;
  overflow: hidden;
}
.z-base-info-copy[data-expanded="true"] {
  max-height: none;
}
@media (min-width: 768px) {
  .z-base-info-banners article {
    flex-basis: 50%;
  }
}

.z-base-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.875rem;
}
.z-base-item-image {
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background: var(--z-bg);
  border-radius: 0.5rem;
  overflow: hidden;
}
.z-base-item-image span {
  color: var(--z-text-muted);
  font-size: 0.875rem;
}

/* The item matches the legacy two-pane dialog and full-width narrow drawer. */
[data-zappie-theme="base"].z-base-item {
  width: min(90vw, 500px);
  height: min(90dvh, 670px);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
[data-zappie-theme="base"].z-base-item-with-media {
  width: min(85vw, 900px);
}
.z-base-item-header {
  position: absolute;
  right: 16px;
  top: 8px;
  z-index: 2;
}
.z-base-item-header h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.z-base-item-header .z-base-button-secondary {
  border-radius: var(--z-radius-pill);
  width: 40px;
  min-height: 40px;
  padding: 0;
}
.z-base-item-layout {
  display: flex;
  min-height: 0;
  flex: 1;
}
.z-base-item-media {
  width: 50%;
  flex-shrink: 0;
  background: var(--z-bg);
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}
.z-base-item-photo {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.z-base-item-photo .z-base-item-image {
  aspect-ratio: auto;
  height: 400px;
  border-radius: var(--z-radius-md);
}
.z-base-item-photo img {
  object-fit: cover;
}
.z-base-item-media nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--z-space-4);
}
.z-base-item-details {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 52px 24px 110px;
}
.z-base-item-details h2 {
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 32px;
}
.z-base-item-details > button[aria-label="Share product"] {
  position: absolute;
  top: 8px;
  right: 64px;
  min-height: 40px;
  border-radius: var(--z-radius-pill);
}
.z-base-configurator {
  display: grid;
  gap: var(--z-space-4);
}
.z-base-item .z-base-configurator {
  gap: 20px;
}
.z-base-item-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--z-space-3);
}
.z-base-item-summary > .z-base-button-secondary {
  border-radius: var(--z-radius-pill);
  margin-left: auto;
}
.z-base-item-price {
  display: flex;
  gap: var(--z-space-2);
  font-weight: 600;
  min-height: 44px;
  align-items: center;
  margin: 0;
  font-size: 16px;
}
.z-base-item-price del {
  color: var(--z-text-muted);
  font-weight: 400;
}
.z-base-option-heading > button {
  display: block;
  position: relative;
  text-align: left;
  width: 100%;
}
.z-base-option-rule {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--z-text-muted);
}
.z-base-option-rule strong {
  color: var(--z-danger);
  font-weight: 500;
}
.z-base-option-chevron {
  position: absolute;
  right: 24px;
  top: 20px;
}
.z-base-choice-price {
  display: block;
  font-size: 14px;
  color: var(--z-text-muted);
}
.z-base-item .z-base-option-group {
  padding: 0;
  border: 0;
  margin: 0 -24px;
}
.z-base-item .z-base-option-heading {
  margin: 0;
  padding: 0;
  background: var(--z-bg);
}
.z-base-item .z-base-option-heading > button {
  padding: 16px 24px;
}
.z-base-item .z-base-option-choices {
  padding: 0 24px;
}
.z-base-item .z-base-choice-row {
  margin: 0;
  gap: 8px;
  border-bottom: 1px solid var(--z-border);
}
.z-base-item .z-base-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 0;
  padding: 16px 0;
  width: 100%;
  background: transparent;
  font-size: 14px;
}
.z-base-item .z-base-choice::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--z-text-muted);
  border-radius: 50%;
}
.z-base-item .z-base-choice[role="checkbox"]::before {
  border-radius: 4px;
}
.z-base-item .z-base-choice[data-selected]::before {
  background: var(--z-text);
  box-shadow: inset 0 0 0 4px var(--z-surface);
}
.z-base-item-purchase {
  display: flex;
  gap: var(--z-space-3);
  align-items: center;
  position: sticky;
  bottom: 0;
  background: var(--z-surface);
  padding-block: var(--z-space-4);
  z-index: 1;
}
.z-base-item-purchase > .z-base-button {
  flex: 1;
}
.z-base-item .z-base-item-purchase {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 20px 24px;
  border-top: 1px solid var(--z-border);
}
.z-base-item-with-media .z-base-item-purchase {
  width: 50%;
}
.z-base-item .z-base-item-purchase .z-base-button {
  background: var(--z-text);
  color: var(--z-surface);
  border-radius: var(--z-radius-pill);
  font-weight: 600;
  min-height: 48px;
}
.z-base-item .z-base-quantity {
  border-radius: var(--z-radius-pill);
  background: var(--z-bg);
  padding: 4px;
}
.z-base-item .z-base-quantity button {
  border-radius: var(--z-radius-pill);
}
.z-base-item-lightbox .z-base-item-media {
  width: 100%;
}
.z-base-item-lightbox .z-base-item-photo .z-base-item-image {
  height: 60dvh;
}
@media (max-width: 1023px) {
  [data-zappie-theme="base"].z-base-item {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    inset: 0;
    transform: none;
  }
  .z-base-item-layout {
    display: block;
    overflow-y: auto;
  }
  .z-base-item-media {
    width: 100%;
    padding: 0;
  }
  .z-base-item-photo .z-base-item-image {
    height: min(100vw, 500px);
    border-radius: 0;
  }
  .z-base-item-details {
    overflow: visible;
    padding: 16px 24px 110px;
  }
  .z-base-item-details h2 {
    font-size: 22px;
  }
  .z-base-item-with-media .z-base-item-purchase {
    width: 100%;
  }
}
[data-zappie-theme="base"].z-base-note[data-presentation="dialog"] {
  width: min(90vw, 500px);
  height: auto;
  max-height: 90dvh;
}
.z-base-note textarea {
  min-height: 150px;
}
