html.store-i18n-pending body,
html.store-app-pending body {
  visibility: hidden;
}
html.store-i18n-ready.store-app-ready body {
  visibility: visible;
}

@media (max-width: 768px) {
  html:not(.store-tabbar-ready) #mobileTabbar {
    visibility: hidden !important;
    pointer-events: none;
  }
}

:root {
  --store-bg: #ffffff;
  --store-surface: #ffffff;
  --store-text: #111827;
  --store-muted: #6b7280;
  --store-border: #e5e7eb;
  --store-accent: #ff9900;
  --store-accent-nav: #ffb800;
  --store-accent-search: #ffb800;
  --store-topbar: #000000;
  --store-radius: 8px;
  --store-max: 1200px;
  --tk-topbar-h: 54px;
  --tk-header-h: 84px;
  --tk-nav-h: 48px;
  --tk-search-h: 40px;
  --tk-fs-top: 12px;
  --tk-fs-search: 14px;
  --tk-fs-action: 12px;
  --tk-fs-nav: 15px;
  --tk-fs-promo: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  overflow-anchor: none;
  height: 100%;
}
body {
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--store-text);
  background: var(--store-bg);
}

/* 短内容页：页脚贴底 */
body:not(:has(> .auth-page)) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#storeFooterLinks,
#homeFooterLinks {
  margin-top: auto;
}

body:not(:has(#storeFooterLinks, #homeFooterLinks)) > footer.store-footer {
  margin-top: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.is-hidden { display: none !important; }

/* ═══ TK-Store 顶栏结构 ═══ */

.tk-header-placeholder { background: #fff; }

.tk-header-placeholder__topbar {
  height: 36px;
  background: #000;
}

.tk-header-placeholder__main {
  padding: 10px 16px;
  background: #fff;
}

.tk-header-placeholder__search {
  height: 40px;
  border-radius: 999px;
  background: #f7f8fa;
}

.tk-topbar {
  background: var(--store-topbar);
  color: #fff;
  font-size: var(--tk-fs-top);
  line-height: 1;
}

.tk-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tk-topbar-h);
}

.tk-topbar__left {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  font-size: var(--tk-fs-top);
}

#topUserEmail { margin: 0 4px 0 2px; }

#topLogoutLink { margin-left: 4px; }

.tk-topbar__left a { color: #fff; font-size: var(--tk-fs-top); }
.tk-topbar__left a:hover { text-decoration: underline; }

.tk-topbar__track {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tk-topbar__track i { font-size: var(--tk-fs-top); }

.tk-lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: var(--tk-fs-top);
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tk-lang__icon {
  font-size: 16px;
  color: #fff;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

.tk-lang i.fa-chevron-down { font-size: 9px; opacity: 0.85; }

.tk-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tk-topbar__select {
  position: relative;
}

.tk-topbar__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 160px;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 4px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.tk-topbar__menu.is-hidden {
  display: none;
}

.tk-topbar__menu-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: var(--tk-fs-top);
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.tk-topbar__menu-item:hover,
.tk-topbar__menu-item.is-active {
  background: rgba(255, 255, 255, 0.1);
}

/* 顶栏选择器：页面内弹层（手机端语言/货币） */
.tk-picker-sheet {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tk-picker-sheet.is-hidden {
  display: none;
}

.tk-picker-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tk-picker-sheet__panel {
  position: relative;
  width: 100%;
  max-height: min(72vh, 520px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  animation: tk-picker-slide-up 0.22s ease;
}

@keyframes tk-picker-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.tk-picker-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #f0f0f0;
}

.tk-picker-sheet__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.tk-picker-sheet__close {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.tk-picker-sheet__list {
  overflow-y: auto;
  padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.tk-picker-sheet__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.tk-picker-sheet__item:hover {
  background: #fafafa;
}

.tk-picker-sheet__item.is-active {
  color: #ff9900;
  font-weight: 600;
}

.tk-picker-sheet__item.is-active::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 14px;
  color: #ff9900;
}

body.tk-picker-open {
  overflow: hidden;
}

.tk-wrap {
  max-width: var(--store-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* 主搜索区 */
.tk-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.tk-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--tk-header-h);
  padding: 0 20px;
}

.tk-header__spacer { display: none; }

.tk-search {
  display: flex;
  align-items: center;
  width: min(720px, 58vw);
  height: var(--tk-search-h);
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.tk-search__type {
  flex-shrink: 0;
  width: 72px;
  height: 100%;
  border: 0;
  padding: 0 8px 0 14px;
  background: #fafafa;
  color: #333;
  font: inherit;
  font-size: var(--tk-fs-search);
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.4 1.4 6 6l4.6-4.6L12 2.8 6 8.8 0 2.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 6px;
}

.tk-search__divider {
  flex-shrink: 0;
  width: 1px;
  height: 22px;
  background: #ececec;
}

.tk-search__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 16px;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1;
}

.tk-search input {
  flex: 1;
  border: 0;
  padding: 0 12px;
  font-size: var(--tk-fs-search);
  outline: none;
  min-width: 0;
  color: #333;
  line-height: 1.4;
  height: 100%;
  background: transparent;
}

.tk-search input::placeholder { color: #bbb; font-size: var(--tk-fs-search); }

.tk-search button {
  align-self: stretch;
  border: 0;
  background: var(--store-accent-search);
  color: #fff;
  font-size: var(--tk-fs-search);
  font-weight: 500;
  padding: 0 28px;
  cursor: pointer;
  white-space: nowrap;
}

.tk-search button:hover { background: #f0ad00; }

.tk-actions {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.tk-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: var(--tk-fs-action);
  color: #333;
  min-width: 42px;
  line-height: 1.2;
}

.tk-action i { font-size: 20px; color: #222; line-height: 1; }
.tk-action:hover { color: var(--store-accent-nav); }
.tk-action:hover i { color: var(--store-accent-nav); }

.tk-action__icon {
  position: relative;
  display: inline-flex;
  line-height: 1;
}

.tk-cart-badge {
  position: absolute;
  top: -7px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

/* 导航 */
.tk-nav {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.tk-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--tk-nav-h);
  gap: 16px;
}

.tk-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.tk-nav__links a {
  font-size: var(--tk-fs-nav);
  color: #000;
  font-weight: 700;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.tk-nav__links a:hover { color: #000; }

.tk-nav__links a.is-active {
  color: #000;
  font-weight: 700;
}

.tk-nav__promo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--tk-fs-promo);
  color: #666;
  white-space: nowrap;
  line-height: 1;
}

.tk-nav__promo i { color: var(--store-accent-nav); font-size: 13px; }
.tk-nav__promo strong { color: #666; font-weight: 600; }

/* 内页通用容器 */
.store-main {
  max-width: var(--store-max);
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.store-main--wide {
  max-width: 1500px;
  padding-left: 12px;
  padding-right: 12px;
}

.store-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--store-muted);
  background: var(--store-surface);
  border-radius: var(--store-radius);
  border: 1px dashed var(--store-border);
}

/* 旧版 product-grid（内页复用） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--store-surface);
  border-radius: var(--store-radius);
  overflow: hidden;
  border: 1px solid var(--store-border);
}

.product-card__img { aspect-ratio: 1; background: #f8fafc; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 12px 14px 16px; }
.product-card__title { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.product-card__price { color: #111; font-size: 16px; font-weight: 700; }
.product-card__stock { color: var(--store-muted); font-size: 12px; }
.product-card__meta { display: flex; justify-content: space-between; align-items: center; }

.store-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 0;
  flex-shrink: 0;
}

.store-footer__inner {
  max-width: var(--store-max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-footer__links { display: flex; gap: 16px; flex-wrap: wrap; }
.store-footer__links a:hover { color: #fff; }

/* 底部链接区（首页 + 内页共用） */
.tk-home-footer-links {
  padding: 8px 0 48px;
  background: #fafafa;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.tk-home-footer-links .tk-wrap {
  max-width: 1500px;
}

.tk-home-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(120px, 1fr));
  gap: 48px 32px;
  align-items: start;
}

.tk-home-footer-subscribe__lead {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.tk-home-footer-subscribe {
  display: flex;
  align-items: stretch;
  max-width: 360px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.tk-home-footer-subscribe input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  font-size: 14px;
  color: #333;
  background: transparent;
}

.tk-home-footer-subscribe input::placeholder { color: #aaa; }
.tk-home-footer-subscribe input:focus { outline: none; }

.tk-home-footer-subscribe button {
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tk-home-footer-subscribe button:hover { background: #333; }

.tk-home-footer-col__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.tk-home-footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tk-home-footer-col__links a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}

.tk-home-footer-col__links a:hover { color: #111; }

.tk-home-footer-col--side { padding-top: 38px; }

@media (max-width: 900px) {
  .tk-home-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tk-home-footer-subscribe { max-width: none; }

  .tk-home-footer-col--side { padding-top: 0; }
}

/* 商品详情 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--store-surface);
  border-radius: var(--store-radius);
  padding: 24px;
  border: 1px solid var(--store-border);
}

.product-detail__gallery { aspect-ratio: 1; background: #f8fafc; border-radius: var(--store-radius); overflow: hidden; }
.product-detail__gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__title { margin: 0 0 12px; font-size: 28px; line-height: 1.3; }
.product-detail__price { font-size: 32px; font-weight: 800; color: #111; margin-bottom: 16px; }
.product-detail__price-old { margin: -8px 0 16px; color: var(--store-muted); text-decoration: line-through; }
.product-detail__shop { color: var(--store-muted); margin-bottom: 12px; }
.product-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.product-detail__qty { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-detail__qty-label { font-size: 14px; font-weight: 600; color: #374151; min-width: 36px; }
.product-detail__qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.product-detail__qty-control button {
  width: 36px;
  border: none;
  background: #f8fafc;
  color: #111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.product-detail__qty-control button:hover:not(:disabled) { background: #f1f5f9; }
.product-detail__qty-control button:disabled { opacity: 0.45; cursor: not-allowed; }
.product-detail__qty-control input {
  width: 52px;
  border: none;
  border-left: 1px solid var(--store-border);
  border-right: 1px solid var(--store-border);
  text-align: center;
  font-size: 14px;
  padding: 8px 4px;
  -moz-appearance: textfield;
}
.product-detail__qty-control input::-webkit-outer-spin-button,
.product-detail__qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.product-detail__buy { margin-bottom: 8px; }
.product-detail__buy .btn--block { padding: 14px 20px; font-size: 16px; font-weight: 700; }
.product-detail__badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.product-detail__badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: #fff4dd; color: #9a6700; font-size: 13px; font-weight: 600; }
.product-detail__section { background: #fff; border: 1px solid var(--store-border); border-radius: var(--store-radius); padding: 24px; }
.product-detail__section-title { margin: 0 0 12px; font-size: 16px; }
.product-detail__sku { margin-bottom: 20px; }
.product-detail__sku-list { display: flex; flex-wrap: wrap; gap: 10px; }
.product-detail__sku-pill { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--store-border); background: #fff; color: #374151; font-size: 13px; }
.product-detail__content { color: #374151; line-height: 1.8; }
.product-detail__content img { max-width: 100%; height: auto; border-radius: 12px; }
.product-detail__reviews { display: grid; gap: 16px; }
.product-detail__review-summary { color: var(--store-muted); font-size: 14px; }
.product-detail__review-item { border: 1px solid var(--store-border); border-radius: 16px; padding: 16px; background: #fafafa; }
.product-detail__review-head { font-weight: 700; color: #111; margin-bottom: 6px; }
.product-detail__review-rating { margin: 0 0 8px; color: #9a6700; font-size: 14px; }
.product-detail__review-body { margin: 0; color: #4b5563; line-height: 1.7; }
.product-detail__review-empty { margin: 0; color: var(--store-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn--primary { background: var(--store-accent-search); color: #111; }
.btn--ghost { background: #fff; border-color: var(--store-border); }
.btn--block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }

.btn i + .btn__label {
  margin-left: 6px;
}

.section { margin-top: 28px; }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section__title { margin: 0; font-size: 22px; font-weight: 700; }

/* 登录注册 */
.auth-locale {
  position: fixed;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 220;
}
.auth-locale__wrap {
  position: relative;
}
.auth-locale__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.auth-locale__btn:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}
.auth-locale__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: min(220px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 80px));
  overflow: auto;
  background: #fff;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 230;
}
.auth-locale__menu.is-hidden {
  display: none !important;
}
.auth-locale__menu-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.auth-locale__menu-item:hover,
.auth-locale__menu-item.is-active {
  background: #fff7ed;
  color: #c2410c;
}
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-hero { background: linear-gradient(135deg, #0f0f0f, #1f2937); color: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-hero h1 { font-size: 36px; margin: 0 0 12px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { margin: 0 0 8px; font-size: 24px; }
.auth-card .sub { color: var(--store-muted); margin-bottom: 16px; }
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}
.auth-tabs__btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--store-muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.auth-tabs__btn.is-active {
  background: #fff;
  color: var(--store-accent-search, #ff9900);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--store-accent-search, #ff9900);
}
.auth-fields[hidden] { display: none !important; }
.phone-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.phone-row__code {
  flex: 0 0 auto;
  min-width: 108px;
  max-width: 42%;
  padding: 11px 10px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: inherit;
}
.phone-row__number {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  font-size: 14px;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--store-muted);
  line-height: 1.35;
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; padding: 11px 14px; border: 1px solid var(--store-border); border-radius: 10px; font-size: 14px; }
.hold-captcha {
  width: 100%;
}
.hold-captcha__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.hold-captcha__btn:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}
.hold-captcha__btn.is-holding {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.hold-captcha__btn.is-verified {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
  cursor: default;
}
.hold-captcha__btn.is-fail {
  border-color: #ef4444;
  background: #fef2f2;
  color: #b91c1c;
}
.hold-captcha__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.28));
  pointer-events: none;
  transition: width 0.05s linear;
}
.hold-captcha.is-verified .hold-captcha__progress {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.28));
}
.hold-captcha__label {
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.hold-captcha__btn.is-hold-done {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
  cursor: default;
}
.hold-captcha__confirm {
  margin-top: 10px;
}
.hold-captcha__confirm.is-hidden {
  display: none;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-row__img {
  flex: 0 0 auto;
  width: 120px;
  height: 44px;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  cursor: pointer;
}
.captcha-row__refresh {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.captcha-row__refresh:hover {
  border-color: #f59e0b;
  color: #f59e0b;
}
.captcha-row__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-error { color: #dc2626; min-height: 20px; margin-top: 8px; }
.auth-links { margin-top: 16px; color: #6b7280; }
.auth-links a { color: #ff9900; }
.auth-agreement {
  display: block;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  background: transparent;
}
.auth-agreement[hidden] {
  display: none !important;
}
.auth-agreement.is-error .auth-agreement__check {
  color: #b91c1c;
}
.auth-agreement__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  cursor: pointer;
}
.auth-agreement__check input {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
}
.auth-agreement__label {
  flex: 1;
  min-width: 0;
}
.auth-agreement__link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #f59e0b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-agreement__link:hover {
  color: #d97706;
}
.auth-agreement-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.auth-agreement-modal.is-hidden {
  display: none !important;
}
.auth-agreement-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.auth-agreement-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}
.auth-agreement-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.auth-agreement-modal__close:hover {
  background: #f1f5f9;
  color: #334155;
}
.auth-agreement-modal__title {
  margin: 0;
  padding: 18px 48px 12px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid var(--store-border);
}
.auth-agreement-modal__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 20px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  -webkit-overflow-scrolling: touch;
}
.auth-agreement-modal__body p {
  margin: 0 0 10px;
}
.auth-agreement-modal__body p:last-child {
  margin-bottom: 0;
}
.auth-agreement-modal__body h2 {
  margin: 12px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.auth-agreement-modal__empty {
  margin: 0;
  color: #94a3b8;
  text-align: center;
}
body.auth-agreement-open {
  overflow: hidden;
}
.auth-demo { margin-top: 16px; opacity: 0.7; font-size: 13px; }
.account-card { background: #fff; border: 1px solid var(--store-border); border-radius: 12px; padding: 24px; max-width: 640px; }
.account-links { display: grid; gap: 10px; margin-top: 20px; }
.account-links a { padding: 12px 16px; border: 1px solid var(--store-border); border-radius: 10px; }

.tk-back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 110;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--store-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 153, 0, 0.35);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.tk-back-top:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.tk-back-top.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tk-back-top i {
  font-size: 18px;
  line-height: 1;
}

.tk-logistics-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tk-logistics-modal.is-hidden {
  display: none !important;
}

.tk-logistics-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.tk-logistics-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.tk-logistics-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tk-logistics-modal__title {
  margin: 0 36px 18px 0;
  font-size: 22px;
  font-weight: 800;
  color: #111;
}

.tk-logistics-modal__subtitle {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.tk-logistics-modal__section + .tk-logistics-modal__section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
}

.tk-logistics-modal__empty {
  margin: 0;
  color: #6b7280;
}

.tk-logistics-modal__dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 16px;
}

.tk-logistics-modal__dl dt {
  color: #6b7280;
}

.tk-logistics-modal__dl dd {
  margin: 0;
  color: #111827;
  word-break: break-word;
}

.tk-logistics-modal__items {
  display: grid;
  gap: 10px;
}

.tk-logistics-modal__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fafafa;
}

.tk-logistics-modal__item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.tk-logistics-modal__item-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
}

.tk-logistics-modal__item-meta {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.tk-logistics-modal__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tk-logistics-modal__timeline li {
  position: relative;
  padding-left: 18px;
  color: #374151;
  line-height: 1.55;
}

.tk-logistics-modal__timeline li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9900;
}

.tk-logistics-modal__timeline time {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  color: #6b7280;
}

body.tk-logistics-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .tk-header__inner {
    flex-wrap: wrap;
    justify-content: stretch;
    height: auto;
    padding: 12px 20px 14px;
  }
  .tk-search { width: 100%; height: var(--tk-search-h); order: 1; }
  .tk-actions {
    position: static;
    transform: none;
    order: 2;
    width: 100%;
    justify-content: space-around;
    margin-top: 10px;
  }
  .tk-nav__inner { height: auto; flex-direction: column; align-items: flex-start; padding: 10px 0; }
  .tk-nav__promo { white-space: normal; }
}

/* ═══ 手机 WAP 适配（参考 mall.hu-ri.top/wap，仅 max-width 生效） ═══ */

.tk-tabbar { display: none; }

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .tk-wrap { padding: 0 16px; }

  /* 顶栏：登录 + 货币/语言 */
  .tk-topbar__inner {
    height: 36px;
    min-height: 36px;
    flex-wrap: nowrap;
    padding-left: 16px;
    padding-right: 22px;
  }

  .tk-topbar__left {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
  }

  /* 手机端不显示账号（邮箱/退出），未登录仍显示「请登录」 */
  #topUserGreet,
  #topUserEmail,
  #topLogoutLink {
    display: none !important;
  }

  .tk-topbar__track { display: none; }

  /* 手机端顶栏：语言/货币仅图标，文字与箭头隐藏 */
  #langLabel,
  #langBtn > .fa-chevron-down,
  #currencyBtn > .fa-chevron-down {
    display: none !important;
  }

  #langBtn .tk-lang__icon,
  #currencyLabel {
    font-size: 16px;
  }

  #currencyLabel {
    display: inline-block;
    min-width: 16px;
    text-align: center;
  }

  .tk-topbar__right {
    flex-shrink: 0;
    gap: 14px;
  }

  .tk-topbar__menu {
    display: none !important;
  }

  /* 搜索区：圆角灰底，无分类/按钮 */
  .tk-header {
    border-bottom: 0;
  }

  .tk-header__inner {
    height: auto;
    padding: 10px 16px;
    flex-wrap: nowrap;
    justify-content: stretch;
  }

  .tk-search {
    width: 100%;
    height: 40px;
    border: 0;
    background: #f7f8fa;
    border-radius: 999px;
  }

  .tk-search__type,
  .tk-search__divider,
  .tk-search button { display: none; }

  .tk-search__icon {
    margin-left: 14px;
    color: #999;
  }

  .tk-search input {
    font-size: 14px;
    background: transparent;
  }

  .tk-search input::placeholder { color: #bbb; font-size: 14px; }

  /* 隐藏 PC 顶栏操作与导航 */
  .tk-actions,
  .tk-nav,
  .tk-float-cart { display: none !important; }

  /* 底部 Tab 栏 */
  .tk-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  }

  .tk-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #666;
    font-size: 11px;
    text-decoration: none;
    line-height: 1.2;
    padding-top: 2px;
  }

  .tk-tabbar__item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #666;
    line-height: 1;
  }

  .tk-tabbar__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
    flex-shrink: 0;
  }

  .tk-tabbar__service-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-color: #666;
    -webkit-mask: url('../img/tab-service.svg') center / contain no-repeat;
    mask: url('../img/tab-service.svg') center / contain no-repeat;
  }

  .tk-tabbar__item.is-active .tk-tabbar__service-icon {
    background-color: #111;
  }

  .tk-tabbar__item.is-active,
  .tk-tabbar__item.is-active i {
    color: #111;
    font-weight: 600;
  }

  .tk-tabbar__badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
  }

  .store-main { padding: 8px 12px 20px; }

  .page-product .store-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .store-main--wide {
    padding-left: 8px;
    padding-right: 8px;
  }

  .product-detail {
    padding: 0;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .product-detail__gallery {
    aspect-ratio: 1 / 1;
    max-height: 200px;
    max-width: 200px;
    margin: 0 auto;
    border-radius: 8px;
  }

  .page-product .product-detail__gallery {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 10px;
  }

  .product-detail__info {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
    row-gap: 8px;
  }

  .product-detail__title,
  .product-detail__price,
  .product-detail__price-old,
  .product-detail__shop,
  .product-detail__badges,
  .product-detail__sku,
  .product-detail__actions {
    grid-column: 1 / -1;
  }

  .product-detail__title {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.35;
  }

  .product-detail__price {
    margin-bottom: 0;
    font-size: 18px;
  }

  .product-detail__price-old {
    margin: 0;
    font-size: 12px;
  }

  .product-detail__shop {
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.45;
  }

  .product-detail__badges {
    gap: 4px;
    margin-bottom: 0;
  }

  .product-detail__badge {
    padding: 3px 7px;
    font-size: 10px;
  }

  .product-detail__sku {
    margin-bottom: 0;
  }

  .product-detail__section-title {
    margin-bottom: 6px;
    font-size: 13px;
  }

  .product-detail__sku-list {
    gap: 6px;
  }

  .product-detail__sku-pill {
    padding: 5px 8px;
    font-size: 11px;
  }

  .product-detail__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
  }

  .product-detail__actions .btn {
    min-height: 32px;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
  }

  #btnCart,
  #btnWishlist {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
  }

  #btnCart .btn__label,
  #btnWishlist .btn__label {
    display: none;
  }

  #btnCart i,
  #btnWishlist i {
    margin: 0;
    font-size: 14px;
    line-height: 1;
  }

  #btnWishlist.is-active {
    border-color: #ffb800;
    color: #ff9900;
  }

  #btnConsult {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    padding: 6px 12px;
    white-space: nowrap;
  }

  #btnGoCart {
    display: none !important;
  }

  .product-detail__qty {
    grid-column: 1;
    gap: 8px;
    margin-bottom: 0;
    align-self: center;
  }

  .product-detail__qty-label {
    min-width: 28px;
    font-size: 12px;
  }

  .product-detail__qty-control {
    border-radius: 6px;
  }

  .product-detail__qty-control button {
    width: 28px;
    font-size: 15px;
  }

  .product-detail__qty-control input {
    width: 38px;
    padding: 5px 2px;
    font-size: 12px;
  }

  .product-detail__buy {
    grid-column: 2;
    margin-bottom: 0;
    align-self: center;
  }

  .product-detail__buy .btn--block {
    width: auto;
    min-width: 108px;
    padding: 7px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .product-detail__section {
    padding: 10px 0 0;
    border: 0;
    border-top: 1px solid #eee;
    border-radius: 0;
    background: transparent;
  }

  .product-detail__content {
    font-size: 13px;
    line-height: 1.55;
    color: #888;
  }

  .product-detail__reviews {
    gap: 8px;
  }

  .product-detail__review-summary {
    font-size: 12px;
  }

  .product-detail__review-item {
    padding: 10px;
    border-radius: 8px;
  }

  .product-detail__review-head {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .product-detail__review-rating,
  .product-detail__review-body {
    font-size: 12px;
  }

  .product-detail__review-empty {
    font-size: 12px;
  }

  .section {
    margin-top: 10px;
  }

  .section__head {
    margin-bottom: 6px;
  }

  .section__title {
    font-size: 14px;
  }

  .product-detail__review-form {
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
  }

  .product-detail__review-form h3 {
    font-size: 13px;
  }

  .product-detail__review-form label {
    gap: 4px;
    font-size: 12px;
  }

  .product-detail__review-form select,
  .product-detail__review-form textarea {
    padding: 7px 9px;
    font-size: 12px;
    border-radius: 8px;
  }

  .product-detail__review-form textarea {
    min-height: 72px;
  }

  .product-detail__review-form .btn {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  /* 全站手机端底部深色链接：2 列 2 行（商品/购物车/账户等内页共用） */
  .store-footer__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    gap: 10px;
  }

  .store-footer #footerCopy {
    width: 100%;
    margin: 0;
    font-size: 13px;
  }

  .store-footer .store-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    width: 100%;
  }

  .store-footer .store-footer__links a {
    font-size: 13px;
    line-height: 1.4;
  }

  /* 内页浅色链接区（footer-links / 首页底部）：每组链接 2 列 */
  #storeFooterLinksSection .tk-home-footer-col__links,
  #homeFooterLinks .tk-home-footer-col__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .tk-home-footer-links { padding: 8px 0 32px; }

  .tk-back-top {
    right: 12px;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 40px;
  }

  .tk-logistics-modal__dialog {
    width: min(calc(100vw - 24px), 640px);
    max-height: calc(100vh - 48px);
    padding: 18px 16px;
  }

  .tk-logistics-modal__title { font-size: 18px; }

  .store-toast-root {
    width: min(calc(100vw - 24px), 420px);
    top: 12px;
  }
}

@media (max-width: 640px) {
  .tk-home-footer-subscribe button { padding: 0 16px; }
}

/* 页面内通知（替代浏览器 alert） */
.store-toast-root {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(92vw, 420px);
  pointer-events: none;
}

.store-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #1f2937;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.store-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.store-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.store-toast--success {
  background: #047857;
}

.store-toast--error {
  background: #b91c1c;
}

.store-toast--info {
  background: #1f2937;
}

.store-toast__text {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.store-toast__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.8;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.store-toast__close:hover {
  opacity: 1;
}

/* 站点营销弹窗（总后台「网站设置 → 弹窗」） */
body.store-site-popup-open {
  overflow: hidden;
}

.store-site-popup {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.store-site-popup[hidden] {
  display: none !important;
}

.store-site-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.store-site-popup__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.store-site-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.store-site-popup__close-icon {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.store-site-popup__close:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.store-site-popup__title {
  margin: 0;
  padding: 14px 48px 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
}

.store-site-popup__media {
  display: block;
  color: inherit;
  text-decoration: none;
}

.store-site-popup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: #f8fafc;
}

.store-site-popup__content {
  padding: 16px 18px 20px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
  word-break: break-word;
}

.store-site-popup__panel--text .store-site-popup__content {
  padding-top: 20px;
}

.store-site-popup__title + .store-site-popup__content {
  padding-top: 12px;
}

.store-site-popup__img + .store-site-popup__content {
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .store-site-popup {
    padding: max(12px, env(safe-area-inset-top, 0px)) 28px max(12px, env(safe-area-inset-bottom, 0px));
  }

  .store-site-popup__panel {
    width: min(78vw, 300px);
    max-width: 300px;
    max-height: min(80vh, calc(100dvh - 56px));
  }

  .store-site-popup__close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }

  .store-site-popup__close-icon {
    width: 18px;
    height: 18px;
  }
}
