/* The simplified entry stays in the existing commerce dialog and uses its focus management. */
.commercial-modal:has(.room-hub-simple) {
  --hub-art: url('/brand/room-hub-dark-v1.webp');
  --hub-floor: #240d17;
  --hub-ink: #fff0df;
  --hub-muted: #f4d3c5;
  --hub-gold: #ffd3ad;
  --hub-line: #ffcfaa4d;
  --hub-rim: conic-gradient(from 212deg,#fdb59832,#ffe3c491 42deg,#fff2e3c1 126deg,#f1baa149 172deg,#f4aa9e39 229deg,#ffe0ce98 295deg,#fdb59832);
  --hub-pane: radial-gradient(ellipse at 6% 0%,#eebbab2b,transparent 53%),linear-gradient(102deg,#290f1c53,#270c1a9e 33%,#1c0b17ad 78%,#32142191);
  --hub-shine: #fff3dfaf;
  --hub-puck: linear-gradient(166deg,#ffd0bc27,#32122566);
  --hub-primary: linear-gradient(177deg,#fce4d6,#edaba7 48%,#d88d99 95%);
  --hub-primary-ink: #381620;
  --hub-shadow: #13060f93;
  --hub-display: 'Cormorant Garamond', Georgia, serif;
  --hub-ui: Manrope, system-ui, sans-serif;
  display: grid;
  grid-template-columns: minmax(0, 1080px);
  place-items: safe center stretch;
  padding: 22px max(30px,13vw) 22px 25vw;
  background: var(--hub-floor) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-brand=clean] .commercial-modal:has(.room-hub-simple) {
  --hub-art: url('/brand/room-hub-light-v1.webp');
  --hub-floor: #ebc6b4;
  --hub-ink: #43242d;
  --hub-muted: #613d3c;
  --hub-gold: #753e40;
  --hub-line: #a3756558;
  --hub-rim: conic-gradient(from 212deg,#b06f5660,#fff0d3d9 48deg,#fff9e9 128deg,#fff0d1bd 172deg,#b8755d70 229deg,#fff3e2df 295deg,#b06f5660);
  --hub-pane: radial-gradient(ellipse at 16% 2%,#fff9e945,transparent 50%),linear-gradient(101deg,#fff4df45,#fff3da67 38%,#ffe1cf5c 80%,#ffefdb47);
  --hub-shine: #fff7eada;
  --hub-puck: linear-gradient(166deg,#fffaf0b7,#fff0de70);
  --hub-primary: linear-gradient(173deg,#8d5160,#73404d 48%,#603440);
  --hub-primary-ink: #fff3eb;
  --hub-shadow: #662b2547;
}

.commercial-modal:has(.room-hub-simple)[hidden] { display: none; }
.commercial-modal:has(.room-hub-simple)::before {
  background: var(--hub-art) center / cover no-repeat;
}

html[data-brand] .commercial-modal .commercial-panel:has(.room-hub-simple) {
  min-width: 0;
  width: 100%;
  max-width: none;
  max-height: calc(100dvh - 44px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(22px,2.4vw,38px);
  border: 1px solid transparent !important;
  border-radius: 28px;
  color: var(--hub-ink) !important;
  background: var(--hub-pane) !important;
  box-shadow: 0 20px 52px var(--hub-shadow), inset 0 1px 2px var(--hub-shine), inset 0 0 17px #fff2df28 !important;
  backdrop-filter: blur(5px) saturate(118%);
  -webkit-backdrop-filter: blur(5px) saturate(118%);
}
.commercial-panel:has(.room-hub-simple)::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2.4px;
  border-radius: inherit;
  background: var(--hub-rim);
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.commercial-panel:has(.room-hub-simple)::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 5px 9px -5px var(--hub-shine), inset 0 -4px 7px -6px var(--hub-shine);
}

#commerceContent:has(>.room-hub-simple) {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  column-gap: 14px;
  align-items: center;
}
#commerceContent:has(>.room-hub-simple) > .commercial-overline { display: none; }
#commerceContent:has(>.room-hub-simple) > .email-brand-mark {
  width: 64px;
  height: 65px;
  margin: 0;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px var(--hub-shadow));
}
html[data-brand=clean] #commerceContent:has(>.room-hub-simple) > .email-brand-mark { width: 104px; }
html[data-brand] #commerceContent:has(>.room-hub-simple) > #commerceTitle {
  min-width: 0;
  margin: 0;
  padding-right: 48px;
  color: var(--hub-ink) !important;
  text-shadow: none !important;
  text-align: left;
  text-wrap: balance;
  font: 600 clamp(38px,4.3vw,69px)/.94 var(--hub-display);
  letter-spacing: -.035em;
}
html[data-brand] .commercial-panel:has(.room-hub-simple) .commercial-close {
  inset: clamp(17px,2.4vw,36px) clamp(17px,2.4vw,36px) auto auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hub-line);
  border-radius: 50%;
  background: var(--hub-puck) !important;
  color: var(--hub-ink) !important;
  box-shadow: inset 0 1px 2px #fff3e155,0 3px 10px var(--hub-shadow);
}

.room-hub-simple {
  grid-column: 1/-1;
  min-width: 0;
  display: grid;
  gap: 13px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--hub-line);
}

#commerceContent .room-hub-simple .room-hub-actions {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 0;
}

html[data-brand] #commerceContent .room-hub-simple .room-hub-action {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  width: 100%;
  min-height: 60px;
  min-width: 0;
  margin: 0;
  padding: 11px 38px 11px 16px;
  text-align: left;
  color: var(--hub-ink) !important;
  font: 750 15px/1.32 var(--hub-ui);
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid var(--hub-line) !important;
  border-radius: 16px;
  background: var(--hub-puck) !important;
  box-shadow: inset 0 1px 1px #fff3e14d,0 4px 12px #250d1720 !important;
  text-shadow: none !important;
}
.room-hub-simple .room-hub-action > .room-hub-arrow {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 19px/1 var(--hub-ui);
}
html[data-brand] #commerceContent .room-hub-simple :is(.room-hub-primary,#roomContinue) {
  color: var(--hub-primary-ink) !important;
  border-color: #ffe6c787 !important;
  background: var(--hub-primary) !important;
  box-shadow: inset 0 1px 2px #fff9ef9e,inset 0 -2px 5px #6a233a4c,0 6px 15px #44132838 !important;
}
html[data-brand] #commerceContent .room-hub-simple #roomContinue {
  min-height: 71px;
  border-radius: 17px;
  font: 700 28px/1.05 var(--hub-display);
}
.room-hub-continue-status { display: block; margin-top: 3px; font: 620 12px/1.35 var(--hub-ui); opacity: .88; }
html[data-brand] #commerceContent .room-hub-simple:has(.room-hub-resume:not([hidden])) .room-hub-actions .room-hub-action {
  min-height: 46px;
  padding-inline-start: 4px;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  font-size: 13px;
}
html[data-brand] #commerceContent .room-hub-simple:has(.room-hub-resume:not([hidden])) #roomJoin {
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--hub-line) !important;
}

#commerceContent .room-hub-simple .room-hub-history {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hub-line);
}
.room-hub-simple .room-hub-history summary {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 6px 4px;
  color: var(--hub-ink);
  font: 720 14px/1.35 var(--hub-ui);
}
.room-hub-history summary::-webkit-details-marker { display: none; }
.room-hub-history summary .room-hub-arrow {
  color: var(--hub-gold);
  font-size: 21px;
}
.room-hub-history[open] summary .room-hub-arrow { transform: rotate(90deg); }
.room-hub-history #roomRecent {
  display: grid;
  gap: 7px;
  margin: 0 0 6px;
}
html[data-brand] #commerceContent .room-hub-history #roomRecent .room-recent {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  color: var(--hub-ink) !important;
  border: 1px solid var(--hub-line) !important;
  border-radius: 12px;
  text-align: left;
  font: 620 13px/1.4 var(--hub-ui);
  background: var(--hub-puck) !important;
  box-shadow: none !important;
}

.room-hub-room-code { overflow-wrap: anywhere; letter-spacing: .05em; }
.room-hub-room-state, .room-hub-room-seats { color: var(--hub-muted); }
.room-recent .room-hub-arrow { justify-self: end; font-size: 18px; color: var(--hub-gold); }

#commerceContent .room-hub-simple .room-hub-links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 6px 0 0;
  border-top: 1px solid var(--hub-line);
}
html[data-brand] #commerceContent .room-hub-simple .room-hub-links button {
  min-width: 0;
  min-height: 44px;
  padding: 4px 2px;
  color: var(--hub-muted) !important;
  font: 670 12px/1.35 var(--hub-ui);
  text-align: left;
  text-decoration-color: var(--hub-line);
}
html[data-brand] #commerceContent .room-hub-simple .room-hub-links button:last-child { text-align: right; }
html[data-brand=original] #commerceContent:has(>.room-hub-simple) > #commerceTitle,
html[data-brand=original] #commerceContent .room-hub-simple .room-hub-links button {
  text-shadow: 0 1px 8px #21101c !important;
}

html[data-brand] .commercial-panel:has(.room-hub-simple) #commerceStatus { color: var(--hub-muted) !important; }
.commercial-panel:has(.room-hub-simple) #commerceStatus:empty { display: none; }

@media(max-width:980px) {
  .commercial-modal:has(.room-hub-simple) { padding-inline: 19vw 9vw; }
}
@media(max-width:620px) {
  .commercial-modal:has(.room-hub-simple) {
    padding: clamp(34px,14.8dvh,125px) 13px 16px;
    align-items: start;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .commercial-modal:has(.room-hub-simple)::before {
    background:
      linear-gradient(180deg,transparent 7%,color-mix(in srgb,var(--hub-floor) 24%,transparent) 56%,color-mix(in srgb,var(--hub-floor) 52%,transparent)),
      var(--hub-art) 9% center / cover no-repeat,
      var(--hub-floor);
  }
  html[data-brand] .commercial-modal .commercial-panel:has(.room-hub-simple) {
    max-height: none;
    padding: 16px;
    overflow: visible;
    border-radius: 23px;
  }
  #commerceContent:has(>.room-hub-simple) { column-gap: 9px; }
  #commerceContent:has(>.room-hub-simple) > .email-brand-mark { width: 45px; height: 51px; }
  html[data-brand=clean] #commerceContent:has(>.room-hub-simple) > .email-brand-mark { width: 71px; }
  html[data-brand] #commerceContent:has(>.room-hub-simple) > #commerceTitle {
    min-height: 61px;
    display: grid;
    align-items: center;
    padding-right: 39px;
    font-size: clamp(30px,9vw,40px);
  }
  html[data-brand] .commercial-panel:has(.room-hub-simple) .commercial-close { inset: 10px 10px auto auto; }
  .room-hub-simple { margin-top: 14px; padding-top: 13px; gap: 9px; }
  #commerceContent .room-hub-simple .room-hub-actions { grid-template-columns: minmax(0,1fr); gap: 8px; }
  #commerceContent .room-hub-simple:has(.room-hub-resume:not([hidden])) .room-hub-actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  html[data-brand] #commerceContent .room-hub-simple .room-hub-action { min-height: 52px; font-size: 14px; }
  html[data-brand] #commerceContent .room-hub-simple #roomContinue { min-height: 65px; font-size: 24px; }
  html[data-brand] #commerceContent .room-hub-simple:has(.room-hub-resume:not([hidden])) .room-hub-actions .room-hub-action {
    padding-inline-end: 20px;
    font-size: 12px;
  }
  .room-hub-simple:has(.room-hub-resume:not([hidden])) .room-hub-actions .room-hub-action > .room-hub-arrow { inset-inline-end: 3px; font-size: 15px; }
  html[data-brand] #commerceContent .room-hub-history #roomRecent .room-recent {
    grid-template-columns: minmax(0,1fr) auto 10px; gap: 3px 8px; font-size: 11px;
  }
  .room-hub-room-state { grid-column: 2; grid-row: 1/3; }
  .room-hub-room-seats { grid-column: 1; grid-row: 2; }
  .room-recent .room-hub-arrow { grid-column: 3; grid-row: 1/3; }
  html[data-brand] #commerceContent .room-hub-simple .room-hub-links button { font-size: 11px; }
}
@media(orientation:landscape) and (max-height:560px) {
  .commercial-modal:has(.room-hub-simple) { padding-block: 9px; }
  html[data-brand] .commercial-modal .commercial-panel:has(.room-hub-simple) {
    max-height: calc(100dvh - 18px);
    overflow: auto;
    padding: 17px;
  }
}
@media(orientation:landscape) and (max-height:560px) and (max-width:820px) {
  .commercial-modal:has(.room-hub-simple) { padding-inline: 15px; }
}
@media(prefers-reduced-transparency:reduce) {
  html[data-brand] .commercial-panel:has(.room-hub-simple) {
    background: var(--hub-floor) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
