/* Meme identite que le self-order (app/Views/selforder_react_preview.php). */
:root {
  --brand: #ffd955;
  --brand-soft: #fff6d1;
  --ink: #2e303f;
  --muted: #6b7280;
  --line: #ece7d8;
  --paper: #fffdf7;
  --shadow: 0 18px 48px rgba(46, 48, 63, .12);
  --shadow-soft: 0 10px 30px rgba(46, 48, 63, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at top left, rgba(255, 217, 85, .42), transparent 30%), linear-gradient(180deg, #fffdf6 0%, #f7f2e4 100%);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.shell {
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 18px;
  background: radial-gradient(circle at 15% 15%, rgba(255, 255, 255, .66), transparent 18%), linear-gradient(135deg, #ffe27f 0%, #ffd955 42%, #f0c44a 100%);
  box-shadow: var(--shadow);
}

.hero h1 { margin: 16px 0 6px; font-size: 26px; line-height: 1.12; font-weight: 800; text-wrap: balance; }
.hero p { margin: 0; font-size: 15px; line-height: 1.4; color: #4a4530; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--brand); font-size: 15px; font-weight: 800; letter-spacing: -.02em; flex: 0 0 auto; }
.brand-name { font-size: 19px; line-height: 1.03; font-weight: 800; }

.locate { margin: 14px 0 0; }
.locate-btn { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(46, 48, 63, .12); border-radius: 16px; background: rgba(255, 255, 255, .9); color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.locate-btn[hidden] { display: none; }
.locate-note { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.locate-note:empty { display: none; }

.restaurants { display: grid; gap: 14px; margin-top: 14px; }

.resto-card { position: relative; display: grid; gap: 8px; padding: 16px; border-radius: 26px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(46, 48, 63, .06); box-shadow: var(--shadow-soft); }
.resto-card.is-nearest { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(250, 209, 66, .28), var(--shadow-soft); }
.resto-nearest { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--brand); font-size: 12px; font-weight: 800; }
.resto-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.resto-name { margin: 0; font-size: 21px; line-height: 1.15; font-weight: 800; }

.resto-badge { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.resto-badge.is-open { background: #e3f3e4; color: #1b5e20; }
.resto-badge.is-busy { background: #fff4d6; color: #7a5b00; }
.resto-badge.is-closed { background: #fdecea; color: #8a1f17; }
.resto-badge.is-pending { background: #f0f0f3; color: #5b5e6b; }

.resto-line { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.resto-line-icon { flex: 0 0 22px; text-align: center; }
a.resto-line span:last-child { text-decoration: underline; text-decoration-color: rgba(46, 48, 63, .3); text-underline-offset: 3px; }
.resto-note { margin: 0; padding: 8px 12px; border-radius: 14px; background: #fff4d6; color: #5c4a0d; font-size: 13px; line-height: 1.35; }

.resto-action { display: flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 6px; padding: 12px 16px; border: none; border-radius: 16px; background: var(--brand); color: var(--ink); font: inherit; font-size: 17px; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 10px 18px rgba(250, 209, 66, .3); }
.resto-action.is-call { background: var(--ink); color: #fff; box-shadow: none; }
.resto-action:disabled { background: #e9e9ec; color: #8c8f99; box-shadow: none; cursor: not-allowed; }
.resto-action:focus-visible, .locate-btn:focus-visible, .resto-line:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.footnote { margin: 18px 4px 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
