/* Only the homepage with a successfully built mobile enhancement opts in. */
@media (max-width: 767px) {
  #iwmh {
    --iwmh-ready: 1;
    --iwmh-ink: #30232b;
    --iwmh-subtle: #66535d;
    --iwmh-brand: #90304f;
    --iwmh-line: #eedde4;
    color: var(--iwmh-ink);
    text-align: start;
    padding: 4px 0 10px;
    width: 100%;
  }
  #iwmh[hidden], #iwmh [hidden] { display: none !important; }
  body#index.iwmh-live { padding-bottom: calc(63px + env(safe-area-inset-bottom, 0px)); }
  body#index.iwmh-live #content > .flexslider,
  body#index.iwmh-live #content > #cpcmsbanner1,
  body#index.iwmh-live #content > .iwmh-replaced { display: none !important; }
  body#index.iwmh-live #content { vertical-align: top; }
  #iwmh, #iwmh * { box-sizing: border-box; }
  #iwmh .iwmh-icons { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
  #iwmh .iwmh-icon { position: static; display: block; width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  #iwmh a, #iwmh button { color: inherit; font: inherit; letter-spacing: normal; text-transform: none; }
  #iwmh button { background: none; border: 0; border-radius: 0; margin: 0; padding: 0; cursor: pointer; }
  #iwmh a:focus-visible, #iwmh button:focus-visible, #iwmh input:focus-visible { outline: 2px solid var(--iwmh-brand); outline-offset: 2px; }
  #iwmh h1, #iwmh h2, #iwmh h3 { margin: 0; color: inherit; text-transform: none; letter-spacing: normal; line-height: 1.16; font-weight: 750; }
  #iwmh .iwmh-search { display: flex; align-items: center; border: 1px solid var(--iwmh-line); background: #fdf8fa; border-radius: 8px; min-height: 44px; margin: 0 0 9px; }
  #iwmh .iwmh-search input { flex: 1 1 auto; width: 0; min-width: 0; height: 44px; padding: 0 11px; background: transparent; color: var(--iwmh-ink); border: 0; border-radius: 8px; font-size: 16px; }
  #iwmh .iwmh-search input::placeholder { color: var(--iwmh-subtle); font-size: 13px; }
  #iwmh .iwmh-search button { height: 44px; width: 45px; display: grid; place-items: center; color: var(--iwmh-brand); }
  #iwmh .iwmh-hero { display: grid; grid-template-columns: 54% 46%; width: 100%; min-height: 142px; border-radius: 11px; background: #f6e5ec; overflow: hidden; position: relative; isolation: isolate; }
  #iwmh .iwmh-hero-copy { align-self: center; z-index: 1; padding: 10px 0 9px 12px; }
  #iwmh .iwmh-hero h1 { font-size: clamp(24px, 7.15vw, 35px); color: #4b2038; line-height: 1.02; overflow-wrap: break-word; }
  #iwmh .iwmh-hero p { color: #704557; margin: 5px 0 0; font-size: 12px; line-height: 1.22; }
  #iwmh .iwmh-hero a { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; color: #882543; font-size: 13px; line-height: 1.09; font-weight: 750; }
  #iwmh .iwmh-hero a .iwmh-icon { width: 15px; height: 15px; }
  #iwmh .iwmh-hero > img { display: block; width: 53%; height: 100%; position: absolute; inset: 0 0 0 auto; object-fit: cover; object-position: 67% 51%; mask-image: linear-gradient(to right, transparent, #000 22%); }
  #iwmh .iwmh-quick { margin-top: 5px; }
  #iwmh .iwmh-heading { display: flex; gap: 6px; min-height: 44px; align-items: center; justify-content: space-between; }
  #iwmh .iwmh-heading h2 { min-width: 0; overflow-wrap: anywhere; font-size: clamp(18px, 4.8vw, 23px); }
  #iwmh .iwmh-heading > a, #iwmh .iwmh-heading > button { min-height: 44px; min-width: 44px; padding-inline: 3px; display: flex; align-items: center; gap: 1px; color: var(--iwmh-brand); font-size: 12px; font-weight: 680; line-height: 1.13; text-align: end; }
  #iwmh .iwmh-heading .iwmh-icon { width: 13px; height: 13px; }
  #iwmh .iwmh-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px 4px; margin: 1px 0 7px; }
  #iwmh .iwmh-shortcuts .iwmh-shortcut { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; min-height: 58px; min-width: 0; padding: 1px 1px 2px; overflow-wrap: anywhere; font-size: 11.5px; text-align: center; font-weight: 650; line-height: 1.16; }
  #iwmh .iwmh-glyph { width: 37px; height: 37px; background: #f8e8ef; color: #8f3250; display: grid; place-items: center; border-radius: 50%; flex: none; }
  #iwmh .iwmh-tone-cakes .iwmh-glyph, #iwmh .iwmh-tone-birthday .iwmh-glyph { background: #fbede3; color: #884322; }
  #iwmh .iwmh-tone-chocolate .iwmh-glyph { background: #f5e9e1; color: #70462e; }
  #iwmh .iwmh-tone-fruit .iwmh-glyph { background: #eff1e3; color: #4c6029; }
  #iwmh .iwmh-tone-anniversary .iwmh-glyph, #iwmh .iwmh-tone-gifts .iwmh-glyph { background: #f0eaf7; color: #673a7e; }
  #iwmh .iwmh-shelf { margin-top: 10px; padding-top: 3px; border-top: 1px solid var(--iwmh-line); }
  #iwmh .iwmh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #iwmh .iwmh-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--iwmh-line); border-radius: 9px; overflow: hidden; background: #fff; }
  #iwmh .iwmh-card > img { width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: contain; background: #faf7f8; }
  #iwmh .iwmh-card-copy { display: grid; gap: 5px; padding: 7px 8px 8px; }
  #iwmh .iwmh-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--iwmh-ink); font-size: 13px; line-height: 1.24; min-height: 2.48em; font-weight: 600; overflow-wrap: anywhere; }
  #iwmh .iwmh-price { color: #7b2744; font-weight: 750; font-size: 14px; line-height: 1.2; }
  #iwmh .iwmh-tabs { position: fixed; z-index: 100; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; text-align: center; background: #fff; padding: 1px 5px calc(1px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--iwmh-line); box-shadow: 0 -4px 18px #32162814; }
  #iwmh .iwmh-tabs > * { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 3px 2px; color: var(--iwmh-subtle); font-size: 11px; line-height: 1.14; overflow-wrap: anywhere; font-weight: 680; }
  #iwmh .iwmh-tabs > [aria-current='page'] { color: var(--iwmh-brand); }
  #iwmh .iwmh-tabs .iwmh-icon { width: 20px; height: 20px; }
  #iwmh .iwmh-sheet { position: fixed; inset: auto 0 0; margin: 0 auto; width: min(100%, 540px); max-width: 100%; max-height: 82%; overflow: auto; padding: 8px 15px calc(14px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--iwmh-line); border-radius: 15px 15px 0 0; color: var(--iwmh-ink); background: white; box-shadow: 0 -6px 20px #32162826; line-height: 1.35; }
  #iwmh .iwmh-sheet:not([open]) { display: none; }
  #iwmh .iwmh-sheet::backdrop { background: #26152171; }
  #iwmh .iwmh-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
  #iwmh .iwmh-sheet-head h2 { font-size: 20px; }
  #iwmh .iwmh-sheet-head button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--iwmh-brand); }
  #iwmh .iwmh-sheet h3 { font-size: 14px; margin: 6px 0; }
  #iwmh .iwmh-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  #iwmh .iwmh-sheet-grid > * { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-height: 46px; padding: 5px 8px; background: #fcf6f9; border: 1px solid var(--iwmh-line); border-radius: 7px; font-size: 13px; font-weight: 650; text-align: start; overflow-wrap: anywhere; }
  #iwmh .iwmh-sheet-grid .iwmh-icon, #iwmh .iwmh-track .iwmh-icon { width: 16px; height: 16px; color: var(--iwmh-brand); }
  #iwmh .iwmh-track { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; color: var(--iwmh-brand); font-size: 13px; font-weight: 700; }
  #iwmh .iwmh-sheet p { font-size: 13px; color: var(--iwmh-subtle); margin: 1px 0 10px; }
}
