/* A quiet phone screen. The child's call contains no written Santa dialogue. */
body.storybook .santa-chat {
  width: min(440px, calc(100% - 24px));
  height: min(680px, calc(100dvh - 24px));
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--gold);
  background: var(--navy) var(--brand-page-gradient);
  box-shadow: 0 24px 90px #000a;
}
body.storybook .santa-chat[open] { display: flex; flex-direction: column; }
body.storybook .santa-chat::backdrop { background: #000d; backdrop-filter: blur(4px); }
body.storybook .santa-chat [hidden] { display: none !important; }
body.storybook .santa-chat-header { position: relative; flex: 0 0 auto; padding: 22px 58px 12px; text-align: center; }
body.storybook .santa-chat-header h2 { margin: 0; font-size: var(--type-title) !important; line-height: 1.2; }
body.storybook .santa-chat-close { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: inherit; }
body.storybook .santa-chat-close svg { display: block; width: 24px; height: 24px; }
body.storybook .santa-call-name-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 4px 28px 28px; }
body.storybook .santa-call-name-portrait { width: min(140px, 27dvh); height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 18%; border-radius: 50%; border: 1px solid var(--line); }
body.storybook .santa-call-name-screen form { width: 100%; }
body.storybook .santa-call-name-screen label { display: block; margin: 0 0 10px; text-align: center; font-size: var(--type-subheading) !important; line-height: 1.3; }
body.storybook .santa-call-name-screen input { width: 100%; min-height: 52px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--gold); background: #030710; font: inherit; }
body.storybook .santa-call-name-screen input::placeholder { color: var(--gold); opacity: .8; }
body.storybook .santa-call-name-screen .button { display: flex; width: fit-content; max-width: 100%; margin: 18px auto 0; }
body.storybook .santa-call-name-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
body.storybook .santa-call-name-choice { min-height: 44px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); background: #030710; }
body.storybook .santa-chat :is(.santa-call-request,.santa-call-generic) { display: block; min-height: 44px; margin: 4px auto 0; padding: 8px; border: 0; color: var(--gold); background: none; }
body.storybook .santa-chat .santa-call-request + .santa-call-disclosure { margin-top: 0; }
body.storybook .santa-call-feedback { margin: 8px 0 0; font-size: var(--type-quiet) !important; line-height: 1.5; }
body.storybook .santa-call-feedback:empty { display: none; }
body.storybook .santa-call-disclosure { margin: 12px 0 0; text-align: center; font-size: var(--type-quiet) !important; line-height: 1.5; }
body.storybook .santa-call-contact { display: flex; flex: 1; min-height: 0; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 28px 28px; }
body.storybook .santa-call-contact-copy { text-align: center; }
body.storybook .santa-call-status { margin: 0; font-size: var(--type-quiet) !important; line-height: 1.4; }
body.storybook .santa-chat[data-call-state='connected'] .santa-call-status { font-family: var(--font-display); font-size: var(--type-title) !important; font-weight: 400 !important; letter-spacing: normal !important; line-height: 1.2; }
body.storybook .santa-call-contact-name { margin: 9px 0 0; font-size: var(--type-subheading) !important; line-height: 1.3; overflow-wrap: anywhere; }
body.storybook .santa-call-portrait { display: block; width: min(224px, 58vw, 34dvh); height: auto; aspect-ratio: 1; object-fit: cover; object-position: center 18%; border-radius: 50%; border: 1px solid var(--line); }
body.storybook .santa-call-elapsed { margin: 0; font-size: var(--type-body) !important; line-height: 1.4; font-variant-numeric: tabular-nums; }
body.storybook .santa-call-actions { display: flex; justify-content: space-around; gap: 32px; width: 100%; }
body.storybook .santa-chat :is(.santa-call-button,.santa-call-end) { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 88px; min-height: 96px; padding: 0; border: 0; color: var(--gold); background: none; font: inherit; cursor: pointer; }
body.storybook .santa-phone-disc { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: #b42334; color: #fff; }
body.storybook .santa-phone-disc svg { display: block; width: 30px; height: 30px; fill: currentColor; }
body.storybook .santa-call-answer .santa-phone-disc { background: #247b51; }
body.storybook .santa-chat .santa-call-end { margin: 4px 0 0; }
body.storybook .santa-chat .santa-call-resume { width: min(270px,100%); min-height: 44px; margin: 0; padding: 8px 16px; }
body.storybook .santa-chat :is(button,input):focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-height: 650px) {
  body.storybook .santa-chat-header { padding-top: 14px; padding-bottom: 6px; }
  body.storybook .santa-call-contact { padding-bottom: 16px; gap: 8px; }
  body.storybook .santa-call-contact-name { margin-top: 5px; }
  body.storybook .santa-call-portrait { width: min(180px, 30dvh); }
  body.storybook .santa-call-name-screen { gap: 14px; padding-bottom: 20px; }
  body.storybook .santa-call-name-portrait { width: min(110px, 22dvh); }
}
@media (max-height: 440px) and (orientation: landscape) {
  body.storybook .santa-chat { width: min(620px, calc(100% - 24px)); }
  body.storybook .santa-call-contact { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; align-content: center; }
  body.storybook .santa-call-contact-copy { grid-column: 1; }
  body.storybook .santa-call-portrait { grid-column: 1; grid-row: 2 / span 3; width: min(130px, 38dvh); }
  body.storybook .santa-call-contact :is(.santa-call-actions,.santa-call-end,.santa-call-elapsed,.santa-call-resume,.santa-call-disclosure) { grid-column: 2; }
  body.storybook .santa-call-name-screen { flex-direction: row; gap: 26px; }
  body.storybook .santa-call-name-screen form { max-width: 340px; }
}
