/*
 * Overrides for running inside the storefront Embed Panel.
 *
 * The storefront header overlays the top of the iframe (about 104px with the navigation row).
 * The whole app is pushed down by --embed-top-offset, and the app header is kept only as an
 * empty 57px spacer, so the title and the menu button stay clear of the storefront header.
 * The menu button moves below the spacer and the menu panel shifts down by the same 33px.
 * Every viewport-height rule of styles.css is repeated here minus the offset.
 */
:root {
  --embed-top-offset: 53px;
}

html {
  box-sizing: border-box;
  padding-top: var(--embed-top-offset);
}

body {
  position: relative;
}

header {
  background-color: transparent;
  height: 57px;
}

#hamburger_icon {
  top: 60px;
}

#hamburger_icon i {
  background-color: #333435;
}

#selector_menu {
  top: 108px;
}

#disable_selector {
  top: 103px;
  height: calc(100% - 158px);
}

#selector_menu {
  height: calc(100vh - 184px - var(--embed-top-offset));
}

#selections {
  max-height: calc(100vh - 315px - var(--embed-top-offset));
}

.ipad_specific #drawing_container {
  height: calc(100vh - 180px - var(--embed-top-offset)) !important;
}

.ipad_specific #demo_video_iframe {
  height: calc(100vh - 328px - var(--embed-top-offset));
}

.ipad_safari_tabs #launch_container {
  height: calc(100vh - 218px - var(--embed-top-offset)) !important;
}

.ipad_safari_tabs #drawing_container {
  height: calc(100vh - 242px - var(--embed-top-offset)) !important;
}

.ipad_safari_tabs #selector_menu {
  height: calc(100vh - 246px - var(--embed-top-offset)) !important;
}

.ipad_safari_tabs #selections {
  height: calc(100vh - 377px - var(--embed-top-offset)) !important;
}

.ipad_safari_no_tabs #drawing_container {
  height: calc(100vh - 208px - var(--embed-top-offset)) !important;
}

.ipad_safari_no_tabs #selector_menu {
  height: calc(100vh - 212px - var(--embed-top-offset)) !important;
}

.ipad_safari_no_tabs #selections {
  height: calc(100vh - 345px - var(--embed-top-offset)) !important;
}

#main_content {
  height: calc(100vh - 177px - var(--embed-top-offset));
}

#launch_container {
  height: calc(100vh - 177px - var(--embed-top-offset));
}

#drawing_container {
  height: calc(100vh - 177px - var(--embed-top-offset));
}

#launch_video_iframe {
  height: calc(100vh - 177px - var(--embed-top-offset));
}

#demo_video_iframe {
  height: calc(100vh - 308px - var(--embed-top-offset));
}
