/* =============================================================
   MILKY LANE · WIDGETS  ·  .mlw  +  .mld
   -------------------------------------------------------------
   .mlw · the booking and gift-card panels
   .mld · today's deal, a slide-in card rather than a fifth modal

   Brand Kit:
   · no text-shadow on type
   · pink and blue on dark grounds only
   · ink on any pink fill, never white (D1 · 9.26:1)
   · no pink-to-blue gradient anywhere
   · the spray drip is the mark, never the retired star
   ============================================================= */

/* ---------- shared panel ------------------------------------------------ */
.mlw {
  position: fixed; inset: 0; z-index: 12500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.mlw.is-open { opacity: 1; visibility: visible; }
html.mlw-locked { overflow: hidden; }

.mlw__scrim {
  position: absolute; inset: 0;
  background: rgba(5, 5, 6, .84);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
}

.mlw__panel {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 560px;
  max-height: calc(100vh - 48px);
  background: #131316;
  border: 1px solid var(--ml-pink, #FF8CE0);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .62);
  transform: translateY(16px) scale(.985);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
}
/* Both providers put a real multi-step form in here - Gift-it's voucher
   builder and SevenRooms' date/party/time picker. 560px squeezed both into
   their narrow mobile layout on a desktop screen, so the panel matches the
   form rather than the other way round. */
.mlw--book .mlw__panel,
.mlw--gift .mlw__panel { max-width: 680px; }
.mlw--book .mlw__panel { border-color: var(--ml-blue, #5BD0E6); }
.mlw.is-open .mlw__panel { transform: none; }

.mlw__head { position: relative; padding: 26px 30px 18px; flex: 0 0 auto; }
.mlw__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ml-blue, #5BD0E6);
  text-shadow: none;
}
.mlw--book .mlw__eyebrow { color: var(--ml-pink, #FF8CE0); }

.mlw__title {
  font-family: var(--display, "Anton", Impact, sans-serif);
  font-size: clamp(26px, 5vw, 36px); line-height: 1.02;
  text-transform: uppercase;
  color: var(--ml-text, #E9E9EE);
  margin: 8px 0 6px;
  text-shadow: none;
}
.mlw__pink { color: var(--ml-pink, #FF8CE0); }
.mlw--book .mlw__pink { color: var(--ml-blue, #5BD0E6); }

.mlw__sub { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ml-text-dim, #B7B7BD); }

.mlw__x {
  position: absolute; top: 14px; right: 16px;
  width: 36px; height: 36px; line-height: 1; font-size: 26px;
  background: transparent; border: 0; border-radius: 999px;
  color: var(--ml-text-dim, #B7B7BD);
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}
.mlw__x:hover { color: var(--ml-text, #E9E9EE); background: rgba(255, 255, 255, .08); }
.mlw__x:focus-visible { outline: 2px solid var(--ml-blue, #5BD0E6); outline-offset: 2px; }

/* The frame gets a white ground because the providers' own pages are light;
   leaving it dark makes their loading state flash black then white. */
.mlw__body { position: relative; flex: 1 1 auto; min-height: 320px; display: flex; }
.mlw__frame {
  width: 100%; border: 0; background: #fff;
  min-height: 460px; height: 68vh;
  opacity: 0; transition: opacity .3s ease;
}
.mlw__frame.is-ready { opacity: 1; }
.mlw__frame[hidden] { display: none; }

.mlw__loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: #131316;
  color: var(--ml-text-dim, #B7B7BD); font-size: 13px;
}
.mlw__loading[hidden] { display: none; }

/* Both providers can take well over ten seconds cold. A spinner alone at
   that length reads as broken, so after SLOW_NOTICE the panel says so in
   words and points at the new-tab link that has been in the footer the
   whole time. */
.mlw__slow {
  max-width: 30ch; text-align: center;
  font-size: 12.5px; line-height: 1.5;
  color: var(--ml-text-dim, #B7B7BD);
  opacity: .82;
}
.mlw__slow[hidden] { display: none; }
.mlw__spinner {
  width: 26px; height: 26px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: var(--ml-pink, #FF8CE0);
  animation: mlw-spin .8s linear infinite;
}
@keyframes mlw-spin { to { transform: rotate(360deg); } }

.mlw__fallback {
  padding: 34px 30px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  width: 100%;
}
.mlw__fallback[hidden] { display: none; }
.mlw__fallback-title {
  margin: 0;
  font-family: var(--display, "Anton", Impact, sans-serif);
  font-size: 20px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ml-text, #E9E9EE);
}
.mlw__fallback-body {
  margin: 0; max-width: 400px;
  font-size: 13.5px; line-height: 1.55; color: var(--ml-text-dim, #B7B7BD);
}

.mlw__btn {
  display: inline-block; margin-top: 6px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--display, "Anton", Impact, sans-serif);
  font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  background: var(--ml-pink, #FF8CE0);
  color: var(--ml-ink, #0E0E10);            /* D1 · ink on pink, 9.26:1 */
  transition: transform .16s ease, filter .16s ease;
}
.mlw--book .mlw__btn { background: var(--ml-blue, #5BD0E6); }
.mlw__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.mlw__btn:focus-visible { outline: 2px solid var(--ml-text, #E9E9EE); outline-offset: 3px; }

.mlw__foot {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 22px;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: #0E0E10;
  font-size: 11.5px; color: var(--ml-text-dim, #B7B7BD);
}
.mlw__out { color: var(--ml-blue, #5BD0E6); text-decoration: none; font-weight: 600; }
.mlw__out:hover { text-decoration: underline; }
.mlw.is-fallback .mlw__foot .mlw__out { display: none; }   /* the big button says it already */
.mlw__secure { text-align: right; }

@media (max-width: 620px) {
  .mlw { padding: 0; align-items: flex-end; }
  .mlw__panel { max-width: none; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .mlw__head { padding: 20px 20px 14px; }
  .mlw__frame { height: 58vh; min-height: 340px; }
  .mlw__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .mlw__secure { text-align: left; }
}

/* ---------- today's deal · slide-in, not a modal ------------------------ */
/* Deliberately not a dialog. The site already asks for age, store and cookie
   consent before you see anything; a fourth blocking panel would be one
   interruption too many. This sits in the corner, never traps focus, and the
   page stays scrollable behind it. */
.mld {
  position: fixed; left: 20px; bottom: 20px; z-index: 9300;
  width: min(330px, calc(100vw - 40px));
  background: #131316;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--mld-colour, #FF8CE0);
  border-radius: 14px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .55);
  padding: 16px 18px 16px 16px;
  transform: translateY(14px);
  opacity: 0;
  transition: opacity .32s ease, transform .32s cubic-bezier(.2, .8, .3, 1);
}
.mld.is-in { opacity: 1; transform: none; }
.mld[hidden] { display: none; }

.mld__day {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--mld-colour, #FF8CE0);
  text-shadow: none;
}
.mld__title {
  font-family: var(--display, "Anton", Impact, sans-serif);
  font-size: 22px; line-height: 1.04; text-transform: uppercase;
  color: var(--ml-text, #E9E9EE);
  margin: 7px 0 5px; text-shadow: none;
}
.mld__blurb { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ml-text-dim, #B7B7BD); }
.mld__time {
  display: inline-block; margin-top: 8px;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ml-text, #E9E9EE);
}
.mld__row { display: flex; gap: 8px; margin-top: 13px; }
.mld__btn {
  flex: 1 1 auto; text-align: center; text-decoration: none;
  padding: 10px 14px; border-radius: 999px;
  font-family: var(--display, "Anton", Impact, sans-serif);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.mld__btn--book {
  background: var(--mld-colour, #FF8CE0);
  color: var(--ml-ink, #0E0E10);            /* D1 · ink on the fill, never white */
}
.mld__btn--more {
  background: transparent; color: var(--ml-text, #E9E9EE);
  border-color: rgba(255, 255, 255, .24);
}
.mld__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.mld__btn:focus-visible { outline: 2px solid var(--ml-blue, #5BD0E6); outline-offset: 2px; }

.mld__x {
  position: absolute; top: 8px; right: 10px;
  width: 26px; height: 26px; line-height: 1; font-size: 19px;
  background: transparent; border: 0; border-radius: 999px;
  color: var(--ml-text-dim, #B7B7BD); cursor: pointer;
}
.mld__x:hover { color: var(--ml-text, #E9E9EE); background: rgba(255, 255, 255, .08); }
.mld__x:focus-visible { outline: 2px solid var(--ml-blue, #5BD0E6); outline-offset: 2px; }

/* Sit above the sticky mobile order bar, and out of the chat launcher's
   corner - that one is bottom-RIGHT, this is bottom-LEFT, so they only
   collide once the card goes full width. */
@media (max-width: 520px) {
  .mld { left: 12px; right: 12px; bottom: 12px; width: auto; }
  body.has-mobile-bar .mld { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .mlw, .mlw__panel, .mld, .mlw__frame { transition: none; }
  .mlw__panel, .mld { transform: none; }
  .mlw__spinner { animation: none; }
  .mld__btn:hover, .mlw__btn:hover { transform: none; }
}
