/* From the design preview, preview/dropdown.css (tools/theme-sync.mjs). */
/* Dropdowns (dropdown.js, 14 October): the website's selects open a list in the track's design.
   The select keeps its look and its place; a transparent button over its label opens the list.
   The list drops down from the field, unfurling, its choices coming in one after another; a soft
   highlight glides between them; the page around dims a little, the field itself left clear.
   07 dresses the list as stationery (dashed paper, its offset shadow, the serif's italic); the plain
   look stays plain. (08's glasshouse sill, and 06 and 09's colours, went with them on 27 October.)
   With reduced motion it simply appears and goes. Shop all's menu in the header (header-nav.js)
   wears the same design, and so does Shop all's list of the collections in the menu drawer
   (site-pages.js, 17 November): each rule below also names their parts (.nav-shop-*,
   .site-menu-shop-*). */

/* ---- The field ------------------------------------------------------------------------------- */
.lv-dd-host{position:relative}
.lv-dd-wrap{position:relative;display:inline-block;max-width:100%}
.lv-dd-hit{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;appearance:none;-webkit-appearance:none}
.lv-dd-hit:disabled{cursor:not-allowed}
.lv-dd-hit:focus,.lv-dd-hit:focus-visible{outline:none}
.lv-dd-said{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* The select's own chevron gives way to one that turns as the list opens. */
select.lv-dd-native{pointer-events:none;background-image:none!important}
.lv-dd-chev{position:absolute;top:var(--lv-dd-mid,50%);right:calc(var(--lv-dd-end,0px) + var(--lv-dd-chev-x,13px));width:11px;height:8px;margin-top:-4px;color:var(--lv-dd-chev-color,#888);transition:transform .38s cubic-bezier(.16,1,.3,1)}
.lv-dd-chev svg{display:block;width:11px;height:8px}
.lv-dd-hit[aria-expanded="true"] .lv-dd-chev{transform:rotate(180deg)}
.lv-dd-hit:disabled .lv-dd-chev{opacity:.7}
.sort-field{--lv-dd-chev-x:14px}
.h7-choose{--lv-dd-chev-x:11px;--lv-dd-chev-color:var(--accent)}
/* Keyboard focus shows on the select, as before; open, its edge takes the track's colour. */
select.lv-dd-focus{outline:2px solid var(--accent);outline-offset:2px}
.h7-choose select.lv-dd-focus{border-style:solid}
select.lv-dd-open{border-color:var(--accent)}
select.lv-dd-native{transition:border-color .25s ease}

/* ---- The layer: the dim, and the list ------------------------------------------------------------ */
.lv-dd-layer{position:fixed;inset:0;z-index:700;pointer-events:none;--lv-dd-dim:rgba(40,30,32,.2);--lv-dd-ease:cubic-bezier(.16,1,.3,1)}
.lv-dd-scrim{position:absolute;inset:0;overflow:hidden;pointer-events:auto;opacity:0;transition:opacity .3s ease}
.lv-dd-layer.is-open .lv-dd-scrim{opacity:1}
.lv-dd-layer.is-closing .lv-dd-scrim{opacity:0;transition-duration:.26s}
/* The field stays clear: the dim is a shadow thrown around a window cut to its shape. */
.lv-dd-spot{position:absolute;box-shadow:0 0 0 200vmax var(--lv-dd-dim);pointer-events:none}

.lv-dd-list,.header .nav-shop-panel,#site-menu .site-menu-shop-list{position:absolute;display:flex;flex-direction:column;box-sizing:border-box;padding:8px;background:var(--surface,#fff);color:var(--ink,#2b2b2b);border:1px solid var(--line,#ddd);border-radius:16px;box-shadow:0 30px 60px -32px rgba(40,25,30,.55),0 4px 14px -8px rgba(40,25,30,.22);font:13px/1.35 'Lovento Sans',Arial,sans-serif;letter-spacing:0;text-transform:none;text-align:left;pointer-events:auto;
  clip-path:inset(0 0 100% 0);opacity:0;transform:translateY(-8px);transition:clip-path .5s var(--lv-dd-ease),opacity .22s ease,transform .5s var(--lv-dd-ease)}
.lv-dd-layer.is-open .lv-dd-list,.header .nav-shop.is-shown .nav-shop-panel,#site-menu .site-menu-shop.is-shown .site-menu-shop-list{clip-path:inset(-30px -30px -70px -30px);opacity:1;transform:none}
.lv-dd-layer.is-closing .lv-dd-list,.header .nav-shop.is-closing .nav-shop-panel,#site-menu .site-menu-shop.is-closing .site-menu-shop-list{clip-path:inset(0 0 100% 0);opacity:0;transform:translateY(-6px);transition-duration:.26s,.2s,.26s;transition-timing-function:cubic-bezier(.5,0,.75,0),ease,ease}
/* A list that opens upward (data-dd-up, dropdown.js) unfurls from its foot, over the field. */
.lv-dd-layer.is-up .lv-dd-list{clip-path:inset(100% 0 0 0);transform:translateY(8px)}
.lv-dd-layer.is-up.is-open .lv-dd-list{clip-path:inset(-70px -30px -30px -30px);transform:none}
.lv-dd-layer.is-up.is-closing .lv-dd-list{clip-path:inset(100% 0 0 0);transform:translateY(6px)}
.lv-dd-title,.header .nav-shop-title,#site-menu .site-menu-shop-title{flex:0 0 auto;margin:5px 12px 7px;font:600 9.5px/1.2 'Lovento Sans',Arial,sans-serif;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted,#888)}
.lv-dd-scroll,.header .nav-shop-scroll,#site-menu .site-menu-shop-scroll{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.lv-dd-scroll[data-more]{-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 34px),transparent);mask-image:linear-gradient(to bottom,#000 calc(100% - 34px),transparent)}
.lv-dd-group-name{margin:10px 12px 4px;font:600 9px/1.2 'Lovento Sans',Arial,sans-serif;letter-spacing:1.4px;text-transform:uppercase;color:var(--muted)}

.lv-dd-option,body[data-direction] .header nav a.nav-shop-option,#site-menu a.site-menu-shop-option{position:relative;z-index:1;display:flex;align-items:baseline;gap:12px;min-height:22px;padding:9px 36px 9px 12px;border-radius:10px;cursor:pointer;
  opacity:0;transform:translateY(-5px);transition:opacity .32s ease,transform .45s var(--lv-dd-ease),color .2s ease;transition-delay:calc(var(--i,0) * 22ms + 70ms),calc(var(--i,0) * 22ms + 70ms),0s}
/* Shop all's rows are links in the header's row of links, or among the menu's big italic lines: undo
   what those give them (their size, weight, spacing, capitals), before the tracks' own looks below. */
body[data-direction] .header nav a.nav-shop-option,#site-menu a.site-menu-shop-option{font:13px/1.35 'Lovento Sans',Arial,sans-serif;letter-spacing:0;text-transform:none;white-space:normal;color:inherit;text-decoration:none}
body[data-direction] .header nav a.nav-shop-option:focus-visible,#site-menu a.site-menu-shop-option:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
/* Over the story's hero the header's links turn white with a glow; the menu's stay ink (accent for
   the collection on view), as in every dropdown. */
body[data-direction] .header nav .nav-shop-panel a.nav-shop-option,body[data-direction] .header nav .nav-shop-panel a.nav-shop-option:hover,#site-menu .site-menu-shop-list a.site-menu-shop-option,#site-menu .site-menu-shop-list a.site-menu-shop-option:hover{color:var(--ink);text-shadow:none}
body[data-direction] .header nav .nav-shop-panel a.nav-shop-option[aria-current="page"],body[data-direction] .header nav .nav-shop-panel a.nav-shop-option[aria-current="page"]:hover,#site-menu .site-menu-shop-list a.site-menu-shop-option[aria-current="page"],#site-menu .site-menu-shop-list a.site-menu-shop-option[aria-current="page"]:hover{color:var(--accent)}
.lv-dd-layer.is-open .lv-dd-option,body[data-direction] .header nav .nav-shop.is-shown a.nav-shop-option,#site-menu .site-menu-shop.is-shown a.site-menu-shop-option{opacity:1;transform:none}
.lv-dd-layer.is-closing .lv-dd-option,body[data-direction] .header nav .nav-shop.is-closing a.nav-shop-option,#site-menu .site-menu-shop.is-closing a.site-menu-shop-option{transition-delay:0s}
.lv-dd-name,.header .nav-shop-name,#site-menu .site-menu-shop-name{min-width:0;overflow-wrap:anywhere}
.lv-dd-meta,.header .nav-shop-meta,#site-menu .site-menu-shop-meta{margin-left:auto;flex:0 0 auto;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.lv-dd-tick,.header .nav-shop-tick,#site-menu .site-menu-shop-tick{position:absolute;right:11px;top:50%;width:16px;height:16px;margin-top:-8px;color:var(--accent);opacity:0;transform:scale(.4) rotate(-12deg);transition:opacity .2s ease,transform .45s cubic-bezier(.34,1.56,.64,1)}
.lv-dd-tick svg,.header .nav-shop-tick svg,#site-menu .site-menu-shop-tick svg{display:block;width:16px;height:16px}
.lv-dd-option[aria-selected="true"],body[data-direction] .header nav a.nav-shop-option[aria-current="page"],#site-menu a.site-menu-shop-option[aria-current="page"]{color:var(--accent);font-weight:600}
.lv-dd-option[aria-selected="true"] .lv-dd-tick,.header .nav-shop-option[aria-current="page"] .nav-shop-tick,#site-menu .site-menu-shop-option[aria-current="page"] .site-menu-shop-tick{opacity:1;transform:none}
.lv-dd-option[aria-disabled="true"]{cursor:not-allowed;color:color-mix(in srgb,var(--muted) 70%,transparent)}
.lv-dd-option[aria-disabled="true"] .lv-dd-name{text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--muted) 45%,transparent)}
/* The highlight glides to the choice under the pointer or the keys. */
.lv-dd-glide,.header .nav-shop-glide,#site-menu .site-menu-shop-glide{position:absolute;left:0;right:0;top:0;height:var(--h,0px);transform:translateY(var(--y,0px));border-radius:10px;background:var(--soft,#f2f2f2);opacity:0;pointer-events:none;transition:transform .3s var(--lv-dd-ease),height .3s var(--lv-dd-ease),opacity .2s ease}
.lv-dd-glide.is-placing,.header .nav-shop-glide.is-placing,#site-menu .site-menu-shop-glide.is-placing{transition:none}
.lv-dd-list.has-active .lv-dd-glide,.header .nav-shop-panel.has-active .nav-shop-glide,#site-menu .site-menu-shop-list.has-active .site-menu-shop-glide{opacity:1}

/* ---- 07: stationery ---------------------------------------------------------------------------- */
body[data-direction="gardenpostcard"] .lv-dd-layer{--lv-dd-dim:rgba(74,36,42,.2)}
body[data-direction="gardenpostcard"] .lv-dd-list,body[data-direction="gardenpostcard"] .header .nav-shop-panel,body[data-direction="gardenpostcard"] #site-menu .site-menu-shop-list{padding:9px 8px 8px;border:1.5px dashed var(--petal-line);border-radius:8px;background-color:var(--surface);background-image:radial-gradient(var(--paper-dot,transparent) .6px,transparent .6px);background-size:7px 7px;box-shadow:5px 6px 0 var(--soft),0 30px 60px -34px rgba(90,36,46,.6)}
body[data-direction="gardenpostcard"] .lv-dd-title,body[data-direction="gardenpostcard"] .header .nav-shop-title,body[data-direction="gardenpostcard"] #site-menu .site-menu-shop-title{color:var(--accent)}
body[data-direction="gardenpostcard"] .lv-dd-option,body[data-direction="gardenpostcard"] .header nav a.nav-shop-option,body[data-direction="gardenpostcard"] #site-menu a.site-menu-shop-option{padding:7px 36px 7px 12px;border-radius:5px;font:italic 400 17px/1.25 var(--serif)}
body[data-direction="gardenpostcard"] .lv-dd-option[aria-selected="true"],body[data-direction="gardenpostcard"] .header nav a.nav-shop-option[aria-current="page"],body[data-direction="gardenpostcard"] #site-menu a.site-menu-shop-option[aria-current="page"]{font-weight:600}
body[data-direction="gardenpostcard"] .lv-dd-meta,body[data-direction="gardenpostcard"] .header .nav-shop-meta,body[data-direction="gardenpostcard"] #site-menu .site-menu-shop-meta{font:500 11px/1.25 'Lovento Sans',Arial,sans-serif;letter-spacing:.2px}
body[data-direction="gardenpostcard"] .lv-dd-glide,body[data-direction="gardenpostcard"] .header .nav-shop-glide,body[data-direction="gardenpostcard"] #site-menu .site-menu-shop-glide{border-radius:5px;background:var(--soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--petal-line) 40%,transparent)}

/* ---- The menu drawer's Shop all (site-pages.js, 17 November, Jin Hao) ---------------------------- */
/* The collections open beside the drawer. The chevron sits at its outer edge. */
#site-menu .site-menu-shop{position:relative;display:flex;flex-direction:column;align-items:flex-start}
#site-menu .site-menu-shop-toggle{position:relative;display:inline-flex;align-items:center;justify-content:space-between;width:100%;min-height:40px;margin:0;padding:3px 0;border:0;border-radius:0;background:none;color:var(--ink);font:italic 25px/1.35 var(--serif);letter-spacing:0;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;transition:color .2s ease}
#site-menu .site-menu-shop-toggle:hover,#site-menu .site-menu-shop-toggle[aria-expanded="true"]{color:var(--accent)}
#site-menu .site-menu-shop-toggle::after{content:'';flex:0 0 auto;width:12px;height:8px;margin:0 0 0 12px;background:currentColor;transform:rotate(-90deg);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition:transform .38s cubic-bezier(.16,1,.3,1)}
#site-menu .site-menu-shop-toggle[aria-expanded="true"]::after{transform:rotate(90deg)}
#site-menu .site-menu-shop.site-menu-shop-flyout{position:absolute;z-index:2;left:calc(100% + 8px);top:var(--site-menu-flyout-top,120px);width:var(--site-menu-flyout-width);pointer-events:none}
#site-menu .site-menu-shop-fold{align-self:stretch;height:auto;margin:0;padding:0;overflow:visible}
#site-menu .site-menu-shop-list{position:relative;width:100%;max-height:calc(100svh - 24px);margin:0;clip-path:inset(0 100% 0 0);transform:translateX(-8px);--lv-dd-ease:cubic-bezier(.4,0,.2,1)}
#site-menu .site-menu-shop.is-shown .site-menu-shop-list{clip-path:inset(-30px -30px -70px -30px);transform:none}
#site-menu .site-menu-shop.is-closing .site-menu-shop-list{clip-path:inset(0 100% 0 0);transform:translateX(-6px)}
#site-menu a.site-menu-shop-option{transform:translateX(-6px)}
#site-menu .site-menu-shop-list[hidden]{display:none}
#site-menu .site-menu-shop-rows{margin:0;padding:0;list-style:none}
#site-menu .site-menu-shop-rows li{display:block;margin:0;padding:0}
/* Narrow screens retain a clear Back control beside the collections panel. */
@media(max-width:547px){
  #site-menu.is-shop-open .site-menu-group>:not(.site-menu-shop){visibility:hidden;pointer-events:none}
  #site-menu.is-shop-open .site-menu-shop-toggle{justify-content:flex-end;font-size:0}
  #site-menu.is-shop-open .site-menu-shop-toggle::before{content:'Back';font:italic 22px/1.35 var(--serif)}
}

/* ---- Phones: the list as wide as the field; bigger targets --------------------------------------- */
@media (max-width:620px){
  .lv-dd-option,body[data-direction] .header nav a.nav-shop-option,#site-menu a.site-menu-shop-option{padding-top:11px;padding-bottom:11px}
  body[data-direction="gardenpostcard"] .lv-dd-option,body[data-direction="gardenpostcard"] .header nav a.nav-shop-option,body[data-direction="gardenpostcard"] #site-menu a.site-menu-shop-option{padding-top:9px;padding-bottom:9px}
}
@media (prefers-reduced-motion:reduce){
  .lv-dd-list,.lv-dd-option,.lv-dd-scrim,.lv-dd-glide,.lv-dd-chev,.lv-dd-tick,.header .nav-shop-panel,body[data-direction] .header nav a.nav-shop-option,.header .nav-shop-glide,.header .nav-shop-tick,#site-menu .site-menu-shop-list,#site-menu a.site-menu-shop-option,#site-menu .site-menu-shop-glide,#site-menu .site-menu-shop-tick,#site-menu .site-menu-shop-fold,#site-menu .site-menu-shop-toggle::after{transition:none!important}
  .lv-dd-list,.header .nav-shop-panel,#site-menu .site-menu-shop-list{clip-path:none;transform:none}
  .lv-dd-option,body[data-direction] .header nav a.nav-shop-option,#site-menu a.site-menu-shop-option{transform:none}
}
