/* Thai Lotus R20.10.21 — POSTER DOMINANT POPUP.
   Loaded after R20.10.20. Scopes ALL layout changes to the welcome popup.
   Key fix: Android 32-inch portrait screens can report <721 CSS px viewport,
   unexpectedly activating the phone-mode 31% poster column.
   On tall portrait kiosk/tablet viewports, override that breakpoint explicitly.
   Poster remains entirely visible via contain; NO crop, stretch, or data changes. */

/* Reduce chrome around the promotional art in all sizes. */
#noticeDialog.campaign-welcome > .welcome-poster {
  min-width:0!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto auto!important;
}
#noticeDialog.campaign-welcome .welcome-poster > .poster-heading {
  padding:5px 9px!important;
  min-height:0!important;
}
#noticeDialog.campaign-welcome .welcome-poster > .poster-caption {
  padding:4px 9px!important;
  min-height:0!important;
}
#noticeDialog.campaign-welcome .welcome-poster > .poster-controls {
  padding:3px 8px 5px!important;
  min-height:0!important;
}
#noticeDialog.campaign-welcome .welcome-poster .poster-viewport {
  width:100%!important;
  height:100%!important;
  min-height:0!important;
}
#noticeDialog.campaign-welcome .poster-viewport .poster-frame {
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}

/* Portrait kiosks: use height + orientation, NOT just viewport width.
   Real Android large-format screens commonly expose a CSS viewport around
   500–700px even when the physical screen is 1080px or wider. */
@media (orientation:portrait) and (min-height:760px) and (min-width:480px){
  #noticeDialog.campaign-welcome {
    box-sizing:border-box!important;
    width:min(97vw,1330px)!important;
    max-width:calc(100vw - 10px)!important;
    height:72vh!important;
    height:72dvh!important;
    max-height:72vh!important;
    max-height:72dvh!important;
    padding:clamp(7px,.85vw,13px)!important;
    overflow:hidden!important;
  }
  #noticeDialog.campaign-welcome[open] {
    display:grid!important;
    grid-template-columns:minmax(0,60fr) minmax(0,40fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    gap:clamp(6px,.75vw,12px)!important;
    align-items:stretch!important;
  }
  #noticeDialog.campaign-welcome > .welcome-poster {
    grid-column:1!important;
    grid-row:1!important;
    min-height:0!important;
    height:100%!important;
    border-radius:clamp(10px,1vw,15px)!important;
    overflow:hidden!important;
  }
  #noticeDialog.campaign-welcome > .campaign-details {
    grid-column:2!important;
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:safe center!important;
    gap:clamp(4px,.57vh,8px)!important;
    min-width:0!important;
    min-height:0!important;
    width:100%!important;
    height:100%!important;
    max-height:100%!important;
    padding:clamp(4px,.6vw,9px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card {
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:clamp(59px,8vw,106px) minmax(0,1fr)!important;
    gap:clamp(6px,.75vw,13px)!important;
    align-items:center!important;
    padding:0!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host {
    width:clamp(59px,8vw,106px)!important;
    height:clamp(59px,8vw,106px)!important;
    min-width:0!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello #noticeHeading {
    font-size:clamp(15px,1.85vw,26px)!important;
    line-height:1.08!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello .eyebrow {
    display:block!important;
    font-size:clamp(8px,.8vw,11px)!important;
    line-height:1.15!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello .intro-lead {
    display:block!important;
    font-size:clamp(10px,.95vw,13px)!important;
    line-height:1.18!important;
    margin:3px 0 0!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello .tl18-thankyou {
    display:block!important;
    max-width:100%!important;
    font-size:clamp(9px,.86vw,12px)!important;
    padding:4px 6px!important;
    line-height:1.2!important;
    margin:4px 0 0!important;
  }
  #noticeDialog.campaign-welcome .tl-deluxe-welcome {
    margin:2px 0 3px!important;
    padding:4px 5px!important;
    min-height:0!important;
  }
  #noticeDialog.campaign-welcome .tl-deluxe-welcome .tl-deluxe-heading {
    font-size:clamp(10px,1vw,14px)!important;
  }
  #noticeDialog.campaign-welcome .tl-deluxe-welcome .tl-deluxe-caption {
    font-size:clamp(9px,.82vw,11px)!important;
  }
  #noticeDialog.campaign-welcome .welcome-locality {
    display:none!important;
  }
  #noticeDialog.campaign-welcome .intro-explore-hero {
    flex:0 0 auto!important;
    min-height:44px!important;
    padding:5px 7px!important;
    margin:0!important;
  }
  #noticeDialog.campaign-welcome .intro-explore-hero .explore-copy strong {
    font-size:clamp(15px,1.55vw,21px)!important;
    line-height:1.08!important;
  }
  #noticeDialog.campaign-welcome .intro-explore-hero .explore-copy small {
    display:block!important;
    font-size:clamp(9px,.8vw,11px)!important;
    line-height:1.1!important;
  }
  #noticeDialog.campaign-welcome .intro-details.tl-popup-two-cards {
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:clamp(4px,.5vh,7px)!important;
    min-width:0!important;
    margin:0!important;
  }
  #noticeDialog.campaign-welcome .intro-details .tl-popup-info-card {
    min-height:0!important;
    padding:clamp(6px,.72vw,10px)!important;
    gap:2px!important;
    justify-content:center!important;
  }
  #noticeDialog.campaign-welcome .tl-popup-card-title {font-size:clamp(10px,.95vw,13px)!important}
  #noticeDialog.campaign-welcome .tl-popup-address {font-size:clamp(11px,1vw,14px)!important;line-height:1.22!important}
  #noticeDialog.campaign-welcome .tl-popup-card-sub {font-size:clamp(9px,.82vw,11px)!important}
  #noticeDialog.campaign-welcome .intro-hours dl {gap:2px!important}
  #noticeDialog.campaign-welcome .intro-hours dt,
  #noticeDialog.campaign-welcome .intro-hours dd {font-size:clamp(10px,.92vw,13px)!important;line-height:1.18!important}
  #noticeDialog.campaign-welcome .intro-closed {font-size:clamp(9px,.83vw,11px)!important}
  #noticeDialog.campaign-welcome .tl13-break-panel {
    flex:0 0 auto!important;
    min-height:0!important;
    grid-template-columns:minmax(0,1fr) 1px minmax(0,1.15fr)!important;
    padding:clamp(5px,.6vw,9px)!important;
    gap:4px!important;
  }
  #noticeDialog.campaign-welcome .tl13-break-symbol {display:none!important}
  #noticeDialog.campaign-welcome .tl13-break-info {gap:2px!important}
  #noticeDialog.campaign-welcome .tl13-break-info strong {font-size:clamp(9px,.8vw,11px)!important}
  #noticeDialog.campaign-welcome .tl13-break-info span {font-size:clamp(10px,.94vw,13px)!important}
  #noticeDialog.campaign-welcome .tl13-services-panel {
    flex:0 0 auto!important;
    min-height:0!important;
    padding:5px 6px!important;
    gap:3px!important;
  }
  #noticeDialog.campaign-welcome .tl13-service-heading {font-size:clamp(9px,.8vw,11px)!important}
  #noticeDialog.campaign-welcome .tl13-service-pills {gap:4px!important}
  #noticeDialog.campaign-welcome .tl13-service-pills>span {
    font-size:clamp(9px,.89vw,12px)!important;
    padding:5px 2px!important;
    min-width:0!important;
  }
  #noticeDialog.campaign-welcome .intro-advisories {display:none!important}
  #noticeDialog.campaign-welcome .intro-bottom-row {
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:4px!important;
    margin:0!important;
    min-height:0!important;
    align-items:stretch!important;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row > .intro-contact.intro-phone-strip {
    min-width:0!important;
    min-height:42px!important;
    padding:5px 7px!important;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row .intro-call-label {font-size:clamp(8px,.74vw,10px)!important}
  #noticeDialog.campaign-welcome .intro-bottom-row .intro-phone {
    font-size:clamp(13px,1.5vw,19px)!important;
    letter-spacing:-.025em!important;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row > .intro-music-switch,
  #noticeDialog.campaign-welcome .intro-bottom-row > .tl-popup-fs-icon {
    min-width:30px!important;
    width:clamp(30px,3.2vw,42px)!important;
    min-height:42px!important;
    height:auto!important;
  }
  #noticeDialog.campaign-welcome .intro-bottom-row .intro-music-switch .music-word {display:none!important}
  /* The promotional carousel is the star: mini controls take one compact row. */
  #noticeDialog.campaign-welcome .welcome-poster .poster-heading strong {display:none!important}
  #noticeDialog.campaign-welcome .welcome-poster .poster-heading {
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
  }
  #noticeDialog.campaign-welcome .welcome-poster .poster-heading span:first-child {font-size:clamp(9px,.85vw,11px)!important}
  #noticeDialog.campaign-welcome .welcome-poster .poster-count {font-size:clamp(9px,.85vw,11px)!important}
  #noticeDialog.campaign-welcome .welcome-poster .poster-caption {font-size:clamp(10px,.9vw,12px)!important}
  #noticeDialog.campaign-welcome .welcome-poster .poster-controls {min-height:28px!important}
  #noticeDialog.campaign-welcome .welcome-poster .poster-controls button {
    font-size:11px!important;
    min-width:31px!important;
    min-height:26px!important;
    padding:3px 6px!important;
  }
}

/* For very tall screens allow the poster to grow still wider; text retains
   its own scrollable, fully functional column. */
@media (orientation:portrait) and (min-height:1200px) and (min-width:700px){
  #noticeDialog.campaign-welcome[open]{grid-template-columns:minmax(0,62fr) minmax(0,38fr)!important}
}

/* Small phones retain the R20.10.20 readable compact layout. */
@media (max-width:479px) and (orientation:portrait){
  #noticeDialog.campaign-welcome[open]{grid-template-columns:minmax(0,31fr) minmax(0,69fr)!important}
}

@media(prefers-reduced-motion:reduce){
  #noticeDialog.campaign-welcome .welcome-poster .poster-viewport {scroll-behavior:auto!important}
}

/* On true large-format portrait displays, give the text its own visual weight
   instead of leaving a small dense island in a very tall white column. */
@media (orientation:portrait) and (min-width:700px) and (min-height:1100px){
  #noticeDialog.campaign-welcome > .campaign-details{
    gap:clamp(9px,1.1vh,16px)!important;
    padding:clamp(9px,1vw,16px)!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card{
    grid-template-columns:clamp(90px,10.5vw,132px) minmax(0,1fr)!important;
    gap:clamp(10px,1.1vw,18px)!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-card > .welcome-host{
    width:clamp(90px,10.5vw,132px)!important;
    height:clamp(90px,10.5vw,132px)!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello #noticeHeading{
    font-size:clamp(20px,2.3vw,30px)!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello .intro-lead{
    font-size:clamp(11px,1.2vw,15px)!important;
  }
  #noticeDialog.campaign-welcome .campaign-host-hello .tl18-thankyou{
    font-size:clamp(10px,1.0vw,13px)!important;
    padding:5px 7px!important;
  }
  #noticeDialog.campaign-welcome .intro-explore-hero{
    min-height:clamp(54px,4.2vh,74px)!important;
  }
  #noticeDialog.campaign-welcome .intro-explore-hero .explore-copy strong{
    font-size:clamp(18px,2vw,26px)!important;
  }
  #noticeDialog.campaign-welcome .intro-explore-hero .explore-copy small{
    font-size:clamp(10px,.96vw,13px)!important;
  }
  #noticeDialog.campaign-welcome .intro-details .tl-popup-info-card{
    padding:clamp(11px,1.15vw,16px)!important;
    gap:5px!important;
  }
  #noticeDialog.campaign-welcome .tl-popup-card-title{
    font-size:clamp(12px,1.3vw,16px)!important;
  }
  #noticeDialog.campaign-welcome .tl-popup-address{
    font-size:clamp(13px,1.4vw,18px)!important;
  }
  #noticeDialog.campaign-welcome .tl-popup-card-sub{
    font-size:clamp(11px,1.05vw,13px)!important;
  }
  #noticeDialog.campaign-welcome .intro-hours dt,
  #noticeDialog.campaign-welcome .intro-hours dd{
    font-size:clamp(12px,1.15vw,15px)!important;
  }
  #noticeDialog.campaign-welcome .tl13-break-panel{padding:10px!important;gap:8px!important}
  #noticeDialog.campaign-welcome .tl13-break-info strong{font-size:12px!important}
  #noticeDialog.campaign-welcome .tl13-break-info span{font-size:13px!important}
  #noticeDialog.campaign-welcome .tl13-services-panel{padding:10px 8px!important;gap:6px!important}
  #noticeDialog.campaign-welcome .tl13-service-heading{font-size:11px!important}
  #noticeDialog.campaign-welcome .tl13-service-pills>span{font-size:11px!important;padding:7px 3px!important}
  #noticeDialog.campaign-welcome .intro-bottom-row>.intro-contact.intro-phone-strip{min-height:56px!important;padding:7px!important}
  #noticeDialog.campaign-welcome .intro-bottom-row .intro-phone{font-size:clamp(17px,1.7vw,23px)!important}
  #noticeDialog.campaign-welcome .intro-bottom-row>.intro-music-switch,
  #noticeDialog.campaign-welcome .intro-bottom-row>.tl-popup-fs-icon{min-height:56px!important}
}
