/* Flat FM page layouts: showcase (home), browse and product, task (bag, checkout) and account.
   Loaded after the page stylesheets; fm-ui-system.css still has the last word on buttons. */
:root { --fm-line: #cdbfa9; --fm-sand: #f5ede1; --fm-sand-deep: #ecdfca; }
.is-collapsed { display: none !important; }

@media (min-width: 761px) { .fm-phone-only { display: none !important; } }
@media (max-width: 760px) { .fm-wide-only { display: none !important; } }

/* Shared heavy headline */
.fd-head h1, .fc-heading h1, .fm-regulars-tile h3, .fm-brand-tile h3, .fd-brand-tile h3 {
  font-family: var(--fm-heavy, "Arial Black", Arial, sans-serif);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}
.fd-head h1 em, .fm-regulars-tile h3 em { font-style: italic; }

/* Header */
.fm-account-link svg { display: none; }
.fm-header .fm-account-link { display: inline-flex; align-items: center; }
body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-nav nav,
body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-utility { display: none; }

@media (min-width: 761px) { body .fm-nav nav .fm-mobile-tests { display: inline-flex !important; align-items: center; } }
@media (min-width: 1100px) {
  body .fm-nav { flex-wrap: nowrap; gap: 36px; min-height: 72px; padding-top: 0; }
  body .fm-nav nav { order: 0; width: auto; margin: 0 auto 0 0; gap: 26px; overflow: visible; }
  body .fm-utility .fm-test-nav { display: none; }
}
@media (max-width: 760px) {
  .fm-header .fm-saved-link, .fm-header .fm-inbox-link, .fm-header .fm-account-label { display: none; }
  .fm-header .fm-account-link svg { display: block; }
  body[data-route=account] .fm-header .fm-inbox-link { display: inline-flex; }
  body[data-route=account] .fm-header .fm-search-link { display: none; }
  .fm-nav nav {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
  body[data-route=product] .fm-nav nav,
  body[data-route=laifen]:has(.laifen-product-page) .fm-nav nav { display: none; }
}

/* Footer */
body .fm-footer { display: grid; grid-template-columns: 3fr 8fr; gap: 32px; align-items: start; padding: 40px max(48px, calc((100vw - 1360px) / 2)); }
body .fm-footer .fm-foot-brand { display: block; }
.fm-footer-brand { white-space: nowrap; }
.fm-foot-brand p { margin: 12px 0 0; font-size: 12px; color: #cfc5b4; }
body .fm-footer .fm-footnote { max-width: 240px; margin-top: 20px; font: inherit; font-size: 12px; line-height: 1.45; color: #cfc5b4; }
body .fm-footer .fm-foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; align-items: start; }
.fm-foot-group summary { list-style: none; margin-bottom: 8px; font: 600 11px/1.35 var(--fm-mono); letter-spacing: .04em; text-transform: uppercase; color: #cfc5b4; pointer-events: none; }
.fm-foot-group summary::-webkit-details-marker { display: none; }
body .fm-footer .fm-foot-group a { display: block; font-size: 13px; line-height: 28px; }
body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-foot-nav { display: none; }
body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-footer { display: flex; align-items: center; justify-content: space-between; padding-block: 16px; }
body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-foot-brand p:first-of-type { display: none; }
body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-footer .fm-footnote { max-width: none; margin: 0; }

@media (max-width: 760px) {
  body .fm-footer { display: block; padding: 24px 16px; }
  body .fm-footer .fm-foot-nav { display: block; margin-top: 16px; }
  .fm-foot-group { border-top: 1px solid #4a4640; }
  .fm-foot-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; font: 650 14px/1.2 var(--fm-sans); letter-spacing: 0; text-transform: none; color: var(--fm-paper); pointer-events: auto; cursor: pointer; }
  .fm-foot-group summary::after { content: "+"; font-size: 18px; font-weight: 400; }
  .fm-foot-group[open] summary::after { content: "−"; }
  .fm-foot-group > div { padding-bottom: 10px; }
  body .fm-footer .fm-foot-group a { display: flex; align-items: center; min-height: 44px; line-height: 1.2; }
  body:is([data-route=bag], [data-route=checkout], [data-route=order]) .fm-footer { display: block; padding-block: 14px; }
}

/* Product cards */
body .fs-card, body .fd-card { position: relative; display: flex; flex-direction: column; }
body .fs-card-body, body .fd-card-body { display: flex; flex: 1; flex-direction: column; }
body .fs-card-add, body .fd-card-actions { margin-top: auto; }
body .fs-card-body > p { min-height: 36px; margin-bottom: 10px; font-size: 12px; line-height: 1.45; color: #5f5548; }
body .fd-card-scenes, body .fd-content-link, body .fd-no-film { display: none; }
body .fd-card-description { min-height: 36px; margin-bottom: 10px; }
@media (min-width: 761px) {
  body :is(.fs-card, .fd-card) .sv-compare-button {
    position: absolute; top: 52px; right: 10px; z-index: 2; display: grid; place-items: center;
    width: 34px; height: 34px; min-height: 34px; padding: 0; color: var(--fm-ink);
    background: var(--fm-paper); border: 1px solid var(--fm-ink); border-radius: 50%;
  }
  body :is(.fs-card, .fd-card) .sv-compare-button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 760px) {
  body :is(.fs-card, .fd-card) .sv-compare-button { display: none; }
  body .fs-card-heading, body .fd-card-title { display: block; }
  body .fs-card-price, body .fd-card-title strong { display: block; margin-top: 3px; }
  body .fs-card-body > p, body .fd-card-description { min-height: 0; }
}

/* Home */
.fm-brand-tile, .fm-regulars-tile, .fd-brand-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border: 1.5px solid var(--fm-ink); }
.fm-brand-tile, .fd-brand-tile { padding: 14px; background: var(--fm-coral); }
.fm-regulars-tile { grid-column: span 2; padding: 20px; background: var(--fm-olive); }
.fm-regulars-tile h3 { margin: 14px 0; font-size: 48px; }
.fm-regulars-tile .fm-darkbutton { align-self: flex-start; width: 220px; }
.fm-brand-tile h3 { margin: 10px 0 0; font-size: 22px; }
.fm-brand-tile .fm-darkbutton { padding: 0 10px; }
.fm-outline-button { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 16px; font-size: 13px; font-weight: 700; border: 1px solid var(--fm-ink); }

@media (min-width: 761px) {
  body .fm-home :is(.fm-home-products, .fm-home-refills) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  body .fm-sticker { display: none; }
  body .fm-stagegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; min-height: 540px; padding-block: 36px; }
  body .fm-intro h1 { font-size: clamp(56px, 5.6vw, 80px); }
  body .fm-intro > p { max-width: 460px; font-size: 17px; line-height: 1.4; }
  body .fm-hero-product { display: block; padding: 0; transform: none; background: var(--fm-paper); border: 1.5px solid var(--fm-ink); box-shadow: 6px 6px 0 var(--fm-ink); }
  body .fm-poster { display: block; height: 380px; aspect-ratio: auto; border: 0; }
  body .fm-poster img { width: 100%; height: 100%; object-fit: cover; }
  body .fm-hero-productbar { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 68px; padding: 8px 12px 8px 16px; border-top: 1.5px solid var(--fm-ink); }
  body .fm-hero-productbar > div { margin-right: auto; }
  body .fm-edit .fm-sectionhead h2, body .fm-refills .fm-sectionhead h2 { font-size: 48px; }
  body .fm-edit .fs-card-image { aspect-ratio: 1; }
  body .fm-session { display: grid; grid-template-columns: 4fr 4fr 4fr; align-items: stretch; min-height: 400px; padding: 0; background: var(--fm-sand-deep); border: 1.5px solid var(--fm-ink); }
  body .fm-session-image { position: relative; aspect-ratio: auto; min-width: 0; min-height: 400px; border: 0; border-right: 1.5px solid var(--fm-ink); }
  body .fm-session-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  body .fm-session-copy { align-self: center; min-width: 0; padding: 36px; }
  body .fm-encore { align-self: stretch; margin: 0; padding: 28px; border: 0; border-left: 1.5px solid var(--fm-ink); }
}
@media (min-width: 761px) and (max-width: 1099px) {
  body .fm-home :is(.fm-home-products, .fm-home-refills) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .fm-session { grid-template-columns: 1fr 1fr; }
  body .fm-encore { grid-column: 1 / -1; border-left: 0; border-top: 1.5px solid var(--fm-ink); }
}
@media (max-width: 760px) {
  body .fm-stagegrid { padding-block: 20px; gap: 16px; }
  body .fm-intro h1 { margin-bottom: 10px; font-size: 40px; line-height: .98; }
  body .fm-intro > p { max-width: none; margin-bottom: 14px; font-size: 14px; line-height: 1.4; }
  body .fm-hero-product { padding: 0; background: var(--fm-paper); border: 1.5px solid var(--fm-ink); box-shadow: 4px 4px 0 var(--fm-ink); }
  body .fm-poster { display: block; height: 200px; aspect-ratio: auto; border: 0; }
  body .fm-poster img { width: 100%; height: 100%; object-fit: cover; }
  body .fm-hero-productbar { min-height: 60px; padding: 8px 8px 8px 12px; border-top: 1.5px solid var(--fm-ink); }
  body .fm-home :is(.fm-home-products, .fm-home-refills) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  body .fm-edit .fs-card-image { aspect-ratio: 1; }
  body .fm-session { display: block; width: 100%; margin: 20px 0; padding: 0; background: var(--fm-sand-deep); border-block: 1.5px solid var(--fm-ink); border-inline: 0; }
  body .fm-session-image { position: relative; display: block; height: 240px; aspect-ratio: auto; border: 0; border-bottom: 1.5px solid var(--fm-ink); }
  body .fm-session-image img { width: 100%; height: 100%; object-fit: cover; }
  body .fm-session-copy { padding: 16px; }
  body .fm-session-copy h2 { font-size: 30px; line-height: 1.02; }
  body .fm-session-copy h2 br { display: none; }
  body .fm-session-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  body .fm-session-actions .fm-textlink { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  body .fm-encore { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin: 0; padding: 12px 16px; border: 0; border-top: 1.5px solid var(--fm-ink); }
  body .fm-encore .fm-star, body .fm-encore > p:not(.fm-eyebrow) { display: none; }
  body .fm-encore .fm-eyebrow { grid-column: 1; grid-row: 1; margin: 0; }
  body .fm-encore h3 { grid-column: 1; grid-row: 2; margin: 0; font-size: 15px; font-family: var(--fm-sans); letter-spacing: -.02em; }
  body .fm-encore h3 br { display: none; }
  body .fm-encore a { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; min-height: 44px; margin: 0; border: 0; padding: 0; font-size: 13px; }
  body .fm-refills { padding-top: 0; }
  body .fm-refills .fm-sectionhead { display: none; }
}

/* Shop and search */
.fd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 28px 0 24px; border-bottom: 1px solid var(--fm-line); }
.fd-head h1 { margin: 8px 0 0; font-size: 56px; }
.fd-head .fd-searchbox { flex: 0 1 520px; margin: 0; }
body .fd-shop .fd-result-tabs + .fd-toolbar, body .fd-shop .fd-toolbar { margin-top: 0; }
.fd-shop #fd-results-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fd-suggestions { margin-top: 14px; }
.fd-brand-link { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.fd-brand-link small { font-size: 11px; color: #5f5548; text-decoration: none; }
.fd-brand-tile h3 { margin: 10px 0 0; font-size: 28px; }
.fd-brand-filter[hidden] { display: none; }
body .fd.fd-shop { display: block; }
body .fd.fd-shop .fd-card-image { aspect-ratio: 1; }
body .fd.fd-shop .fd-toolbar { margin-bottom: 12px; }
body .fd.fd-shop .fd-category-nav { padding: 0 0 12px; }
body .fd.fd-shop .fd-inline-search { margin: 0; }
@media (min-width: 761px) {
  body .fd .fd-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; margin-top: 0; padding-top: 24px; }
  body .fd .fd-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
}
@media (min-width: 1200px) { body .fd .fd-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .fd-head { display: block; padding: 16px 0 12px; }
  .fd-head h1 { font-size: 34px; }
  body .fd .fd-head .fd-searchbox { margin-top: 12px; }
  body .fd .fd-product-grid { gap: 16px 12px; }
  .fd-brand-tile h3 { font-size: 22px; }
}

/* Product pages */
@media (max-width: 760px) {
  body[data-route=product] .fp-crumb { display: none; }
  body .fp .fp-gallery { margin-inline: calc(-1 * var(--pdp-gutter, 12px)); }
  body .fp .fp-main-image { aspect-ratio: 390 / 290; border-inline: 0; }
  body .fp .fp-thumbs { padding-inline: var(--pdp-gutter, 12px); }
  body .fp-purchase { display: flex; flex-direction: column; }
  body .fp-purchase .fp-quicklinks { display: none; }
  body .fp-purchase .sv-product-actions { order: 6; }
  body .fp-purchase .fp-delivery { order: 7; }
  body .fp-purchase .fp-intro { order: 8; }
  body[data-route=laifen] .laifen-product-page .fp-main-image { aspect-ratio: 390 / 330; margin-inline: -16px; background: #fff; border-inline: 0; }
  body[data-route=laifen] .laifen-product-page .fp-main-image img { width: 100%; height: 100%; object-fit: contain; }
}
@media (max-width: 360px) {
  body[data-route=laifen] .laifen-product-page .fp-main-image { margin-inline: -14px; }
}
@media (max-width: 899px) {
  body .laifen-option-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body .laifen-option-buttons > button { min-height: 44px; }
}

.laifen-feature-more { display: block; width: 100%; min-height: 44px; margin-top: 12px; padding: 8px 12px; font: 650 13px/1.2 var(--fm-sans); color: var(--fm-ink); background: transparent; border: 1px solid var(--fm-ink); cursor: pointer; }
.laifen-feature-more[hidden] { display: none; }
[data-feature-view].is-clipped { position: relative; max-height: 900px; overflow: hidden; }
[data-feature-view].is-clipped::after { content: ""; position: absolute; inset: auto 0 0; height: 96px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.fp-details-media img { max-width: 100%; height: auto; }

/* Bag and checkout */
.fc-steps { display: flex; gap: 20px; font: 600 11px/1.35 var(--fm-mono); letter-spacing: .04em; text-transform: uppercase; color: #5f5548; }
.fc-steps b { color: var(--fm-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
body .fc-heading { display: block; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1.5px solid var(--fm-ink); }
body .fc-heading h1 { margin: 0; font-size: 48px; }
body .fc-layout, body .fc-checkout-layout { align-items: start; }
body .fc-summary-head h2 { margin: 0; font-size: 28px; }
body .fc-bag-items { border-top: 0; }
body .fc-bag-items > :first-child { padding-top: 0; border-top: 0; }
.fc-sidebar .fc-primary { min-height: 52px !important; margin: 14px 0 4px; }
.fc-coupon { margin-top: 10px; border-top: 1px solid var(--fm-line); }
.fc-coupon summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.fc-coupon summary::-webkit-details-marker { display: none; }
.fc-coupon summary::after { content: "+"; font-size: 18px; font-weight: 400; }
.fc-coupon[open] summary::after { content: "−"; }
.fc-upsell { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px; background: #eee9d3; border: 1px solid var(--fm-line); }
.fc-upsell img { width: 56px; height: 56px; flex: none; object-fit: cover; border: 1px solid var(--fm-line); }
.fc-upsell > div { flex: 1; min-width: 0; }
.fc-upsell h3 { margin: 2px 0 0; font-size: 14px; }
.fc-upsell small { font-size: 12px; color: #5f5548; }
@media (min-width: 761px) {
  body .fc-layout, body .fc-checkout-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
}
@media (max-width: 760px) {
  body .fc-heading { margin-bottom: 4px; padding-bottom: 12px; }
  body .fc-heading h1 { font-size: 34px; }
  body .fc-summary-head h2 { font-size: 22px; }
  body .fc-checkout-layout { display: flex; flex-direction: column; }
  body .fc-checkout-layout .fc-form { order: 1; width: 100%; }
  body .fc-checkout-layout .fc-sidebar { order: 2; width: 100%; }
}
@media (max-width: 600px) {
  .fc-sidebar .fc-primary[data-next] { display: none; }
}

/* Account */
.fa-nav-title { margin: 0 0 4px; font: 600 11px/1.35 var(--fm-mono); letter-spacing: .04em; text-transform: uppercase; color: #5f5548; }
.fa-nav-group + .fa-nav-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fm-line); }
body .fa-sidebar nav a { min-height: 36px; padding: 6px 8px; font-size: 13px; }
body .fa-sidebar nav a > span:first-child { display: none; }
.fa-resident-stamp, body .fa-member-note { display: none; }
body .fs-view[data-view=account] .fa-content { display: flex; flex-direction: column; gap: 20px; }
body .fs-view[data-view=account] .fa-content > * { margin: 0; }
.fa-content > .fa-top { order: 1; }
.fa-content > .fa-demo-note { order: 6; }
.fa-content > .fa-dashboard-grid { order: 3; }
.fa-content > .rw-account-band { order: 4; }
.fa-content > .fa-recent { order: 5; }
.fa-top { display: grid; grid-template-columns: minmax(0, 1fr) 420px; background: var(--fm-coral); border: 1.5px solid var(--fm-ink); }
body .fa-top .fa-welcome { display: block; min-height: 0; margin: 0; padding: 24px 28px; background: none; border: 0; }
body .fa-top .fa-welcome h1 { margin: 10px 0; font-size: 48px; }
body .fa-top .fa-welcome h1 br { display: none; }
body .fa-top .fa-statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: var(--fm-paper); border: 0; border-left: 1.5px solid var(--fm-ink); }
body .fa-top .fa-statrow > * { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px; border: 0; border-right: 1px solid var(--fm-ink); }
body .fa-top .fa-statrow > :last-child { border-right: 0; }
@media (min-width: 761px) {
  body .fa-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 1099px) { .fa-top { grid-template-columns: 1fr; } body .fa-top .fa-statrow { border-left: 0; border-top: 1.5px solid var(--fm-ink); } }
@media (max-width: 760px) {
  body .fa-sidebar nav { display: flex; }
  .fa-nav-group { display: contents; }
  .fa-nav-title { display: none; }
  body .fs-view[data-view=account] .fa { padding-top: 0; }
  body .fs-view[data-view=account] .fa-layout { display: flex; flex-direction: column; gap: 14px; }
  body .fs-view[data-view=account] .fa-content { display: contents; }
  body .fs-view[data-view=account] .fa-sidebar { order: 4; margin: 0; padding: 0; border: 0; }
  body .fs-view[data-view=account] .fa-member { display: none; }
  body .fs-view[data-view=account] .fa-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; overflow: visible; }
  body .fs-view[data-view=account] .fa-sidebar nav :is(a[aria-current], a[href="#refills"], a[href="#review"], a[href="#inbox"], a[href="#notifications"], a[href="#subscription-settings"]) { display: none; }
  body .fs-view[data-view=account] .fa-sidebar nav a { min-height: 48px; padding: 0 12px; background: var(--fm-paper); border: 1px solid var(--fm-line); white-space: normal; }
  .fa-content > .fa-top { order: 1; margin-inline: -16px !important; border-inline: 0; }
  .fa-content > .fa-dashboard-grid { order: 2; }
  .fa-content > .rw-account-band { order: 3; }
  .fa-content > .fa-recent { order: 5; }
  .fa-content > .fa-demo-note { order: 6; }
  body .fa-top .fa-welcome { padding: 16px; }
  body .fa-top .fa-welcome h1 { font-size: 28px; line-height: 1.02; }
  body .fa-top .fa-welcome > div > p:last-child { display: none; }
  body .fa-tracking-card > header { flex-direction: column-reverse; align-items: flex-start; }
}
