/* Page-specific corrections for the product, recipe, guide and manuals pages. */
.crumbs, .crumbs [aria-current="page"] { color: #46596c !important; }
.crumbs a { color: #1f668f !important; }

/* The first illustrated highlight and subsequent text highlights share a card treatment. */
#highlights .feats .feat,
#highlights .feats .feat.flip {
  background: var(--ice);
  border-radius: 18px;
  padding: 22px 24px !important;
}
#highlights .f-txt h3,
#highlights .feat-card .f-txt h3 {
  font-size: 20px !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em;
}

/* Keep the contents chips fully visible, including their final line. */
body.iw-content main .page-contents ul {
  max-height: none !important;
  overflow: visible !important;
}
body.iw-content main .page-contents a { height: auto; }
body.iw-detail .detail-head h1,
body.iw-content .content-heading h1 {
  font-size: clamp(34px, 3.6vw, 52px) !important;
  line-height: 1.12 !important;
}
body.iw-detail .detail-actions a { font-weight: 600; }
@media (max-width: 900px) {
  #highlights .feats .feat,
  #highlights .feats .feat.flip { padding: 18px !important; }
  #highlights .f-txt h3,
  #highlights .feat-card .f-txt h3 { font-size: 20px !important; }
}

body.iw-content #main .page-breadcrumb,
body.iw-content #main .page-breadcrumb span { color: #46596c !important; }
body.iw-content #main .page-breadcrumb a { color: #1f668f !important; }
@media (min-width: 901px) {
  #policies.pdp-policies > div { display: flex; flex-direction: column; }
  #policies.pdp-policies > div > p:last-child { margin-top: auto; }
  .pdp-scenes .scene-card h3 { min-height: 2.7em; }
}

/* The offer is one flowing sentence; each segment wraps only after its dot. */
body main .g-save { display: block; width: fit-content; max-width: 100%; white-space: normal; }
body main .g-save .v15-promo-part { display: inline-block; white-space: pre; }
@media (max-width: 900px) {
  #faqs.blk, #policies.pdp-policies, body #main #related { padding-block: 24px !important; }
}

/* The 1000px control-panel photo is never enlarged beyond 500px on screen. */
#highlights .f-img.panel:has(img[src*="official-007-icewave-zb13-02-display"]) {
  width: 100%; max-width: 500px; height: auto !important; aspect-ratio: 1 / 1 !important;
}
#highlights .f-img.panel img[src*="official-007-icewave-zb13-02-display"] {
  position: static; display: block; width: 100%; max-width: 500px; height: auto;
  object-fit: contain; transform: none !important;
}

@media (max-width: 430px) {
  /* Preserve the semantic table and expose all fields without horizontal scrolling. */
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll {
    overflow: visible; padding: 4px 14px;
  }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll table {
    min-width: 0; width: 100%; display: block;
  }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll :is(tbody, tr) { display: block; }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll tr { padding: 12px 0; border-top: 1px solid var(--line); }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll td {
    display: grid; grid-template-columns: minmax(100px, 38%) minmax(0, 1fr); gap: 8px;
    min-width: 0; padding: 4px 0 !important; border: 0; overflow-wrap: anywhere;
  }
  body.iw-content .table-scroll td::before { font-weight: 600; color: #33475b; }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll td:nth-child(1)::before { content: 'Recipe'; }
  body.iw-content[data-page="slushie-recipes"] .table-scroll td:nth-child(2)::before { content: 'Mode'; }
  body.iw-content[data-page="slushie-recipes"] .table-scroll td:nth-child(3)::before { content: 'Prep / freeze time'; }
  body.iw-content[data-page="slushie-recipes"] .table-scroll td:nth-child(4)::before { content: 'Sugar / flavor source'; }
  body.iw-content[data-page="snow-ice-recipes"] .table-scroll td:nth-child(2)::before { content: 'Flavor category'; }
  body.iw-content[data-page="snow-ice-recipes"] .table-scroll td:nth-child(3)::before { content: 'Base liquid profile'; }
  body.iw-content[data-page="snow-ice-recipes"] .table-scroll td:nth-child(4)::before { content: 'Signature toppings'; }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) #main .page-breadcrumb {
    flex-wrap: nowrap; min-width: 0;
  }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) #main .page-breadcrumb [aria-current="page"] {
    flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
  body main .g-save .v15-promo-part { display: block; white-space: normal; }
  body main .g-save .v15-promo-separator { display: none; }
}
@media (max-width: 430px) {
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) #main .page-breadcrumb > :not([aria-current="page"]) {
    flex: 0 0 auto; white-space: nowrap;
  }
  body.iw-content:is([data-page="slushie-recipes"], [data-page="snow-ice-recipes"]) .table-scroll caption {
    display: block; width: 100%; box-sizing: border-box;
  }
  body main .g-save {
    width: max-content; max-width: 100%; padding: 8px 12px; border-radius: 12px;
  }
}
