/* Buyer storefront styling adapted from the BBerBee landing demo. */
body.shopper-page { background: var(--bb-panel); }
@keyframes shopper-rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes shopper-live { 50% { opacity: .3; } }
.shopper {
  h1,h2,p,ul,ol{margin:0;padding:0}
  ul,ol{list-style:none}
  a{color:inherit;text-decoration:none}
  button,input{font:inherit;letter-spacing:inherit;color:inherit}
  button{cursor:pointer}
  [hidden]{display:none!important}
  :focus-visible{outline:3px solid var(--bb-lime-text);outline-offset:3px;border-radius:8px}
  .icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
  /* tabs */
  .shopper-tabs{position:fixed;left:0;right:0;bottom:0;z-index:7;display:flex;gap:6px;max-width:480px;margin:0 auto;padding:8px 16px calc(8px + var(--safe-b,env(safe-area-inset-bottom)));background:var(--bb-white);box-shadow:0 -1px 0 var(--bb-line)}
  .shopper-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:44px;border-radius:14px;font-size:15px;font-weight:700;color:var(--bb-muted)}
  .shopper-tabs button[aria-current="page"]{background:var(--bb-ink);color:var(--bb-white)}
  .count{display:grid;place-items:center;min-width:20px;height:20px;margin-left:0;padding:0 6px;border-radius:999px;background:var(--bb-lime);color:var(--bb-ink);font-size:12px;font-weight:800}
  .page{max-width:480px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:calc(28px + var(--safe-t,0px)) 20px calc(96px + var(--safe-b,env(safe-area-inset-bottom)));background:var(--bb-white)}
  &.has-cart .page{padding-bottom:calc(170px + var(--safe-b,env(safe-area-inset-bottom)))}
  /* shop */
  .profile{display:grid;justify-items:center;text-align:center}
  .avatar{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--bb-lime);font-size:34px;font-weight:800}
  .profile .store-name{margin:14px 0 0;font-size:24px;font-weight:800;letter-spacing:-.04em}
  .handle{margin-top:2px;font-size:15px;font-weight:600;color:var(--bb-muted)}
  .store-bio{margin-top:10px;font-size:15px;font-weight:600}
  .sec-title{margin-top:32px;font-size:18px;font-weight:800;letter-spacing:-.03em}
  .products{display:grid;gap:10px;margin-top:14px}
  .product{display:flex;align-items:center;gap:14px;width:100%;padding:10px;border:0;border-radius:18px;background:var(--bb-panel);text-align:left;transition:transform .15s var(--bb-ease)}
  .product:active{transform:scale(.98)}
  .product:disabled{cursor:default;opacity:.5}
  .thumb{flex:none;width:64px;height:64px;border-radius:14px;object-fit:cover;object-position:55% 35%}
  .p-text{flex:1;min-width:0;display:grid;gap:2px}
  .p-text b{font-size:16px;font-weight:700}
  .p-text span{font-size:15px;font-weight:600;color:var(--bb-muted)}
  .tag{flex:none;padding:7px 12px;border-radius:999px;background:var(--bb-ink);color:var(--bb-white);font-size:13px;font-weight:700}
  .tag-out{background:var(--bb-line);color:var(--bb-muted)}
  /* cart bar */
  .cart-bar{position:fixed;left:0;right:0;bottom:calc(60px + var(--safe-b,env(safe-area-inset-bottom)));z-index:6;max-width:480px;margin:0 auto;padding:12px 16px 8px;background:linear-gradient(transparent,var(--bb-white) 30%)}
  .cart-btn{display:flex;align-items:center;justify-content:space-between;width:100%;height:60px;padding:0 20px;border:0;border-radius:18px;background:var(--bb-ink);color:var(--bb-white);font-size:16px;font-weight:700;animation:shopper-rise .3s var(--bb-ease)}
  .cart-btn span:first-child{color:var(--bb-lime)}
  /* orders */
  .view-title{font-size:24px;font-weight:800;letter-spacing:-.04em;outline:none}
  .view-sub{margin-top:4px;font-size:15px;font-weight:600;color:var(--bb-muted)}
  .orders{display:grid;gap:12px;margin-top:20px}
  .order{padding:18px;border-radius:20px;background:var(--bb-panel)}
  .order-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
  .order-no{font-size:14px;font-weight:600;color:var(--bb-muted)}
  .status{font-size:14px;font-weight:800}
  .status-go{padding:4px 10px;border-radius:999px;background:var(--bb-lime)}
  .order-items{display:grid;gap:4px;margin-top:10px;font-size:16px;font-weight:700}
  .order-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
  .order-foot b{font-size:17px;font-weight:800}
  .text-btn{padding:6px 0;border:0;background:none;font-size:14px;font-weight:700;color:var(--bb-muted);text-decoration:underline;text-underline-offset:3px}
  .order-note{margin-top:10px;font-size:14px;font-weight:600;color:var(--bb-muted)}
  /* sheets */
  .sheet{width:100%;max-width:480px;max-height:92dvh;margin:auto auto 0;padding:0;border:0;border-radius:28px 28px 0 0;background:var(--bb-white);color:var(--bb-ink);overflow:auto}
  .sheet[open]{animation:shopper-rise .32s var(--bb-ease)}
  .sheet::backdrop{background:rgb(0 0 0 / .45)}
  .sheet-body{padding:22px 20px calc(22px + var(--safe-b,env(safe-area-inset-bottom)))}
  .sheet-top{display:flex;align-items:center;justify-content:space-between}
  .sheet-top h2{font-size:20px;font-weight:800;outline:none}
  .close{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--bb-panel)}
  .sheet-top .close .icon{display:block;width:22px;height:22px}
  .item-card{display:flex;align-items:center;gap:14px;margin-top:16px;padding:10px;border-radius:18px;background:var(--bb-panel)}
  .cart{display:grid;gap:8px;margin-top:16px}
  .cart .item-card{margin:0}
  .cart .thumb{width:52px;height:52px;border-radius:12px}
  .more{width:100%;height:44px;margin-top:8px;border:1.5px dashed var(--bb-line);border-radius:14px;background:none;font-size:14px;font-weight:700;color:var(--bb-muted)}
  .field{display:grid;gap:8px;margin:18px 0 0;padding:0;border:0;min-width:0}
  .field legend,.label{padding:0;font-size:14px;font-weight:700;color:var(--bb-muted)}
  .field legend{margin-bottom:8px}
  .sizes{display:flex;flex-wrap:wrap;gap:8px}
  .sizes button{min-width:60px;height:46px;padding:0 16px;border:0;border-radius:14px;background:var(--bb-panel);font-size:15px;font-weight:700}
  .sizes button[aria-pressed="true"]{background:var(--bb-lime)}
  .qty-row{display:flex;align-items:center;justify-content:space-between}
  .qty{flex:none;display:flex;align-items:center;gap:4px;padding:4px;border-radius:14px;background:var(--bb-panel)}
  .qty button{min-width:38px;height:38px;border:0;border-radius:10px;background:var(--bb-white);font-size:18px;font-weight:700}
  .qty output{min-width:28px;text-align:center;font-weight:800}
  .field input{width:100%;height:50px;padding:0 16px;border:2px solid transparent;border-radius:14px;background:var(--bb-panel);font-size:16px;font-weight:600;outline:none}
  .field input:focus{border-color:var(--bb-ink);background:var(--bb-white)}
  .hint{font-size:13px;font-weight:600;color:var(--bb-muted)}
  .error{min-height:20px;margin-top:12px;font-size:14px;font-weight:700;color:var(--bb-red)}
  .total{display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding-top:16px;border-top:1px solid var(--bb-line)}
  .total span{font-size:15px;font-weight:700;color:var(--bb-muted)}
  .total b{font-size:22px;font-weight:800}
  .submit{display:flex;align-items:center;justify-content:center;width:100%;height:58px;margin-top:16px;border:0;border-radius:18px;background:var(--bb-ink);color:var(--bb-white);font-size:17px;font-weight:700}
  .done{display:grid;justify-items:center;text-align:center;padding-top:36px}
  .done-ic{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--bb-lime)}
  .done-ic .icon{width:30px;height:30px;stroke-width:2.6}
  .done p{margin-top:8px;font-size:15px;font-weight:700}
  .done .done-sub{font-weight:600;color:var(--bb-muted)}
  @media (prefers-reduced-motion: reduce) { .sheet[open], .cart-btn, .link-live i { animation: none; } }
  img.avatar{padding:12px;background:var(--bb-lime-wash);object-fit:contain}
  .socials{display:flex;justify-content:center;gap:10px;margin-top:18px}
  .socials :is(a,button){display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--bb-panel);transition:transform .15s var(--bb-ease)}
  .socials :is(a,button):active{transform:scale(.92)}
  .socials .icon{width:24px;height:24px;stroke-width:2}
  .links{display:grid;gap:10px;margin-top:24px}
  .sec-title+.links{margin-top:14px}
  .link{display:flex;align-items:center;gap:14px;min-height:64px;padding:10px 18px 10px 10px;border-radius:18px;background:var(--bb-panel);transition:transform .15s var(--bb-ease)}
  .link:active{transform:scale(.98)}
  .link-ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--bb-white);font-size:22px;object-fit:cover;object-position:55% 35%}
  .link-text{flex:1;min-width:0;display:grid;gap:2px}
  .link-text b{font-size:16px;font-weight:700}
  .link-text span{font-size:14px;font-weight:600;color:var(--bb-muted)}
  .link::after{content:'';flex:none;width:8px;height:8px;border-top:2px solid var(--bb-muted);border-right:2px solid var(--bb-muted);transform:rotate(45deg)}
  .link-hot{background:var(--bb-ink);color:var(--bb-white)}
  .link-hot::after{border-color:var(--bb-lime)}
  .link-live{background:var(--bb-red)}
  .link-live i{width:12px;height:12px;border-radius:50%;background:var(--bb-white);animation:shopper-live 1.4s ease-in-out infinite}
  .sheet-sub{margin-top:6px;font-size:14px;font-weight:600;color:var(--bb-muted)}
  .field textarea,.field select{width:100%;padding:14px 16px;border:2px solid transparent;border-radius:14px;background:var(--bb-panel);font:inherit;font-size:16px;font-weight:600;letter-spacing:inherit;color:inherit;outline:none;resize:vertical}
  .field select{height:50px;padding:0 44px 0 16px;-webkit-appearance:none;appearance:none;background:var(--bb-panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362656F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/20px}
  .field textarea:focus,.field select:focus{border-color:var(--bb-ink);background-color:var(--bb-white)}
  .field textarea::placeholder,.field input::placeholder{color:#9A9CA5}
  .me { display: flex; align-items: center; gap: 14px; }
  .me-av { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bb-lime-wash); font-size: 22px; font-weight: 800; }
  .me-text h1{font-size:22px;font-weight:800;letter-spacing:-.04em;outline:none}
  .me-text p{margin-top:2px;font-size:14px;font-weight:600;color:var(--bb-muted)}
  .me-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}
  .me-stats b{font-size:22px;font-weight:800}
  .me-stats span{font-size:13px;font-weight:600;color:var(--bb-muted)}
  .menu{display:grid;margin:28px 0 8px;border-radius:16px;background:var(--bb-panel);overflow:hidden}
  .menu a,.menu button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:16px 18px;border:0;border-bottom:1px solid var(--bb-line);background:none;font-size:16px;font-weight:700;text-align:left}
  .menu li:last-child :is(a,button){border-bottom:0;color:var(--bb-muted)}
  .menu .icon{width:18px;height:18px;color:var(--bb-muted)}
  .check{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:15px;font-weight:700;cursor:pointer}
  .check input{width:20px;height:20px;margin:0;accent-color:var(--bb-ink)}
  .policy{margin-top:8px}
  .policy h2{margin-top:28px;font-size:18px;font-weight:800;letter-spacing:-.03em}
  .policy ul{display:grid;gap:10px;margin-top:12px}
  .policy li{position:relative;padding-left:16px;font-size:15px;font-weight:500;line-height:1.65;color:#2B2D33}
  .policy li::before{content:'';position:absolute;left:2px;top:.7em;width:5px;height:5px;border-radius:50%;background:var(--bb-lime-text)}
  .thumb-manual{display:grid;place-items:center;background:var(--bb-lime-wash);color:var(--bb-lime-text)}
  .thumb-manual .icon{width:55%;height:55%;stroke-width:1.8}
  .field-row{display:flex;gap:10px}
  .field-row .field{flex:1}
  .field-row .field-no{flex:0 0 92px}
  .manual-note{margin-top:12px;padding:12px 14px;border-radius:14px;background:var(--bb-lime-wash);font-size:14px;font-weight:600;line-height:1.5;color:#3F6212}
  .shop-live + .products{margin-top:10px}
  .shop-live .link{min-height:48px;gap:10px;padding:6px 16px 6px 8px;border-radius:14px}
  .shop-live .link-ic{width:32px;height:32px;border-radius:9px}
  .shop-live .link-live i{width:9px;height:9px}
  .shop-live .link-text b{font-size:15px}
  .bill{display:grid;grid-template-columns:1fr auto;gap:8px 12px;margin:14px 0 0;padding-top:16px;border-top:1px solid var(--bb-line);font-size:14px;font-weight:600}
  .bill dt{color:var(--bb-muted)}
  .bill dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
  .bill+.total{border-top:0;padding-top:10px}
  .step-dots{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0 16px;padding:0;list-style:none}
  .step-dots li{padding-top:8px;border-top:3px solid var(--bb-line);font-size:12.5px;font-weight:700;color:var(--bb-muted)}
  .step-dots li.is-on{border-color:var(--bb-ink);color:var(--bb-ink)}
  .step-sum{display:flex;align-items:center;justify-content:space-between;margin-top:6px;padding-top:16px;border-top:1px solid var(--bb-line)}
  .step-sum span{font-size:15px;font-weight:700;color:var(--bb-muted)}
  .step-sum b{font-size:18px;font-weight:800}
  .ship-sum{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-radius:14px;background:var(--bb-panel)}
  .ship-sum-text{flex:1;min-width:0;display:grid;gap:2px}
  .ship-sum-text b{font-size:15px;font-weight:800}
  .ship-sum-text span{font-size:13.5px;font-weight:600;color:var(--bb-muted);line-height:1.45}
  .ship-sum .text-btn{flex:none;padding:0;font-size:13px}
  .order-detail{margin-top:12px;border-top:1px solid var(--bb-line)}
  .order-detail summary{display:flex;align-items:center;justify-content:space-between;padding-top:12px;font-size:14px;font-weight:700;color:var(--bb-muted);cursor:pointer;list-style:none}
  .order-detail summary::-webkit-details-marker{display:none}
  .order-detail summary .icon{width:18px;height:18px;transition:transform .2s var(--bb-ease)}
  .order-detail[open] summary .icon{transform:rotate(180deg)}
  .shopper-tabs button { min-width: 0; border: 0; background: var(--bb-white); }
  .store-bio { padding: 0; white-space: pre-line; }
  img.seller-avatar { padding: 0; object-fit: cover; }
  .socials { flex-wrap: wrap; }
  .link { width: 100%; border: 0; text-align: left; }
  .link-hot { color: var(--bb-white); }
  .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-stats button { display: grid; width: 100%; justify-items: center; gap: 2px; padding: 14px 4px; border: 0; border-radius: 16px; background: var(--bb-panel); }
  .empty-state { margin-top: 16px; padding: 18px; border-radius: 18px; background: var(--bb-panel); color: var(--bb-muted); }
  .p-text, .order, .ship-sum-text { overflow-wrap: anywhere; }
  .sub-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px 0 8px; padding: 0; background: none; border: 0; color: var(--bb-muted); }
  .sub-back .icon { width: 18px; height: 18px; }
  .order-foot { flex-wrap: wrap; gap: 4px 10px; }
  .step-sum { margin-top: 16px; }
  .submit:disabled, .sizes button:disabled { opacity: .55; cursor: default; }
  .field input::placeholder, .field textarea::placeholder { color: var(--bb-muted); }
  .field > .label { color: var(--bb-muted); }
  #authform .login, #askform .login { min-height: 50px; }
  .paymentbox { margin-top: 16px; }
}
body.shopper-page #toast { bottom: calc(146px + env(safe-area-inset-bottom)); }

.shopper-preview { padding-top: 14px; }
#biopreview .products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#biopreview .product {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  height: 100%;
  padding: 6px;
  border-radius: 14px;
}
#biopreview .product .thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
}
#biopreview .product .p-text {
  align-content: start;
  padding: 0 2px 2px;
}
#biopreview .product .p-text b,
#biopreview .product .p-text span { font-size: 14px; }
#biopreview .product .tag:not(.tag-out) { display: none; }
#biopreview .product .tag-out { justify-self: start; }

.shopper .socials button { border: 0; padding: 0; }
.shopper .channel-guide { display: grid; gap: 14px; margin-top: 14px; }
.shopper .channel-guide h3 { margin: 0; font-size: var(--shop-section-size); overflow-wrap: anywhere; }
.shopper .channel-guide section { display: grid; gap: 12px; padding: 16px; background: var(--bb-panel); border-radius: 14px; }
.shopper .channel-guide h4 { margin: 0; font-size: var(--shop-body-size); }
.shopper .channel-guide p, .shopper .channel-guide li { color: var(--bb-ink); font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.shopper .channel-guide ol { display: grid; gap: 16px; padding-inline-start: 1.5em; list-style: decimal; }
.shopper .channel-qr { width: min(100%, 240px); height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; }
.shopper .channel-guide .submit { margin-top: 0; }
.channel-qr-preview { width: 96px; height: 96px; object-fit: contain; margin: 8px 0; }

.shopper .channel-copy { min-height: 48px; padding: 8px 14px; border: 0; background: #FEE500; color: var(--bb-ink); font-size: 17px; }
.shopper .channel-example { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--bb-white); font-size: 16px; }
.shopper .channel-example span:not(.channel-target) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.shopper .channel-example > .icon { flex-shrink: 0; }
.shopper .channel-target { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 8px; border: 2px solid #B42318; border-radius: 999px; }
.shopper .channel-qr-details summary { min-height: var(--shop-touch-size); padding: 12px 4px; font-size: 17px; cursor: pointer; }
.shopper .channel-qr-details .channel-qr { display: block; margin: 8px auto 0; }


.shopper .kakao-contact { display: grid; gap: 8px; width: 100%; margin-top: 10px; padding: 14px 16px; border: 0; border-radius: 18px; background: #FEE500; color: #191919; text-align: left; }
.shopper .kakao-contact b { display: flex; align-items: center; gap: 6px; font-size: 17px; }
.shopper .kakao-contact-name { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; background: var(--bb-white); border: 1px solid #9B8700; border-radius: 10px; font-size: 16px; overflow-wrap: anywhere; }
.shopper .kakao-contact-name .icon { flex: 0 0 20px; width: 20px; height: 20px; }

.shopper .kakao-contact-typing { min-width: 0; white-space: pre-wrap; }
.shopper .kakao-contact-typing > span { animation: kakao-character-in 1ms backwards; }
@keyframes kakao-character-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .shopper .kakao-contact-typing > span { animation: none; }
}

.social-login-options { display: grid; gap: 10px; margin-top: 16px; }
.social-login-options .login { min-height: 50px; margin: 0; font-size: 16px; }
.social-login-options p { margin: 0; color: var(--bb-ink); font-size: 15px; }
.social-login-options p:empty { display: none; }

.shopper .checkout-guide {
  margin-block: 12px;
  color: var(--bb-ink);
  font-size: 16px;
  line-height: 1.55;
}

.shopper .checkout-guide:empty { margin: 0; }
.shopper [data-account-copy-status],
.shopper [data-link-copy-status] {
  scroll-margin-bottom: calc(72px + var(--safe-b, env(safe-area-inset-bottom)));
}

.shopper [data-link-copy-status]:empty { margin: 0; }
.shopper .field > .label { color: var(--bb-ink); font-size: 16px; }
.shopper .field input, .shopper .field textarea { font-size: 17px; }


.shopper .cart .item-card { padding-right: 14px; }
.shopper .cart-remove { flex: 0 0 48px; min-height: 44px; padding: 0 6px; text-decoration: none; }

.shopper [data-step="2"] .freenote {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--bb-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.shopper [data-step="2"] .bill { font-size: 16px; }
.shopper [data-step="2"] .ship-sum-text span,
.shopper [data-step="2"] .ship-sum .text-btn { font-size: 15px; }

.shopper .checkout-sheet { height: 92dvh; }

.shopper .deposit-instruction {
  margin: 16px 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.45;
}

.shopper .checkout-complete .paymentamount,
.shopper .checkout-complete .bankdetails { font-size: 18px; }
.shopper .checkout-complete .paymentamount strong,
.shopper .checkout-complete .bankdetails strong { font-size: 22px; }

.shopper .kakao-delivery-action {
  padding: 0 12px;
  background: #fee500;
  color: #191919;
}

.shopper .checkout-sheet > .sheet-body,
.shopper .checkout-sheet form,
.shopper .checkout-sheet [data-step]:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.shopper .checkout-sheet > .sheet-body { min-height: 100%; }
.shopper .checkout-sheet form,
.shopper .checkout-sheet [data-step]:not([hidden]) { flex: 1; }
.shopper .checkout-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.shopper .checkout-actions :is(.submit, .checkout-more) {
  height: auto;
  min-height: 52px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 17px;
  line-height: 1.3;
}
.shopper .checkout-actions .step-sum { margin: 0; }
.shopper .checkout-sheet .item-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
}
.shopper .checkout-sheet .cart-remove { min-width: 48px; }

.shopper:has(.checkout-complete) .shopper-tabs { position: static; }
.shopper .checkout-complete {
  min-height: calc(100dvh - 60px - var(--safe-b, env(safe-area-inset-bottom)));
  padding-bottom: 24px;
}

.shopper .cart-order-label { font-size: 20px; font-weight: 800; }

.shopper .delivery-lookup-status {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--bb-panel);
  font-size: 17px;
  line-height: 1.55;
}

.shopper .delivery-lookup-page .kakao-contact,
.shopper [data-phone-orders] + .kakao-contact { margin-top: 20px; }

.shopper .delivery-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  font-weight: 700;
}

.shopper .checkout-complete .bankdetails span {
  font-size: 22px;
  font-weight: 700;
}

.shopper .tracking-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(2, max-content);
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bb-white, #fff);
}
.shopper .tracking-summary > div { overflow-wrap: anywhere; }
.shopper .tracking-summary .more,
.shopper .tracking-summary .text-btn {
  box-sizing: border-box;
  width: auto;
  min-width: 92px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.shopper .tracking-summary .text-btn {
  background: #111;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
}

.shopper .order-breakdown { margin-top: 8px; font-size: 14px; }
.shopper .order-breakdown h3 { margin: 14px 0 6px; font-size: 15px; }
.shopper .order-line-prices { list-style: none; padding: 0 0 8px; border-bottom: 1px dashed var(--bb-line); }
.shopper .order-detail-values { margin: 8px 0 0; }
.shopper .order-line-prices li,
.shopper .order-detail-values > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.shopper .order-detail-values dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.shopper .order-detail-values dt { flex-shrink: 0; color: var(--bb-muted); }
.shopper .order-detail-values .order-detail-total { margin-top: 6px; padding: 12px; border-radius: 12px; background: #fff; font-weight: 800; }
.shopper .order-detail-total dt { color: inherit; }

/* Type and control sizes shared by the storefront and order flow. */
.shopper {
  --shop-title-size: 24px;
  --shop-section-size: 20px;
  --shop-body-size: 16px;
  --shop-detail-size: 14px;
  --shop-touch-size: 44px;
  --shop-field-size: 50px;
}
.shopper :is(.profile .store-name, .view-title) { font-size: var(--shop-title-size); }
.shopper :is(.sec-title, .sheet-top h2, .policy h2) { font-size: var(--shop-section-size); }
.shopper :is(.store-bio, .view-sub, .policy li) { font-size: var(--shop-body-size); }
.shopper :is(.step-dots li, .ship-sum-text span, .order-breakdown) { font-size: var(--shop-detail-size); }
.shopper .order-breakdown h3 { font-size: var(--shop-body-size); }
.shopper :is(.field input, .field select, .field textarea) { min-height: var(--shop-field-size); }
.shopper :is(.order-detail summary, .ship-sum .text-btn, .qty button) { min-height: var(--shop-touch-size); }
.shopper .order-detail summary { padding-block: 8px; gap: 8px; }
.shopper .order-detail summary .icon { flex-shrink: 0; }
.shopper .ship-sum { flex-wrap: wrap; align-items: center; }
.shopper .ship-sum-text { flex-basis: 150px; }
.shopper .sheet-top { gap: 10px; }
.shopper .sheet-top h2 { min-width: 0; overflow-wrap: anywhere; }
.shopper .sheet-top .close { flex-shrink: 0; }
.shopper .order-line-prices li > :first-child { min-width: 0; overflow-wrap: anywhere; }
.shopper .order-line-prices li > :last-child { flex-shrink: 0; }

@media (max-width: 360px) {
  .shopper .tracking-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shopper .tracking-summary > div { grid-column: 1 / -1; }
  .shopper .tracking-summary :is(.more, .text-btn) { width: 100%; }
}

.shopper .checkout-complete .paymentbox {
  padding: 16px;
  margin-block: 16px;
  border-radius: 16px;
}
.shopper .checkout-complete .paymentbox h3 {
  margin: 0;
  font-size: var(--shop-section-size);
}
.shopper .checkout-complete .paymentamount {
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: baseline;
  gap: 8px 12px;
  margin-block: 16px;
  overflow-wrap: anywhere;
}
.shopper .checkout-complete .paymentamount > :nth-child(even) { text-align: right; }
.shopper .checkout-complete .bankdetails {
  gap: 6px;
  padding: 14px;
  overflow-wrap: anywhere;
}
.shopper .checkout-complete .submit {
  height: auto;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.35;
}
.shopper .checkout-complete .done-sub { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .shopper .checkout-complete .paymentamount strong { font-size: 19px; }
}

@media (max-width: 360px) {
  .shopper .channel-guide section { padding: 12px; }
  .shopper .channel-example:has(span + .channel-target) {
    flex-wrap: wrap;
  }
  .shopper .channel-example:has(span + .channel-target) > span { flex-basis: 100%; }
}

.shopper .history-search { display: flex; gap: 8px; margin-top: 18px; }
.shopper .history-search input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--bb-line); border-radius: 8px; font-size: 16px; }
.shopper .history-filter,
.shopper [data-history-more] { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--bb-muted); }
.shopper [data-history-more] { font-size: 24px; }
.shopper .history-periods { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 12px; }
.shopper .history-periods button { min-height: 44px; padding: 0 14px; border: 1px solid var(--bb-line); border-radius: 999px; background: white; font-size: 14px; }
.shopper .history-periods button[aria-pressed="true"] { background: var(--bb-ink); color: white; }
.shopper .history-current { display: none; margin-top: 8px; color: var(--bb-muted); font-size: 14px; }
.shopper .history-orders { gap: 12px; }
.shopper .history-card { border: 1px solid var(--bb-line); border-radius: 12px; background: white; overflow: hidden; }
.shopper .history-card header { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px; border-bottom: 1px solid var(--bb-line); }
.shopper .history-card time { font-size: 16px; font-weight: 800; }
.shopper .history-card-body { display: grid; gap: 10px; padding: 14px; font-size: 16px; }
.shopper .history-card-body > strong { font-size: 18px; }
.shopper .history-card-body ul { display: grid; gap: 10px; }
.shopper .history-card-body li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 12px; align-items: center; overflow-wrap: anywhere; }
.shopper .history-card-body .thumb { width: 56px; height: 56px; }
.shopper .history-card-body small { display: block; font-size: 14px; color: var(--bb-muted); }
.shopper [data-history-detail] { min-height: 44px; border: 1px solid var(--bb-line); border-radius: 8px; background: white; font-size: 16px; font-weight: 700; }
.shopper [data-hide-order] { color: #b42318; }
.shopper .history-detail-menu { display: flex; justify-content: flex-end; }
.shopper .history-detail .order-detail > summary { display: none; }
.shopper .history-detail .order-breakdown { font-size: 16px; }
.shopper .history-detail .order-breakdown > :is(dl, ul) { background: white; padding: 12px; border-radius: 8px; }

@media (max-width: 620px) {
  .shopper .history-desktop { display: none; }
  .shopper .history-current { display: block; }
}
@media (min-width: 621px) {
  .shopper .history-filter { display: none; }
}

/* Completion typography follows one scale across payment and guidance. */
.shopper .checkout-complete {
  font-size: 18px;
  line-height: 1.55;
}
.shopper .checkout-complete .view-title { font-size: 26px; line-height: 1.3; font-weight: 800; margin-block: 16px 8px; }
.shopper .checkout-complete .done { padding-block: 16px; }
.shopper .checkout-complete .done-sub { font-size: 16px; line-height: 1.5; margin: 0; }
.shopper .checkout-complete .done-sub strong { font-size: inherit; font-weight: 650; }
.shopper .checkout-complete :is(.deposit-instruction, .checkout-guide, .view-sub) {
  font-size: 17px;
  line-height: 1.6;
  margin-block: 12px;
}
.shopper .checkout-complete .deposit-instruction { font-size: 20px; font-weight: 700; }
.shopper .checkout-complete .paymentbox h3 { font-size: 20px; line-height: 1.4; font-weight: 750; }
.shopper .checkout-complete .paymentamount :is(span,b) { font-size: 18px; line-height: 1.5; }
.shopper .checkout-complete .paymentamount strong { font-size: 24px; line-height: 1.4; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--bb-line); }
.shopper .checkout-complete .bankdetails :is(span,strong) { font-size: 22px; line-height: 1.5; font-weight: 750; }
.shopper .checkout-complete .submit { font-size: 18px; font-weight: 750; min-height: 54px; margin-top: 12px; }
.shopper .checkout-complete [role=status]:empty { display: none; }
.shopper .product-live-scene { display: block; padding: 8px 14px; font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.shopper .products > li:has(.product-live-scene) { background: var(--bb-panel); border-radius: 20px; overflow: hidden; padding-bottom: 10px; }
.shopper .products > li .product-live-scene { padding: 0 14px 0 84px; margin: 0; color: var(--bb-muted); font-size: 14px; line-height: 1.5; }

.shopper .products > li { min-width: 0; }
.shopper .products .product { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 12px; }
.shopper .products .product .thumb { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: 400px; object-fit: contain; background: white; border-radius: 14px; }
.shopper .products .product .p-text b { font-size: 18px; }
.shopper .products .product .p-text span { font-size: 24px; font-weight: 800; color: var(--bb-ink); }
.shopper .products .product .tag { padding: 10px 16px; font-size: 17px; }
.shopper .products > li .product-live-scene { padding: 0 12px; }
#biopreview .products .product { gap: 6px; }
#biopreview .products .product .thumb { aspect-ratio: 4 / 5; }
#biopreview .products .product .p-text :is(b,span) { font-size: 14px; }

.shopper .products .product img.thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}
#biopreview .products .product img.thumb {
  height: auto;
  max-height: none;
  aspect-ratio: auto;
}
@keyframes product-scene-pulse { 50% { opacity: .45; } }
.shopper .products > li .product-live-scene { display: flex; align-items: center; gap: 6px; }
.product-scene-youtube { display: inline-flex; flex-shrink: 0; animation: product-scene-pulse 1.8s ease-in-out infinite; }
.product-scene-youtube .icon { width: 22px; height: 22px; }
@media(prefers-reduced-motion:reduce) { .product-scene-youtube { animation: none; } }

/* The device preview uses equal photo slots, independent of source aspect ratio. */
#biopreview .products .product {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  height: auto;
}
#biopreview .products .product .thumb,
#biopreview .products .product img.thumb {
  grid-column: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #e9e9e9;
}
#biopreview .products .product .p-text {
  display: grid;
  gap: 4px;
  min-height: 44px;
  align-content: start;
}
.shopper .product-pick-sheet .item-card { display: grid; grid-template-columns: minmax(0,1fr); padding: 10px; gap: 16px; }
.shopper .product-pick-sheet .item-card img.thumb { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 12px; background: #e9e9e9; }
.shopper .product-pick-sheet .item-card .p-text { display: grid; gap: 8px; padding: 0 4px 6px; }
.shopper .product-pick-sheet .item-card .p-text b { font-size: 20px; }
.shopper .product-pick-sheet .item-card .p-text > span { font-size: 26px; font-weight: 800; color: var(--bb-ink); }
.shopper .product-pick-sheet .sheet-top { position: sticky; top: -22px; z-index: 2; background: var(--bb-white); padding-block: 12px; }
.shopper .checkout-sheet .cart .item-card { grid-template-columns: minmax(0,1fr) auto; align-items: center; padding: 10px; gap: 14px; }
.shopper .checkout-sheet .cart .item-card img.thumb { grid-column: 1 / -1; display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 12px; }
.shopper .checkout-sheet .cart .p-text { display: grid; gap: 8px; padding: 0 4px 6px; }
.shopper .checkout-sheet .cart .p-text b { font-size: 20px; }
.shopper .checkout-sheet .cart .p-text > span { font-size: 18px; }
.shopper .checkout-sheet .cart .item-card { grid-template-columns: minmax(0,1fr); padding: 0; background: transparent; }
.shopper .checkout-sheet .checkout-photo-quantity { font-size: 18px; font-weight: 700; padding: 0 4px 8px; }
.shopper .product-pick-sheet .buy-now { margin-top: 10px; background: white; color: var(--bb-ink); border: 1px solid var(--bb-ink); }
.shopper .checkout-sheet .cart { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; }
.shopper .checkout-sheet .cart .item-card { display: block; min-width: 0; margin: 0; }
.shopper .checkout-sheet .checkout-photo-open { display: block; width: 100%; height: auto; min-height: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--bb-panel); cursor: zoom-in; }
.shopper .checkout-sheet .checkout-photo-open img.thumb { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; }
.shopper .checkout-sheet .checkout-photo-quantity { display: block; padding-top: 8px; }
.shopper .checkout-cart-expand { margin: 12px 0 20px; min-height: 48px; font-size: 16px; }
.shopper .checkout-sheet .cart { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0; }
.shopper .checkout-sheet .cart::-webkit-scrollbar { display: none; }
.shopper .checkout-sheet .cart > .item-card { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.shopper .checkout-sheet .checkout-photo-open img.thumb { height: min(50dvh,440px); width: 100%; object-fit: contain; background: var(--bb-panel); }
.shopper .checkout-photo-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 12px 0 24px; }
.shopper .checkout-photo-controls button { width: 48px; height: 48px; padding: 0; font-size: 30px; border: 1px solid var(--bb-line); border-radius: 12px; }
.shopper .checkout-photo-controls button[hidden] { display: none; }
.shopper .checkout-photo-controls span { min-width: 72px; text-align: center; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.buyer-login-benefits { margin-block: 16px 24px; padding: 16px; border: 1px solid var(--bb-border, #d9ded6); border-radius: 12px; color: var(--bb-text, #20251e); }
.buyer-login-benefits h3 { margin: 0 0 8px; font-size: 17px; }
.buyer-login-benefits p { margin: 8px 0; font-size: 14px; line-height: 1.6; }
.buyer-login-benefits small { display: block; margin-top: 10px; }
.buyer-login-benefits .kakao-login { width: 100%; min-height: 48px; background: #fee500; color: #191919; border: 0; font-weight: 600; }
.buyer-login-benefits .kakao-login:hover { background: #f3db00; }
.buyer-login-benefits .kakao-login:focus-visible { outline: 2px solid #191919; outline-offset: 3px; }
.buyer-login-benefits [role="status"]:empty { display: none; }

.buyer-login-benefits .seller-social-login { margin-top:16px;gap:8px; }
.buyer-login-benefits .seller-social-login>p:first-child { display:none; }
.buyer-login-benefits .seller-social-button,.buyer-login-benefits .seller-social-button span { font-size:16px; }
.buyer-login-benefits button.seller-social-apple,
.buyer-login-benefits button.seller-social-apple :is(span,svg) { color:#fff; }
/* Match purchase actions and text fields to the shared 48px control scale. */
dialog.sheet :is(.submit,.more.checkout-more,.seller-social-button){box-sizing:border-box;height:48px;min-height:48px;padding:10px 16px;border-radius:12px;font-size:16px;line-height:1.5}
dialog.sheet input:not([type=checkbox]):not([type=radio]):not([type=file]){box-sizing:border-box;height:48px;min-height:48px;padding:10px 14px;border-radius:12px;font-size:16px}
.shopper .cart-btn{height:48px;min-height:48px;border-radius:12px}
[data-buyer-guest],#authform .login,.social-login-options .login{box-sizing:border-box;min-height:48px;height:48px;padding:10px 16px;border-radius:12px;font-size:16px;line-height:1.5}
body .shopper :is(.submit,.login,.more){box-sizing:border-box;min-height:48px;height:48px;padding:10px 16px;border-radius:12px;font-size:16px;line-height:1.5}
body .shopper .field :is(input:not([type=checkbox]):not([type=radio]),select){box-sizing:border-box;min-height:48px;height:48px;padding:10px 14px;font-size:16px;border-radius:12px}
.hub :is(#hubLogout,#hubRefresh,.filter button){box-sizing:border-box;min-height:48px;height:48px;padding:10px 14px;font-size:16px;border-radius:12px}
.hub .filter{display:flex;flex-wrap:nowrap;gap:8px;align-items:center}.hub .filter input{box-sizing:border-box;flex:1;min-width:0;height:48px;min-height:48px;margin:0;padding:10px 14px;font-size:16px;border-radius:12px}.hub .filter button{flex:none}
.shopper .history-search :is(input,.history-filter){box-sizing:border-box;height:48px;min-height:48px;border-radius:12px}.shopper .history-filter{width:48px;flex:none}
.shopper [data-history-detail]{box-sizing:border-box;height:48px;min-height:48px;border-radius:12px}
.shopper .sheet-top:has([data-history-more]){gap:8px}.shopper .sheet-top:has([data-history-more]) h2{flex:1;min-width:0}
.shopper .sheet-top [data-history-more]{box-sizing:border-box;width:32px;height:32px;min-height:32px;padding:0;border:1px solid var(--bb-line);border-radius:8px;flex:none}

/* Shipping actions can grow with their labels instead of clipping at 92px. */
@media(max-width:480px){.shopper .tracking-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.shopper .tracking-summary>div{grid-column:1/-1}body .shopper .tracking-summary :is(.more,.text-btn){width:100%;min-width:0;height:auto;min-height:48px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere}}

.buyer-demo-notice{position:sticky;top:0;z-index:80;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:10px 16px;background:var(--bb-ink);color:var(--bb-white);font-size:12px}.buyer-demo-notice a{color:inherit}.buyer-demo-notice button{padding:5px 10px;border:1px solid var(--bb-line);border-radius:8px;background:var(--bb-white);color:var(--bb-ink);font:inherit}.buyer-demo-notice span{max-width:65ch}

.member-list{list-style:none;padding:0;margin:20px 0}.member-list>li{padding:18px 0;border-bottom:1px solid var(--bb-line)}.member-list strong{display:block}.member-list p{overflow-wrap:anywhere}.member-actions{display:flex;flex-wrap:wrap;gap:8px}.member-form{display:grid;gap:16px;margin:20px 0;padding:20px 0}.member-form h2{font-size:20px}.member-list small{display:block;color:var(--bb-muted)}

/* Buyer hub: flat sections, readable provider buttons and bounded search. */
.hub .hub-auth{padding:24px 0;border-top:1px solid var(--bb-line);margin-top:24px}
.hub .hub-auth .buyer-login-benefits{border:0;padding:0;margin:12px 0 0;border-radius:0}
.hub .hub-auth .buyer-login-benefits h3{font-size:16px;line-height:1.5}
.hub .hub-auth .buyertitle{margin:0;font-size:20px}
body .buyer-login-benefits button.seller-social-apple{background:#111!important;border-color:#111!important;color:#fff!important}
body .buyer-login-benefits button.seller-social-kakao{background:#fee500!important;border-color:#fee500!important;color:#191919!important}
.hub .storecard{border:0;border-bottom:1px solid var(--bb-line);border-radius:0;padding:16px 0;margin:0;box-shadow:none}
.hub .storeinfo{min-width:0}.hub .storeinfo small{overflow-wrap:anywhere}
.hub .storeactions{display:flex;gap:8px;width:100%}.hub .storeactions a{flex:1}.hub .storeactions button{width:100%;min-height:44px;font-size:14px;padding:8px}
.hub .store-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:16px}
.hub .store-pagination button{min-height:44px;padding:8px 16px}.hub .store-pagination button:disabled{opacity:.4;cursor:default}
.hub .buyercontent{padding:20px}.hub .footerline{margin-top:24px}

.guest-order-lookup{display:grid;gap:16px}.guest-order-lookup .field{margin:0}.guest-lookup-consent{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.5}.guest-lookup-consent input{flex:0 0 auto;width:20px;height:20px;margin:0;accent-color:var(--bb-text,#191919)}.guest-lookup-notice{margin:0;font-size:13px;line-height:1.5;color:#595959}.guest-order-lookup .submit{width:100%;min-height:48px}
