/* Chicken World – menu- og bestillingsside (bygger på styles.css) */

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__links a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* Hero */
.mhero {
  position: relative; padding: 10px clamp(18px, 4vw, 48px) 40px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
.mhero__title {
  font-family: var(--display); font-weight: 400; line-height: .85; letter-spacing: -.02em;
  font-size: clamp(84px, 17vw, 260px);
  animation: rise 1s cubic-bezier(.2,.8,.2,1) both;
}
.mhero__pizza {
  width: clamp(120px, 18vw, 260px);
  filter: drop-shadow(0 20px 22px rgba(28,42,29,.3));
  animation: drop 1.1s .2s cubic-bezier(.2,.9,.25,1.15) both;
}
.mhero__info { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.mhero__info p:first-child { max-width: 560px; font-size: 18px; }

/* Kategori-bjælke */
.catbar {
  position: sticky; top: 0; z-index: 15;
  background: var(--frame); color: var(--cream);
}
.catbar__inner {
  display: flex; gap: 14px; align-items: center;
  padding: 12px clamp(18px, 4vw, 48px);
}
.search input {
  width: 230px; max-width: 100%;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--cream); border: 0; border-radius: 999px; padding: 10px 16px;
}
.search input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.catbar__links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.catbar__links::-webkit-scrollbar { display: none; }
.catbar__links a {
  flex: none; text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(245,239,227,.35);
  transition: background .2s, border-color .2s, color .2s;
}
.catbar__links a:hover { border-color: var(--cream); }
.catbar__links a.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* Menu */
.menu-list { padding: 20px clamp(18px, 4vw, 48px) 80px; display: grid; gap: 20px; }
.msec { padding-top: 46px; scroll-margin-top: 70px; }
.msec__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 18px; }
.msec__head h2 { font-size: clamp(42px, 6vw, 84px); }
.msec__head p { color: var(--muted); }
.msec--lunch { background: var(--frame); color: var(--cream); border-radius: var(--radius); padding: 34px clamp(18px, 3vw, 36px) 26px; margin-top: 30px; }
.msec--lunch .msec__head p { color: var(--orange-soft); font-weight: 700; }
.msec--lunch .dish { border-color: rgba(245,239,227,.18); }
.msec--lunch .dish__desc { color: rgba(245,239,227,.7); }
.msec--lunch .price { border-color: rgba(245,239,227,.5); color: var(--cream); }

.dishes { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.dish {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 14px;
  padding: 16px 0; border-bottom: 1.5px dashed var(--cream-2);
}
.dish__nr {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream-2); color: var(--ink);
  font-family: var(--display); font-size: 16px;
}
.dish--plain { grid-template-columns: 1fr; }
.dish--plain .dish__nr { display: none; }
.dish--plain .dish__prices { grid-column: 1; }
.dish__main { min-width: 0; }
.dish__name { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.dish__tag { font-family: var(--body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--orange); color: #fff; border-radius: 999px; padding: 3px 8px; margin-left: 6px; vertical-align: 3px; }
.dish__desc { color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 2px; }
.dish__prices { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.price {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink);
  background: transparent; border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 6px 12px 6px 14px; cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
  font-variant-numeric: tabular-nums;
}
.price small { font-weight: 500; opacity: .7; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.price::after {
  content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 15px; line-height: 1;
}
.price:hover { background: var(--ink); color: var(--cream); }
.price:active { transform: scale(.94); }
.price:focus-visible, .cartbtn:focus-visible, .cart button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.price.is-added { animation: pop .45s ease; }
.menu-empty { text-align: center; padding: 40px 16px 80px; color: var(--muted); }

/* Kurv-knap */
.cartbtn {
  position: fixed; z-index: 30; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange); color: #fff; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; padding: 10px 22px 10px 10px; cursor: pointer;
  box-shadow: 0 12px 28px rgba(28,42,29,.35);
  animation: rise .4s ease both;
}
.cartbtn__count {
  min-width: 34px; height: 34px; border-radius: 999px; background: var(--frame); color: var(--cream);
  display: grid; place-items: center; padding: 0 8px; font-variant-numeric: tabular-nums;
}
.cartbtn.is-bump { animation: pop .45s ease; }

/* Kurv-skuffe */
.scrim { position: fixed; inset: 0; background: rgba(28,42,29,.5); z-index: 40; }
.cart {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%); background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 22px 24px 28px;
  transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: -20px 0 40px rgba(28,42,29,.25);
}
.cart.is-open { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cart__head h2 { font-size: 40px; }
.cart__close { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; font-size: 16px; cursor: pointer; color: var(--ink); }
.cart__items { list-style: none; display: grid; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--cream-2); }
.citem__name { font-weight: 700; }
.citem__meta { color: var(--muted); font-size: 14px; }
.citem__price { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; font-size: 16px; line-height: 1; cursor: pointer; color: var(--ink); }
.qty span { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart__empty { color: var(--muted); padding: 20px 0; }
.cart__sum { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; }
.cart__sum span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
.cart__sum b { font-family: var(--display); font-weight: 400; font-size: 34px; }

.cart__form { display: grid; gap: 12px; margin-top: 10px; }
.field { display: grid; gap: 4px; }
.field label, .field__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.field small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.form-error { color: #b4361b; font-weight: 700; font-size: 14px; }
.cart__go { width: 100%; margin-top: 4px; }
.cart__go:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cart__fine { font-size: 13px; color: var(--muted); text-align: center; }

/* Afhentning / levering */
.modes { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; }
.mode { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode span {
  display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--ink); background: #fff; font-weight: 700; font-size: 16px;
  transition: background .15s, color .15s;
}
.mode small { font-weight: 500; font-size: 12px; color: var(--muted); }
.mode input:checked + span { background: var(--ink); color: var(--cream); }
.mode input:checked + span small { color: var(--red-soft); }
.mode input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.cart__sum--fee { padding: 10px 0 0; }
.cart__sum--fee b { font-family: var(--body); font-weight: 700; font-size: 17px; }
.cart__sum--disc b, .cart__sum--disc span { color: var(--green, #2e8b57); }
.codebox { display: flex; gap: 8px; }
.codebox input { flex: 1; min-width: 0; text-transform: uppercase; }
.codebox__btn { font: inherit; font-weight: 700; padding: 0 18px; border-radius: 12px; border: 2px solid var(--ink); background: var(--ink); color: var(--cream); cursor: pointer; }
.codehint { font-size: 14px; font-weight: 700; margin: 2px 0 0; }
.codehint[data-ok="1"] { color: var(--green, #2e8b57); }
.codehint[data-ok="0"] { color: #c0392b; }
.freehint { font-size: 14px; font-weight: 700; color: var(--yellow-deep); }
#addrfields { display: grid; gap: 12px; }
#addrfields[hidden] { display: none !important; }
.field__hint { font-size: 13px; color: var(--muted); }

.done__lead { font-size: 18px; margin-bottom: 14px; }
.done__call { width: 100%; font-size: 20px; padding: 16px; }
.done__summary {
  white-space: pre-wrap; font-family: var(--body); font-size: 15px; line-height: 1.6;
  background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px; margin: 16px 0;
  font-variant-numeric: tabular-nums;
}
.done__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.done__actions .btn { flex: 1; padding: 11px 16px; font-size: 15px; }
.sent__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 700; margin-bottom: 14px; animation: pop .5s ease; }
.sent__title { font-size: 40px; margin-bottom: 10px; }
.sent__facts { display: grid; gap: 10px; margin: 18px 0; padding: 16px; background: #fff; border: 1.5px solid var(--ink); border-radius: 16px; }
.sent__facts div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.sent__facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.sent__facts dd { font-weight: 700; }
.sent__new { width: 100%; margin-top: 16px; }
.sent__status { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--cream-2); margin-bottom: 4px; }
.sent__status[data-state="ok"] { background: #dff3df; }
.sent__status[data-state="no"] { background: #fde0dc; color: #8a1d12; }
.sent__pulse { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--yellow-deep); animation: pulse 1.2s ease-in-out infinite; }
.sent__status[data-state="ok"] .sent__pulse { background: var(--open); animation: none; }
.sent__status[data-state="no"] .sent__pulse { background: var(--red); animation: none; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.done__clear { margin-top: 18px; background: none; border: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }

.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--frame); color: var(--cream); font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: 999px; transition: opacity .25s, transform .25s;
  width: max-content; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes pop { 40% { transform: scale(1.12); } }

@media (max-width: 900px) {
  .dishes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .catbar__inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .search input { width: 100%; }
  .mhero { grid-template-columns: 1fr; }
  .mhero__pizza { display: none; }
  .mhero__title { font-size: 21vw; }
  .menu-page .footer__cols { grid-template-columns: 1fr; }
}

.sent__msg { display: grid; gap: 3px; }
.sent__msg b { font-size: 19px; }
.sent__msg span { font-size: 15px; }
.sent__badge[data-state="wait"] { background: var(--yellow); color: var(--frame); }
.sent__badge[data-state="no"] { background: var(--red); color: #fff; }
.paybox { border: 0; padding: 0; margin: 4px 0 0; }
.paybox legend { padding: 0; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.modes--pay .mode span { text-transform: none; }
.modes--pay { margin: 6px 0 0; }
.when { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.when label { display: block; font: inherit; text-transform: none; letter-spacing: 0; }
.when select { width: 100%; }

/* Adresseforslag */
.addr { position: relative; }
.addr__sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.15); max-height: 260px; overflow-y: auto; }
.addr__sug li { padding: 10px 12px; border-radius: 8px; cursor: pointer; line-height: 1.3; }
.addr__sug li small { display: block; color: var(--muted); font-size: 13px; }
.addr__sug li[aria-selected="true"], .addr__sug li:hover { background: var(--cream-2, #f3e8d2); }

/* Menu-knap og -tekst */
.price--menu { border-color: var(--orange); }
.price--menu small { color: var(--orange); opacity: 1; }
.msec__head p.msec__menu { flex-basis: 100%; color: var(--ink); font-weight: 600; margin: 0; }
.field__hint--menu { color: var(--orange); font-weight: 600; }

/* Pop-up med tilvalg til pizza */
.pzpop { position: fixed; inset: 0; z-index: 70; background: rgba(43,23,16,.55); display: grid; place-items: end center; padding: 16px; }
.pzpop[hidden] { display: none; }
@media (min-width: 640px) { .pzpop { place-items: center; } }
.pzpop__box { width: 100%; max-width: 420px; background: var(--cream); color: var(--ink); border-radius: 22px; padding: 22px 20px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.pzpop__kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin: 0; }
.pzpop__title { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 4px 0 14px; }
.pzpop__list { list-style: none; margin: 0 0 16px; padding: 0; }
.pzpop__list li + li { border-top: 1px dashed rgba(43,23,16,.2); }
.pzpop__list label { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; font-size: 16px; }
.pzpop__list input { width: 22px; height: 22px; accent-color: var(--orange); margin: 0; }
.pzpop__list span { flex: 1; }
.pzpop__list b { font-variant-numeric: tabular-nums; }
.pzpop__add { width: 100%; justify-content: center; }
.pzpop__cancel { display: block; width: 100%; margin-top: 8px; padding: 10px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--ink); opacity: .7; cursor: pointer; }
body.pz-open { overflow: hidden; }

/* Valg af sodavand i pop-up'en */
.pzpop fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.pzpop legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-bottom: 8px; padding: 0; }
.pzpop__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pzpop__chip { position: relative; }
.pzpop__chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pzpop__chip span { display: block; text-align: center; padding: 12px 8px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 700; cursor: pointer; }
.pzpop__chip input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.pzpop__chip input:focus-visible + span { outline: 3px solid var(--yellow, #ffb81c); outline-offset: 2px; }
.pzpop__err { color: var(--orange); font-weight: 700; margin: 0 0 10px; }
.pzpop__box { max-height: calc(100vh - 32px); overflow-y: auto; }

.pzpop__info { margin: -8px 0 14px; font-weight: 600; }

/* Knapperne i pop-up'en bliver i bunden, også når listen er lang */
.pzpop__foot { position: sticky; bottom: -16px; margin: 0 -20px -16px; padding: 10px 20px 8px; background: var(--cream); border-top: 1px solid rgba(43,23,16,.12); }
