/* Thai Lotus R20.10.6 — Popup Poster Always Beside Details
   Override the portrait stacking rules introduced in R20.10.5.
   Poster stays LEFT / restaurant details stay RIGHT at every viewport width.
   All content remains scrollable inside the right column on small screens.
*/
#noticeDialog.campaign-welcome[open] {
  display:grid !important;
  grid-template-columns: minmax(0,38fr) minmax(0,62fr) !important;
  grid-template-rows: minmax(0,1fr) !important;
  align-items:stretch !important;
  gap:clamp(6px,1.15vw,16px) !important;
}
#noticeDialog.campaign-welcome > .welcome-poster {
  grid-column:1 !important;
  grid-row:1 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:auto minmax(0,1fr) auto auto !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
  align-self:stretch !important;
  margin:0 !important;
}
#noticeDialog.campaign-welcome .poster-viewport {
  grid-column:1 !important;
  grid-row:2 !important;
  width:100% !important;
  height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:hidden !important;
}
#noticeDialog.campaign-welcome .poster-viewport .poster-frame {
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}
#noticeDialog.campaign-welcome .poster-heading {
  grid-column:1 !important;
  grid-row:1 !important;
  min-width:0 !important;
}
#noticeDialog.campaign-welcome .poster-caption {
  grid-column:1 !important;
  grid-row:3 !important;
  min-width:0 !important;
}
#noticeDialog.campaign-welcome .poster-controls {
  grid-column:1 !important;
  grid-row:4 !important;
  display:flex !important;
  justify-content:center;
  align-items:center;
  flex-wrap:nowrap;
  min-width:0;
}
#noticeDialog.campaign-welcome > .campaign-details {
  grid-column:2 !important;
  grid-row:1 !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  height:100% !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:contain;
  scrollbar-width:thin;
  padding:clamp(8px,1.05vw,16px) !important;
}
/* Mini holiday mascots belong to the RIGHT of the information panel. */
#noticeDialog.campaign-welcome .tl-deluxe-mini-mascot {
  left:auto !important;
  right:4px !important;
  pointer-events:none;
  max-width:clamp(23px,3.5vw,50px);
  z-index:1;
}
#noticeDialog.campaign-welcome .tl-deluxe-mini-1 { top:0 !important;bottom:auto !important; }
#noticeDialog.campaign-welcome .tl-deluxe-mini-2 { bottom:0 !important;top:auto !important; }
/* Prevent right-side content from pushing the poster out of the dialog. */
#noticeDialog.campaign-welcome .campaign-details * { max-width:100%; }
#noticeDialog.campaign-welcome .campaign-host-hello { overflow-wrap:anywhere; }
@media (max-width:980px) {
  #noticeDialog.campaign-welcome[open] {
    grid-template-columns:minmax(0,40fr) minmax(0,60fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:clamp(6px,1vw,10px) !important;
  }
  #noticeDialog.campaign-welcome > .welcome-poster {
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto minmax(0,1fr) auto auto !important;
    max-width:none !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card {
    display:flex !important;
    flex-wrap:wrap;
    gap:4px !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host {
    width:min(100%,74px) !important;
    height:auto !important;
    min-height:0 !important;
    flex:0 0 auto;
    grid-column:auto !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .campaign-host-hello {
    flex:1 1 120px;
    grid-column:auto !important;
    min-width:0;
    padding-right:clamp(25px,3vw,38px) !important;
  }
  #noticeDialog.campaign-welcome .campaign-details .intro-details {
    grid-template-columns:1fr !important;
    gap:5px;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row {
    grid-template-columns:minmax(0,1fr) !important;
    gap:5px !important;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row > .intro-contact.intro-phone-strip {
    grid-column:1 !important;grid-row:1 !important;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row > .intro-music-switch {
    grid-column:1 !important;grid-row:2 !important;
    width:100% !important;
  }
  #noticeDialog.campaign-welcome .poster-heading {padding:6px 7px !important;}
  #noticeDialog.campaign-welcome .poster-caption {padding:5px !important;}
  #noticeDialog.campaign-welcome .poster-controls {padding:3px !important;gap:2px !important;}
}
@media (max-width:600px) {
  #noticeDialog.campaign-welcome {
    width:calc(100vw - 12px) !important;
    max-width:calc(100vw - 12px) !important;
    height:calc(100dvh - 14px) !important;
    max-height:calc(100dvh - 14px) !important;
    padding:7px !important;
  }
  #noticeDialog.campaign-welcome[open] {
    grid-template-columns:minmax(0,42fr) minmax(0,58fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:6px !important;
  }
  #noticeDialog.campaign-welcome > .campaign-details {
    padding:7px 5px !important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host,
  #noticeDialog.campaign-welcome .campaign-details .intro-mascot-button {
    width:56px !important;height:66px !important;
  }
  #noticeDialog.campaign-welcome .campaign-details .intro-mascot {width:54px!important;height:64px!important;object-fit:contain;}
  #noticeDialog.campaign-welcome .campaign-host-hello {padding-right:21px !important;}
  #noticeDialog.campaign-welcome .campaign-host-hello > strong {font-size:20px!important;}
  #noticeDialog.campaign-welcome .campaign-host-hello #noticeHeading {font-size:clamp(16px,4.2vw,21px)!important;}
  #noticeDialog.campaign-welcome .campaign-host-hello .intro-lead {font-size:11px;}
  #noticeDialog.campaign-welcome .tl-deluxe-welcome .tl-deluxe-heading {font-size:12px;}
  #noticeDialog.campaign-welcome .tl-deluxe-welcome .tl-deluxe-caption {font-size:10px;}
  #noticeDialog.campaign-welcome .tl-deluxe-mini-mascot {width:24px!important;height:33px!important;}
  #noticeDialog.campaign-welcome .poster-heading > strong {display:none!important;}
  #noticeDialog.campaign-welcome .poster-heading {font-size:10px!important;letter-spacing:0!important;padding:6px 4px!important;}
  #noticeDialog.campaign-welcome .poster-count {font-size:9px!important;}
  #noticeDialog.campaign-welcome .poster-caption {font-size:10px!important;line-height:1.15!important;overflow-wrap:anywhere;}
  #noticeDialog.campaign-welcome .poster-controls button {min-width:0 !important;width:auto!important;flex:1 1 0;padding:4px 1px!important;font-size:11px!important;}
  #noticeDialog.campaign-welcome .intro-explore-hero .explore-copy strong {font-size:clamp(15px,4.1vw,19px)!important;}
  #noticeDialog.campaign-welcome .intro-explore-hero .explore-copy small {display:none;}
  #noticeDialog.campaign-welcome .campaign-details .intro-explore.intro-explore-hero {min-height:48px!important;margin:6px 0!important;}
  #noticeDialog.campaign-welcome .intro-bottom-row .intro-phone {font-size:clamp(13px,4vw,17px)!important;white-space:normal;}
  #noticeDialog.campaign-welcome .intro-service-notes {flex-wrap:wrap;}
}
@media (max-width:360px) {
  #noticeDialog.campaign-welcome[open] {grid-template-columns:minmax(0,39fr) minmax(0,61fr) !important;gap:5px!important;}
  #noticeDialog.campaign-welcome .poster-controls [data-poster-play] {font-size:0!important;}
  #noticeDialog.campaign-welcome .poster-controls [data-poster-play]::after {content:'Ⅱ';font-size:14px;}
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host {width:48px!important;height:57px!important;}
  #noticeDialog.campaign-welcome .campaign-host-hello #noticeHeading {font-size:16px!important;}
}
