/* Public storefront rhythm and phone refinements, after component styles. */
/* WebKit's native menulist ignores min-height; keep the real select and picker
   while drawing a consistently sized public control. */
body:not(.in-command-center) #main select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  height: var(--control-height, 3.25rem);
  min-height: var(--control-min, 2.75rem);
  padding-inline-end: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%),
    linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) center,
    calc(100% - 14px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  body:not(.in-command-center) #main select:not([multiple]) {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
  }
}
body:not(.in-command-center) .header {
  min-height: 96px;
  height: auto;
  padding-block: 16px;
}
body:not(.in-command-center) #main .section {
  padding-block: clamp(64px, 7vw, 112px);
}
body:not(.in-command-center) #main .section-head {
  gap: 24px 40px;
  margin-bottom: 32px;
}
body:not(.in-command-center) #main .section-head h2 {
  text-wrap: balance;
}
body:not(.in-command-center) #main .section-caption {
  max-width: 62ch;
  margin-bottom: 40px;
}
body:not(.in-command-center) #main .brand-context {
  padding-block: clamp(32px, 4vw, 52px);
  gap: 28px 48px;
}
body:not(.in-command-center) #main .product-grid {
  gap: clamp(32px, 4vw, 56px) clamp(20px, 2.5vw, 36px);
}
body:not(.in-command-center) #main .catalog-section .product-grid {
  row-gap: clamp(48px, 5vw, 64px);
}
@media (max-width: 760px) {
  body:not(.in-command-center) .header {
    min-height: 76px;
    height: auto;
    gap: 8px;
    padding: 14px 20px;
    flex-wrap: wrap;
  }
  body:not(.in-command-center) .header .brand img.brand-wordmark {
    width: clamp(128px, 34vw, 164px);
  }
  body:not(.in-command-center) .header-actions {
    gap: 4px !important;
    flex-shrink: 0;
  }
  body:not(.in-command-center) .header-actions :is(.account-header-link, .icon-button) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    flex-shrink: 0;
    padding: 0;
    justify-content: center;
  }
  body:not(.in-command-center) .header nav a {
    font-size: 18px;
    line-height: 1.5;
    min-height: 52px;
  }
  body:not(.in-command-center) #main .editorial-hero .nad-copy h1 {
    font-size: clamp(48px, 12.3vw, 64px);
    line-height: 1.05;
    max-width: 100%;
    text-wrap: balance;
  }
  body:not(.in-command-center) #main .editorial-hero .nad-copy > p {
    font-size: 18px;
    line-height: 1.65;
  }
  body:not(.in-command-center) #main .editorial-hero .nad-copy > .editorial-purpose {
    font-size: 14px;
    line-height: 1.6;
  }
  body:not(.in-command-center) #main .editorial-hero .eyebrow {
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.1em;
  }
  body:not(.in-command-center) #main .editorial-hero .hero-actions {
    align-items: stretch;
    gap: 16px;
    margin-top: 30px;
  }
  body:not(.in-command-center) #main .editorial-hero .hero-actions > a {
    justify-content: center;
  }
  body:not(.in-command-center) #main .editorial-hero .nad-stage figcaption,
  body:not(.in-command-center) #main .editorial-hero .nad-stage figcaption small {
    font-size: 14px;
    line-height: 1.6;
  }
  body:not(.in-command-center) #main .editorial-hero .nad-stage figcaption {
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
  }
  body:not(.in-command-center) #main .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }
  body:not(.in-command-center) #main .section-caption {
    margin-bottom: 32px;
  }
  body:not(.in-command-center) #main .button {
    min-height: 52px;
    font-size: 16px;
    line-height: 1.45;
    white-space: normal;
    padding: 14px 18px;
  }
  body:not(.in-command-center) #main .text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.5;
  }
  body:not(.in-command-center) #main :is(.page-heading > p, .section-caption, .prose p) {
    font-size: 17px;
    line-height: 1.7;
  }
  body:not(.in-command-center) #main .product-card :is(h2, h3) {
    font-size: 24px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  body:not(.in-command-center) #main .product-card .product-meta {
    font-size: 14px !important;
    line-height: 1.5;
    gap: 8px;
    flex-wrap: wrap;
  }
  body:not(.in-command-center) #main :is(.reference-variants, .card-documentation) {
    font-size: 16px;
    line-height: 1.6;
  }
  body:not(.in-command-center) #main .reference-variants small {
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  body:not(.in-command-center) #main .reference-variants li > span:last-child {
    flex: 1 1 55%;
  }
  body:not(.in-command-center) #main .reference-variants li > span:first-child {
    flex: 1 1 40%;
  }
  body:not(.in-command-center) #main .product-card .small {
    font-size: 14px;
    line-height: 1.6;
  }
  body:not(.in-command-center) #main .product-source-panel > p,
  body:not(.in-command-center) #main .product-faq-list details p,
  body:not(.in-command-center) #main .product-specifications dd,
  body:not(.in-command-center) #main .support-topics p,
  body:not(.in-command-center) #main .support-note p {
    font-size: 16px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }
  body:not(.in-command-center)
    #main
    :is(.product-specifications dt, .product-feedback-empty .small),
  body:not(.in-command-center) #main .research-product figcaption,
  body:not(.in-command-center) #main .research-hero figcaption,
  body:not(.in-command-center) #main .research-product .price span {
    font-size: 14px;
    line-height: 1.6;
  }
  body:not(.in-command-center) #main .ed-search label,
  body:not(.in-command-center) #main .ed-issue {
    font-size: 14px;
    line-height: 1.5;
  }
  body:not(.in-command-center) #main .vial-products {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
  body:not(.in-command-center)
    #main
    input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
  body:not(.in-command-center) #main select,
  body:not(.in-command-center) #main textarea {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
  }
  body:not(.in-command-center) #main .cinematic-catalog p,
  body:not(.in-command-center) #main .campaign-film-section p {
    font-size: 17px;
    line-height: 1.7;
  }
  body:not(.in-command-center) #main .seasonal-chapter-index :is(span, small),
  body:not(.in-command-center) #main .campaign-film-section figcaption {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.04em;
  }
  body:not(.in-command-center) #main .seasonal-chapter-index {
    flex-wrap: wrap;
  }
  #age-dialog {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #age-dialog .age-panel p,
  #access-form .checkbox,
  #age-dialog .age-panel .button {
    font-size: 16px;
    line-height: 1.6;
  }
  #age-dialog .age-panel .button {
    min-height: 52px;
  }
  #age-dialog .age-panel .access-note {
    font-size: 14px;
  }
}
@media (max-width: 430px) {
  body:not(.in-command-center) #main .editorial-hero .hero-actions {
    flex-direction: column;
  }
  body:not(.in-command-center) #main .editorial-hero .hero-actions > a {
    width: 100%;
  }
  body:not(.in-command-center) #main .product-specifications dl > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  body:not(.in-command-center) #main .reference-variants li {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-block: 16px;
  }
  body:not(.in-command-center) #main .reference-variants li > span:first-child,
  body:not(.in-command-center) #main .reference-variants li > span:last-child {
    flex: 0 1 auto;
  }
  body:not(.in-command-center) #main .reference-variants .seasonal-price {
    text-align: left;
    align-items: flex-start;
  }
  body:not(.in-command-center) #main .reference-variants .seasonal-price-note {
    max-width: 100%;
  }
}
/* Keep iPhone landscape and touch-tablet forms as usable as portrait. */
@media (max-width: 760px), (pointer: coarse) and (max-width: 1100px) {
  body:not(.in-command-center) #main .reference-variants li > span,
  body:not(.in-command-center) #main .seasonal-price,
  body:not(.in-command-center) #main .seasonal-preview-price {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body:not(.in-command-center) #main .reference-variants strong {
    font-size: 16px;
  }
  body:not(.in-command-center) #main .vial-card-name {
    font-size: 16px;
    line-height: 1.45;
  }
  body:not(.in-command-center) #main .vial-card-size {
    font-size: 14px;
    line-height: 1.5;
  }
  body:not(.in-command-center) #main .vial-card-kind {
    font-size: 13px;
    line-height: 1.5;
  }
  body:not(.in-command-center)
    #main
    :is(
      .vial-review-note,
      .vial-step-heading > span,
      .vial-artwork-note,
      .vial-image-note,
      .vial-selected-art figcaption,
      .vial-result-formula
    ) {
    font-size: 14px;
    line-height: 1.65;
  }
  body:not(.in-command-center)
    #main
    :is(
      .vial-search-label,
      .vial-volume > label,
      .vial-sizes legend,
      .vial-volume > p,
      .vial-tool-scope p,
      .vial-selection-empty > p,
      .vial-result-empty,
      .vial-result-label,
      .vial-error
    ) {
    font-size: 16px;
    line-height: 1.65;
  }
  body:not(.in-command-center)
    input:not([type='checkbox']):not([type='radio']):not([type='hidden']),
  body:not(.in-command-center) select,
  body:not(.in-command-center) textarea,
  body:not(.in-command-center) #main select,
  body:not(.in-command-center) #main textarea {
    min-width: 0;
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
  }
  body:not(.in-command-center) button:not(.icon-button):not(.seasonal-dialog-close),
  body:not(.in-command-center) .button {
    min-height: 48px;
    font-size: 16px;
    line-height: 1.5;
  }
  body:not(.in-command-center) :is(.text-button, .text-link) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: normal;
  }
  body:not(.in-command-center)
    #main
    :is(.product-faq-list, .detail-copy, .faq, .help-answer)
    summary {
    min-height: 48px;
    padding-block: 12px;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  body:not(.in-command-center) #main :is(.detail-copy, .faq) details p {
    font-size: 16px;
    line-height: 1.7;
  }
  body:not(.in-command-center) .header-actions :is(.account-header-link, .icon-button) {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 1100px) {
  body:not(.in-command-center) .header nav {
    top: 100%;
    max-height: max(
      0px,
      calc(
        var(
            --bc-nav-max-height,
            calc(var(--bc-visible-height, 100dvh) - var(--bc-header-height, 76px) - 12px)
          ) -
          env(safe-area-inset-bottom, 0px)
      )
    );
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline: max(var(--page-gutter, 24px), env(safe-area-inset-left, 0px))
      max(var(--page-gutter, 24px), env(safe-area-inset-right, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
    scroll-padding-block: 12px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  #age-dialog {
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #age-dialog .age-panel {
    padding: 20px;
  }
}
