/* Marketing demo embed. A wide frame gets desktop chrome; a phone-width
   frame (ylauxi.com/demo on a phone) gets the app's own phone layout,
   which a 1280px desktop shell would cut off. */
@media (min-width: 900px) {
  body.ylux-marketing-demo-embed {
    overflow: hidden;
    min-width: 1280px;
  }
  body.ylux-marketing-demo-embed .shell {
    display: flex !important;
    flex-direction: row !important;
    height: 100vh;
    min-height: 100%;
    overflow: hidden;
  }
  body.ylux-marketing-demo-embed .sidebar {
    position: relative !important;
    left: auto !important;
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    flex-shrink: 0;
    transform: none !important;
    overflow-y: auto;
  }
  body.ylux-marketing-demo-embed .main {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body.ylux-marketing-demo-embed #ylux-mob-nav,
  body.ylux-marketing-demo-embed #mob-hamburger,
  body.ylux-marketing-demo-embed #mob-overlay,
  body.ylux-marketing-demo-embed #mob-logo,
  body.ylux-marketing-demo-embed #mob-sb-footer {
    display: none !important;
  }
  body.ylux-marketing-demo-embed .topbar .tb-l {
    display: flex !important;
    align-items: center;
  }
  body.ylux-marketing-demo-embed .tb-l .tb-clock,
  body.ylux-marketing-demo-embed .tb-l .tb-search-pill,
  body.ylux-marketing-demo-embed .tb-brand {
    display: inline-flex !important;
  }
  body.ylux-marketing-demo-embed .tb-exit,
  body.ylux-marketing-demo-embed #ylauxi-badge {
    display: none !important;
  }
  body.ylux-marketing-demo-embed .content {
    padding: 24px 24px 32px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
  }
}
body.ylux-marketing-demo-embed #marketing-demo-bar {
  font-family: var(--ylux-font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ylux-accent-f);
  color: var(--ylux-text-s);
  border-bottom: 0.5px solid var(--ylux-border);
  padding: 6px 14px;
  text-align: center;
  flex-shrink: 0;
}
body.ylux-marketing-demo-embed.ylux-marketing-demo-hero #marketing-demo-bar {
  display: none;
}
body.ylux-marketing-demo-embed.ylux-marketing-demo-hero .topbar {
  height: 44px;
  padding: 0 12px;
}
body.ylux-marketing-demo-embed .ylux-updates-widget,
body.ylux-marketing-demo-embed #live-notif-bar {
  display: none !important;
}

.mkt-hero-os-embed,
.mkt-os-embed-wrap {
  position: relative;
  width: 100%;
  background: var(--bg2, #fff);
}
.mkt-os-embed-iframe {
  width: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.mkt-demo-app-page {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
.mkt-demo-app-wrap {
  width: 100%;
  height: calc(100vh - 52px);
  min-height: 640px;
}
.mkt-demo-app-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Phone-width demo: one-line banner stacked above the app's sticky top bar,
   and the centred phone logo moved down by the banner's height. */
@media (max-width: 899px) {
  body.ylux-marketing-demo #marketing-demo-bar {
    position: sticky; top: 0; z-index: 22;
    height: 26px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  body.ylux-marketing-demo #marketing-demo-bar .mdb-more { display: none; }
  body.ylux-marketing-demo:not(.ylux-marketing-demo-hero) #mob-logo { top: 52px !important; }
}
