/* Out of the Town: premium finish for buttons (satin emerald, brass hairline). Added as a separate file so it can be removed by deleting one line from index.html. */
:root {
  --ott-weave: radial-gradient(rgb(255 255 255 / 0.07) 0.55px, transparent 0.7px) 0 0 / 3px 3px;
  --ott-gloss: linear-gradient(180deg, rgb(255 255 255 / 0.2) 0%, rgb(255 255 255 / 0.05) 42%, rgb(0 0 0 / 0.1) 100%);
  --ott-green-top: #0b871f;
  --ott-green-bottom: #07691a;
  --ott-brass: #c8913a;
  --ott-edge: #065a16;
}

  .btn-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgb(0 0 0 / 0.28);
    border-color: var(--ott-edge);
    background-color: var(--ott-green-top);
    background-image: var(--ott-gloss), var(--ott-weave), linear-gradient(180deg, var(--ott-green-top), var(--ott-green-bottom));
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.4),
      inset 0 0 0 1px rgb(255 255 255 / 0.06),
      inset 0 -2px 0 rgb(0 0 0 / 0.18),
      0 1px 0 var(--ott-brass),
      0 2px 3px rgb(6 70 16 / 0.35),
      0 10px 20px -10px rgb(12 131 31 / 0.7);
    transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.22s ease;
  }
  /* the sheen: a soft diagonal band that crosses once when the pointer arrives */
  .btn-primary::before {
    content: '';
    position: absolute;
    inset: -20% auto -20% -60%;
    width: 45%;
    z-index: -1;
    background: linear-gradient(105deg, transparent 0%, rgb(255 255 255 / 0.28) 50%, transparent 100%);
    transform: skewX(-18deg) translateX(0);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    pointer-events: none;
  }
  .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: saturate(1.08) brightness(1.04);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.46),
      inset 0 0 0 1px rgb(255 255 255 / 0.08),
      inset 0 -2px 0 rgb(0 0 0 / 0.2),
      0 1px 0 var(--ott-brass),
      0 3px 5px rgb(6 70 16 / 0.35),
      0 14px 26px -10px rgb(12 131 31 / 0.75);
  }
  .btn-primary:hover:not(:disabled)::before { transform: skewX(-18deg) translateX(420%); }
  .btn-primary:active:not(:disabled) {
    transform: translateY(1px) scale(0.99);
    filter: none;
    box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.35), inset 0 0 0 1px rgb(0 0 0 / 0.12), 0 1px 0 var(--ott-brass);
  }
  .btn-primary:focus-visible { outline: 3px solid rgb(12 131 31 / 0.5); outline-offset: 3px; }

  /* Normal actions: ivory with a champagne edge, turns green-tinted when pointed at */
  .btn-secondary {
    background-color: #fffdf8;
    background-image: linear-gradient(180deg, #ffffff, #f8f4ea), var(--ott-grain);
    border: 1.5px solid #d9cdb0;
    color: #1f2a1f;
    box-shadow: 0 1px 0 rgb(200 145 58 / 0.4), 0 3px 8px -5px rgb(60 45 20 / 0.28);
  }
  .btn-secondary:hover:not(:disabled) {
    background-color: #eef8f0;
    background-image: linear-gradient(180deg, #f3fbf4, #e3f3e6);
    border-color: #0c831f;
    color: #075414;
    box-shadow: 0 1px 0 rgb(200 145 58 / 0.55), 0 6px 12px -6px rgb(12 131 31 / 0.4);
    transform: translateY(-1px);
  }
  .dark .btn-secondary {
    background-color: #211e1b;
    background-image: linear-gradient(180deg, #2a2623, #1c1917);
    border-color: #4a4239;
    color: #f1ece4;
    box-shadow: 0 1px 0 rgb(224 178 101 / 0.3), 0 3px 8px -5px rgb(0 0 0 / 0.6);
  }
  .dark .btn-secondary:hover:not(:disabled) { background-image: linear-gradient(180deg, #2e2a26, #221f1c); border-color: #3fae52; color: #bbf7d0; }

  /* Strong neutral buttons (Close, Back to menu): ink with a brass hairline */
  .btn-dark {
    background-color: #1d1b19;
    background-image: linear-gradient(180deg, #2b2825, #141211), var(--ott-weave);
    border-color: #0b0a09;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 1px 0 var(--ott-brass), 0 8px 16px -10px rgb(0 0 0 / 0.6);
  }
  .btn-dark:hover:not(:disabled) { background-image: linear-gradient(180deg, #34312d, #1a1816), var(--ott-weave); transform: translateY(-1px); }
  .dark .btn-dark { background-image: linear-gradient(180deg, #ffffff, #e7e2d8); color: #1c1917; }

/* The same satin on every solid green button the shop builds from utility classes (cart bar, size buttons, "Add to order") */
button.bg-\[\#0c831f\], a.bg-\[\#0c831f\], [role="button"].bg-\[\#0c831f\] {
  background-image: var(--ott-gloss), var(--ott-weave), linear-gradient(180deg, var(--ott-green-top), var(--ott-green-bottom));
  background-color: var(--ott-green-top);
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.25);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.36), inset 0 -2px 0 rgb(0 0 0 / 0.16), 0 1px 0 var(--ott-brass), 0 2px 3px rgb(6 70 16 / 0.3), 0 8px 18px -10px rgb(12 131 31 / 0.65);
  transition: transform 0.16s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
button.bg-\[\#0c831f\]:hover:not(:disabled), a.bg-\[\#0c831f\]:hover { filter: saturate(1.08) brightness(1.05); }
button.bg-\[\#0c831f\]:active:not(:disabled) { transform: translateY(1px) scale(0.995); box-shadow: inset 0 2px 5px rgb(0 0 0 / 0.35), 0 1px 0 var(--ott-brass); filter: none; }

/* The outlined "Add" buttons: ivory with a brass underline and a soft green lift */
button[aria-label^="Add "]:not(.bg-\[\#0c831f\]) {
  background-color: #fffdf8;
  background-image: linear-gradient(180deg, #ffffff, #f7f3e8);
  box-shadow: 0 2px 0 rgb(200 145 58 / 0.6), 0 5px 10px -6px rgb(12 131 31 / 0.45);
}
.dark button[aria-label^="Add "]:not(.bg-\[\#0c831f\]) { background-color: #211e1b; background-image: linear-gradient(180deg, #2a2623, #1c1917); }

/* voice search: the mic looks "on" while it is listening */
#btn-voice-search[data-listening] { background-color: #ffe4e6 !important; color: #e11d48 !important; box-shadow: 0 0 0 3px rgb(225 29 72 / 0.25); animation: ott-mic-pulse 1.1s ease-in-out infinite; }
@keyframes ott-mic-pulse { 50% { box-shadow: 0 0 0 7px rgb(225 29 72 / 0); } }
@media (prefers-reduced-motion: reduce) { #btn-voice-search[data-listening] { animation: none; } }

/* ---- Need help with this order ---- */
.ott-help-open { display: block; width: calc(100% - 2rem); margin: .5rem 1rem; padding: .7rem 1rem; border-radius: .9rem; border: 1.5px solid #c9ead0; background: #eef8f0; color: #075414; font: 700 .85rem/1.2 inherit; font-family: inherit; text-align: center; cursor: pointer; min-height: 44px; }
.ott-help-open:hover { background: #e3f3e6; border-color: #0c831f; }
.dark .ott-help-open { background: #0c831f26; border-color: #0c831f66; color: #86efac; }
.ott-help-overlay { position: fixed; inset: 0; z-index: 2147482500; background: rgb(0 0 0 / .55); display: flex; align-items: flex-end; justify-content: center; font-family: inherit; }
@media (min-width: 640px) { .ott-help-overlay { align-items: center; } }
.ott-help-card { width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; background: #fff; color: #1c1c1c; border-radius: 1.25rem 1.25rem 0 0; padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgb(0 0 0 / .35); }
@media (min-width: 640px) { .ott-help-card { border-radius: 1.25rem; } }
.dark .ott-help-card { background: #1c1917; color: #f5f5f4; }
.ott-help-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ott-help-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.ott-help-x { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.ott-help-sub { margin: 0 0 .5rem; font-size: .75rem; opacity: .65; }
.ott-help-q { margin: .85rem 0 .4rem; font-size: .8rem; font-weight: 800; }
.ott-help-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ott-help-chip { min-height: 40px; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid #d6d3d1; background: transparent; color: inherit; font: 600 .8rem/1.1 inherit; font-family: inherit; cursor: pointer; }
.ott-help-chip.on { background: #0c831f; border-color: #0c831f; color: #fff; }
.ott-help-note { width: 100%; margin-top: .8rem; box-sizing: border-box; border-radius: .8rem; border: 1.5px solid #d6d3d1; padding: .6rem .75rem; font: 500 .85rem/1.35 inherit; font-family: inherit; background: transparent; color: inherit; resize: none; }
.ott-help-primary, .ott-help-secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: .8rem; border-radius: .9rem; text-decoration: none; font: 800 .9rem/1.2 inherit; font-family: inherit; text-align: center; padding: .5rem 1rem; }
.ott-help-primary { background: #0c831f; color: #fff; }
.ott-help-primary.off { opacity: .45; }
.ott-help-secondary { border: 1.5px solid #0c831f; color: #075414; }
.dark .ott-help-secondary { color: #86efac; }
.ott-help-hint { margin: .4rem 0 0; min-height: 1em; font-size: .75rem; color: #b91c1c; }
.ott-help-fine { margin: .7rem 0 0; font-size: .72rem; line-height: 1.4; opacity: .7; }

/* ---- Autofill: keep saved-number / address suggestions readable ----
   Browsers paint an autofilled field pale blue with their own text colour, which turned into a white box with
   washed-out text in dark mode. These rules repaint it in the site's own colours on every device and theme. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active,
textarea:-webkit-autofill, textarea:-webkit-autofill:focus, select:-webkit-autofill {
  -webkit-text-fill-color: #1c1917;
  caret-color: #1c1917;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 600000s 0s, color 600000s 0s;
}
.dark input:-webkit-autofill, .dark input:-webkit-autofill:hover, .dark input:-webkit-autofill:focus, .dark input:-webkit-autofill:active,
.dark textarea:-webkit-autofill, .dark textarea:-webkit-autofill:focus, .dark select:-webkit-autofill {
  -webkit-text-fill-color: #f5f5f4;
  caret-color: #f5f5f4;
  box-shadow: 0 0 0 1000px #292524 inset !important;
}
input:-webkit-autofill:focus, textarea:-webkit-autofill:focus, select:-webkit-autofill:focus { box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgb(12 131 31 / 0.28) !important; }
.dark input:-webkit-autofill:focus, .dark textarea:-webkit-autofill:focus, .dark select:-webkit-autofill:focus { box-shadow: 0 0 0 1000px #292524 inset, 0 0 0 3px rgb(63 174 82 / 0.35) !important; }

/* ---- FSSAI licence line in the footer ---- */
.ott-fssai { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 1.1rem auto 0; padding: .55rem .9rem; width: fit-content; max-width: 100%; border-radius: 999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(255 255 255 / .07); color: rgb(255 255 255 / .92); font-size: .78rem; line-height: 1.2; letter-spacing: .02em; }
.ott-fssai svg { flex: none; color: #86efac; }
.ott-fssai strong { font-weight: 800; letter-spacing: .06em; }


/* ---- Dark mode: pale cards ----
   The light green, red, yellow, amber and blue cards (selected cake flavour, delivery notices, errors, tips, chips)
   kept their pale backgrounds in dark mode while their text turned light, so the text vanished (a "white box"). They get
   dark tints here, and brand-green / red / amber text turns light enough to read on them. */
.dark .bg-\[\#e8f6ea\], .dark .bg-\[\#f7fff9\] { background-color: rgb(6 78 59 / 0.38); }
.dark .bg-\[\#fdecee\] { background-color: rgb(127 29 29 / 0.34); }
.dark .bg-\[\#fff7d6\] { background-color: rgb(120 83 9 / 0.34); }
.dark .border-\[\#c9ead0\], .dark .border-\[\#cfe9d4\] { border-color: rgb(52 211 153 / 0.35); }
.dark .border-\[\#fbd5d9\] { border-color: rgb(251 113 133 / 0.4); }
.dark .border-\[\#f8cb46\] { border-color: rgb(250 204 21 / 0.45); }
.dark .text-\[\#075414\], .dark .text-\[\#096a19\] { color: #86efac; }
.dark .text-\[\#b3202c\], .dark .text-\[\#e23744\] { color: #fda4af; }
.dark .text-amber-950, .dark .text-amber-900, .dark .text-amber-800 { color: #fde68a; }
.dark .bg-amber-50, .dark .bg-amber-100, .dark .bg-amber-200, .dark .bg-yellow-50, .dark .bg-yellow-100 { background-color: rgb(120 83 9 / 0.34); }
.dark .bg-emerald-50, .dark .bg-emerald-100, .dark .bg-green-50, .dark .bg-green-100 { background-color: rgb(6 78 59 / 0.38); }
.dark .bg-rose-50, .dark .bg-rose-100, .dark .bg-red-50, .dark .bg-red-100 { background-color: rgb(127 29 29 / 0.34); }
.dark .bg-blue-50, .dark .bg-blue-100, .dark .bg-sky-50, .dark .bg-sky-100 { background-color: rgb(30 58 138 / 0.34); }
.dark .bg-purple-50, .dark .bg-purple-100 { background-color: rgb(88 28 135 / 0.34); }
.dark .text-amber-700, .dark .text-yellow-800, .dark .text-yellow-700 { color: #fcd34d; }
.dark .text-emerald-700, .dark .text-emerald-800, .dark .text-emerald-900, .dark .text-green-700, .dark .text-green-800 { color: #86efac; }
.dark .text-rose-700, .dark .text-rose-800, .dark .text-rose-900, .dark .text-red-700, .dark .text-red-800 { color: #fda4af; }
.dark .text-blue-700, .dark .text-blue-800, .dark .text-blue-900, .dark .text-sky-800 { color: #93c5fd; }
.dark .text-purple-700, .dark .text-purple-800, .dark .text-purple-900 { color: #d8b4fe; }

/* The site's green scale has no 950 / 800 / 300 shades, so these dark-mode styles were never generated and the selected
   cake flavour / size / weight cards stayed pale green under light text. Defined here instead. */
.dark .dark\:bg-candy-cherry-950\/30 { background-color: rgb(6 78 59 / 0.38); }
.dark .dark\:bg-candy-cherry-950\/60 { background-color: rgb(6 78 59 / 0.62); }
.dark .dark\:border-candy-cherry-800 { border-color: rgb(22 101 52); }
.dark .dark\:border-candy-cherry-800\/80 { border-color: rgb(22 101 52 / 0.8); }
.dark .dark\:from-candy-cherry-950 { --tw-gradient-from: #052e16; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(5 46 22 / 0)); }
.dark .dark\:text-candy-cherry-300 { color: #86efac; }

/* ---- Delivery location pill, Maple & Mint style ---- */
#hero-customer-location-btn { height: 44px; max-width: 13rem; padding: 0 10px 0 8px; border-radius: 16px; gap: 8px; }
@media (min-width: 640px) { #hero-customer-location-btn { max-width: 20rem; } }
#hero-customer-location-btn > :not(.ott-pill) { display: none !important; }
#hero-customer-location-btn .ott-pill { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.ott-pill-icon { flex: none; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(251 191 36 / .25); color: #fcd34d; }
.ott-pill[data-kind="ok"] .ott-pill-icon { background: rgb(52 211 153 / .25); color: #6ee7b7; }
.ott-pill[data-kind="far"] .ott-pill-icon { background: rgb(244 63 94 / .3); color: #fda4af; }
.ott-pill-text { min-width: 0; flex: 1; line-height: 1.2; display: block; }
.ott-pill-title { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.ott-pill-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ott-pill-chev { flex: none; display: inline-flex; opacity: .9; }
.ott-pill-sub { display: block; font-size: 11px; font-weight: 600; color: rgb(255 255 255 / .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ott-pill[data-kind="far"] .ott-pill-sub { color: #fecdd3; }
.ott-pill-eta { flex: none; border-radius: 999px; background: rgb(52 211 153 / .25); color: #d1fae5; padding: 2px 8px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 399px) { .ott-pill-eta { display: none; } }

/* ---- Tap a greyed-out submit button: highlight what is missing ---- */
.ott-needs-input { outline: 3px solid #e23744 !important; outline-offset: 2px !important; border-radius: 12px; animation: ott-need-shake .4s ease; }
@keyframes ott-need-shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ott-field-toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147482000; max-width: min(92vw, 380px); background: #b3202c; color: #fff; font: 700 13px/1.35 inherit; font-family: inherit; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / .35); text-align: center; pointer-events: none; display: none; }
@media (prefers-reduced-motion: reduce) { .ott-needs-input { animation: none; } }

/* ---- Staff alarm bar ---- */
.ott-sound-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 2147482000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; padding: .6rem 1rem; background: #fbbf24; color: #1c1917; font: 700 13px/1.35 inherit; font-family: inherit; text-align: center; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.ott-sound-bar.fail { background: #e11d48; color: #fff; }
.ott-sound-bar button { min-height: 36px; padding: 0 .9rem; border: 0; border-radius: 999px; background: #1c1917; color: #fff; font: 800 13px/1 inherit; font-family: inherit; cursor: pointer; }
