
@media (max-width:759px) {
  :root {
    --rr-phone-purple:#6426a5;
    --rr-phone-purple-pressed:#4b197f;
    --rr-phone-ink:#54218a;
    --rr-phone-pink:#a41878;
    --rr-phone-lilac:#f2e8fc;
    --rr-phone-edge:#e6d7f2;
    --rr-phone-white:#fff;
    --rr-shop-header-open:calc(156px + env(safe-area-inset-top,0px));
    --rr-shop-header-compact:calc(50px + env(safe-area-inset-top,0px));
    --rr-shop-anchor-offset:var(--rr-shop-header-compact);
  }
  html:has(#phone-nav-search:focus-within) { --rr-shop-anchor-offset:var(--rr-shop-header-open); }
  html #nav.nav[data-rr-mobile-header] {
    position:fixed; inset:0 0 auto; top:0!important; margin:0; transform:none; z-index:56;
    width:100%!important; max-width:none; min-height:0;
    grid-template-rows:44px 44px 55px; grid-template-columns:minmax(0,1fr) auto; row-gap:4px; align-items:center;
    padding:calc(4px + env(safe-area-inset-top,0px)) 10px 0!important;
    background:#fff; border:1px solid #caa5e9; border-top:0; border-radius:0 0 16px 16px;
    box-shadow:0 5px 15px #4b267416;
    transition:grid-template-rows .18s var(--rr-motion), row-gap .18s var(--rr-motion), padding-top .18s var(--rr-motion)!important;
  }
  html #nav.nav[data-rr-mobile-header][data-rr-compact] {
    grid-template-rows:0px 0px 49px; row-gap:0;
    padding-top:env(safe-area-inset-top,0px)!important;
  }
  #nav[data-rr-mobile-header] > .brand { overflow:hidden; align-self:center; }
  #nav[data-rr-mobile-header][data-rr-compact] > :is(.brand,.rr-store-mode,.navright,#phone-nav-search) {
    visibility:hidden; pointer-events:none;
  }
  #nav[data-rr-mobile-header] #phone-nav-search { grid-row:2; }
  #nav[data-rr-mobile-header] .navright .iconbtn { min-width:40px; }
  #nav[data-rr-mobile-header] ~ #navtab { display:none; }
  #nav :is(.brand,.iconbtn) { color:var(--rr-phone-ink); }
  #nav .brand i { color:#843a97; }
  #nav #navlinks {
    inset-inline:0; top:calc(100% + 3px); background:#fff;
    border:1px solid var(--rr-phone-edge);
  }
  #nav[data-rr-mobile-header] #navlinks { max-height:calc(100dvh - var(--rr-shop-header-open) - 74px); }
  #rr-mobile-shortcuts {
    display:grid; grid-column:1/-1; grid-row:3; grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:center; align-self:stretch; margin-inline:-10px; padding:2px 5px;
    background:#f2e8fc; border-top:1px solid #e2cff4; border-radius:0 0 15px 15px;
  }
  #rr-mobile-shortcuts a {
    display:grid; align-content:center; justify-items:center; gap:3px; min-width:0; min-height:44px;
    padding:2px; border-radius:10px; color:var(--rr-phone-ink); text-decoration:none;
    font:700 clamp(10px,3.2vw,13px)/1.1 var(--sans,system-ui);
    transition:background-color .14s ease,color .14s ease,scale .14s ease;
  }
  #rr-mobile-shortcuts a:active { scale:.95; }
  #rr-mobile-shortcuts a[aria-current="page"] { background:var(--rr-phone-purple); color:#fff; }
  #rr-mobile-shortcuts a:focus-visible { outline:2px solid var(--rr-phone-purple); outline-offset:-2px; }
  #rr-mobile-shortcuts a[aria-current="page"]:focus-visible { outline-color:#fff; }
  #rr-mobile-shortcuts svg {
    width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.65;
    stroke-linecap:round; stroke-linejoin:round;
  }
  #nav[data-rr-compact] #rr-mobile-shortcuts svg { width:16px; height:16px; }
  #home.hero { padding-top:calc(var(--rr-shop-header-open) + 10px); }
  html[data-page="shop"] #collection { padding-top:calc(var(--rr-shop-header-open) + 14px); }
  #collection, #concierge, #custom-weaving, #rituals, #inspiration, #rugroom {
    scroll-margin-top:calc(var(--rr-shop-anchor-offset) + 10px);
  }
  #shop-phone-nav {
    background:color-mix(in srgb,var(--rr-phone-white) 94%,transparent);
    border-color:var(--rr-phone-edge);
    box-shadow:0 -4px 18px #51227d14;
  }
  #shop-phone-nav [aria-current="page"] {
    background:linear-gradient(125deg,var(--rr-phone-lilac),#faeaf6);
    color:var(--rr-phone-ink);
  }
  #shop-phone-nav #phone-bag-count, #nav #bagcount {
    background:var(--rr-phone-pink);
    color:var(--rr-phone-white);
  }
  #nav #phone-nav-search {
    background:var(--rr-phone-white);
    border-color:var(--rr-phone-edge);
  }
  #nav #phone-nav-search:focus-within { border-color:var(--rr-phone-purple); }
  #nav #phone-nav-search button:first-of-type { color:var(--rr-phone-purple); }
  #nav #account[data-in="1"] {
    background:var(--rr-phone-lilac);
    color:var(--rr-phone-ink);
  }
  #home #phone-feature-cta, .rr-shopper-prompt > button, #dialog .pd-add:not(:disabled),
  #dialog :is([data-act="checkout"],#rr-checkout button[type="submit"]),
  #rr-shopper :is(.sa-send,.sa-shop-primary,.sa-login,.sa-mic[aria-pressed="true"]) {
    background:var(--rr-phone-purple);
    color:var(--rr-phone-white);
    border-color:var(--rr-phone-purple);
    box-shadow:0 4px 12px #53198c27;
  }
  #home #phone-feature-cta:active, .rr-shopper-prompt > button:active, #dialog .pd-add:not(:disabled):active,
  #dialog :is([data-act="checkout"],#rr-checkout button[type="submit"]):active,
  #rr-shopper :is(.sa-send,.sa-shop-primary,.sa-login):active {
    background:var(--rr-phone-purple-pressed);
  }
  :is(html,html[data-page="shop"]) #collection #products .product .qc :is(.qadd,.qstep) {
    background:var(--rr-phone-purple);
    border-color:var(--rr-phone-purple);
    color:var(--rr-phone-white);
  }
  :is(html,html[data-page="shop"]) #collection #products .product .qadd:active {
    background:var(--rr-phone-purple-pressed);
  }
  :is(html,html[data-page="shop"]) #collection #shop-quick-categories button[aria-pressed="true"] {
    background:var(--rr-phone-lilac);
    border-color:var(--rr-phone-edge);
    color:var(--rr-phone-ink);
  }
  #home .rr-shopper-prompt, #concierge .rr-shopper-prompt { background:#fffdfb; }
  .rr-shopper-prompt label { color:var(--rr-phone-ink); }
  .rr-shopper-prompt:focus-within { outline-color:var(--rr-phone-purple); border-color:var(--rr-phone-edge); }
  #rr-shopper .sa-emblem, #rr-shopper .sa-avatar {
    background:var(--rr-phone-purple);
    color:var(--rr-phone-white);
  }
  #rr-shopper :is(.sa-user,.sa-bag-count) {
    background:var(--rr-phone-lilac);
    color:var(--rr-phone-ink);
  }
  .hp-vertical .hp-k[data-mobile-current] .im>* { animation-duration:.32s; }
  .hp-vertical .hp-k[data-mobile-current]::after { animation-duration:.58s; }
  .hp-horizontal .hp-k[data-mobile-current] .im>* { animation:rr-fresh-card-in .24s ease-out both; }
}
@keyframes rr-fresh-card-in { from {opacity:.6;scale:1.03} to {opacity:1;scale:1} }
@media (max-width:759px) and (prefers-reduced-motion:reduce) {
  html #nav.nav[data-rr-mobile-header], #rr-mobile-shortcuts a { transition:none!important; }
  .hp-horizontal .hp-k[data-mobile-current] .im>* { animation:none!important; }
}
