/* addons.css — styles for the platform add-on widgets (ordering cart, booking
   widget, owner-defined forms) when they run OUTSIDE the site template: on a
   custom design, or on the platform's own fallback page (/_mh/fallback/).
   Template sites keep using their own copies (ordering-widget.html, base.css).

   Generated from site-template by hand-extraction; keep in step with
   layouts/partials/ordering-widget.html (<style>) and assets/css/base.css
   (MH-FORM-CSS, MH-BOOKING-CSS). See docs/runbooks/50-platform-widgets.md.

   A design themes the widgets with --mh-* variables on any ancestor; they fall
   back to a neutral palette. The widget CSS itself reads the template's
   variable names, so each mount maps --mh-* onto those. */
[data-mh-addon], #mh-ordering, [data-mh-booking], [data-mh-form], [data-mh-forms] {
  --accent: var(--mh-accent, #b45309);
  --accent-contrast: var(--mh-accent-contrast, #ffffff);
  --bg: var(--mh-bg, #ffffff);
  --surface: var(--mh-surface, #f7f7f5);
  --text: var(--mh-text, #1d1d1b);
  --muted: var(--mh-muted, #6b6b66);
  --border: var(--mh-border, #e3e1dc);
  --radius: var(--mh-radius, 6px);
  --font-heading: var(--mh-font-heading, inherit);
  --font-body: var(--mh-font, inherit);
  color: var(--text);
  font-family: var(--font-body);
}

/* ---- ordering (site-template ordering-widget.html) ---- */
.ordering__status { color: var(--muted, #666); }
.ordering__status--preview {
  /* The text colour is a literal, NOT var(--accent-contrast): that token is for
     text sitting on var(--accent), and this banner's background is a hardcoded
     yellow. Five of the six shipped styles set --accent-contrast to #ffffff, so
     using it here painted the banner white-on-pale-yellow. #3a2f00 on #fff3cd is
     ~12:1. Keep the two literals together if either ever changes. */
  color: #3a2f00; background: #fff3cd; border: 1px solid #ffe69c;
  border-radius: var(--radius, 8px); padding: .6rem .8rem; margin: 0 0 1rem; font-size: .9rem;
}
/* The up-front "what collection costs and how far we deliver" strip above the
   menu (fulfilmentInfo() in ordering.js). Deliberately quieter than the cart
   totals below it: this is context, not a bill. */
.ordering__info {
  margin: 0 0 1.25rem; padding: .7rem .85rem; font-size: .9rem;
  background: var(--card-bg, var(--surface, #f5f5f4));
  border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px);
}
.ordering__info-row { display: flex; justify-content: space-between; gap: 1rem; padding: .18rem 0; }
.ordering__info-row span:first-child { color: var(--muted, #666); }
.ordering__info-row span:last-child { text-align: right; }
.ordering__cats { margin: 0; padding: 0; list-style: none; }
.ordering__totals { margin: 0 0 .5rem; font-size: .95rem; }
.ordering__totals-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .3rem 0; color: var(--muted, #666);
}
.ordering__totals-row:last-child { border-bottom: 1px solid var(--border, #ddd); padding-bottom: .55rem; }
.ordering__cat { margin: 0 0 1.25rem; }
.ordering__cat-name { font-family: var(--font-heading, inherit); font-size: 1.1rem; margin: 0 0 .5rem; }
.ordering__item {
  display: flex; align-items: center; gap: .75rem; padding: .6rem 0;
  border-bottom: 1px solid var(--border, #ddd);
}
.ordering__item-photo {
  flex: none; width: 64px; height: 64px; object-fit: cover;
  border-radius: var(--radius, 8px); background: var(--border, #ddd);
}
.ordering__item-info { flex: 1; min-width: 0; }
.ordering__item-name { font-weight: 600; }
.ordering__item-desc { color: var(--muted, #666); font-size: .9rem; margin: .15rem 0 0; }
.ordering__item-price { color: var(--accent, #333); font-weight: 600; white-space: nowrap; }
/* Narrow screens: with a photo the row would squeeze the name to nothing, so the
   price + stepper drop to their own line under photo + name. */
@media (max-width: 480px) {
  .ordering__item--has-photo { flex-wrap: wrap; }
  .ordering__item--has-photo .ordering__item-info { flex: 1 1 calc(100% - 64px - .75rem); }
  .ordering__item--has-photo .ordering__item-price { margin-left: calc(64px + .75rem); }
  .ordering__item--has-photo .ordering__stepper { margin-left: auto; }
}
.ordering__stepper { display: flex; align-items: center; gap: .5rem; }
.ordering__stepper button {
  width: 1.8rem; height: 1.8rem; border-radius: 999px; border: 1px solid var(--border, #ddd);
  background: var(--bg, #fff); font-size: 1rem; line-height: 1; cursor: pointer;
}
.ordering__stepper span { min-width: 1.2rem; text-align: center; }
.ordering__cart {
  position: sticky; bottom: 0; margin-top: 1.5rem; padding: 1rem;
  background: var(--card-bg, var(--surface, #f5f5f4)); border: 1px solid var(--border, #ddd);
  border-radius: var(--radius, 8px);
}
.ordering__cart-total { display: flex; justify-content: space-between; font-weight: 700; margin: 0 0 .75rem; }
/* Pickup/Delivery and the payment choice. These used to be a hairline border
   on the page's own background at normal weight, which on a light theme is
   very close to invisible — they read as panels rather than as a choice
   somebody still has to make. Now: a real 2px edge and weight so they look
   pressable, and a selected state that fills with the accent rather than
   just thickening the border by a pixel. */
.ordering__choose {
  margin: 0 0 .45rem; font-weight: 600; font-size: .95rem;
}
.ordering__type, .ordering__pay {
  display: flex; gap: .6rem; margin: 0 0 1rem; flex-wrap: wrap;
}
.ordering__type button, .ordering__pay button {
  flex: 1; min-width: 8rem; padding: .7rem .8rem; border-radius: var(--radius, 8px);
  border: 2px solid var(--border, #ddd); background: var(--bg, #fff);
  cursor: pointer; font: inherit; font-weight: 600; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: .12rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.ordering__type button:hover, .ordering__pay button:hover { border-color: var(--accent, #333); }
.ordering__choice-name { font-size: 1rem; font-weight: 700; }
.ordering__choice-sub { font-size: .78rem; font-weight: 400; color: var(--muted, #666); }
.ordering__type button.is-selected, .ordering__pay button.is-selected {
  border-color: var(--accent, #333); background: var(--accent, #333);
  color: var(--accent-contrast, #fff); box-shadow: none;
}
.ordering__type button.is-selected .ordering__choice-sub { color: inherit; opacity: .85; }
.ordering__form label { display: block; margin: 0 0 .6rem; font-size: .9rem; }
/* The news-and-offers opt-in: a real checkbox, not a full-width text input. */
.ordering__form .ordering__optin { display: flex; align-items: flex-start; gap: .5rem; margin: .2rem 0 .1rem; cursor: pointer; }
.ordering__form .ordering__optin input {
  display: inline-block; width: 1.05rem; height: 1.05rem; margin: .15rem 0 0; padding: 0; flex: none;
}
.ordering__email-hint { margin: -.35rem 0 .5rem; }
.ordering__optin-hint { margin: 0 0 .8rem 1.55rem; }
.ordering__form input, .ordering__form textarea {
  display: block; width: 100%; margin-top: .25rem; padding: .5rem .6rem;
  border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px);
  font: inherit; box-sizing: border-box;
}
.ordering__submit {
  width: 100%; padding: .8rem; margin-top: .5rem; border: none; border-radius: var(--radius, 8px);
  background: var(--accent, #333); color: var(--accent-contrast, #fff); font-weight: 600;
  font-size: 1rem; cursor: pointer;
}
.ordering__submit:disabled { opacity: .6; cursor: default; }
.ordering__error { color: #b3261e; margin: .5rem 0 0; font-size: .9rem; }
.ordering__map {
  height: 260px; border-radius: var(--radius, 8px); border: 1px solid var(--border, #ddd);
  margin: 0 0 .5rem; overflow: hidden; position: relative;
}
.ordering__map.is-failed { display: none; }
.ordering__map:not(.is-ready) .maplibregl-canvas { visibility: hidden; }
.ordering__map-status { font-size: .85rem; margin: 0 0 .75rem; }
.ordering__map-status[data-within="true"] { color: var(--accent, #2e7d32); }
.ordering__map-status[data-within="false"] { color: #b3261e; }
.ordering__confirm { text-align: center; }
.ordering__qr { max-width: 220px; margin: 1rem auto; display: block; }
.ordering__slip input { margin: .5rem 0; }
.ordering__lines { list-style: none; margin: .75rem auto; padding: 0; max-width: 24rem; text-align: left; }
.ordering__lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px solid var(--border, #ddd); }
.ordering__paid { color: var(--accent, #2e7d32); font-weight: 600; }
.ordering__hint { color: var(--muted, #666); font-size: .85rem; }
.ordering__save { font-weight: 600; }
/* --- the buyer's receipt (renderConfirm in ordering.js) --- */
.ordering__receipt { max-width: 30rem; margin: 0 auto; }
.ordering__receipt-mark {
  width: 3rem; height: 3rem; margin: 0 auto .5rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700;
  background: var(--accent, #2e7d32); color: var(--accent-contrast, #fff);
}
.ordering__receipt-mark.is-cancelled { background: #b3261e; color: #fff; }
.ordering__receipt-head h3 { margin: 0 0 .25rem; }
.ordering__receipt-sub { color: var(--muted, #666); font-size: .9rem; margin: 0 0 1rem; }
.ordering__track {
  list-style: none; display: flex; margin: 0 0 .75rem; padding: 0; counter-reset: none;
  font-size: .78rem; color: var(--muted, #666);
}
.ordering__track li { flex: 1; position: relative; padding-top: 1.4rem; text-align: center; }
.ordering__track li span {
  position: absolute; top: 0; left: 50%; width: .9rem; height: .9rem; margin-left: -.45rem;
  border-radius: 999px; border: 2px solid var(--border, #ccc); background: var(--bg, #fff); z-index: 1;
}
.ordering__track li::before {
  content: ""; position: absolute; top: .38rem; left: -50%; width: 100%; height: 2px;
  background: var(--border, #ccc);
}
.ordering__track li:first-child::before { display: none; }
.ordering__track li.is-done span, .ordering__track li.is-now span {
  background: var(--accent, #2e7d32); border-color: var(--accent, #2e7d32);
}
.ordering__track li.is-done::before, .ordering__track li.is-now::before { background: var(--accent, #2e7d32); }
.ordering__track li.is-now { color: inherit; font-weight: 600; }
.ordering__pay { margin: .75rem 0; text-align: center; }
.ordering__receipt-card {
  text-align: left; margin: 1rem 0; padding: 1rem;
  background: var(--card-bg, var(--surface, #f5f5f4)); border: 1px solid var(--border, #ddd);
  border-radius: var(--radius, 8px);
}
.ordering__receipt-card h4 { margin: 0 0 .5rem; font-size: 1rem; }
.ordering__receipt-card .ordering__lines { margin: 0 0 .5rem; max-width: none; }
.ordering__receipt-total { color: inherit; font-weight: 700; font-size: 1.05rem; border-bottom: 0 !important; }
.ordering__receipt-facts { margin: .75rem 0 0; font-size: .9rem; }
.ordering__receipt-facts div { display: flex; gap: 1rem; padding: .2rem 0; }
.ordering__receipt-facts dt { flex: 0 0 6.5rem; color: var(--muted, #666); }
.ordering__receipt-facts dd { margin: 0; flex: 1; overflow-wrap: anywhere; white-space: pre-line; }
.ordering__receipt-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.ordering__back {
  padding: .55rem 1rem; border-radius: var(--radius, 8px); border: 1px solid var(--border, #ccc);
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
@media print {
  html.mh-print-receipt body * { visibility: hidden; }
  html.mh-print-receipt #mh-ordering, html.mh-print-receipt #mh-ordering * { visibility: visible; }
  html.mh-print-receipt #mh-ordering { position: absolute; left: 0; top: 0; width: 100%; }
  html.mh-print-receipt .ordering__receipt-actions,
  html.mh-print-receipt .ordering__slip,
  html.mh-print-receipt [data-pay-card] { display: none !important; }
}

/* ---- forms (site-template base.css MH-FORM-CSS) ---- */
/* MH-FORM-CSS v1 - owner-defined visitor forms (quote requests, bookings,
   product enquiries). Mounted by layouts/shortcodes/form.html or
   layouts/partials/site-forms.html; rendered by static/js/forms.js. */
.mh-form { margin: 1.5rem 0; }
.mh-form__status { color: var(--muted, #666); }
.mh-form__title { font-family: var(--font-heading, inherit); font-size: 1.15rem; margin: 0 0 .35rem; }
.mh-form__intro { color: var(--muted, #666); margin: 0 0 1rem; }
.mh-form__about {
  display: inline-block; margin: 0 0 1rem; padding: .25rem .6rem;
  background: var(--card-bg, var(--surface, #f5f5f4)); border: 1px solid var(--border, #ddd);
  border-radius: 999px; font-size: .85rem;
}
.mh-form__field { display: block; margin: 0 0 .8rem; font-size: .9rem; }
.mh-form__field > span { display: block; margin-bottom: .25rem; }
.mh-form__req { color: var(--accent, #333); }
.mh-form__help { display: block; margin-top: .2rem; color: var(--muted, #666); font-size: .82rem; }
.mh-form input[type="text"], .mh-form input[type="email"], .mh-form input[type="tel"],
.mh-form input[type="date"], .mh-form textarea, .mh-form select {
  display: block; width: 100%; padding: .5rem .6rem;
  border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px);
  font: inherit; box-sizing: border-box; background: var(--bg, #fff); color: inherit;
}
.mh-form__check { display: flex; align-items: flex-start; gap: .5rem; }
.mh-form__check input { width: auto; margin-top: .2rem; }
.mh-form__send {
  padding: .7rem 1.4rem; border: none; border-radius: var(--radius, 8px);
  background: var(--accent, #333); color: var(--accent-contrast, #fff);
  font-weight: 600; font-size: 1rem; cursor: pointer;
}
.mh-form__send:disabled { opacity: .6; cursor: default; }
.mh-form__msg { margin: .6rem 0 0; font-size: .9rem; }
.mh-form__msg[data-kind="error"] { color: #b3261e; }
.mh-form__msg[data-kind="ok"] { color: var(--accent, #2e7d32); font-weight: 600; }
.mh-form__ack-note { margin: .5rem 0 0; font-size: .82rem; color: var(--muted, #666); }
/* The honeypot: off-screen rather than display:none, which some bots skip. */
.mh-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* end MH-FORM-CSS */

/* ---- bookings (site-template base.css MH-BOOKING-CSS) ---- */
/* MH-BOOKING-CSS v2 ---- self-serve booking (platform migration 0065).
   The widget (static/js/booking.js, mounted by partials/booking-mount.html on
   /book/ or a {{< booking >}} shortcode) and the Book prompts
   (partials/booking-cta.html): hidden until .mh-booking-on, which the probe
   sets only once the API confirms booking is actually on. */
[data-book-cta] { display: none; }
.nav a.nav__book {
  border: 1px solid var(--accent); color: var(--accent);
  padding: .4rem .9rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav a.nav__book:hover { background: var(--accent); color: var(--accent-contrast); }
.mh-booking-on .nav__book { display: inline-block; }
.book-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .95rem 1rem; text-align: center;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 700; text-decoration: none;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .18);
}
@media (max-width: 640px) {
  /* the ordering bar wins the bottom of the screen when both are on */
  .mh-booking-on:not(.mh-ordering-on) .book-sticky { display: block; }
  .mh-booking-on:not(.mh-ordering-on) .mh-manage { bottom: 4.25rem; }
  .mh-booking-on:not(.mh-ordering-on) .site-footer { padding-bottom: 4.5rem; }
}
.book-page { padding-block: var(--section-pad, 4rem); }
.book-page .mh-booking { margin-inline: auto; }
.mh-booking__daynav + .mh-booking__step { margin-top: 1.25rem; }
.mh-booking { margin: 1.5rem 0; max-width: 42rem; }
.mh-booking__box {
  background: var(--card-bg, var(--surface, #f5f5f4)); border: 1px solid var(--border, #ddd);
  border-radius: var(--radius, 8px); padding: 1.25rem;
}
.mh-booking__step { font-family: var(--font-heading, inherit); font-size: 1.1rem; margin: .5rem 0 .75rem; }
.mh-booking__done { font-family: var(--font-heading, inherit); font-size: 1.35rem; margin: 0 0 .5rem; color: var(--accent); }
.mh-booking__summary { font-weight: 600; margin: 0 0 .5rem; }
.mh-booking__hint, .mh-booking__msg { color: var(--muted, #666); font-size: .9rem; margin: 0 0 .75rem; }
.mh-booking__error { color: #b42318; font-size: .9rem; margin: .5rem 0; }
.mh-booking button { font: inherit; cursor: pointer; }
.mh-booking__types { display: grid; gap: .6rem; }
.mh-booking__type {
  display: flex; flex-direction: column; gap: .2rem; text-align: left;
  padding: .85rem 1rem; border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px);
  background: var(--bg, #fff); color: inherit;
}
.mh-booking__type span { color: var(--muted, #666); font-size: .88rem; }
.mh-booking__type:hover, .mh-booking__day:hover, .mh-booking__time:hover { border-color: var(--accent); }
.mh-booking__days { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .45rem; }
.mh-booking__day {
  display: flex; flex-direction: column; align-items: center; gap: .05rem;
  padding: .5rem .25rem; border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px);
  background: var(--bg, #fff); color: inherit; font-size: .8rem;
}
.mh-booking__day strong { font-size: 1.2rem; }
.mh-booking__day.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.mh-booking__day.is-full:not(.is-on) { opacity: .55; border-style: dashed; }
.mh-booking__wl { font-size: .62rem; line-height: 1.1; opacity: .85; text-align: center; }
.mh-booking__dow, .mh-booking__mon { text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.mh-booking__daynav { display: flex; justify-content: space-between; margin: .6rem 0 0; }
.mh-booking__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr)); gap: .45rem; margin-bottom: .5rem; }
.mh-booking__time {
  padding: .6rem .4rem; border: 1px solid var(--accent); border-radius: var(--radius, 8px);
  background: var(--bg, #fff); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums;
}
.mh-booking__time:hover { background: var(--accent); color: var(--accent-contrast); }
.mh-booking__link, .mh-booking__back {
  background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline;
}
.mh-booking__back { margin-bottom: .5rem; text-decoration: none; }
.mh-booking__field { display: block; margin: 0 0 .8rem; font-size: .9rem; }
.mh-booking__field > span { display: block; margin-bottom: .25rem; }
.mh-booking__field input, .mh-booking__field textarea, .mh-booking__field select {
  display: block; width: 100%; padding: .55rem .6rem; box-sizing: border-box;
  border: 1px solid var(--border, #ddd); border-radius: var(--radius, 8px);
  font: inherit; background: var(--bg, #fff); color: inherit;
}
.mh-booking__join { display: inline-block; margin: .25rem 0 .9rem; }
.mh-booking__check { display: flex; gap: .5rem; align-items: flex-start; }
.mh-booking__field.mh-booking__check input { display: inline-block; width: auto; margin: .2rem 0 0; padding: 0; }
.mh-booking__check > span { display: inline; margin: 0; }
.mh-booking__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mh-booking__submit, .mh-booking__cal .btn, .mh-booking__join {
  padding: .75rem 1.5rem; border: none; border-radius: var(--radius, 8px);
  background: var(--accent); color: var(--accent-contrast); font-weight: 600; text-decoration: none;
}
.mh-booking__submit:disabled { opacity: .6; cursor: default; }
.mh-booking__cal { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .75rem 0 1rem; }
.mh-booking__deposit { margin: .25rem 0 1rem; padding: .75rem 1rem; border-left: 3px solid var(--accent); background: var(--bg, #fff); border-radius: var(--radius, 8px); }
.mh-booking__deposit .mh-booking__hint { margin: 0 0 .5rem; color: inherit; }
.mh-booking__methods { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.mh-booking__method { display: flex; align-items: center; gap: .35rem; font-weight: 600; }
.mh-booking__qr { display: block; width: min(260px, 100%); height: auto; margin: .5rem 0 1rem; border-radius: var(--radius, 8px); background: #fff; padding: .5rem; }
/* end MH-BOOKING-CSS */

/* ---- What's On (whats-on.js) ---- */
.mh-whatson__h { font-family: var(--font-heading); margin: 1.5rem 0 .5rem; }
.mh-whatson__series { list-style: none; padding: 0; margin: 0; }
.mh-whatson__series li { padding: .6rem 0; border-top: 1px solid var(--border); }
.mh-whatson__series p { margin: .25rem 0 0; }
.mh-whatson__when, .mh-whatson__meta, .mh-whatson__tz, .mh-whatson__empty { color: var(--muted); }
.mh-whatson__day { margin: 1.25rem 0 .25rem; font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mh-whatson__event { display: flex; gap: 1rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: .5rem; }
.mh-whatson__event.is-featured { border-color: var(--accent); }
.mh-whatson__time { font-weight: 700; min-width: 3.5rem; }
.mh-whatson__main { display: flex; flex-direction: column; gap: .15rem; }
.mh-whatson__promo { color: var(--accent); font-weight: 600; }
.mh-whatson__tz { font-size: .85rem; margin-top: 1rem; }

/* ---- Ask us (answers.js, 0079): the floating "Ask a question" bubble ---- */
.mh-ask {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  font-size: 15px; line-height: 1.45;
}
@media (max-width: 640px) {
  .mh-ordering-on .mh-ask, .mh-booking-on .mh-ask { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
.mh-ask__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 11px 16px;
  background: var(--accent); color: var(--accent-contrast);
  font: 600 15px/1 var(--font-body, system-ui, sans-serif);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
}
.mh-ask__btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.mh-ask--open .mh-ask__btn-label { display: none; }
.mh-ask__panel {
  width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.mh-ask__panel[hidden] { display: none; }
.mh-ask__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mh-ask__close { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.mh-ask__log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.mh-ask__msg { padding: 9px 12px; border-radius: 12px; max-width: 88%; overflow-wrap: anywhere; }
.mh-ask__msg--q { align-self: flex-end; background: var(--accent); color: var(--accent-contrast); }
.mh-ask__msg--a { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); }
.mh-ask__msg--last { align-self: flex-start; background: transparent; border: 1px dashed var(--border); color: var(--muted); font-size: 14px; }
.mh-ask__msg--err { align-self: flex-start; color: #9b1c1c; background: #fdecec; }
.mh-ask__msg a { color: inherit; text-decoration: underline; }
.mh-ask__src { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.mh-ask__note { margin: 0; font-size: 13px; color: var(--muted); }
.mh-ask__suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mh-ask__chip { text-align: left; cursor: pointer; border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; }
.mh-ask__chip--none { border-color: var(--border); color: var(--muted); }
.mh-ask__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }
.mh-ask__input { flex: 1; resize: none; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.mh-ask__send { border: 0; border-radius: 10px; padding: 0 14px; cursor: pointer; background: var(--accent); color: var(--accent-contrast); font: 600 14px/1 var(--font-body, system-ui, sans-serif); }
.mh-ask__send:disabled { opacity: .6; cursor: default; }
.mh-ask__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mh-ask__email { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.mh-ask__email label { width: 100%; color: var(--muted); }
.mh-ask__email input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: var(--bg); color: var(--text); }
.mh-ask__email button { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; }
.mh-ask__foot { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 6px 14px 10px; font-size: 12px; color: var(--muted); }
.mh-ask__foot a { color: var(--accent); }
@media print { .mh-ask { display: none; } }

/* ---- Ask us: the /faq/ page ---- */
.mh-faq__item { border-top: 1px solid var(--border); padding: .75rem 0; }
.mh-faq__item:last-child { border-bottom: 1px solid var(--border); }
.mh-faq__q { cursor: pointer; font-weight: 600; font-family: var(--font-heading); }
.mh-faq__a { margin: .5rem 0 0; }
.mh-faq__date { display: block; margin-top: .35rem; font-size: .85rem; color: var(--muted); }
.mh-faq__empty { color: var(--muted); }
