/* Additions for the Laravel/Livewire build: pieces the static prototype rendered in JS. */

/* Hero plate: slow ambient rotation (the prototype drove this from JS) */
.hero-food.is-settled .hero-food__spin { animation: bl-spin 60s linear infinite; }
.hero-food.is-settled:hover .hero-food__spin { animation-duration: 120s; }
@media (prefers-reduced-motion: reduce) { .hero-food__spin, .auth-shell__plate { animation: none !important; } }
@keyframes bl-spin { to { transform: rotate(360deg); } }

/* Livewire loading states */
.is-swapping { opacity: 0.5; transition: opacity var(--t-fast) var(--ease-out); pointer-events: none; }
.add-btn.is-loading { opacity: 0.7; pointer-events: none; }

/* Pager */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; }

/* Menu toolbar */
.toolbar { flex-wrap: wrap; }
.sort-chip { cursor: pointer; }
.sort-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sort-chip:has(input:checked) { border-color: var(--red); color: var(--red); }
.select--sm { height: 40px; font-size: 14px; margin-bottom: 12px; padding-left: 12px; }

/* Ratings */
.stars { display: inline-flex; gap: 2px; color: #d9d0ca; }
.stars .i { width: 16px; height: 16px; }
.stars .i.is-on { color: var(--orange); fill: currentColor; }
.rate-input { display: flex; gap: 4px; }
.rate-input button { color: #d9d0ca; padding: 2px; border-radius: 6px; transition: color var(--t-fast), transform var(--t-fast); }
.rate-input button:hover { transform: scale(1.1); }
.rate-input button.is-on { color: var(--orange); }
.rate-input button.is-on .i { fill: currentColor; }
.rate-input .i { width: 28px; height: 28px; }
.form-stack { display: grid; gap: 16px; }
.field .error { display: block; }
.form-error { font-size: 12px; color: var(--red); margin-top: 8px; }

/* Checkout */
.coupon-row { display: flex; gap: 8px; margin: 16px 0 12px; }
.coupon-row .input { height: 40px; }
.radio-card .i { color: var(--muted); }
.radio-card:has(input:checked) .i { color: var(--red); }

/* Bank transfer */
.bank-details { margin: 24px 0 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; }
.bank-row + .bank-row { border-top: 1px solid var(--border); }
.bank-row dt { font-size: 13px; color: var(--muted); }
.bank-row dd { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums; text-align: right; }
.copy-btn { font-size: 12px; font-weight: 600; color: var(--red); padding: 4px 10px; border: 1px solid var(--red-soft); border-radius: 999px; }
.copy-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Events */
.gal-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; transition: transform var(--t-std) var(--ease-out), box-shadow var(--t-std) var(--ease-out); }
.gal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gal-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); }
.gal-card__body { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.gal-card__body strong { font-family: var(--font-display); font-size: 20px; color: var(--dark); line-height: 1.2; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-grid .g-item { aspect-ratio: 4 / 3; }
@media (max-width: 768px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gallery--n4 { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
.socials--light a { border-color: var(--border); color: var(--dark); }

/* Content from the admin's rich-text editor */
.rich-text img { border-radius: 16px; margin: 16px 0; height: auto; }
.rich-text ol { list-style: decimal; padding-left: 22px; }
.rich-text h1 { font-family: var(--font-display); font-size: 36px; margin: 32px 0 12px; }

/* Pay panel */
.pay-panel .h2 em { font-style: normal; }

/* SweetAlert toasts from livewire-alert, in the B-Lite style */
.swal2-popup { font-family: var(--font-ui) !important; border-radius: 16px !important; }
.swal2-popup.swal2-toast { background: var(--dark) !important; color: #fff !important; box-shadow: var(--shadow-lg) !important; }
.swal2-popup.swal2-toast .swal2-title, .swal2-popup.swal2-toast .swal2-html-container { color: #fff !important; }
.swal2-popup .swal2-title h4 { font-family: var(--font-display) !important; color: #ff8a98 !important; margin: 0; }
.swal2-styled.swal2-confirm { background: var(--red) !important; border-radius: 12px !important; }

/* Auth pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.auth-shell__art { position: relative; background: var(--red); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; color: #fff; }
.auth-shell__art::before { content: ""; position: absolute; inset: 0; opacity: 0.16; background-image: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0); background-size: 22px 22px; }
.auth-shell__plate { position: absolute; width: 78%; aspect-ratio: 1; top: 8%; left: 11%; animation: bl-spin 40s linear infinite; }
.auth-shell__plate img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(60, 0, 8, 0.35)); }
.auth-shell__quote { position: relative; font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1.1; }
.auth-shell__quote em { font-style: italic; }
.auth-shell__main { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 6vw, 96px); }
.auth-shell__card { width: 100%; max-width: 440px; margin: 0 auto; }
.auth-shell__logo img { height: 56px; width: auto; margin-bottom: 28px; }
.auth-shell__back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--dark); font-size: 14px; font-weight: 600; }
.auth-shell__back:hover { border-color: var(--red); color: var(--red); }
.auth-shell__logo { display: table; }
.auth-shell h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); line-height: 1.05; margin-bottom: 8px; }
.auth-shell .sub { color: var(--muted); margin-bottom: 28px; }
.auth-shell form { display: grid; gap: 16px; }
.auth-shell .row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.auth-shell .row-between a, .auth-shell .switch-link a { color: var(--red); font-weight: 600; }
.auth-shell .switch-link { text-align: center; font-size: 14px; color: var(--muted); margin-top: 20px; }
.auth-shell .status { padding: 12px 14px; border-radius: 12px; background: #f4faf6; color: #16663a; font-size: 14px; }
.auth-shell .check { padding: 0; border: 0; background: none; font-size: 14px; }
.auth-shell .check:has(input:checked) { background: none; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-shell__art { display: none; } .auth-shell__main { padding-top: 32px; } }

/* Help centre */
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; gap: 20px; } }
.tbl--allergens th .vert { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 11px; }
.tbl--allergens .yes { color: var(--red); }
.tbl td a { color: var(--dark); font-weight: 600; }
.tbl td a:hover { color: var(--red); }

/* Contact */
.map-frame { border-radius: 24px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 21 / 8; min-height: 280px; background: var(--cream); }
.map-frame iframe { border: 0; width: 100%; height: 100%; }

/* Invoice and payment receipt box on order and pay pages */
.pay-docs { margin-top: 16px; display: grid; gap: 8px; }
.pay-docs__upload { display: grid; gap: 8px; padding: 14px; border: 1.5px dashed var(--border); border-radius: var(--r-card); background: #fff; }
.pay-docs__upload input[type="file"] { font-size: 14px; }
.pay-docs__upload .btn { justify-self: start; }
.notice--ok { background: #e9f8ef; color: #137a3a; }
.field-error { color: #b0101f; font-size: 13px; }
.hint--closed { display: flex; align-items: center; gap: 6px; color: #8a5300; margin-top: 4px; }

/* Illustrations (same set as the app). They sit above or beside text but never squeeze it. */
.art { display: block; max-width: 100%; height: auto; }
.state__art { width: min(220px, 70%); margin: 0 auto 18px; }
.dash-empty__art { width: min(150px, 60%); margin: 0 auto 10px; }
/* Page headers: picture on the right on wide screens, above the title otherwise */
.page-hero--art { position: relative; overflow: hidden; }
.page-hero__art { width: 170px; margin: 0 auto 8px; }
@media (min-width: 1100px) {
  .page-hero--art .container { padding-right: 300px; }
  .page-hero__art { position: absolute; right: max(24px, calc((100vw - 1200px) / 2)); bottom: 12px; width: 240px; margin: 0; }
}
@media (max-width: 1099px) { .page-hero--art { display: flex; flex-direction: column-reverse; } }
/* Payment panel: picture centred on top */
.pay-panel__art { width: 130px; margin: -4px auto 10px; }
.secure-pay { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.secure-pay .art { width: 56px; flex: none; }
.secure-pay p { margin: 0; min-width: 0; }
.auth-shell__plate--art { background: none !important; box-shadow: none !important; border: 0 !important; animation: none !important; }
.auth-shell__plate--art .art { width: 100%; height: 100%; object-fit: contain; }
/* Home shortcuts: picture on top, text underneath, same height in a row */
.plan-cards { gap: 16px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-card); background: var(--peach, #ffeedb); color: var(--dark); text-decoration: none; transition: transform .2s ease; height: 100%; }
.plan-card:hover { transform: translateY(-2px); }
.plan-card__art { width: auto; height: 120px; object-fit: contain; align-self: center; }
.plan-card__body { display: grid; gap: 4px; font-size: 14px; min-width: 0; }
.plan-card__body strong { font-size: 17px; }
.plan-card__body .text-link { color: var(--red); font-weight: 600; margin-top: 4px; }
@media (max-width: 640px) {
  .plan-cards { grid-template-columns: 1fr !important; }
  .plan-card { flex-direction: row; align-items: center; }
  .plan-card__art { height: 88px; max-width: 34%; }
}

/* Account deletion */
.delete-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.delete-list li { display: flex; gap: 10px; align-items: flex-start; }
.delete-list .i { margin-top: 3px; color: var(--red); flex: none; }
.delete-form { display: grid; gap: 14px; max-width: 460px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check-row input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; }
.delete-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--danger { background: #b0101f; border-color: #b0101f; color: #fff; }
.btn--danger:hover { background: #8c0c18; border-color: #8c0c18; }
.btn--danger-text { color: #b0101f; }
.dash-card--quiet { margin-top: 16px; }
.delete-steps { display: grid; gap: 10px; padding-left: 20px; margin: 10px 0 18px; }

/* Checkout: optional location for the courier */
.geo-share__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.geo-share__on { display: inline-flex; align-items: center; gap: 6px; color: #137a3a; font-weight: 600; font-size: 14px; }

/* Portion calculator */
.portion { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .portion { grid-template-columns: 1fr; } }
.portion__form { display: grid; gap: 22px; }
.portion__guests { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.portion__num { width: 64px; border: 0; text-align: center; font: inherit; font-size: 20px; font-weight: 700; color: var(--dark); background: transparent; -moz-appearance: textfield; }
.portion__num::-webkit-inner-spin-button, .portion__num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.portion__num:focus { outline: none; }
.portion .segmented { flex-wrap: wrap; }
.portion__result { position: sticky; top: 96px; display: grid; gap: 12px; }
.portion__big { font-family: var(--font-display, inherit); font-size: 22px; margin: 0; color: var(--dark); }
.portion__big strong { font-size: 52px; line-height: 1; color: var(--red); display: block; }
.portion__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.portion__lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 12px 14px; background: var(--blush); border-radius: 12px; }
.portion__lines b { font-size: 18px; color: var(--red); }
.portion__price { margin-left: auto; font-weight: 700; color: var(--dark); }
.portion__guide summary { cursor: pointer; font-weight: 600; color: var(--dark); }
.portion__guide ul { list-style: none; padding: 0; margin: 10px 0; }
.portion__guide li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.portion-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--red); font-weight: 600; font-size: 14px; }
.portion-link:hover { text-decoration: underline; }

/* Order page: live courier map */
.track-panel { margin-bottom: 20px; }
.track-panel .panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.track-map { height: 340px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 10px; z-index: 0; }
.track-eta { background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.track-eta:empty { display: none; }
@media (max-width: 640px) { .track-map { height: 280px; } }

/* Sign-in: warm background and a white card, so the form doesn't sit on plain white. */
.auth-shell__main { background: radial-gradient(circle at 1px 1px, rgba(245, 34, 58, 0.09) 1.2px, transparent 0) 0 0 / 22px 22px, linear-gradient(170deg, #fff4ec 0%, #ffe8d9 100%); }
.auth-shell__card { background: #fff; border-radius: 24px; padding: 28px 28px 32px; box-shadow: 0 18px 50px rgba(120, 40, 20, 0.12); border: 1px solid rgba(234, 228, 224, 0.8); }
@media (max-width: 900px) {
  .auth-shell__main { padding: 20px 14px 32px; justify-content: flex-start; }
  .auth-shell__card { padding: 22px 18px 26px; border-radius: 20px; }
}

/* Portion calculator: "how much I'm ordering" box */
.portion__amount { display: flex; align-items: center; gap: 10px; }
.portion__amount .input { max-width: 160px; font-size: 22px; font-weight: 700; height: 54px; }

/* Homepage: "The B-Lite app" coming soon, with three phone mockups */
.app-soon { background: linear-gradient(160deg, #1f0d0a 0%, #3a1410 55%, #5c1a14 100%); color: #fff; overflow: hidden; }
.app-soon .h2, .app-soon .lead { color: #fff; }
.app-soon .lead { opacity: .85; }
.app-soon .eyebrow { color: #ffc531; }
.app-soon__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.app-soon__list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.app-soon__list li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.9); }
.app-soon__list .i { color: #ffc531; flex: none; }
.app-soon__stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1.5px solid rgba(255,255,255,.35); border-radius: 12px; padding: 9px 16px 9px 12px; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.1; }
.store-btn svg { width: 24px; height: 24px; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.store-btn--soon { opacity: .75; cursor: default; }
.app-soon__phones { position: relative; height: 560px; }
.phone { position: absolute; width: 230px; aspect-ratio: 9 / 19.5; background: #111; border-radius: 38px; padding: 9px; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px #333; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; background: #111; border-radius: 12px; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 30px; overflow: hidden; background: #fffdfc; }
.phone__screen > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone--main { left: 50%; top: 10px; transform: translateX(-50%); z-index: 2; width: 250px; }
.phone--left { left: 0; top: 70px; transform: rotate(-7deg); }
.phone--right { right: 0; top: 70px; transform: rotate(7deg); }
.phone__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 25%, rgba(20,6,4,.6) 55%, rgba(20,6,4,.96) 82%); }
.phone__logo { position: absolute; top: 40px; left: 16px; width: 70px; }
.phone__words { position: absolute; left: 16px; right: 16px; bottom: 22px; display: grid; gap: 6px; }
.phone__words small { color: #ffc531; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.phone__words b { font-family: var(--font-display); font-size: 21px; line-height: 1.1; color: #fff; }
.phone__dots { display: flex; gap: 4px; margin-top: 8px; }
.phone__dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
.phone__dots i.on { width: 16px; background: var(--red); }
.phone__btn { background: var(--red); color: #fff; text-align: center; border-radius: 4px; padding: 9px; font-size: 12px; font-weight: 700; margin-top: 6px; }
.phone__bar { padding: 40px 14px 10px; font-weight: 800; font-size: 13px; color: var(--dark); background: #fff; border-bottom: 1px solid var(--border); }
.phone__bar--red { background: var(--red); color: #fff; border: 0; }
.phone__map { position: relative; height: 62%; background: #eef0e6; }
.phone__roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone__roads path { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.phone__roads path.route { stroke: #1e88e5; stroke-width: 5; stroke-dasharray: 2 0; opacity: .85; }
.phone__bike { position: absolute; left: 47%; top: 44%; width: 34px; animation: phone-bike 6s ease-in-out infinite alternate; }
.phone__home { position: absolute; left: 76%; top: 26%; width: 28px; height: 28px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 15px; border: 2px solid #fff; }
@keyframes phone-bike { from { transform: translate(-30px, 28px); } to { transform: translate(12px, -14px); } }
@media (prefers-reduced-motion: reduce) { .phone__bike { animation: none; } }
.phone__card { margin: -18px 12px 0; position: relative; background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.12); display: grid; gap: 2px; }
.phone__card small { color: #16663a; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.phone__card b { font-size: 13px; color: var(--dark); }
.phone__card span { font-size: 11px; color: var(--muted); }
.phone__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.phone__dish { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.08); display: grid; }
.phone__dish img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.phone__dish b { font-size: 10.5px; color: var(--dark); padding: 6px 7px 0; line-height: 1.2; }
.phone__dish span { font-size: 9.5px; color: var(--red); font-weight: 700; padding: 2px 7px 7px; }
@media (max-width: 960px) {
  .app-soon__grid { grid-template-columns: 1fr; }
  .app-soon__phones { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 190px; } .phone--main { width: 210px; }
}
@media (max-width: 560px) {
  .app-soon__phones { height: 420px; }
  .phone { width: 150px; border-radius: 28px; padding: 7px; } .phone__screen { border-radius: 22px; }
  .phone--main { width: 190px; } .phone--left { left: -10px; top: 60px; } .phone--right { right: -10px; top: 60px; }
  .phone__words b { font-size: 15px; }
}

/* Catering: guests slider plus a box to type any number, and how sure they are */
.guests-pick { display: flex; align-items: center; gap: 14px; }
.guests-pick input[type=range] { flex: 1; min-width: 0; }
.guests-pick__num { width: 110px; flex: none; font-weight: 700; font-size: 18px; text-align: center; }
.guests-sure { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-size: 14px; font-weight: 600; }
.chip-radio input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.phone__map--video { height: 70%; overflow: hidden; }
.phone__map--video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* App mockup: the tracking screen is video + image overlays, so it scales as one picture. */
.phone__screen--map video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone__overlay-bar { position: absolute; top: 0; left: 0; width: 100%; height: auto; z-index: 1; }
.phone__overlay-card { position: absolute; left: 2%; right: 2%; bottom: 3%; width: 96%; height: auto; z-index: 1; }
.phone__screen > img:first-child { object-position: top center; }
