/* HANWEN | Product page v2. Based on the supplied Fashion theme.
   The selectors are limited to product detail and custom Hanwen blocks. */
@media (prefers-reduced-motion: reduce) {
  .hw-product-anchor-nav a { scroll-behavior: auto; }
}

/* --- Desktop: photo + editorial content on the left; sticky purchase card on the right. --- */
@media (min-width: 960px) {
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column {
    display: grid !important;
    grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
    grid-template-areas: "media buy" "longform buy";
    gap: 28px clamp(26px, 3.2vw, 52px);
    align-items: start;
    overflow: visible !important;
  }
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__media-group {
    grid-area: media;
    position: relative !important;
    inset-block-start: auto !important;
    min-width: 0;
    width: 100% !important;
    max-width: 100%;
    flex: none !important;
  }
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__info {
    grid-area: buy;
    align-self: start;
    position: sticky !important;
    top: 86px !important;
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    height: auto;
    max-height: calc(100dvh - 108px);
    overflow-y: auto;
    overflow-x: clip;
    scrollbar-width: thin;
    overscroll-behavior: contain;
    z-index: 4;
    padding: clamp(16px, 1.75vw, 26px);
    border: 1px solid rgba(77,61,48,.12);
    border-radius: 12px;
    background: rgb(var(--color-background, var(--color-page-background)));
    box-sizing: border-box;
  }
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__info::-webkit-scrollbar { width: 5px; }
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__info::-webkit-scrollbar-thumb { background: rgba(76,59,46,.24); border-radius: 6px; }
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .hw-product-longform {
    grid-area: longform;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
@media (min-width: 960px) and (max-height: 690px) {
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__info {
    top: 14px !important;
    max-height: calc(100dvh - 28px);
  }
}

.hw-product-short-summary { color: rgba(var(--color-text), .66); font-size: 14px; line-height: 1.75; margin: 0; overflow-wrap:anywhere; }
.hw-product-longform { display:block; min-width:0; scroll-margin-top:98px; border-top: 1px solid rgba(76,59,46,.12); }
.hw-product-anchor-nav {
  display: flex; gap: clamp(15px,2.3vw,34px); align-items:center;
  padding: 0 2px; margin: 0 0 27px;
  border-bottom: 1px solid rgba(76,59,46,.12);
  min-height: 52px; overflow-x:auto; scrollbar-width:none;
}
.hw-product-anchor-nav::-webkit-scrollbar { display:none; }
.hw-product-anchor-nav a {
  display: inline-flex; align-items:center; min-height: 52px; flex-shrink:0;
  border-bottom: 2px solid transparent; color: rgba(var(--color-text),.64);
  font-size: 14px; font-weight: 400; text-decoration:none; white-space:nowrap;
}
.hw-product-anchor-nav a:hover,.hw-product-anchor-nav a.hw-product-anchor-nav__active {
  color: rgba(var(--color-text)); border-bottom-color: #49382c;
}
.hw-product-anchor-nav a[hidden] { display:none !important; }
.hw-product-longform__body,.hw-product-longform__body > * { min-width:0; max-width:100%; }
.hw-product-content-section { scroll-margin-top: 78px; margin: 0 0 30px; padding: 0 0 29px; border-bottom: 1px solid rgba(76,59,46,.12); }
.hw-product-content-section__heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px 12px; margin:0 0 17px; }
.hw-product-content-section__heading h2 { font-weight:500; line-height:1.4; font-size:clamp(21px,2vw,26px); margin:0; }
.hw-product-content-section__heading span { font-size:12px; color:rgba(var(--color-text),.56); }
.hw-product-reviews__notice { background:rgba(122,103,80,.045); padding:28px 18px; color:rgba(var(--color-text),.58); text-align:center; margin:0; font-size:13px; line-height:1.7; }
.hw-product-story__body, .hw-product-story__body > *, .hw-product-story .product-description {min-width:0;max-width:100%;}
.hw-product-story .product-description { width:100% !important; padding:0 !important; text-align:left; }
.hw-product-story .product-description img,.hw-product-story .product-description video,.hw-product-story .product-description iframe {max-width:100%;height:auto;}
.hw-product-story .product-description table {display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;}
.hw-product-story .product-description p {line-height:1.85;}
.hw-product-story .product-description img {display:block; margin:14px auto;}
/* Hide the hand-written *legacy* spec panel only when a real metafield panel exists. */
.hw-product-longform:has(#hw-product-specs.has-values) .hw-product-story .hw-tea-specs {display:none !important;}

/* --- A single purchase & delivery guarantee entry --- */
.hw-assurance {width:100%;border-top:1px solid rgba(75,62,47,.15);border-bottom:1px solid rgba(75,62,47,.15);}
.hw-assurance__trigger {
  box-sizing:border-box; width:100%; display:flex; align-items:center; gap:11px;
  padding:15px 1px; border:0; background:transparent; text-align:left;
  font:inherit; color:rgba(var(--color-text)); cursor:pointer;
}
.hw-assurance__trigger:hover .hw-assurance__copy strong {text-decoration:underline;text-underline-offset:3px;}
.hw-assurance__trigger:focus-visible,.hw-specs-entry:focus-visible,.hw-product-specs__mobile-more:focus-visible {outline:2px solid #735941;outline-offset:3px;}
.hw-assurance__icon {width:24px;height:24px;display:flex;flex:none;color:#5a4d41;}
.hw-assurance__icon svg{height:24px;width:24px;}
.hw-assurance__copy {display:flex; flex:1; min-width:0; flex-direction:column; gap:2px;}
.hw-assurance__copy strong{font-size:14px;font-weight:600;line-height:1.45;}
.hw-assurance__copy small{font-size:12px;line-height:1.5;color:rgba(var(--color-text),.56);}
.hw-assurance__chevron{font-size:25px;line-height:1;font-weight:300;color:rgba(var(--color-text),.52);}

/* --- Metadata, automatically omitted when not filled by admin --- */
.hw-specs-entry {display:none;}
.hw-product-specs__highlights {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;background:rgba(118,111,100,.055);padding:15px 20px;border-radius:8px;margin-bottom:15px;}
.hw-product-specs__highlight {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:8px 0;min-width:0;}
.hw-product-specs__highlight strong {font-weight:600;font-size:15px;color:rgba(var(--color-text));overflow-wrap:anywhere;line-height:1.5;}
.hw-product-specs__highlight span{font-size:12px;color:rgba(var(--color-text),.58);line-height:1.5;}
.hw-product-specs__group {display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;padding:15px 0;border-bottom:1px solid rgba(73,54,42,.12);}
.hw-product-specs__group:last-child {border-bottom:0;}
.hw-product-specs__group h3 {font-weight:600;font-size:14px;line-height:1.5;margin:9px 0 0;white-space:nowrap;}
.hw-product-specs__rows{min-width:0;}
.hw-product-specs__row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:11px;padding:9px 0;border-bottom:1px solid rgba(73,54,42,.07);line-height:1.65;}
.hw-product-specs__row:last-child{border:0;}
.hw-product-specs__label{font-size:12px;color:rgba(var(--color-text),.56);}
.hw-product-specs__value{font-size:13px;color:rgba(var(--color-text),.91);overflow-wrap:anywhere;white-space:pre-line;}
.hw-product-specs__mobile-more{display:none;}

/* --- Shared native-dialog top layer (Safari/iOS friendly: explicit height). --- */
.hw-hanwen-sheet {box-sizing:border-box;display:none;padding:0;border:0;background:#fff;color:#292724;box-shadow:0 15px 60px rgba(0,0,0,.19);font-family:inherit;}
.hw-hanwen-sheet[open] {
  position:fixed; display:flex; flex-direction:column;
  top:50%;left:50%;bottom:auto;right:auto;transform:translate(-50%,-50%);
  width:min(560px,calc(100vw - 36px));height:min(78dvh,720px);max-height:calc(100dvh - 36px);
  margin:0;border-radius:14px;overflow:hidden;
}
.hw-hanwen-sheet::backdrop {background:rgba(0,0,0,.45);}
.hw-hanwen-sheet__header {display:flex;align-items:center;justify-content:center;min-height:64px;position:relative;padding:14px 58px;flex:none;border-bottom:1px solid #eee;box-sizing:border-box;}
.hw-hanwen-sheet__header h2 {font-size:19px;font-weight:600;margin:0;line-height:1.4;color:#292724;}
.hw-hanwen-sheet__header button {position:absolute;top:13px;right:15px;width:38px;height:38px;border:0;border-radius:50%;background:#f3f3f3;color:#555;font-size:28px;font-weight:300;line-height:1;cursor:pointer;}
.hw-hanwen-sheet__scroll {flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:4px 22px 18px;box-sizing:border-box;}
.hw-hanwen-sheet__footer {flex:none;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #eee;}
.hw-hanwen-sheet__confirm {border:0;border-radius:6px;background:#352a22;color:#fff;width:100%;min-height:45px;font-size:15px;cursor:pointer;}
.hw-assurance-sheet__item {padding:18px 0;border-bottom:1px solid #ece8e4;}
.hw-assurance-sheet__item:last-child {border-bottom:0;}
.hw-assurance-sheet__item h3 {margin:0 0 9px;font-size:15px;font-weight:600;color:#302b27;}
.hw-assurance-sheet__item p {margin:0 0 8px;font-size:13px;line-height:1.85;color:#655f58;white-space:pre-line;}
.hw-assurance-sheet__item p:last-child {margin-bottom:0;}
.hw-assurance-sheet__item .hw-assurance-sheet__emphasis {color:#3c3127;font-weight:600;}
.hw-contact-sheet__hint{font-size:13px;color:#7b736d;margin:15px 0;line-height:1.65;}
.hw-contact-sheet__channel {display:flex;align-items:center;width:100%;min-height:76px;gap:12px;padding:12px 0;border:0;border-bottom:1px solid #eeece9;background:transparent;box-sizing:border-box;font:inherit;text-align:left;text-decoration:none;color:#2c2926;cursor:pointer;}
.hw-contact-sheet__avatar{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:none;background:transparent;border-radius:50%;}
.hw-contact-sheet__avatar svg{display:block;width:36px;height:36px;flex:none;}
.hw-contact-sheet__avatar--wechat{width:36px;height:36px;margin:0 3px;background:#07c160;color:#fff;}
.hw-contact-sheet__avatar--wechat svg{width:26px;height:23px;}
.hw-contact-sheet__channel > span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.hw-contact-sheet__channel strong {font-size:15px;font-weight:600;line-height:1.45;}
.hw-contact-sheet__channel small {font-size:12px;color:#777069;overflow-wrap:anywhere;}
.hw-contact-sheet__arrow {font-size:20px;color:#827c75;}
.hw-contact-sheet__copy-status {font-size:13px;color:#5a6b4b;min-height:21px;margin:12px 0 0;}
.hw-specs-modal__scroll .hw-product-specs__desktop-list{display:block !important;}
.hw-specs-modal__scroll .hw-product-specs__group {grid-template-columns:110px minmax(0,1fr);padding:14px 0;}
.hw-specs-modal__scroll .hw-product-specs__highlights{display:none;}
.hw-specs-modal__scroll .hw-product-specs__group h3{font-size:15px;}

.hw-product-mobile-buybar{display:none;}

/* --- Mobile: purchase detail stays clean; three roomy bottom sheets. --- */
@media (max-width: 959px) {
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column{display:flex!important;flex-direction:column!important;gap:19px!important;align-items:stretch!important;overflow:visible!important;}
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__media-group,
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__info,
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .hw-product-longform {max-width:100%;width:100%!important;min-width:0;max-height:none;overflow:visible;}
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__media-group{order:0;}
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .product-detail__info {order:1;position:static!important;top:auto!important;padding:0 0 12px;border:0;border-radius:0;background:transparent;}
  theme-product-detail[data-section-type="main-product"] .hw-product-two-column > .hw-product-longform {order:2;margin-top:2px;}
  .hw-product-short-summary{font-size:13px;}
  .hw-assurance__trigger{padding:13px 0;}
  .hw-specs-entry{display:flex;align-items:center;min-height:51px;gap:8px;width:100%;padding:12px 0;border:0;border-bottom:1px solid rgba(76,59,46,.12);background:transparent;cursor:pointer;text-align:left;color:rgba(var(--color-text));font:inherit;}
  .hw-specs-entry__label{font-size:13px;font-weight:600;white-space:nowrap;}
  .hw-specs-entry__preview{font-size:12px;min-width:0;flex:1;color:rgba(var(--color-text),.57);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .hw-specs-entry__arrow {font-size:23px;font-weight:300;line-height:1;color:rgba(var(--color-text),.5);}
  .hw-product-anchor-nav{margin-bottom:18px;gap:20px;min-height:46px;}
  .hw-product-anchor-nav a{min-height:45px;font-size:13px;}
  .hw-product-content-section{padding-bottom:23px;margin-bottom:25px;}
  .hw-product-content-section__heading h2{font-size:21px;}
  .hw-product-content-section__heading span{font-size:11px;}
  .hw-product-specs__highlights,.hw-product-specs__desktop-list{display:none;}
  .hw-product-specs__mobile-more{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:16px 13px;border:1px solid rgba(76,59,46,.15);border-radius:6px;background:rgba(120,111,99,.035);font:inherit;font-size:14px;text-align:left;cursor:pointer;}
  .hw-product-specs__mobile-more span{font-size:23px;line-height:1;color:#78716b;}
  /* This explicit 84dvh height fixes the previous iOS sheet that opened only a few centimeters high. */
  .hw-hanwen-sheet[open] {
    position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;
    margin:0!important;transform:none!important;width:100%!important;max-width:none!important;
    height:84vh!important;height:84dvh!important;max-height:92vh!important;max-height:92dvh!important;
    min-height:65vh;min-height:65dvh;
    border-radius:18px 18px 0 0!important;overflow:hidden;
  }
  .hw-hanwen-sheet__header{min-height:65px;padding:14px 60px;}
  .hw-hanwen-sheet__scroll {padding:3px 18px 16px;}
  .hw-hanwen-sheet__footer{padding:12px 18px calc(12px + env(safe-area-inset-bottom,0px));}
  .hw-specs-modal__scroll .hw-product-specs__group{display:block;padding:18px 0 14px;}
  .hw-specs-modal__scroll .hw-product-specs__group h3{margin:0 0 12px;font-size:15px;}
  .hw-specs-modal__scroll .hw-product-specs__rows{display:block;}
  .hw-specs-modal__scroll .hw-product-specs__row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:9px;padding:11px 0;}
  .hw-specs-modal__scroll .hw-product-specs__label,.hw-specs-modal__scroll .hw-product-specs__value{font-size:13px;}
  /* Main buy area retains the original LINE/WhatsApp, Messenger and WeChat buttons.
     Only the scroll-triggered mobile dock opens the contact chooser. */
  .hw-product-mobile-buybar.is-visible {
    display:flex;align-items:center;gap:9px;position:fixed;left:0;right:0;
    bottom:0;z-index:99999;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    border-top:1px solid rgba(72,56,45,.14);background:#fff;box-shadow:0 -5px 24px rgba(0,0,0,.08);box-sizing:border-box;
  }
  .hw-product-mobile-buybar.is-visible button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;min-height:44px;border-radius:4px;padding:9px 6px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;}
  .hw-product-mobile-buybar__add{background:#352a22;color:#fff;border:1px solid #352a22;}
  .hw-product-mobile-buybar__contact{background:#fff;color:#352a22;border:1px solid #352a22;}
  .hw-product-mobile-buybar__add:disabled{opacity:.48;cursor:not-allowed;}
  body:has(.hw-product-mobile-buybar.is-visible) {padding-bottom:calc(72px + env(safe-area-inset-bottom,0px));}
}
/* Keep the existing 5-button mobile navigation under the product shortcut bar. */
@media (max-width:959px) {
  body:has(.hw-mobile-tabbar) .hw-product-mobile-buybar.is-visible{bottom:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:10px;}
  body:has(.hw-mobile-tabbar):has(.hw-product-mobile-buybar.is-visible){padding-bottom:calc(142px + env(safe-area-inset-bottom,0px));}
  body.header-nav-drawer--lockscreen .hw-product-mobile-buybar{visibility:hidden;pointer-events:none;}
}
/* The native dialog occupies the browser top layer; leave fixed bars underneath. */
html.hw-hanwen-modal-open, body.hw-hanwen-modal-open {overflow:hidden!important;}
@media(max-width:959px) {
  body:has(.hw-hanwen-sheet[open]) .hw-product-mobile-buybar,
  body:has(.hw-hanwen-sheet[open]) .hw-mobile-tabbar {visibility:hidden;pointer-events:none;}
}

.hw-specs-entry[hidden],.hw-product-specs[hidden],.hw-tea-specs[hidden] {display:none!important;}
@media (max-width: 959px) {
  /* Four contact choices need a shorter, less empty panel than the long spec sheet. */
  .hw-hanwen-sheet.hw-contact-sheet[open] {
    height: 64vh !important;
    height: 64dvh !important;
    max-height: 80dvh !important;
    min-height: 0 !important;
  }
}

/* HANWEN V4 | Responsive chapter navigation. All selectors are product-page scoped. */
/* Desktop chapter links stay in view only while the long-form product material is read. */
@media (min-width: 960px) {
  theme-product-detail[data-section-type="main-product"] .hw-product-longform {
    overflow: visible !important;
  }
  /* Original navigation stays in the normal page flow. The fixed mirror is
     rendered directly under <body>, bypassing Fashion overflow ancestors. */
  theme-product-detail[data-section-type="main-product"] .hw-product-anchor-nav {
    position: static !important;
    top: auto !important;
    z-index: 12;
    background: rgb(var(--color-background, 255,255,255));
  }
  .hw-product-anchor-nav--floating:not([hidden]) {
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 80;
    display: flex;
    padding-inline: 12px;
    margin: 0 !important;
    box-sizing: border-box;
    background: rgb(var(--color-background, 255,255,255));
    border-top: 1px solid rgba(76,59,46,.08);
    box-shadow: 0 6px 20px rgba(38,30,24,.075);
  }
  theme-product-detail[data-section-type="main-product"] .hw-product-anchor-nav.is-stuck {
    box-shadow: 0 6px 20px rgba(38,30,24,.075);
  }
}

/* Preserve a clear landing position underneath the desktop sticky chapter nav. */
#hw-product-reviews, #hw-product-specs, #hw-product-story,
#hw-product-brewing, #hw-product-recommendations {
  scroll-margin-top: var(--hw-product-anchor-offset, 110px);
}
.hw-product-brewing__body {
  padding: 22px 24px;
  background: rgba(118,111,100,.055);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.95;
  color: rgba(var(--color-text), .92);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* Product directory is a mobile-only control. Desktop has the sticky chapter bar. */
.hw-product-directory-fab { display: none; }
.hw-product-directory-fab[hidden],
.hw-product-directory-sheet__list button[hidden] { display: none !important; }
.hw-product-directory-sheet__intro {
  margin: 16px 0 10px;
  color: #777069;
  font-size: 13px;
  line-height: 1.6;
}
.hw-product-directory-sheet__list { display: block; }
.hw-product-directory-sheet__list button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 68px;
  gap: 3px;
  padding: 12px 32px 12px 2px;
  border: 0;
  border-bottom: 1px solid #efebe7;
  background: transparent;
  color: #332a23;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.hw-product-directory-sheet__list button span {font-size: 15px;font-weight: 600;line-height: 1.45;}
.hw-product-directory-sheet__list button small {font-size: 12px;color: #827a72;line-height: 1.5;}
.hw-product-directory-sheet__list button b {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  font-size: 25px;
  font-weight: 300;
  color: #888078;
}
.hw-product-directory-sheet__top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 17px 0 0;
  border: 1px solid #e5e0da;
  border-radius: 6px;
  background: transparent;
  color: #625247;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.hw-product-directory-sheet button:focus-visible,
.hw-product-directory-fab:focus-visible {outline:2px solid #735941;outline-offset:3px;}

@media (max-width: 959px) {
  /* Mobile original five links are never sticky; keep the reading area free. */
  theme-product-detail[data-section-type="main-product"] .hw-product-anchor-nav {
    position: static !important;
    top: auto !important;
    z-index: auto;
  }
  .hw-product-brewing__body {padding:17px 16px;font-size:13px;line-height:1.9;}
  theme-product-detail[data-section-type="main-product"] .hw-product-directory-fab:not([hidden]) {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    top: 54%;
    right: max(12px,env(safe-area-inset-right,0px));
    z-index: 99990;
    width: 53px;
    height: 57px;
    border: 1px solid rgba(79,63,51,.18);
    border-radius: 13px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 4px 17px rgba(54,43,32,.15);
    color: #44362a;
    font: inherit;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(12px,0,0);
    transition: opacity .22s ease,transform .22s ease,visibility .22s;
    -webkit-tap-highlight-color: transparent;
  }
  .hw-product-directory-fab svg {display:block;width:19px;height:19px;}
  .hw-product-directory-fab span {font-size:11px;font-weight:600;line-height:1.35;}
  theme-product-detail[data-section-type="main-product"] .hw-product-directory-fab.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0,0,0);
  }
  /* This sheet has its own scroll; it covers the fixed buybar and mobile tabs. */
  .hw-hanwen-sheet.hw-product-directory-sheet[open] {
    height: 74vh !important;
    height: 74dvh !important;
    max-height: 86dvh !important;
    min-height: 0 !important;
  }
  .hw-product-directory-sheet__scroll {padding: 2px 20px calc(28px + env(safe-area-inset-bottom,0px));}
  body.header-nav-drawer--lockscreen .hw-product-directory-fab,
  body:has(.hw-hanwen-sheet[open]) .hw-product-directory-fab {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media(prefers-reduced-motion:reduce) {
  theme-product-detail[data-section-type="main-product"] .hw-product-directory-fab:not([hidden]) {
    transition: none !important;
  }
}

/* HANWEN | Current product trust facts, directly under the price. */
.hw-product-trust {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 18px;
  min-width:0;
  margin:0;
  color:rgba(var(--color-text),.86);
  font-size:13px;
  line-height:1.6;
}
.hw-product-trust[hidden],
.hw-product-trust__item[hidden],
.hw-product-trust__app-rating[hidden] {display:none!important;}
.hw-product-trust__item {display:inline-flex;align-items:center;gap:6px;min-width:0;white-space:nowrap;}
.hw-product-trust__item strong {font-weight:600;color:rgba(var(--color-text));}
.hw-product-trust__icon {width:17px;height:17px;flex:none;color:#756a60;}
.hw-product-trust__rating-icon {color:#c08b35;}
.hw-product-trust__rating-link {display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;}
.hw-product-trust__rating-link:hover {text-decoration:underline;text-underline-offset:3px;}
.hw-product-trust__rating-link:focus-visible {outline:2px solid #735941;outline-offset:3px;}
.hw-product-trust__app-rating {display:inline-flex;align-items:center;min-width:0;}
.hw-product-trust__app-rating:not(:has(*)) {display:none;}
@media(max-width:959px) {
  .hw-product-trust{font-size:12px;gap:7px 13px;}
  .hw-product-trust__icon{width:16px;height:16px;}
}
