/* Thai Lotus R20.6: kiosk-only layout changes. No shared home/menu/admin rules. */
:root { --r206-nav-height: 67px; --r206-status-height: 30px; }
html { scroll-padding-top: calc(var(--top) + var(--r206-nav-height) + 18px) !important; }
body { padding-bottom: max(44px, calc(var(--r206-status-height) + env(safe-area-inset-bottom))) !important; }
/* 2: Hide the ad rail, NOT the welcome popup posters or the Top 20 slider. */
.sidebar .rail-poster { display:none !important; }
/* 5: Transparent lotus logo and visible restaurant name, no black tile. */
.topbar .brand img, .brand img {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; border-radius: 0 !important;
  object-fit: contain !important; padding: 0 !important;
}
.topbar .brand > span { display:flex !important; flex-direction:column; color:#3a1b2b; font-weight:850; letter-spacing:.045em; }
.topbar .brand small { display:block !important; font-weight:650; }
/* 3: Music and FULL together, in a single obvious header toolbar. */
.topbar { grid-template-columns: minmax(100px,1fr) auto minmax(122px,1fr) !important; gap:8px !important; }
.topbar .brand { grid-column:1 !important; grid-row:1 !important; min-width:0; }
.topbar .r206-header-controls { grid-column:2 !important; grid-row:1 !important; display:flex; gap:7px; justify-content:center; align-items:center; min-width:0; }
.topbar .r206-header-controls #fullscreenButton,
.topbar .r206-header-controls .tl-music-dock,
.topbar .r206-header-controls #noticeButton {
  position:relative !important; inset:auto !important; transform:none !important;
  margin:0 !important; min-width:44px !important; min-height:43px !important;
  width:auto !important; height:43px !important; display:flex !important;
  align-items:center; justify-content:center; gap:6px !important;
  padding:7px 11px !important; border:1px solid #dcc5ce !important;
  border-radius:12px !important; color:#8b2449 !important;
  background:#fff !important; box-shadow:0 3px 10px #4113270b !important;
  font:700 11px/1.2 system-ui,sans-serif !important; white-space:nowrap;
}
.topbar .r206-header-controls .tl-music-dock .music-icon {color:#a6254a !important;font-size:19px;}
.topbar .r206-header-controls .tl-music-dock[data-mode="playing"] {background:#f8edf1 !important; border-color:#c881a1 !important;}
.topbar .r206-header-controls #noticeButton {width:43px!important;min-width:43px!important;padding:8px!important;}
.topbar .r206-header-controls #noticeButton > span {display:none!important;}
.topbar .top-actions {display:none !important;}
/* 4: Readable date on portrait touchscreens. */
.topbar > .kiosk-clock { grid-column:3 !important; grid-row:1 !important; text-align:right !important; min-width:0; justify-self:end; }
.topbar .kiosk-clock > span { font-size:clamp(12px,1.15vw,18px) !important; font-weight:850 !important; color:#762341 !important; letter-spacing:0 !important; line-height:1.2 !important; }
.topbar .kiosk-clock > time { font-size:clamp(18px,2vw,29px) !important; font-weight:850 !important; line-height:1.1; }
.topbar .kiosk-clock > small { font-size:10px !important; }
/* 7: All five bottom buttons move to a top-positioned navigation strip. */
nav.touch-dock#touchDock {
  display:flex !important; position:fixed !important;
  left:0 !important; right:0 !important; top:var(--top) !important;
  bottom:auto !important; transform:none !important;
  height:var(--r206-nav-height) !important; width:100% !important; max-width:none !important;
  padding:6px max(10px,env(safe-area-inset-left)) !important; margin:0 !important;
  border:0 !important; border-radius:0 !important;
  background:linear-gradient(112deg,#4d142b,#8b2345) !important;
  box-shadow:0 7px 18px #41132728 !important;
  z-index:44 !important; overflow-x:auto !important; overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch; justify-content:center; align-items:stretch;
  scrollbar-width:none;
}
nav.touch-dock#touchDock::-webkit-scrollbar{display:none;}
nav.touch-dock#touchDock button { display:flex !important; flex:1 1 0; min-width:56px; max-width:250px; min-height:0 !important; height:100% !important; padding:5px 8px !important; font-size:clamp(9px,.9vw,13px) !important; border-radius:10px !important; white-space:nowrap; }
nav.touch-dock#touchDock button .icon {width:17px;height:17px;}
nav.touch-dock#touchDock button[aria-pressed="true"] {background:#fff6fa !important;color:#741d40 !important;}
/* Keep the first content BELOW the new persistent navigation in both orientations. */
body > main {padding-top:var(--r206-nav-height) !important;}
body > aside.sidebar {padding-top:var(--r206-nav-height) !important;}
@media (min-width:1024px) and (orientation:landscape) {
  body > main {margin-top:calc(var(--top) + var(--r206-nav-height) + 18px) !important;padding-top:0 !important;}
  body > aside.sidebar {top:calc(var(--top) + var(--r206-nav-height)) !important;bottom:0 !important;height:calc(100dvh - var(--top) - var(--r206-nav-height)) !important; padding-top:20px !important;}
}
/* 6: A discreet always-visible refresh badge at very bottom, not mid-content. */
.r206-refreshbar {
  position:fixed; z-index:42; bottom:0; left:0; right:0;
  min-height:var(--r206-status-height); padding:5px 18px calc(5px + env(safe-area-inset-bottom));
  background:#fffdfdf0; color:#7a3651; border-top:1px solid #efdae3;
  display:flex; align-items:center; justify-content:center;
  font:750 11px/1.2 system-ui,sans-serif; letter-spacing:.02em; backdrop-filter:blur(10px);
}
.r206-refreshbar .ribbon-refresh {position:static !important;inset:auto !important;display:inline-flex!important;align-items:center;gap:4px;font-size:11px!important;color:#7a3651!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;}
.r206-refreshbar .ribbon-refresh.refresh-soon {color:#ad2048!important;}
body.modal-open .r206-refreshbar {visibility:hidden;}
/* 1: Keep the blinking GIF currently used in the popup; allow touch dragging. */
.lotus-concierge .mascot-greet {touch-action:none!important; user-select:none;-webkit-user-select:none; cursor:grab;}
.lotus-concierge .mascot-greet:active {cursor:grabbing;}
.lotus-concierge.r206-positioned,
.lotus-concierge.r206-positioned[data-placement="higher"] {
  position:fixed!important; left:var(--r206-left)!important; top:var(--r206-top)!important;
  right:auto!important; bottom:auto!important; margin:0!important; transition:none!important;
}
.lotus-concierge.r206-dragging, .lotus-concierge.r206-dragging * {cursor:grabbing!important;}
.lotus-concierge.r206-dragging .host-bubble {visibility:hidden!important;}
.lotus-concierge .r206-drag-handle {
  flex:0 0 auto; width:42px; min-width:42px; height:44px; min-height:44px;
  border:1px solid #d4a5b8; border-radius:14px; color:#762341; background:#fff8fc;
  font:800 16px system-ui; display:flex; align-items:center; justify-content:center;
  touch-action:none!important; user-select:none; cursor:grab; pointer-events:auto; flex-direction:column; gap:0; line-height:1;
}
.lotus-concierge .r206-drag-handle small {font:800 7px/1.15 system-ui,sans-serif;letter-spacing:.02em;}
.lotus-concierge .host-move {display:none!important;}
.lotus-concierge .r206-reset-position {margin-left:auto; border:1px solid #e8c6d4; background:white; color:#8b2449; border-radius:8px; padding:3px 8px; font-size:11px; cursor:pointer;}
.lotus-concierge.r206-bubble-below .host-bubble {bottom:auto!important;top:calc(100% + 7px)!important;max-height:min(270px,35dvh)!important;}
.lotus-concierge.r206-bubble-left .host-bubble {right:auto!important;left:0!important;}
/* Compact header layout on 32-inch portrait TVs, tablets and phones. */
@media (max-width:950px) {
  :root { --r206-nav-height:64px; }
  .topbar { grid-template-columns:minmax(88px,1fr) auto minmax(94px,1fr) !important; padding:7px 12px !important; gap:4px!important; }
  .topbar .brand img {width:42px!important;height:40px!important;}
  .topbar .brand > span {font-size:12px!important;letter-spacing:.02em!important;}
  .topbar .brand small {font-size:7px!important;}
  .topbar .r206-header-controls {gap:4px;}
  .topbar .r206-header-controls #fullscreenButton, .topbar .r206-header-controls .tl-music-dock, .topbar .r206-header-controls #noticeButton {width:42px!important;min-width:42px!important;padding:7px!important;}
  .topbar .r206-header-controls .tl-music-dock .music-text {display:none!important;}
  .topbar .kiosk-clock > span {font-size:clamp(11px,1.8vw,15px)!important;}
  .topbar .kiosk-clock > time {font-size:clamp(16px,2.3vw,24px)!important;}
  .topbar .kiosk-clock > small {display:none!important;}
  nav.touch-dock#touchDock button {padding:4px 5px!important;font-size:10px!important;}
  .lotus-concierge .r206-drag-handle {width:38px;min-width:38px;height:40px;}
}
@media(max-width:500px) {
  :root { --r206-nav-height:61px; }
  .topbar .brand {gap:4px!important;}
  .topbar .brand img {width:37px!important;height:39px!important;}
  .topbar .brand > span {font-size:10px!important;}
  .topbar .brand small {font-size:6px!important;}
  .topbar .kiosk-clock > span {font-size:11px!important;}
  .topbar .kiosk-clock > time {font-size:17px!important;}
  .topbar .r206-header-controls #fullscreenButton, .topbar .r206-header-controls .tl-music-dock, .topbar .r206-header-controls #noticeButton {min-width:37px!important;width:37px!important;min-height:40px!important;height:40px!important;padding:5px!important;}
  nav.touch-dock#touchDock {padding:5px 4px!important;justify-content:space-between;}
  nav.touch-dock#touchDock button {min-width:0!important;flex:1 1 0!important;padding:3px 2px!important;font-size:9px!important;gap:2px!important;}
  nav.touch-dock#touchDock button .icon {width:16px;height:16px;}
  .lotus-concierge .r206-drag-handle {width:34px;min-width:34px;height:38px;}
}
@media(prefers-reduced-motion:reduce){.lotus-concierge.r206-positioned{transition:none!important}}

@media (max-width:375px) {
  .topbar { grid-template-columns:minmax(78px,1fr) auto minmax(92px,1fr) !important; padding-inline:7px !important; gap:2px!important; }
  .topbar .r206-header-controls #noticeButton {display:none!important;}
  .topbar .r206-header-controls #fullscreenButton, .topbar .r206-header-controls .tl-music-dock {width:36px!important;min-width:36px!important;}
  .topbar .brand img {width:32px!important;height:34px!important;}
}
