:root {
  --green: #173b2d;
  --red: #c72b29;
  --cream: #faf8f2;
  --surface: #fff;
  --line: #e5e2d8;
  --green-soft: #edf3eb;
  --coffee: #6b4527;
  --coffee-soft: #f5eadc;
  --coffee-line: #d9c3a7;
  --ink: #202820;
  --muted: #60685c;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--coffee);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px max(5vw, 20px);
  background: var(--cream);
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand img {
  border-radius: 50%;
  background: #111;
  object-fit: cover;
}
.header-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.language select {
  border: 0;
  background: transparent;
  font-weight: 700;
  padding: 9px 4px;
}
.cart-toggle {
  border: 1px solid #d5dacf;
  background: transparent;
  border-radius: 30px;
  padding: 10px 16px;
  font-weight: 650;
  display: flex;
  gap: 10px;
  align-items: center;
}
#cart-count {
  background: var(--green);
  color: white;
  border-radius: 50%;
  min-width: 23px;
  min-height: 23px;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.hero {
  position: relative;
  min-height: 480px;
  background-color: var(--green);
  background-position: center;
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #061c13ed, #082719a6 65%, #061c1340);
}
.hero-content {
  position: relative;
  padding: 64px max(8vw, 24px);
  max-width: 1100px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.19em;
  font-weight: 750;
  margin: 0 0 12px;
  color: var(--red);
}
.hero .eyebrow {
  color: #f2d9ad;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin: 0 0 22px;
  font-weight: 800;
}
.hero-copy {
  font-size: clamp(17px, 2vw, 23px);
  color: #e1e8dd;
  line-height: 1.6;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.button {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 15px 24px;
  border-radius: 8px;
  border: 0;
  font-weight: 750;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
}
.button:hover {
  background: #102c20;
}
.hero-actions .button {
  background: var(--cream);
  color: var(--green);
}
.hero-actions .button:hover {
  background: var(--green-soft);
}
.location-link {
  font-size: 13px;
  color: #e1e8dd;
  text-underline-offset: 5px;
  line-height: 1.6;
}
.service-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #d8e0d5;
  margin-top: 36px;
}
.menu-section {
  max-width: 1220px;
  margin: auto;
  padding: 52px 24px 70px;
  scroll-margin-top: 20px;
}
.menu-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0;
}
.search input {
  border: 1px solid #dddcd2;
  border-radius: 30px;
  background: white;
  padding: 12px 18px;
  width: 260px;
  color: var(--ink);
}
.categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  margin-bottom: 16px;
  scrollbar-width: thin;
}
.categories button {
  flex-shrink: 0;
  border: 1px solid #deded3;
  border-radius: 30px;
  padding: 11px 18px;
  background: var(--surface);
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}
.categories button[aria-pressed='true'] {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 3px 12px #173b2d06;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product:focus-within {
  border-color: #9bae98;
}
.product-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #eaece2;
}
.image-placeholder {
  height: 210px;
  background: radial-gradient(circle at 60% 35%, #f4efe0, #e6ebdf);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #73836b;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.image-placeholder .placeholder-icon {
  font-size: 45px;
  color: #b0bca7;
  font-weight: 300;
}
.product-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product h3 {
  margin: 0 0 9px;
  font-size: 18px;
  letter-spacing: -0.25px;
}
.product .weight {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}
.product .description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-line;
  margin: 0 0 16px;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price {
  color: var(--green);
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}
.add-button {
  background: var(--green-soft);
  color: var(--green);
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 750;
  min-height: 44px;
}
.add-button:hover {
  background: var(--green);
  color: white;
}
.add-button:disabled {
  cursor: default;
  background: #eee;
  color: #85887f;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
footer {
  border-top: 1px solid #e1e2d8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px max(5vw, 24px);
  color: var(--muted);
  font-size: 12px;
}
footer strong {
  font-size: 18px;
  color: var(--green);
}
footer a {
  text-decoration: none;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 28px;
  width: min(540px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 20px 80px #0004;
}
dialog::backdrop {
  background: #061b14b3;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 27px;
}
.icon-button {
  border: 0;
  background: #f1f3ed;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  color: var(--green);
}
.cart-item {
  padding: 16px 0;
  border-bottom: 1px solid #e4e6df;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.cart-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.cart-item p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.quantity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity button {
  border: 1px solid #d6ddcf;
  background: white;
  border-radius: 6px;
  min-width: 30px;
  height: 30px;
  color: var(--green);
}
.quantity span {
  font-size: 14px;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  margin: 24px 0;
}
.checkout-info {
  background: #f0f4ed;
  border-radius: 8px;
  padding: 15px;
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #5c6d56;
  line-height: 1.5;
}
.checkout-info strong {
  color: var(--green);
}
form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin: 18px 0;
}
form input,
form select,
form textarea {
  display: block;
  width: 100%;
  border: 1px solid #d6dbd0;
  border-radius: 7px;
  padding: 12px;
  margin-top: 7px;
  color: var(--ink);
  background: white;
}
.submit {
  width: 100%;
  margin-top: 8px;
}
.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.submit[aria-busy='true'] {
  cursor: wait;
}
.error {
  color: #a42626;
  background: #fff0ed;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.6;
  font-size: 13px;
}
.field-help,
.field-error {
  margin: -8px 0 16px;
  font-size: 13px;
  line-height: 1.5;
}
.field-help {
  color: var(--muted);
}
.field-error {
  color: #a42626;
  font-weight: 650;
}
#customer-phone[aria-invalid='true'] {
  border-color: #a42626;
}
.empty-cart {
  padding: 30px 0;
  color: var(--muted);
  line-height: 1.7;
}
.order-success {
  text-align: center;
  padding: 24px 0;
}
.order-success p {
  line-height: 1.7;
  font-size: 14px;
  color: var(--muted);
}
.success-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #e5f2e4;
  color: var(--green);
  border-radius: 50%;
  font-size: 30px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  border-radius: 30px;
  padding: 13px 22px;
  font-size: 13px;
  max-width: 90vw;
  box-shadow: 0 4px 20px #0002;
  z-index: 5;
  text-align: center;
}
.source-language {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand img {
    width: 36px;
    height: 36px;
  }
  .topbar {
    padding: 14px 16px;
    gap: 8px;
  }
  .header-tools {
    gap: 6px;
  }
  .cart-toggle {
    padding: 8px 10px;
    font-size: 12px;
  }
  .hero {
    min-height: 420px;
  }
  .hero-content {
    padding: 52px 24px;
  }
  .hero-actions {
    gap: 18px;
  }
  .menu-section {
    padding: 34px 16px 48px;
  }
  .menu-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .search,
  .search input {
    width: 100%;
  }
  h2 {
    font-size: 29px;
  }
  .products {
    gap: 12px;
  }
  .product-image,
  .image-placeholder {
    height: 140px;
  }
  .product-content {
    padding: 13px;
  }
  .product h3 {
    font-size: 15px;
  }
  .product .description {
    font-size: 13px;
  }
  .product-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .price {
    font-size: 17px;
  }
  .add-button {
    width: 100%;
    font-size: 12px;
  }
  .categories button {
    padding: 10px 15px;
  }
  .cart-item {
    gap: 6px;
  }
  dialog {
    padding: 22px;
  }
  .service-line {
    font-size: 11px;
  }
  .service-dot {
    display: none;
  }
  .service-line span:not(.service-dot) {
    width: 100%;
  }
  footer {
    gap: 12px;
  }
  footer span {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}
.fulfillment-controls {
  margin-bottom: 22px;
}
.dine-in-badge {
  display: inline-block;
  background: var(--coffee-soft);
  color: var(--coffee);
  border: 1px solid var(--coffee-line);
  border-radius: 8px;
  padding: 5px 8px;
  margin: 6px 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  align-self: flex-start;
  max-width: 100%;
}
.dine-in-warning {
  padding: 16px;
  margin: 18px 0;
  background: var(--coffee-soft);
  color: var(--coffee);
  border: 1px solid var(--coffee-line);
  border-left: 5px solid var(--coffee);
  border-radius: 12px;
}
.dine-in-warning strong {
  font-size: 16px;
}
.dine-in-warning #dine-in-products {
  font-weight: 700;
}
.dine-in-warning .add-button {
  min-height: 44px;
  background: var(--surface);
  border: 1px solid var(--coffee-line);
}
.dine-in-warning .add-button:hover {
  background: var(--green);
}
.fulfillment-controls label {
  display: block;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 650;
}
.fulfillment-controls select,
.fulfillment-controls input {
  display: block;
  width: 100%;
  border: 1px solid #d6dbd0;
  background: white;
  border-radius: 7px;
  padding: 12px;
  margin-top: 7px;
  color: var(--ink);
}
.fulfillment-controls p {
  line-height: 1.65;
  font-size: 12px;
}
.quote-breakdown {
  border-bottom: 1px solid #e1e5dc;
  padding: 8px 0;
}
.quote-breakdown p {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  color: #5c6d56;
}
.order-success .button {
  margin: 6px;
}
dialog.tracking-section {
  width: min(760px, calc(100% - 24px));
  margin: auto;
  padding: 26px;
  background: white;
  border: 1px solid #e1e5dc;
  border-radius: 18px;
}
.tracking-section .dialog-heading {
  position: sticky;
  top: -26px;
  background: white;
  padding: 14px 0;
  z-index: 1;
  gap: 16px;
}
.tracking-section .icon-button {
  flex-shrink: 0;
  cursor: pointer;
}
.tracking-section .tracking-controls {
  margin-bottom: 16px;
}
.tracking-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tracking-heading h2 {
  font-size: 25px;
}
.tracking-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tracking-controls select {
  max-width: 140px;
  border: 1px solid #d6dbd0;
  background: white;
  border-radius: 7px;
  padding: 10px;
  color: var(--ink);
}
.tracking-status {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 9px;
  background: #fff1dc;
  color: #8c490d;
  font-size: 18px;
  margin-top: 12px;
}
.tracking-confirmed {
  background: #edf4ff;
  color: #215ab2;
}
.tracking-preparing {
  background: #f5efff;
  color: #7041ab;
}
.tracking-ready {
  background: #e7f8f2;
  color: #08735d;
}
.tracking-out_for_delivery {
  background: #eaf7fc;
  color: #136c8e;
}
.tracking-completed {
  background: #f0f3f6;
  color: #4a5869;
}
.tracking-cancelled {
  background: #fff0ee;
  color: #ac302d;
}
.tracking-cancellation {
  margin: 18px 0;
  padding: 18px 20px;
  background: #fff0ee;
  border: 1px solid #dd8c83;
  border-left: 5px solid #ac302d;
  border-radius: 12px;
  color: #8d2925;
}
.tracking-cancellation h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.tracking-cancellation p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tracking-steps {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.tracking-steps li {
  flex: 1;
  border-top: 3px solid #d7ded2;
  padding-top: 10px;
  color: #7a8374;
  font-size: 13px;
  line-height: 1.5;
}
.tracking-steps .done,
.tracking-steps .current {
  border-color: var(--green);
  color: var(--green);
}
.tracking-steps .current {
  font-weight: 750;
}
.tracking-history {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  padding-left: 20px;
}
#tracking-content .quote-breakdown {
  max-width: 450px;
}
#tracking-message {
  font-size: 12px;
}
#delivery-unavailable {
  color: #7a6650;
}
@media (max-width: 600px) {
  dialog.tracking-section {
    margin: auto;
    padding: 20px;
    max-height: calc(100dvh - 24px);
  }
  .tracking-section .dialog-heading {
    top: -20px;
  }
  .tracking-controls select {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .tracking-steps {
    flex-direction: column;
    gap: 6px;
  }
  .tracking-steps li {
    border-top: 0;
    border-left: 3px solid #d7ded2;
    padding: 6px 12px;
  }
  .tracking-steps .done,
  .tracking-steps .current {
    border-left-color: var(--green);
  }
  .tracking-controls .add-button {
    width: auto;
  }
  .header-tools {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .topbar {
    align-items: flex-start;
  }
  .brand {
    flex-shrink: 0;
  }
  .header-tools .language {
    order: -1;
  }
  .tracking-controls {
    gap: 6px;
  }
}

#delivery-map {
  height: 240px;
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
  z-index: 0;
}
.delivery-locality-row {
  display: grid;
  gap: 12px;
}
.fulfillment-controls .delivery-locality-row label {
  margin: 0;
}
.delivery-locality-row .add-button {
  min-height: 48px;
  width: 100%;
  font-size: 14px;
}
.delivery-zone-policy:not(:empty) {
  padding: 10px 12px;
  border-radius: 10px;
  background: #edf5ee;
  color: var(--green);
}
.delivery-zone-policy:empty {
  display: none;
}
.delivery-location-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}
.fulfillment-controls .delivery-location-panel label {
  margin: 0;
}
.delivery-map-panel {
  min-width: 0;
  padding: 14px;
  background: white;
  border: 1px solid #d6dbd0;
  border-radius: 14px;
}
.delivery-map-panel h3 {
  margin: 0;
  font-size: 16px;
  color: var(--green);
}
.fulfillment-controls .map-help {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.delivery-map-panel #map-center {
  width: 100%;
  min-height: 44px;
  white-space: normal;
  margin-bottom: 0;
}
.delivery-map-panel #location-message {
  margin-bottom: 0;
  font-size: 13px;
}
@media (min-width: 760px) {
  #cart-dialog:has(#delivery-fields:not([hidden])) {
    width: min(860px, calc(100% - 40px));
  }
  .delivery-locality-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .delivery-location-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-areas: 'address map' 'details map';
    grid-template-rows: auto 1fr;
    gap: 16px 20px;
  }
  .delivery-location-panel .address-search {
    grid-area: address;
  }
  .delivery-extra-details {
    grid-area: details;
  }
  .delivery-map-panel {
    grid-area: map;
  }
}
#delivery-map .leaflet-container {
  font-family: inherit;
}
.delivery-pin {
  background: transparent;
  border: 0;
  filter: drop-shadow(0 2px 3px #0005);
}
.delivery-pin svg {
  display: block;
}
.cafe-map-pin {
  display: grid;
  place-items: center;
  border: 3px solid white;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 2px 8px #0005;
}
.cafe-map-pin img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.map-legend,
.map-legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-legend {
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink);
}
.map-legend img {
  border-radius: 50%;
}
.destination-key {
  width: 14px;
  height: 14px;
  background: #bf3434;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  margin: 0 4px;
}
.map-marker-popup {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
}
.map-marker-popup p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#map-center {
  margin-bottom: 10px;
}
#payment-method {
  width: 100%;
}

.address-search {
  position: relative;
}
#address-suggestions {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #b8c8bd;
  border-radius: 8px;
  background: white;
}
#address-suggestions li {
  padding: 12px;
  cursor: pointer;
  border-bottom: 1px solid #e4ebe6;
}
#address-suggestions li:last-child {
  border-bottom: 0;
}
#address-suggestions li:hover,
#address-suggestions li[aria-selected='true'] {
  background: #edf5ee;
}
#address-suggestions strong,
#address-suggestions span {
  display: block;
}
#address-suggestions span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Keep cart and saved orders reachable without covering the last menu row. */
body {
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
}
.quick-actions {
  position: fixed;
  right: max(5vw, 20px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid #dce3d7;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 6px 24px #173b2d30;
}
.quick-actions .cart-toggle {
  min-height: 52px;
  min-width: 138px;
  border-radius: 15px;
  justify-content: center;
  font-size: 16px;
  padding: 12px 16px;
}
#my-order {
  color: var(--green);
  background: white;
  border-color: #bccdbf;
}
#open-cart {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
#open-cart #cart-count {
  background: white;
  color: var(--green);
}
#toast {
  bottom: calc(110px + env(safe-area-inset-bottom, 0px));
  z-index: 1101;
}

/* Prevent small inherited label fonts from triggering focus zoom on iOS. */
input,
select,
textarea {
  font-size: 16px;
}
form input,
form select,
form textarea,
.fulfillment-controls input,
.fulfillment-controls select {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 400;
  line-height: 1.5;
}
form select,
.fulfillment-controls select {
  padding-right: 32px;
}
form textarea {
  resize: vertical;
}
#cart-dialog {
  border: 1px solid #e1e5dc;
  border-radius: 24px;
  background: var(--cream);
}
#cart-dialog .dialog-heading {
  margin-bottom: 18px;
}
#cart-dialog .icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-size: 22px;
  background: #e9eee5;
}
#cart-items {
  display: grid;
  gap: 10px;
}
.cart-item {
  padding: 14px;
  border: 1px solid #e1e5dc;
  border-radius: 14px;
  background: white;
  align-items: center;
}
.cart-item strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.cart-item p {
  font-size: 14px;
}
.quantity {
  gap: 8px;
}
.quantity button {
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #f0f4ed;
  font-size: 20px;
}
.quantity span {
  min-width: 16px;
  text-align: center;
  font-weight: 650;
}
.checkout-total {
  padding: 16px;
  background: #e9eee5;
  color: var(--green);
  border-radius: 12px;
  gap: 12px;
}
@media (max-width: 600px) {
  .quick-actions {
    right: max(12px, env(safe-area-inset-right, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .quick-actions .cart-toggle {
    flex: 1;
    min-width: 0;
    padding: 10px 8px;
  }
  #cart-dialog {
    padding: 20px 16px;
    max-height: calc(
      100dvh - 24px - env(safe-area-inset-top, 0px) -
        env(safe-area-inset-bottom, 0px)
    );
  }
  .cart-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }
  .quantity {
    justify-self: end;
  }
}

/* Cookie choice at entry; detailed settings remain available in the footer. */
.privacy-button.privacy-text-button {
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.privacy-button.privacy-text-button:hover {
  background: var(--green-soft);
  color: var(--green);
}
.privacy-dialog p {
  font-size: 14px;
  line-height: 1.65;
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.privacy-button {
  min-height: 44px;
  border: 1px solid #bccdbf;
  background: var(--green-soft);
  color: var(--green);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}
.privacy-button:hover {
  background: var(--green);
  color: white;
}
.privacy-actions .privacy-button {
  flex: 1 1 180px;
}
.privacy-dialog {
  width: min(680px, calc(100% - 24px));
}
.privacy-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.privacy-heading h2 {
  font-size: 24px;
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.privacy-heading .privacy-button {
  flex: 0 0 auto;
  margin-left: auto;
}
.privacy-dialog h3 {
  font-size: 17px;
  margin: 24px 0 8px;
}
.privacy-dialog a {
  color: var(--green);
  overflow-wrap: anywhere;
}
.privacy-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
}
.privacy-option input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.privacy-option strong,
.privacy-option span span {
  display: block;
}
.privacy-option span span {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}
.privacy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-privacy-notice {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 18px;
}
.order-privacy-notice p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.order-privacy-notice .privacy-button {
  background: transparent;
}
.map-privacy-blocker {
  padding: 14px;
  border-radius: 10px;
  background: var(--cream);
  margin: 14px 0;
}
.map-privacy-blocker .privacy-button {
  width: 100%;
  margin-top: 8px;
}
@media (max-width: 540px) {
  .privacy-actions .privacy-button {
    flex-basis: 100%;
  }
  .privacy-heading {
    align-items: flex-start;
  }
  .privacy-heading h2 {
    font-size: 20px;
  }
}

.order-privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.order-privacy-links .privacy-button {
  padding: 8px 0;
  text-align: left;
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 1200;
  width: min(1100px, calc(100% - 40px));
  max-height: 50dvh;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 48px #173b2d26;
}
.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.cookie-banner-content > .privacy-button {
  padding: 8px 0;
  font-size: 13px;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.cookie-banner-actions .privacy-button {
  background: var(--green-soft);
}
.cookie-banner-actions .privacy-choice-accept {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.cookie-banner-actions .privacy-button:hover {
  background: #244e3c;
  border-color: #244e3c;
  color: white;
}
body {
  padding-bottom: calc(
    100px + var(--cookie-banner-space, 0px) + env(safe-area-inset-bottom, 0px)
  );
}
.quick-actions {
  bottom: calc(
    20px + var(--cookie-banner-space, 0px) + env(safe-area-inset-bottom, 0px)
  );
}
#toast {
  bottom: calc(
    110px + var(--cookie-banner-space, 0px) + env(safe-area-inset-bottom, 0px)
  );
}
.privacy-option {
  flex-direction: row-reverse;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
}
.privacy-option > span {
  flex: 1;
  min-width: 0;
}
.privacy-option input {
  appearance: none;
  width: 44px;
  height: 26px;
  min-height: 26px;
  border: 1px solid #778578;
  border-radius: 20px;
  background: #e1e6df;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.15s;
}
.privacy-option input::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #173b2d30;
  transition: transform 0.15s;
}
.privacy-option input:checked {
  background: var(--green);
  border-color: var(--green);
}
.privacy-option input:checked::before {
  transform: translateX(18px);
}
.privacy-option input:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-width: 600px) {
  .cookie-banner {
    width: calc(100% - 24px);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
  .cookie-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
