:root {
  color-scheme: light;
  --ink: #172e53;
  --blue: #173f93;
  --bright: #164ca6;
  --orange: #a64812;
  --apricot: #f4be8c;
  --cream: #fff9ef;
  --line: #f0e4d3;
  --muted: #536079;
  --white: #fffefa;
  font-family: 'Baloo 2', 'GoSmart Rounded', 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--cream); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, option, textarea, ::placeholder { font: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2777dc; outline-offset: 3px; }
.wrap { width: min(100% - 32px, 1152px); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 10; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 2; background: #fffefa; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; }
.header-actions { grid-column: 3; display: flex; justify-content: end; gap: 2px; }
.desktop-nav { grid-column: 2; }
.icon-button { display: inline-flex; flex: 0 0 auto; width: 42px; height: 42px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--blue); }
.icon-button:hover { background: #f0f4fd; }
.icon-button svg, .nav-link svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.buy-header { background: #fff0db; color: var(--orange); }
.buy-header span, .desktop-nav { display: none; }
.mobile-menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-block: 8px 14px; }
.mobile-menu .nav-link { justify-content: start; background: var(--cream); border-radius: 10px; padding: .6rem .8rem; }
.nav-link { display: flex; align-items: center; justify-content: center; gap: .4rem; background: transparent; border: 0; color: var(--muted); }
.nav-link strong { font-size: .9rem; color: inherit; }
.nav-link small { font-size: .7rem; color: inherit; }
.nav-link[aria-current] { color: var(--bright); }
.bottom-nav { position: fixed; inset: auto 0 0; z-index: 3; padding: 5px 6px calc(6px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fffefa; border-top: 1px solid var(--line); box-shadow: 0 -6px 22px #3d31080a; }
.bottom-nav .nav-link { min-height: 52px; flex-direction: column; gap: 0; border-radius: 12px; padding: 2px 0; white-space: nowrap; line-height: 1.17; }
.bottom-nav .nav-link strong { font-size: .73rem; margin-top: 3px; }
.bottom-nav .nav-link small { font-size: .62rem; }
.bottom-nav .nav-link[aria-current] { background: #eaf2ff; }
.site-footer { padding: 22px 0 calc(90px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .8rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 17px; }
main { min-height: 66vh; }
.hero { margin-top: 14px; overflow: hidden; border-radius: 18px; background: #ffefda; box-shadow: 0 6px 18px #855a1b13; }
.hero img { width: 100%; height: auto; }
.home-section { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 10px; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.22; }
h1 { font-size: clamp(1.75rem, 4.9vw, 2.8rem); color: var(--blue); }
h2 { font-size: clamp(1.22rem, 4.8vw, 1.78rem); color: var(--blue); }
h2 small { display: block; color: var(--muted); font-size: .68em; font-weight: 700; margin-top: 2px; }
.see-all { flex-shrink: 0; text-align: end; color: var(--bright); font-weight: 700; padding-block: 6px; font-size: .88rem; }
.see-all small { display: block; font-size: .75rem; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.series-card { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; transition: box-shadow .18s; }
.series-card:hover { box-shadow: 0 4px 13px #15397c29; }
.series-card img { width: 100%; height: auto; }

.featured-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 46%); gap: 10px; padding: 2px 2px 10px; margin-inline: -2px; overflow-x: auto; scroll-snap-type: x mandatory; }
.featured-grid > * { scroll-snap-align: start; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; min-width: 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: white; box-shadow: 0 4px 12px #59471b0a; }
.card > a { display: flex; flex: 1; flex-direction: column; }
.card > a:focus-visible { outline-offset: -3px; }
.card-visual { aspect-ratio: 1.24; background: #f7f3ea; display: grid; place-items: center; }
.card-visual img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.card-info { display: flex; flex-direction: column; align-items: start; gap: 5px; padding: .7rem; flex: 1; }
.card h3 { font-size: clamp(.95rem, 2.5vw, 1.12rem); }
.sku { font-size: .73rem; color: var(--bright); font-weight: 700; letter-spacing: .065em; }
.subtext, .card-note { font-size: .79rem; color: var(--muted); }
.card-note { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 3px; }
.price { color: var(--orange); font-size: 1.1rem; font-weight: 700; }
.card-cta { margin-top: auto; padding-top: .38rem; color: var(--bright); font-weight: 700; font-size: .8rem; }
.page-top, .detail-top { margin-block: 20px; }
.page-top > p { margin-top: 5px; color: var(--muted); }
.back { display: inline-block; margin: 17px 0 0; color: var(--bright); padding: .35rem 0; font-weight: 700; }
.category-tabs { display: flex; gap: 8px; overflow: auto; padding: 4px 4px 9px; margin: 0 -4px 12px; scrollbar-width: thin; }
.category-tabs a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: white; padding: .55rem .85rem; color: var(--blue); font-size: .91rem; }
.category-tabs [aria-current] { background: var(--blue); color: white; border-color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input, .filters select { min-width: 0; border: 1px solid #d2cbbf; border-radius: 12px; padding: .6rem .7rem; background: white; color: var(--ink); }
.filters input { flex: 1 1 165px; }
.filters select { flex: 0 1 auto; max-width: 100%; }
.results { color: var(--muted); margin: 10px 0; font-size: .9rem; }
.notice { padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.notice a { color: var(--bright); font-weight: 700; }
.detail-top { display: grid; gap: 20px; }
.detail-summary { display: grid; align-content: start; gap: .7rem; }
.detail-summary .price { font-size: 1.55rem; }
.detail-summary .en-name { color: var(--muted); font-size: 1.07rem; }
.detail-image { width: 100%; height: auto; aspect-ratio: 1.1; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 15px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 8px 3px 4px; }
.thumbs button { width: 58px; height: 54px; flex: 0 0 auto; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: white; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.thumbs button[aria-pressed=true] { border: 2px solid var(--bright); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border-radius: 12px; padding: .5rem .9rem; background: var(--bright); color: white; font-weight: 700; }
.button.secondary { background: #eaf2ff; color: var(--bright); }
.detail-body { display: grid; gap: 12px; }
.panel { padding: clamp(15px, 3vw, 28px); border: 1px solid var(--line); border-radius: 16px; background: white; }
.panel h2 { margin-bottom: .65rem; font-size: 1.18rem; }
.panel p + p { margin-top: .75rem; }
.panel ul, .panel ol { padding-inline-start: 1.4rem; margin: 0; }
.panel li + li { margin-top: .4rem; }
.panel details { padding: .65rem 0; border-top: 1px solid var(--line); }
.panel summary { cursor: pointer; font-weight: 700; }
.panel details p { padding-top: .4rem; }
.price-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); }
.price-list strong { white-space: nowrap; }
.dialog-badge { display: inline-flex; align-items: center; width: fit-content; padding: .25rem .65rem; border-radius: 12px; background: #fff0db; color: var(--orange); font-weight: 700; }
dialog { width: min(430px, 100% - 32px); border: 1px solid var(--line); border-radius: 18px; padding: 22px; color: var(--ink); }
dialog::backdrop { background: #172e5370; }
.close-dialog { float: right; }
dialog p { margin-top: 12px; }
@media (min-width: 768px) {
  .wrap { width: min(100% - 64px, 1152px); }
  .header-inner { min-height: 74px; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; }
  .menu-toggle, .mobile-menu, .bottom-nav { display: none !important; }
  .desktop-nav { display: flex; justify-content: center; gap: clamp(8px, 1.65vw, 22px); }
  .desktop-nav .nav-link { flex-direction: column; line-height: 1.1; padding: .45rem .1rem; }
  .desktop-nav .nav-link svg { display: none; }
  .buy-header { padding: 0 .55rem; width: auto; gap: 5px; font-size: .83rem; font-weight: 700; }
  .buy-header span { display: inline; }
  .hero { margin-top: 22px; border-radius: 24px; }
  .home-section { margin-top: 29px; }
  .series-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
  .series-card { border-radius: 15px; }
  .featured-grid { grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-flow: row; overflow: visible; }
  .featured-grid > :nth-child(n+5) { display: none; }
  .product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
  .site-footer { padding-bottom: 24px; }
  .detail-top { grid-template-columns: 1fr 1fr; align-items: start; gap: 30px; }
  .detail-image { max-height: 490px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 22px); }
  .header-inner { gap: 2px; }
  .header-actions { gap: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card .price small { display: block; color: var(--muted); font-size: .67rem; font-weight: 700; }

.header-inner { min-height: 48px; }

.featured-heading { width: 100%; max-width: 680px; margin: 0 auto 12px; position: relative; aspect-ratio: 4.2; }
.featured-heading h2 { position: absolute; inset: 0; overflow: hidden; }
.featured-heading h2 img { position: absolute; width: 100%; height: auto; top: -20%; clip-path: inset(0 28.4% 0 0); }
.featured-all { display: block; position: absolute; z-index: 1; left: 71.4%; top: 7%; width: 28.1%; height: 78%; overflow: hidden; border-radius: 999px; }
.featured-all-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.featured-all img { position: absolute; width: 355.872%; height: auto; max-width: none; left: -254.092%; top: -34.62%; pointer-events: none; }

.card-visual { aspect-ratio: 1; overflow: hidden; }
.card-visual img { object-fit: cover; }
.card-info { display: grid; grid-template-rows: auto 1.25em 2.5em 1.25em 1.35em auto; align-content: start; gap: 4px; }
.card-info h3, .card-en, .card-age { min-width: 0; overflow: hidden; }
.card-info h3 { font-size: clamp(.92rem, 3.55vw, 1.08rem); line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.card-en { font-size: .78rem; line-height: 1.2; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card-age { font-size: .78rem; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.card-info .price { color: #be4600; font-size: 1rem; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-cta {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 36px;
  width: 4.5rem;
  justify-self: center;
  margin-top: 3px;
  padding: 4px;
  line-height: 1.05;
  color: white;
  background: linear-gradient(150deg, #c94b00, #bd3500);
  border-radius: 9px;
  font-size: .9rem;
  font-weight: 700;
}
.compact-card .card-info {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
}
.compact-card h3 { color: var(--blue); }
.compact-card .card-en { color: var(--muted); }
.compact-card .card-info .price { margin-top: auto; padding-top: 2px; color: #853e1b; }
.compact-card .card-cta {
  align-self: center;
  max-width: 100%;
  margin-top: 0;
  color: #562c16;
  background: var(--apricot);
}
.brand-services { max-width: 960px; margin-top: clamp(12px, 3vw, 32px); }
.services-art { position: relative; }
.services-art img { width: 100%; height: auto; }
.service-card {
  position: absolute;
  left: var(--card-left);
  width: var(--card-width);
  top: 39%;
  height: 49%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 12%;
  cursor: pointer;
  touch-action: manipulation;
}
.service-card:nth-of-type(1) { --card-left: 4.8%; --card-width: 22.8%; }
.service-card:nth-of-type(2) { --card-left: 28%; --card-width: 21.5%; }
.service-card:nth-of-type(3) { --card-left: 50%; --card-width: 21.5%; }
button.service-card { --card-left: 72%; --card-width: 23%; }
.service-card:is(:active, .is-opening) { box-shadow: inset 0 0 0 2px #fff9ef; background: #ffffff26; }
.follow-links { display: grid; gap: 9px; }
.follow-links .button { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand img { width: clamp(36px, 8vw, 48px); height: auto; }
.footer-motto { display: grid; text-align: end; }
.interactive { transition: transform 150ms ease-out; touch-action: manipulation; }
@media (hover: hover) and (pointer: fine) {
  .interactive:hover, .interactive-parent:hover .interactive { transform: scale(1.05); }
}
.interactive:active, .interactive.is-pressed, .interactive-parent:active .interactive { transform: scale(.92); }
.interactive.is-opening { animation: series-bounce 280ms ease-out both; }
@keyframes series-bounce {
  0% { transform: scale(.92); }
  46% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .interactive, .interactive:hover, .interactive:active, .interactive.is-pressed, .interactive-parent:hover .interactive,
  .interactive-parent:active .interactive, .interactive.is-opening { transform: none; transition: none; animation: none; }
}
@media (width < 768px) {
  .bottom-nav .nav-link { min-height: 59px; background: #fffefa; }
  .bottom-nav .nav-link[aria-current] { background: #fff1ce; }
  .bottom-nav .nav-link strong { margin-top: 1px; }
  .bottom-nav .nav-link small { font-size: clamp(.52rem, 2.42vw, .64rem); }
  .nav-art { width: 40px; height: 33px; }
}
@media (min-width: 768px) {
  .header-inner { min-height: 56px; }
  .featured-grid > .card:last-child { display: flex; }
  .featured-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 30px) / 4); overflow-x: auto; }
}
@media (min-width: 1120px) {
  .featured-grid { grid-auto-columns: calc((100% - 40px) / 5); }
  .product-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

@media (width < 768px) {
  .home-page {
    --ink: #153c78;
    --blue: #153c78;
    --cream: #fffcf7;
    --warm-panel: #fff5e9;
    --soft-shadow: 0 3px 12px #5337170d;
  }
  .home-page .site-header, .home-page .bottom-nav { background: var(--cream); }
  .home-page .site-header { border-bottom: 0; }
  .home-page .header-inner { min-height: 50px; }
  .home-page .site-header .icon-button { color: var(--ink); background: transparent; }
  .home-page .wrap { width: min(100% - 24px, 600px); }
  .mobile-hero-window {
    aspect-ratio: 2;
    margin: 2px 0 0;
    border-radius: 16px;
    background: var(--warm-panel);
    touch-action: none; user-select: none;
  }
  .mobile-hero-window img { width: 100%; height: 100%; object-fit: contain; }
  .mobile-hero-dots { display: flex; justify-content: center; }
  .mobile-hero-dots button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 10px;
  }
  .mobile-hero-dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e8ded2;
  }
  .mobile-hero-dots button[aria-current]::before { background: #e49b68; }

  .mobile-resource-grid, .mobile-series .series-grid, .mobile-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 12px);
  }
  .resource-card, .mobile-series .series-card {
    display: grid;
    position: relative;
    place-items: center;
    overflow: hidden;
    border: 0;
    border-radius: 15px;
    padding: 0;
    background: transparent;
    color: var(--ink);
    touch-action: manipulation;
    transition: transform 160ms ease-out;
  }
  .resource-card:active, .mobile-series .series-card:active { transform: scale(.97); }
  .resource-card {
    aspect-ratio: 2 / 3;
    border-radius: 11% / 7.333%;
  }
  .resource-card > img {
    position: absolute;
    width: var(--resource-art-width);
    height: auto;
    max-width: none;
    left: 50%;
    top: 50%;
    transform: translate(var(--resource-art-x, -50%), var(--resource-art-y, -50%));
  }
  /* Align the visible frame of each Supabase thumbnail after measuring its alpha bounds. */
  .resource-materials { --resource-art-width: 107%; --resource-art-y: -50.24%; }
  .resource-scan { --resource-art-width: 107.9%; }
  .resource-printable {
    --resource-art-width: 109.4%;
    --resource-art-x: -49.64%;
    --resource-art-y: -50.87%;
  }

  .mobile-series { margin-top: 20px; }
  .mobile-series-sign { width: min(75%, 430px); aspect-ratio: 5.25; margin: 0 auto 8px; position: relative; overflow: hidden; }
  .mobile-series-sign img { position: absolute; width: 100%; height: auto; top: 50%; transform: translateY(-51%); }
  .mobile-series .series-card { aspect-ratio: 3 / 2; box-shadow: none; }
  /* Center each visible border in the same frame. The PNGs have different transparent margins. */
  .mobile-series .series-card img {
    position: absolute;
    width: var(--art-width, 106%);
    max-width: none;
    left: 50%;
    top: 50%;
    transform: translate(-50%, var(--art-y, -50%));
    pointer-events: none;
  }
  .mobile-series [data-series="life-skills"] { --art-width: 106%; --art-y: -50.8%; }
  .mobile-series [data-series="trilingual"] { --art-width: 106%; --art-y: -50.1%; }
  .mobile-series [data-series="chinese"] { --art-width: 102%; --art-y: -50.2%; }
  .mobile-series [data-series="english"] { --art-width: 106%; --art-y: -50.5%; }
  .mobile-series [data-series="malay"] { --art-width: 101.7%; --art-y: -50.7%; }
  .mobile-series [data-series="mathematics"] { --art-width: 106%; --art-y: -50.7%; }

  .home-page #popular { margin-top: 22px; scroll-margin-top: 12px; }
  .mobile-featured-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .mobile-featured-heading h2 { width: min(76%, 460px); }
  .mobile-featured-heading img { width: 100%; height: auto; }
  .mobile-view-all {
    flex: none;
    display: grid;
    align-items: center;
    min-height: 44px;
    padding-inline: 9px;
    border-radius: 10px;
    background: var(--warm-panel);
    font-size: .76rem;
    font-weight: 700;
  }
  .mobile-featured-loading {
    min-height: calc(min(100vw - 24px, 600px) * .66 + 248px);
    display: grid;
    place-items: start center;
    padding-top: 14px;
    color: var(--muted);
  }
  .home-page .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: 1fr;
    gap: clamp(6px, 1.9vw, 12px);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .home-page .featured-grid .card { display: flex; border-radius: 12px; box-shadow: var(--soft-shadow); }
  .home-page .featured-grid .card-visual img { object-fit: contain; }
  .home-page .featured-grid .card-info {
    padding: 6px clamp(4px, 1.35vw, 8px) 7px;
    gap: 3px;
  }
  .home-page .featured-grid h3 { font-size: clamp(.72rem, 3.05vw, .86rem); }
  .home-page .featured-grid .card-en { font-size: clamp(.69rem, 2.8vw, .75rem); }
  .home-page .featured-grid .price { font-size: clamp(.71rem, 2.9vw, .83rem); }
  .home-page .featured-grid .card-cta { font-size: .76rem; }

  .mobile-story, .mobile-community { margin-top: 24px; }
  .mobile-story img { display: block; width: 100%; height: auto; border-radius: 18px; }
  .mobile-community h2 { font-size: 1.1rem; margin-bottom: 8px; }
  .mobile-service-grid a {
    display: grid;
    align-content: center;
    gap: 3px;
    min-height: 62px;
    padding: 5px;
    text-align: center;
    border-radius: 12px;
    background: var(--warm-panel);
    box-shadow: var(--soft-shadow);
  }
  .mobile-service-grid strong { font-size: clamp(.66rem, 2.9vw, .84rem); }
  .mobile-service-grid span { font-size: clamp(.58rem, 2.5vw, .72rem); }
  .mobile-social { position: relative; margin-top: 18px; }
  .mobile-social img { width: 100%; height: auto; }
  .mobile-social-link {
    position: absolute;
    top: 49%;
    bottom: 10.5%;
    width: 20%;
    left: var(--social-left);
    border-radius: 11%;
  }
  .mobile-social-link:nth-of-type(1) { --social-left: 7%; }
  .mobile-social-link:nth-of-type(2) { --social-left: 28.5%; }
  .mobile-social-link:nth-of-type(3) { --social-left: 50%; }
  .mobile-social-link:nth-of-type(4) { --social-left: 71.6%; }
  .mobile-social-link:active { background: #ffffff38; }
  .home-page .bottom-nav .nav-link[aria-current] { background: #fff1ce; }
}

.card-info .price { white-space: normal; overflow-wrap: anywhere; }
.catalog-hero, .catalog-back svg, .catalog-search svg { display: none; }

@media (width < 768px) {
  .catalog-page { background: #fffcf7; }
  .catalog-page main.wrap { width: min(100% - 24px, 600px); }
  .catalog-desktop-title, .catalog-back-home { display: none; }
  .catalog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0 0;
    padding: 7px 2px;
    color: #153c78;
    font-weight: 700;
  }
  .catalog-back svg, .catalog-search svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .catalog-hero {
    display: block;
    aspect-ratio: 3;
    margin: 0 0 3px;
  }
  .catalog-hero img { width: 100%; height: 100%; object-fit: contain; }
  .catalog-page .category-tabs {
    margin-bottom: 8px;
    scrollbar-width: none;
  }
  .catalog-page .category-tabs a { color: #153c78; font-weight: 700; }
  .catalog-page .category-tabs [aria-current] {
    color: #633b24;
    background: #fff1ce;
  }
  .catalog-search { position: relative; color: #43526a; }
  .catalog-search svg {
    position: absolute;
    inset-inline-start: 13px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
  }
  .catalog-search input { width: 100%; padding-inline-start: 39px; border-color: #dedbd5; }
  .catalog-page .results { margin: 9px 0; }
  .catalog-page .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-page .compact-card { border-radius: 14px; }
  .catalog-page .compact-card .card-info { padding: 8px; gap: 3px; }
  .catalog-page .card h3 {
    color: #153c78;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
  }
  .catalog-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 6px;
    margin-top: auto;
    padding-top: 4px;
  }
  .catalog-page .catalog-card-actions .price { margin: 0; padding: 0; font-size: .88rem; font-weight: 700; }
  .catalog-card-actions .card-cta { width: auto; min-width: 48px; min-height: 34px; padding-inline: 8px; font-size: .8rem; }
}

@media (width <= 375px) {
  .catalog-card-actions { flex-direction: column; align-items: stretch; }
  .catalog-card-actions .card-cta { align-self: end; }
}

@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/baloo-2-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Baloo 2';
  src: url('/assets/fonts/baloo-2-latin-ext.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --cream: #fffcf7;
  --blue: #153c78;
  --shop-paper: #fff5e9;
  --shop-selected: #fff1ce;
  font-weight: 700;
}
h1, h2, h3, .card-cta, .drawer-row, .category-tabs a { font-weight: 700; }
.card-cta, .price { font-family: inherit; }
.card-info .price { font-weight: 700; }
.card h3 {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.compact-card .card-visual img { object-fit: contain; }
.compact-card .card-cta { text-align: center; }
.catalog-page .category-tabs [aria-current] { color: #633b24; background: var(--shop-selected); }
.header-actions { align-items: center; min-width: max-content; }
.header-language { display: flex; }
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 2px;
  width: max-content;
}
.language-switcher button {
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 7px;
  min-width: 29px;
  min-height: 32px;
  padding: 1px 5px;
}
.language-switcher button[aria-pressed="true"] { background: var(--shop-selected); }
body:has(.shop-drawer[open]) { overflow: hidden; }
.shop-drawer {
  border: 0;
  border-radius: 0;
  color: var(--blue);
  background: var(--cream);
  position: fixed;
  inset: 0 auto 0 0;
  margin: 0;
  padding: 0;
  width: min(80vw, 370px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 8px 0 40px #25180929;
}
.shop-drawer[open] { animation: show-drawer 220ms ease-out; }
.shop-drawer::backdrop { background: #19162077; }
@keyframes show-drawer { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .shop-drawer[open] { animation: none; } }
.drawer-panel {
  min-height: 100%;
  padding: calc(16px + env(safe-area-inset-top)) 15px calc(18px + env(safe-area-inset-bottom));
}
.drawer-brand {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 12px;
}
.drawer-brand img { border-radius: 10px; }
.drawer-brand strong, .drawer-brand small { display: block; line-height: 1.18; }
.drawer-brand strong { font-size: 1.13rem; }
.drawer-brand small { font-size: .76rem; color: var(--muted); }
.drawer-close { width: 34px; height: 34px; }
.drawer-panel nav { margin-top: 12px; }
.drawer-row {
  display: grid;
  grid-template-columns: 18px 1fr 16px;
  place-items: center start;
  gap: 9px;
  width: 100%;
  min-height: 43px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  text-align: start;
  background: transparent;
  color: var(--blue);
  font-size: .97rem;
  cursor: pointer;
}
.drawer-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drawer-row svg:last-child { width: 13px; }
.drawer-row::-webkit-details-marker { display: none; }
.drawer-materials[open] summary svg:last-child { transform: rotate(90deg); }
.drawer-subnav { margin: 0 0 5px 24px; border-inline-start: 1px solid var(--line); }
.drawer-subnav a { display: block; border-radius: 7px; padding: 6px 9px; font-size: .9rem; line-height: 1.55; }
.drawer-panel [aria-current="page"] { background: var(--shop-selected); color: #633b24; }
.drawer-section { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 10px; }
.drawer-section h2 { font-size: .82rem; color: var(--muted); margin: 0 0 4px 7px; }
.drawer-social { display: flex; gap: 9px; padding: 5px 7px; }
.drawer-social a {
  display: block;
  width: 33px;
  height: 32px;
  border-radius: 9px;
  background-image: url('/assets/shop-social.webp');
  background-size: 132px 32px;
}
.drawer-social-0 { background-position-x: 0; }
.drawer-social-1 { background-position-x: -33px; }
.drawer-social-2 { background-position-x: -66px; }
.drawer-social-3 { background-position-x: -99px; }
.drawer-copyright { color: var(--muted); margin: 12px 7px 0; font-size: .8rem; }
@media (min-width: 768px) {
  .site-header .menu-toggle { display: inline-flex !important; justify-self: start; grid-area: 1 / 1; }
  .site-header .desktop-nav { grid-area: 1 / 2; }
  .site-header .header-actions { grid-area: 1 / 3; }
}
@media (width < 768px) {
  .bottom-nav .nav-link strong { font-size: clamp(.63rem, 2.65vw, .78rem); }
  .bottom-nav .nav-art { flex-shrink: 0; }
  .home-page .featured-grid .card-cta { width: auto; min-width: 4.5rem; padding-inline: 5px; }
  .catalog-card-actions .card-cta { min-width: 58px; }
}
.panel p:empty { display: none; }
@font-face {
  font-family: 'GoSmart Rounded';
  src: url('/assets/fonts/gosmart-rounded.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+2E80-2FDF, U+3000-303F, U+3400-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

.product-page .detail-top { margin: 8px 0 15px; gap: 15px; }
.product-page .detail-summary { gap: 5px; min-width: 0; }
.product-category {
  width: fit-content;
  color: var(--blue);
  background: var(--shop-paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .82rem;
  font-weight: 700;
}
.product-page .detail-summary h1 { font-size: clamp(1.35rem, 5vw, 2.55rem); }
.product-page .product-price { color: #79411f; font-weight: 700; }
.product-gallery { min-width: 0; }
.gallery-main { position: relative; }
.gallery-enlarge { display: block; width: 100%; padding: 0; border: 0; border-radius: 15px; touch-action: pan-y; background: none; }
.gallery-enlarge .detail-image { aspect-ratio: 1; height: auto; max-height: none; display: block; object-fit: contain; }
.gallery-arrow {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: #fffef8ef;
}
.gallery-arrow-prev { left: 7px; }
.gallery-arrow-prev svg { transform: rotate(180deg); }
.gallery-arrow-next { right: 7px; }
.gallery-count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: #fff;
  background: #15304bdf;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
  pointer-events: none;
}
.product-gallery .thumbs { scrollbar-width: thin; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.product-gallery .thumbs button { width: 52px; height: 52px; flex: 0 0 52px; scroll-snap-align: start; }
.product-gallery .thumbs img { object-fit: contain; }
:root:has(.gallery-zoom[open], .package-sheet[open]) { overflow: hidden; }
.gallery-zoom {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 50px 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #171820;
  color: #fff;
}
.gallery-zoom[open] { display: grid; place-items: center; }
.gallery-zoom-photo { width: 100%; height: 100%; max-height: calc(100dvh - 100px); object-fit: contain; touch-action: none; user-select: none; }
.gallery-zoom .gallery-zoom-close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 12px; color: #fff; background: #15304b; }
.gallery-zoom .gallery-count, .gallery-zoom .gallery-zoom-close { z-index: 2; }
.gallery-zoom .gallery-count { bottom: max(12px,env(safe-area-inset-bottom)); }
.package-purchase { display: grid; gap: 7px; }
.package-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--shop-paper);
  padding: 8px 12px;
  color: var(--blue);
  text-align: start;
}
.package-trigger strong, .package-current { display: block; }
.package-current { color: var(--muted); font-size: .9rem; }
.package-trigger svg { transform: rotate(90deg); }
.purchase-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.purchase-actions .button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 45px; text-align: center; color: #4c2e1a; padding: 6px; font-weight: 700; }
.purchase-actions .buy-button { background: var(--apricot); }
.purchase-actions .enquiry-button { background: #d6f1df; color: #155836; }
.purchase-actions .button svg { flex: 0 0 16px; }
.buyer-review-link { justify-self: start; padding-block: .25rem; color: var(--blue); font-size: .875rem; text-decoration: underline; text-underline-offset: .18em; }
.package-sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 540px);
  max-width: none;
  max-height: min(82dvh, 720px);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 19px 19px 0 0;
  background: var(--cream);
  color: var(--blue);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.package-sheet[open] { animation: package-rise 200ms ease-out; }
@keyframes package-rise { from {transform: translateY(100%)} to {transform: translateY(0)} }
@media (prefers-reduced-motion:reduce) { .package-sheet[open] { animation: none; } }
.package-inner { position: relative; padding: 14px 12px calc(13px + env(safe-area-inset-bottom)); }
.package-inner h2 { padding: 4px 40px 11px 0; }
.package-options { display: grid; gap: 7px; }
.package-row { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: white; min-width: 0; }
.package-row[data-selected] { background: #fff1ce; border-color: #dc9b64; }
.package-image-button { display: grid; place-items: center; width: 60px; height: 60px; border: 0; padding: 3px; background: transparent; flex-shrink: 0; align-self: center; }
.package-image-button img { width: 54px; height: 54px; border-radius: 8px; object-fit: contain; }
.package-choice { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 8px; background: transparent; border: 0; border-radius: inherit; color: var(--blue); text-align: start; width: 100%; min-height: 62px; padding: 7px 10px; }
.package-choice-copy small { display: block; color: var(--muted); margin-top: 2px; font-weight: 700; }
.package-price { font-weight: 700; color: #79411f; white-space: nowrap; }
.package-check { display: none; grid-column: 2; color: #875230; justify-self: end; }
.package-row[data-selected] .package-check { display: inline; }
.gallery-arrow svg, .package-trigger svg, .purchase-actions svg, .product-accordion summary > svg {
  display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.learning-highlights { margin: 18px auto 12px; max-width: 670px; }
.learning-highlights h2 { margin: 0 0 8px; font-size: clamp(1.05rem,4.7vw,1.55rem); }
.learning-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.learning-tile {
  display: grid; justify-items: center; align-content: start; gap: 2px; text-align: center;
  padding: 7px 3px; border: 1px solid #f0e5d8; border-radius: 14px; background: var(--shop-paper); color: var(--blue);
  font-size: clamp(.77rem,3.5vw,1rem); line-height: 1.25;
}
.learning-icon { display: block; width: min(100%,64px); aspect-ratio: 1; background-size: 500% 400%; background-repeat: no-repeat; }
.detail-scan { display: block; max-width: 575px; margin: 13px auto; border-radius: 14px; }
.detail-scan img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.product-accordions { max-width: 760px; margin: 14px auto; display: grid; gap: 7px; }
.product-accordion { background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--blue); }
.product-accordion > summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 9px; cursor: pointer; font-weight: 700; }
.product-accordion summary::-webkit-details-marker { display: none; }
.product-accordion[open] > summary svg:last-child { transform: rotate(90deg); }
.product-accordion-content { padding: 3px 13px 14px; color: var(--ink); }
.product-accordion-content p:empty { display: none; }
.product-accordion-content p, .product-accordion-content li { white-space: pre-line; }
.product-accordion-content p + p, .product-accordion-content h3, .product-faq, .package-breakdown { margin-top: 6px; }
.package-breakdown small { display: block; color: var(--muted); }
.product-faq > summary { cursor: pointer; font-weight: 700; }
.related-products { margin-top: 14px; }
.related-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 14px)/3); gap: 7px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 0 6px; }
.related-rail .card { scroll-snap-align: start; }
.related-rail .card-info { padding: 5px; gap: 3px; }
.related-rail .card h3 { font-size: .91rem; }
.related-rail .card-info .price { font-size: .84rem; }
.related-rail .card-cta { min-width: 0; }
@media (width < 768px) {
  .product-page main.wrap { width: min(100% - 24px, 600px); }
  .product-page .related-rail .card h3 { font-size: clamp(.78rem,3.7vw,.92rem); }
}

.detail-scan-compact { display: none; }
.purchase-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purchase-actions:not(:has(.buy-button)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (width < 768px) {
  .product-page main { font-size: .9rem; line-height: 1.35; }
  .product-page .detail-top { margin: 5px 0 10px; gap: 9px; }
  .product-page .product-category { display: none; }
  .detail-name-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px; }
  .product-page .detail-name-price h1 { margin: 0; font-size: clamp(1rem, 4vw, 1.2rem); line-height: 1.25; overflow-wrap: anywhere; }
  .product-page .detail-name-price .product-price { margin: 0; font-size: clamp(.88rem, 3.6vw, 1.12rem); white-space: nowrap; }
  .gallery-enlarge .detail-image { max-height: min(76vw, 38svh); }
  .product-gallery .thumbs button { width: 44px; height: 44px; flex: 0 0 44px; }
  .package-purchase { gap: 5px; }
  .package-trigger { padding: 5px 8px; min-height: 44px; }
  .package-current, .package-purchase .subtext { font-size: .75rem; }
  .purchase-actions { gap: 4px; margin-block: 0; }
  .purchase-actions .button, .purchase-actions .v16-action {
    min-height: 44px; min-width: 0; gap: 3px; padding: 3px 2px;
    font-size: clamp(.7rem, 2.95vw, .83rem); line-height: 1.15; overflow-wrap: anywhere;
  }
  .purchase-actions .button svg { flex: 0 0 12px; width: 12px; height: 12px; }
  .purchase-actions .v16-action .wish-heart { font-size: .9rem; }
  .learning-highlights { margin: 11px auto 7px; }
  .learning-highlights h2, .related-products h2 { margin-bottom: 5px; font-size: 1rem; }
  .learning-highlights .learning-tile { padding: 4px 2px; font-size: .75rem; }
  .learning-highlights .learning-icon { width: min(100%, 40px); }
  .detail-scan { margin: 7px auto; }
  .detail-scan img { display: none; }
  .detail-scan-compact {
    display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center;
    min-height: 44px; padding: 4px 9px; color: var(--blue); background: #eef6ff;
    border: 1px solid #d4e3f7; border-radius: 10px; font-weight: 700;
  }
  .detail-scan-compact svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; }
  .product-accordions { margin: 8px auto; gap: 4px; }
  .product-accordion > summary { min-height: 44px; padding: 5px 8px; }
  .product-accordion-content { padding: 2px 9px 8px; }
  .product-page .related-products { margin-top: 8px; }
  .product-page .related-rail .card h3, .product-page .related-rail .card .price { font-size: .76rem; }
}

.order-centre { max-width: 54rem; margin: 1rem auto 3rem; }
.order-centre h2 { font-size: 1.08rem; overflow-wrap: anywhere; }
.order-centre select { max-width: 100%; }
.order-centre [role="status"]:empty { display: none; }
.order-centre-result { display: grid; gap: .8rem; }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .85rem; }
.order-list { display: grid; gap: .65rem; }
.order-card, .order-printable {
  padding: .8rem 1rem; border-radius: .9rem; border: 1px solid #e5d7bf; background: #fffcf5;
}
.order-card p, .order-card h2 { margin: .3rem 0; }
.order-fields { display: grid; grid-template-columns: minmax(7rem, .8fr) minmax(0, 2fr); gap: .35rem .75rem; }
.order-fields dd { margin: 0; overflow-wrap: anywhere; }
.order-lines { margin: .5rem 0; padding: 0; list-style: none; }
.order-lines li { display: flex; align-items: center; gap: .45rem; padding-block: .3rem; }
.order-lines li > span:first-of-type { flex: 1; overflow-wrap: anywhere; }
.order-lines li > span:last-of-type { font-size: .82rem; }
.order-lines small { display: block; }
.order-lines img { object-fit: contain; border-radius: .4rem; }
@media print {
  body:has(.order-printable) > :not(main),
  body:has(.order-printable) main > :not(.order-centre),
  .order-centre > :not(.order-centre-result),
  .order-centre-result > :not(.order-printable) { display: none !important; }
  .order-centre, .order-printable { margin: 0; border: 0; background: white; }
}
.shop-purchase-flow .bottom-nav, .shop-purchase-flow .site-footer { display: none; }
.shop-purchase-flow .cart-fixed { bottom: 0; }
.shop-purchase-flow .cart-item { padding-block: .38rem; gap: .48rem; }
.shop-purchase-flow .cart-item-photo { width: 59px; min-width: 59px; }
.shop-purchase-flow .cart-item-copy { row-gap: .22rem; }
.shop-purchase-flow .cart-line-variant { font-size: .79rem; }
.cart-delivery-promo { display: block; padding-inline: .5rem; font-size: .76rem; }
.checkout-page { max-width: 640px; margin: .45rem auto 6.2rem; }
.checkout-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .3rem .55rem; }
.checkout-heading h1 { margin: 0; font-size: 1.24rem; }
.checkout-heading p, .checkout-method { margin: .2rem 0; }
.checkout-form { display: grid; gap: .45rem; font-size: .85rem; }
.checkout-form label { min-width: 0; }
.checkout-modes { display: flex; align-items: center; gap: .4rem; margin: .3rem 0; }
.checkout-modes .button { padding: .35rem .65rem; min-height: 38px; }
.checkout-modes [aria-pressed='true'] { color: #122751; border: 1px solid #ed8c40; background: #fff1dc; }
.checkout-fields, .checkout-recipient { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .5rem; }
.checkout-fields label, .checkout-recipient label { display: grid; gap: .1rem; }
.checkout-fields [hidden], .checkout-recipient[hidden] { display: none; }
.checkout-wide { grid-column: 1 / -1; }
.checkout-form input:not([type='checkbox']), .checkout-form select { box-sizing: border-box; width: 100%; min-height: 40px;
  border: 1px solid #e3d4be; border-radius: .5rem; padding: .34rem .5rem; background: #fffdfa; font-size: 16px; color: inherit; }
.checkout-referral { display: flex; gap: .45rem; align-items: center; }
.checkout-referral input { flex: 1; min-width: 0; }
.checkout-extras { padding: .35rem .4rem; border-block: 1px solid #edded0; }
.checkout-totals { display: grid; grid-template-columns: 1fr auto; gap: .12rem .65rem; margin: 0; }
.checkout-totals dd { margin: 0; text-align: right; }
.checkout-pay { position: fixed; z-index: 5; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center;
  gap: .6rem; padding: .6rem max(1rem, calc((100vw - 640px) / 2)) calc(.6rem + env(safe-area-inset-bottom));
  background: #fff9ef; border-top: 1px solid #e8d8c4; }
.checkout-pay strong { font-size: 1.16rem; }
.checkout-form > [aria-live]:empty { display: none; }
.checkout-rates table { width: 100%; border-collapse: collapse; font-size: .83rem; }
.checkout-rates th, .checkout-rates td { padding: .3rem .22rem; border-bottom: 1px solid #edded0; text-align: left; }
.package-inner textarea { width: 100%; box-sizing: border-box; }
