/* The restaurant pages, /restaurants and /restaurants/book (since 2026-11-10).
   Loaded after styles.css by those two pages only, so nothing here can move a
   real estate page. */

/* Two or three package cards, centred, one column on a phone. */
.rest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 350px)); gap: 26px; justify-content: center; align-items: stretch; }
.rest-grid .pkg { padding: 32px 26px; }
.rest-grid .pkg[hidden] { display: none !important; }
@media (max-width: 640px) { .rest-grid { grid-template-columns: minmax(0, 440px); } }

/* The ways to buy inside a card: three short rows, the price on the right. */
.rest-buy { list-style: none; padding: 0; margin: -8px 0 22px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); }
.rest-buy li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rest-buy li::before { content: none; }
.rest-buy li:last-child { border-bottom: none; }
.rest-buy li b { color: var(--accent); white-space: nowrap; }
.rest-buy li small { display: block; color: var(--muted); font-size: 13px; }
.rest-buy li[hidden] { display: none !important; }

/* The gift: two items side by side, one column on a phone. */
.rest-gift { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; margin-top: 8px; }
.rest-gift .vcard h3 .ico { margin-right: 8px; }
@media (max-width: 720px) { .rest-gift { grid-template-columns: 1fr; } }

.rest-hero-price { color: var(--accent); white-space: nowrap; }
.rest-bonuses { margin: 10px auto 0; max-width: 520px; color: var(--muted); font-size: 14.5px; }

/* The real estate top bar never shows here. The server takes it out of the
   HTML (restaurantChrome() in server.js); this covers a page drawn without it. */
.announce { display: none !important; }

/* No site chat here (see the note at the foot of restaurants.html): the old
   GHL widget, which a server without EZ_CHAT_URL still loads, is hidden too. */
chat-widget, #ez-chat { display: none !important; }

/* ---------- The booking form, /restaurants/book ---------- */
.rest-form .book-q { margin-top: 34px; }
.rest-form .book-q:first-child { margin-top: 0; }
.rest-picks { display: grid; gap: 12px; margin-top: 12px; }
.rest-pick { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 18px 16px 48px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; }
.rest-pick input { position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; accent-color: var(--brand); }
.rest-pick b { font-size: 17px; }
.rest-pick em { font-style: normal; font-weight: 800; color: var(--accent); text-align: right; }
.rest-pick span { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; }
.rest-pick .rest-terms { grid-column: 1 / -1; display: none; margin-top: 6px; font-size: 13.5px; color: var(--ink); }
.rest-pick.on { border-color: var(--brand); box-shadow: var(--ring); }
.rest-pick.on .rest-terms { display: block; }
.rest-addr-btn { margin-top: 10px; }
.rest-day { margin: 16px 0 8px; }
.rest-summary .rest-lines { width: 100%; border-collapse: collapse; font-size: 15px; }
.rest-lines td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rest-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.rest-lines tr.minus td:last-child { color: var(--accent); }
.rest-lines tr.total td { font-weight: 800; border-bottom: none; padding-top: 12px; }
.rest-lines tr.today td { color: var(--muted); border-bottom: none; padding-top: 0; }
.rest-renew, .rest-gift-line { margin: 12px 0 0; font-size: 14.5px; }
.rest-book-btn { width: 100%; margin-top: 18px; }
.rest-form .form-error { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid #d92d20; color: var(--ink); font-weight: 600; }
.rest-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.rest-done h2 { margin-bottom: 8px; }
.rest-form .field { margin-top: 14px; }
.rest-form .row2 .field { margin-top: 14px; }

/* ---------- The plan page, /restaurants/plan ---------- */
.rest-plan-due { border: 2px solid var(--brand); margin-bottom: 18px; }
#plan-box .vcard { margin-bottom: 18px; }
.rest-shoots { list-style: none; padding: 0; margin: 0; }
.rest-shoots li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rest-shoots li:last-child { border-bottom: none; }
.rest-shoots a { color: var(--accent); font-weight: 700; margin-left: 6px; }
.rest-plan-note { margin-bottom: 18px; }
#plan-rows { width: 100%; table-layout: fixed; }
#plan-rows td:first-child { width: 38%; color: var(--muted); }
#plan-rows td:last-child { white-space: normal; font-weight: 700; }
