/* Product entry presentation only. Camera, editor, result and sticker-card
   layouts retain their approved interaction styles. */
body.storybook .product-menu-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(760px, 100%);
  min-height: 0;
  margin: 8px auto 24px;
  padding: 0 12px 24px;
  text-align: center;
}
body.storybook .product-menu-heading {
  position: relative;
  isolation: isolate;
  width: min(100%, 470px);
  padding: 12px 22px;
  margin: 0;
  text-align: center;
}
body.storybook .product-menu-heading :is(h1, .product-heading) {
  margin: 0;
  font-size: var(--type-title) !important;
  line-height: 1.12;
  text-wrap: balance;
}
body.storybook .product-menu-heading .product-subheading {
  margin: 8px 0 0;
  font-size: var(--type-body) !important;
  line-height: 1.3;
}
body.storybook .product-menu-hero {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  order: 0;
  width: auto;
  height: clamp(156px, 31svh, 260px);
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  padding: 6px;
  overflow: visible;
  border: 1px solid #dfb87a99;
  border-radius: 17px 17px 10px 10px;
  background: #020710;
  box-shadow: 0 0 34px #dfb87a09;
  isolation: isolate;
}
body.storybook .product-menu-hero::after { display: none; }
body.storybook .product-menu-hero img,
body.storybook .product-menu-label {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border: 1px solid #dfb87a55;
  border-radius: 11px 11px 6px 6px;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}
body.storybook #guidance-screen .product-menu-hero img,
body.storybook [data-entry-product='reindeer'] .product-menu-hero img { object-position: 64% 50%; }
body.storybook [data-entry-product='santa-cam'] .product-menu-hero img { object-position: 48% 35%; }
body.storybook [data-entry-product='elf'] .product-menu-hero img { object-position: 44% 50%; }
body.storybook .product-menu-label {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--gold);
  background: radial-gradient(ellipse, #0b1520, #020710 75%);
  font-size: var(--type-title);
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
body.storybook .product-menu-hero [hidden] { display: none !important; }
.product-menu-corners {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background: linear-gradient(#dfb87a,#dfb87a) 0 0/14px 1px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 0 0/1px 14px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 100% 0/14px 1px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 100% 0/1px 14px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 0 100%/14px 1px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 0 100%/1px 14px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 100% 100%/14px 1px no-repeat,
    linear-gradient(#dfb87a,#dfb87a) 100% 100%/1px 14px no-repeat;
}
body.storybook .product-menu-copy { width: 100%; max-width: 520px; margin: 0; }
body.storybook .product-menu-copy > .support,
body.storybook #video-start > .video-introduction {
  max-width: 34ch;
  margin: 2px auto 14px;
  font-size: var(--type-body) !important;
  line-height: 1.4;
  text-wrap: balance;
}
body.storybook .product-menu-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
/* Format navigation remains visible before entering the Reindeer photo flow. */
body.storybook[data-product='reindeer'] #guidance-screen .reindeer-format-nav {
  display: flex; justify-content: center; gap: 12px; flex: 0 0 auto;
  margin: -4px 0; color: var(--gold);
}
body.storybook[data-product='reindeer'] #guidance-screen .reindeer-format-nav > * {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; min-height: 48px; padding: 6px 18px;
  color: var(--gold); font-size: 18px; line-height: 1.25;
}
body.storybook[data-product='reindeer'] #guidance-screen .reindeer-format-nav [aria-current='page'] {
  font-weight: 700;
}
body.storybook[data-product='reindeer'] #guidance-screen .reindeer-format-nav a {
  text-decoration: none; touch-action: manipulation;
}
body.storybook[data-product='reindeer'] #guidance-screen .reindeer-format-nav a:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
body.storybook .product-menu-entry .button {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 23px;
  border-radius: 999px;
  font-size: var(--type-body) !important;
  line-height: 1.25;
}
body.storybook .product-menu-entry .reassurance { margin: 12px auto 0; font-size: var(--type-quiet) !important; }
body.storybook .product-menu-tips { max-width: 430px; margin: 8px auto 0; text-align: left; }
body.storybook .product-menu-tips summary { display: flex; justify-content: center; align-items: center; min-height: 44px; cursor: pointer; list-style: none; }
body.storybook .product-menu-tips summary::-webkit-details-marker { display: none; }
body.storybook .product-menu-tips .photo-guidance { margin: 0; }
body.storybook .product-menu-tips .photo-guidance li { padding: 10px 0; text-align: left; }
body.storybook .product-menu-entry .santa-tree-link { display: inline-flex; justify-content: center; margin: 6px auto 0; min-height: 44px; }
/* The existing Elf gallery remains its approved size and grid. Only the
   surrounding entry illustration, heading and controls are shared. */
body.storybook .video-start.product-menu-entry { width: min(760px, calc(100% - 36px)); margin-top: 8px; }
body.storybook:is(.video-elf-product,.video-sticker-product) .video-start.product-menu-entry { width: min(1000px, calc(100% - 48px)); padding-inline: 0; }
/* Sticker libraries supply their own actual character previews. */
body.storybook:is(.video-elf-product,.video-sticker-product) #video-start.product-menu-entry[data-entry-product] > .product-menu-hero { display: none; }
body.storybook #video-start > .video-selection { width: min(100%, 360px); margin: 0 auto; text-align: left; gap: 4px; }
body.storybook #video-start .video-selection label { font-size: var(--type-quiet) !important; }
body.storybook #video-start .video-selection select { min-height: 44px; padding-block: 8px; }
body.storybook #video-start > .video-start-actions { width: min(100%, 580px); margin: 0 auto; text-align: center; }
body.storybook #video-start .video-start-actions .product-menu-actions { flex-wrap: nowrap; }
body.storybook #video-start .video-start-actions .product-menu-actions > .button { flex: 0 1 auto; margin: 0; }
body.storybook #video-start .video-start-actions > .small { margin: 8px auto; font-size: var(--type-quiet) !important; line-height: 1.4; }
body.storybook #video-start .video-privacy { max-width: 40ch; }
body.storybook #video-start > .elf-gallery { width: 100%; }
@media (max-width: 360px) {
  body.storybook .product-menu-entry { gap: 10px; padding-inline: 0; }
  body.storybook .product-menu-heading { padding: 14px 16px; }
  body.storybook .product-menu-heading :is(h1, .product-heading) { font-size: 31px !important; }
  body.storybook .product-menu-hero { height: 29svh; min-height: 145px; }
  body.storybook .product-menu-entry .button { padding-inline: 18px; }
}
@media (min-width: 1000px) {
  body.storybook .product-menu-entry { gap: 18px; }
  body.storybook .product-menu-hero { height: 310px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.storybook .product-menu-entry { display: grid; grid-template-columns: minmax(160px, 230px) minmax(0,1fr); align-items: center; column-gap: 30px; width: min(760px, 100%); margin-top: 6px; padding-bottom: 20px; }
  body.storybook .product-menu-heading { grid-column: 2; padding: 12px 18px; }
  body.storybook .product-menu-hero { grid-column: 1; grid-row: 1 / span 4; width: min(24vw, 180px); height: auto; }
  body.storybook .product-menu-copy { grid-column: 2; }
  body.storybook[data-product='reindeer'] #guidance-screen .reindeer-format-nav { grid-column: 2; }
  body.storybook #video-start > :is(.video-introduction,.video-selection,.video-start-actions) { grid-column: 2; }
  body.storybook #video-start > .elf-gallery { grid-column: 1 / -1; }
  body.storybook:is(.video-elf-product,.video-sticker-product) #video-start.product-menu-entry { display: flex; flex-direction: column; }
  body.storybook .product-menu-heading :is(h1,.product-heading) { font-size: 30px !important; }
}

/* Compact header belongs only to the entry view, never an open editor/result. */
body.storybook:has(.product-menu-entry:not([hidden])) > .topbar {
  display: flex; align-items: center; width: min(1000px, calc(100% - 32px));
  height: 64px; min-height: 0; padding: 4px 0; margin: 0 auto; gap: 12px;
}
body.storybook:has(.product-menu-entry:not([hidden])) > .topbar .ever-wonder-logo { width: 38px; height: 38px; }
body.storybook:has(.product-menu-entry:not([hidden])) > .topbar .ever-wonder-name { font-size: 18px !important; }
body.storybook:has(.product-menu-entry:not([hidden])) > .topbar .ever-wonder-slogan { display: none; }
body.storybook:has(.product-menu-entry:not([hidden])) > .topbar .ew-header-nav { flex-direction: row; gap: 0; }
body.storybook:has(.product-menu-entry:not([hidden])) :is(.santa-footer, footer) { display: none; }
@media (max-height: 650px) and (orientation: portrait) {
  body.storybook .product-menu-entry { gap: 7px; margin-top: 4px; padding-bottom: 8px; }
  body.storybook[data-product='reindeer'] #guidance-screen { gap: 3px; }
  body.storybook[data-product='reindeer'] #guidance-screen .product-menu-hero { height: 131px; }
  body.storybook .product-menu-heading { padding-block: 8px; }
  body.storybook .product-menu-heading :is(h1,.product-heading) { font-size: 29px !important; }
  body.storybook .product-menu-hero { height: 143px; min-height: 0; }
  body.storybook .product-menu-copy > .support,
  body.storybook #video-start > .video-introduction { margin-bottom: 7px; font-size: var(--type-quiet) !important; line-height: 1.25; }
  body.storybook #video-start > .video-selection { grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 6px 12px; }
  body.storybook #video-start > .video-selection > div { grid-column: 1 / -1; margin-top: 0; }
  body.storybook #video-start .video-start-actions > .small { margin-block: 5px; }
  body.storybook .product-menu-entry .button { padding-inline: 15px; }
  body.storybook .product-menu-entry .reassurance { margin-top: 5px; }
  body.storybook .product-menu-tips { margin-top: 3px; }
}
