/* Small-screen touch targets and readable service information. */
@media (max-width: 1100px) {
  .fm-service > div { min-height: 28px; padding-block: 4px; font: 600 12px/1.3 var(--fm-sans); letter-spacing: normal; }
  .fm-service > div > span:last-child { max-width: none; font-size: inherit; }
  .fm-nav nav { gap: 12px; }
  .fm-nav nav a {
    flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 5px 2px;
    display: flex; align-items: center; font-size: 14px;
  }
  .fm-nav .fm-utility { min-height: 44px; gap: 2px; padding-bottom: 0; }
  .fm-utility :is(.fm-search-link, .fm-saved-link, .fm-inbox-link) {
    width: 44px; min-width: 44px; height: 44px;
  }
  .fm-utility :is(.fm-search-link, .fm-saved-link, .fm-inbox-link) svg { width: 19px; height: 19px; }
  .fm-saved-link [data-saved-count], .fm-inbox-link [data-inbox-count] { font-size: 11px; }
  .fm-inbox-link [data-inbox-count] { top: 1px; right: 0; }
  .fm-utility :is(.fm-account-link, .fm-bag) {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; min-height: 44px; font: 700 13px/1.2 var(--fm-sans);
  }
  .fm-utility .fm-bag { padding: 4px 8px; }
  :is(.swift4-cart-page, .swift4-product-placeholder) .fs-topline {
    padding-block: 0; gap: 8px; font: 650 12px/1.3 var(--fm-sans);
    letter-spacing: 0; text-transform: none;
  }
  :is(.swift4-cart-page, .swift4-product-placeholder) .fs-topline a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
}

@media (max-width: 760px) {
  .fm-categories button { min-height: 44px; font-size: 12px; }
  .fm-hero-productbar button { min-height: 44px; }
  .fm-darkbutton, .fm-session-actions .fm-darkbutton { min-height: 44px; }
}

.fc-quantity button { min-width: 44px; min-height: 44px; }

.fm-demo-mobile { display: none; }

@media (max-width: 600px) {
  .fm-demo-banner { padding: 0 12px !important; }
  .fm-demo-wide { display: none; }
  .fm-demo-mobile { display: block; font-size: 13px; }
  .fm-demo-mobile summary { align-content: center; min-height: 44px; cursor: pointer; }
  .fm-demo-mobile p { margin: 0; padding-bottom: 8px; }
  .fc-remove { min-height: 44px; padding-inline: 6px; font-size: 12px !important; }
  .fp-quicklinks button { min-height: 44px; font-size: 12px; }
  body[data-route=product] { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  body:is([data-route=bag],[data-route=checkout]) { padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
  body[data-route=product] .fs-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  body:is([data-route=bag],[data-route=checkout]) .fs-toast { bottom: calc(91px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 600px) {
  .fm-container, .fm-stagegrid, .fm-nav, .fm-service > div { width: calc(100% - 24px); }
  .fm-service > div { justify-content: center; }
  .fm-service > div > span:last-child { display: none; }
  .fm-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-top: 3px; }
  .fm-nav nav { grid-area: 2 / 1 / 3 / -1; min-width: 0; gap: 11px; }
  .fm-utility { grid-area: 1 / 2; }
  .fm-wordmark { grid-area: 1 / 1; min-height: 44px; justify-self: start; }
  .fm-wordmark b { font-size: 23px; }

  .fm-stagegrid { padding-block: 12px 13px; gap: 8px; }
  .fm-intro > .fm-eyebrow, .fm-sticker { display: none; }
  .fm-intro h1 { margin-bottom: 4px; font-size: clamp(27px, 7.4vw, 36px); line-height: 1.02; }
  .fm-intro > p { max-width: 37ch; margin-bottom: 4px; font-size: 13px; line-height: 1.35; }
  .fm-hero-actions { gap: 12px; }
  .fm-hero-watch { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
  .fm-hero-product { margin: 0; padding: 3px; transform: none; box-shadow: 2px 2px 0 var(--fm-ink); }
  .fm-poster { aspect-ratio: 2.5; }
  .fm-hero-productbar { gap: 7px; padding: 3px 3px 0; }
  .fm-hero-productbar small { display: none; }
  .fm-hero-productbar a { font-size: 15px; }
  .fm-hero-productbar strong { font-size: 17px; }
  .fm-hero-productbar button { min-height: 44px; padding: 6px 9px; font-size: 12px; }

  .fm-edit { padding-top: 14px; }
  .fm-sectionhead { margin-bottom: 5px; gap: 8px; }
  .fm-sectionhead .fm-eyebrow { display: none; }
  .fm-sectionhead h2, .fm-session-copy h2 { font-size: clamp(21px, 5.5vw, 27px); line-height: 1.08; }
  .fm-sectionhead > .fm-textlink { max-width: none; font-size: 12px; }
  .fm-categories { gap: 4px; margin-bottom: 6px; padding-bottom: 0; }
  .fm-categories button { font-size: 12px; padding-inline: 10px; }
  .fm-home-products, .fm-home-refills { gap: 16px 10px; }
  .fm-home .fs-card-image { aspect-ratio: 1.38; }
  .fm-home .fs-card-image img { height: 100%; aspect-ratio: auto; }
  .fm-home .fs-card-body { padding-top: 5px; }
  .fm-home .fs-card-heading { gap: 4px; }
  .fm-home .fs-card-heading h3, .fm-home .fs-card-price { font-size: 15px; line-height: 1.14; }
  .fm-home .fs-card-body > p { min-height: 0; margin: 4px 0 6px; font-size: 12px; line-height: 1.35; }
  .fm-home .fs-card-add { min-height: 44px; }
  .fm-session { margin-block: 18px; padding: 9px; gap: 10px; }
  .fm-session-copy h2 { margin-block: 4px; }
  .fm-session-actions { gap: 0 8px; }
  .fm-encore { gap: 2px 10px; padding: 8px; }
  .fm-encore h3 { font-size: 19px; }
  .fm-refills { padding-block: 16px; }
  .fm-footer { grid-template-columns: 1fr; gap: 10px; padding: 16px 12px; }
  .fm-footer > div { display: flex; align-items: baseline; gap: 12px; }
  .fm-footer nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px 9px; font-size: 12px; }
  .fm-footer nav a { display: flex; align-items: center; min-height: 32px; line-height: 1.25; }

  .fl .fl-hero, .rv .rv-hero { padding-block: 12px; }
  .fl .fl-hero h1, .rv .rv-hero h1, .fc .fc-heading h1, .fc .fc-empty h1 {
    margin-block: 6px;
    font-size: clamp(27px, 7.5vw, 34px);
    line-height: 1.04;
  }
  .fc .fc-heading { padding-block: 12px; }
  .fc .fc-empty { gap: 10px; margin-top: 12px; padding: 12px; }
  .fl .fl-topline, .rv .rv-topline, .fc .fc-topline { min-height: 35px; }

  .fp-compact-features .fp-tabs { display: none; }
  .fp-feature-panel { border-top: 1px solid #aca496; scroll-margin-top: 6px; }
  .fp-feature-panel:last-of-type { border-bottom: 1px solid #aca496; }
  .fp-feature-panel > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 7px 4px;
    list-style: none;
    cursor: pointer;
  }
  .fp-feature-panel > summary::-webkit-details-marker { display: none; }
  .fp-feature-panel > summary strong { font: 700 14px/1.25 var(--fm-sans); }
  .fp-feature-panel > summary small { text-align: right; color: #594e40; font: 500 12px/1.25 var(--fm-sans); }
  .fp-feature-panel > summary::after {
    grid-column: 3;
    content: "";
    width: 7px; height: 7px;
    margin: 0 4px;
    border-right: 2px solid; border-bottom: 2px solid;
    transform: rotate(45deg);
  }
  .fp-feature-panel[open] > summary::after { transform: rotate(225deg); }
  .fp-feature-panel[open] > summary { background: #f2e8d8; }
  .fp-feature-panel > summary:focus-visible { outline: 2px solid var(--fm-ink); outline-offset: -2px; }
}

@media (min-width: 390px) and (max-width: 415px) {
  .fm-wordmark { gap: 4px; }
  .fm-wordmark b { font-size: 20px; }
  .fm-wordmark svg { width: 22px; }
}

@media (max-width: 389px) {
  .fm-wordmark svg { display: none; }
  .fm-wordmark b { font-size: 21px; }
}

@media (max-width: 365px) {
  .fm-service > div { width: calc(100% - 12px); }
  .fm-service b { margin-inline: 0; }
  .fm-wordmark b { font-size: 18px; }
  .fm-nav .fm-utility { gap: 0; }
  .fm-utility :is(.fm-search-link, .fm-saved-link, .fm-inbox-link) { width: 36px; min-width: 36px; }
  .fm-utility .fm-bag { padding-inline: 5px; }
}
