/**
 * main.css — 인증 게이트·공통 UI·(레거시)몰 공통·체크아웃·마이페이지 등
 *
 * 구역 나눔: 파일 내 `@@SECTION:…@@` 주석으로 검색. 토큰·html/body·유틸은
 *   styles/layers/01-tokens-and-base.css
 * 몰 전용 오버레이·프리미엄 레이아웃은 styles/mall-premium.css (#mallWrap)
 * 전체 맵: docs/ARCHITECTURE.md · styles/README.md
 */
@import "./layers/01-tokens-and-base.css";


/* @@SECTION:BUTTONS-UTIL@@ — .full·.muted·.btn·장바구니 버튼 반짝임 */
.full { width: 100%; }
.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  word-break: keep-all;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-1) var(--ease-soft),
    background-color var(--dur-1) var(--ease-soft),
    border-color var(--dur-1) var(--ease-soft),
    color var(--dur-1) var(--ease-soft);
  min-height: 44px;
}
.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(46, 172, 57, 0.25); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { background: #f4f6fa; border-color: #d0d6e2; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #283350; box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-danger:hover { background: var(--danger-hover); box-shadow: 0 4px 14px rgba(204, 64, 109, 0.25); }

/* 담기 클릭 시 상품 이미지가 우측 상단 장바구니로 빨려들어가는 인터랙션.
 * ghost 노드는 JS 에서 body 에 부착되며 시작 위치/크기는 "실제 카드 이미지 rect" 기준입니다.
 * 시각 스타일(라운드·그림자)은 기본값을 두고, 필요 시 JS 인라인 스타일로 미세 조정합니다.
 * 도착 시 #openCartBtn 에 .cart-btn--bump + #cartCount 에 .cart-count-badge--pop 이 동시에 트리거됩니다. */
.cart-fly-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  background-color: #fff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 12px;
  /* 가시 외곽선 제거 — hairline 그림자만으로 원형 가장자리를 또렷하게 처리 */
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 10px 26px rgba(15, 23, 42, 0.22),
    0 4px 12px rgba(15, 23, 42, 0.14);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
#openCartBtn.cart-btn--bump {
  animation: cart-btn-bump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cart-btn-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  62%  { transform: scale(0.94); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-fly-ghost { display: none !important; }
  #openCartBtn.cart-btn--bump { animation: none; }
}

/* @@SECTION:FORMS-BUTTONS-INPUTS@@ — 공통 입력 필드(input·select) */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]),
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  min-height: 44px;
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 172, 57, 0.12);
}

/* @@SECTION:AUTH-BG@@ — 로그인·auth-action 공통 배경 (body 단일 레이어 · fixed) */
html:has(#authGate:not(.hidden)) body,
html.auth-action-host body.auth-action-page {
  background-image: var(--auth-bg-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* @@SECTION:AUTH-GATE@@ — 로그인·회원가입 전체(kinetic 링·카드·탭·폼) */
.auth-gate {
  position: relative;
  isolation: isolate;
  /* html zoom(--app-visual-scale) 적용 시에도 뷰포트를 가득 채우도록 vh 역보정 */
  min-height: calc(100vh / var(--app-visual-scale));
  min-height: calc(100dvh / var(--app-visual-scale));
  /* 카드는 푸터를 제외한 위쪽 영역 안에서만 정중앙 — 원래 place-items:center 와 동일한 체감 */
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.auth-gate-main {
  position: relative;
  z-index: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-card-anchor {
  position: relative;
  width: min(440px, 100%);
  max-width: 100%;
}

/* 작은 원형 링 — 카드 우측 세로 중앙에 반쯤 걸침 */
.auth-gate-kinetic-orb {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  width: min(52vmin, 500px);
  height: min(52vmin, 500px);
  /* 카드 우측 중앙 기준에서 1000px 위 (2026-05-21) */
  transform: translate(25%, calc(-50% - 200px));
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  color: #1a1a1a;
  font-family: var(--font-sans, "Pretendard Variable", Pretendard, system-ui, sans-serif);
  border-radius: 50%;
  user-select: none;
  transition: color 0.45s ease;
  /* 회원가입 포커스 검은 원만 — 1=링과 동일, 0.75~0.85 권장 */
  --auth-kinetic-orb-bg-scale: 0.86;
}

/* badge-bg — 기본 scale(0) 이라 안 보임 · 입력 포커스 시에만 검은 원 */
.auth-gate-kinetic-orb__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background-color: #1a1a1a;
  border: none;
  box-shadow: none;
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  z-index: 1;
}

.auth-gate-kinetic-orb__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  animation: auth-gate-kinetic-orb-spin 40s linear infinite;
  transition: color 0.4s ease;
}

.auth-gate-kinetic-orb__text svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* 회원가입 탭 + 입력 포커스: 검은 원 음영 + 흰 글자 (회전 속도 유지) */
.auth-gate-kinetic-orb--typing-signup .auth-gate-kinetic-orb__bg {
  transform: translate(-50%, -50%) scale(var(--auth-kinetic-orb-bg-scale));
}

.auth-gate-kinetic-orb--typing-signup {
  color: #f4f4f4;
}

@keyframes auth-gate-kinetic-orb-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate-kinetic-orb__bg {
    transition: none;
  }

  .auth-gate-kinetic-orb--typing-signup .auth-gate-kinetic-orb__bg {
    transform: translate(-50%, -50%) scale(var(--auth-kinetic-orb-bg-scale));
  }

  .auth-gate-kinetic-orb__text {
    animation: none;
    transform: rotate(-12deg);
  }
}

.auth-card {
  position: relative;
  z-index: 2;
  overflow: visible;
  width: min(440px, 100%);
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 34px 30px 30px;
  box-shadow:
    0 4px 6px rgba(10, 24, 54, 0.03),
    0 24px 56px rgba(10, 24, 54, 0.14);
  transition:
    transform 0.28s var(--ease-out),
    box-shadow 0.35s var(--ease-soft);
}
.auth-card:hover {
  box-shadow:
    0 8px 16px rgba(10, 24, 54, 0.06),
    0 28px 60px rgba(10, 24, 54, 0.16);
}
.auth-card-head {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo-image {
  max-width: 200px;
  width: 100%;
  display: block;
  margin: 0 auto 14px;
}
.auth-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}
.auth-sub {
  margin: 0 auto;
  max-width: 300px;
  color: #515d73;
  font-size: 0.875rem;
  line-height: 1.65;
  word-break: keep-all;
}
.auth-forms-viewport {
  overflow: visible;
}

/* 탭 전환 시 카드 높이 FLIP 트윈 — 건너뛸 때는 스크립트가 인라인 height 제거 */
.auth-forms-viewport.auth-forms-viewport--tween {
  transition:
    height var(--auth-tab-switch-duration) var(--auth-tab-switch-ease),
    min-height var(--auth-tab-switch-duration) var(--auth-tab-switch-ease);
}

.auth-tab-panels.auth-tab-panels--instant-rows {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .auth-forms-viewport.auth-forms-viewport--tween {
    transition: none !important;
  }
}

/*
 * 로그인 ↔ 회원가입: grid 0fr / 1fr — 탭 슬라이더와 동일 duration/ease 로 전체 박스가 한 호흡으로 늘어남
 */
.auth-tab-panels {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0fr);
  transition: grid-template-rows var(--auth-tab-switch-duration) var(--auth-tab-switch-ease);
  transform: translateZ(0);
}
.auth-tab-panels.is-signup {
  grid-template-rows: minmax(0, 0fr) minmax(0, 1fr);
}
.auth-tab-panel {
  min-height: 0;
  overflow: hidden;
}
/* 비활성 탭: 그리드 행이 0이 되기 전에도 폼이 페인트되지 않게 해 카드 밖으로 새는 현상 방지 */
.auth-tab-panel[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.auth-tab-panel[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}
.auth-tab-panel__inner {
  min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .auth-tab-panels {
    transition: none;
  }
  .signup-stage-shell {
    transition: none;
  }
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  margin-bottom: 26px;
  background: linear-gradient(180deg, #eef2f7 0%, #e7ebf2 100%);
  border: 1px solid rgba(15, 27, 51, 0.06);
  border-radius: 14px;
  position: relative;
  isolation: isolate;
  box-shadow: inset 0 1px 2px rgba(15, 27, 51, 0.06);
}
.auth-tabs::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow:
    0 8px 18px rgba(15, 27, 51, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
  transform: translateX(0);
  transition:
    transform var(--auth-tab-switch-duration) var(--auth-tab-switch-ease),
    box-shadow var(--dur-1) var(--ease-soft);
  z-index: 0;
}
.auth-tabs.auth-tabs--signup::before {
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
  .auth-tabs::before {
    transition: none;
  }
}

.tab-btn {
  border: none;
  border-radius: 10px;
  background: transparent;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #6a7387;
  transition:
    color var(--auth-tab-switch-duration) var(--auth-tab-switch-ease),
    transform var(--dur-fast);
  position: relative;
  z-index: 1;
}
.tab-btn.active {
  background: transparent;
  color: var(--text);
}
.tab-btn:not(.active):hover {
  color: #4f5970;
}
.tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.auth-form { display: grid; gap: 8px; }
/* 탭 전환·인증 패널 해제 후에도 로그인/가입 폼이 동시에 노출되지 않도록 */
.auth-card:not(.auth-card--verify-pending) #loginForm.hidden,
.auth-card:not(.auth-card--verify-pending) #signupForm.hidden {
  display: none !important;
}
.auth-form--login {
  gap: 0;
  padding-top: 13px;
  padding-bottom: 23px;
}
.auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.01em;
}
.auth-form--login input {
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 11px;
  border-color: #dce0ea;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

/* ── Floating label — .auth-field--float (로그인 2개 필드에만 적용) ──
 * 구조: <div.auth-field--float> <input placeholder=" " /> <label.auth-label /> </div>
 * :placeholder-shown 트릭: placeholder=" " 시 값 없으면 label이 input 안에 위치 */
.auth-field--float {
  position: relative;
  display: block;
  margin-bottom: 16px;
}
.auth-field--float input {
  padding-top: 20px;
  padding-bottom: 6px;
  min-height: 52px;
}
.auth-field--float .auth-label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 0.875rem;
  font-weight: 500;
  color: #8a93a8;
  pointer-events: none;
  white-space: nowrap;
  transition: top 0.16s ease, transform 0.16s ease, font-size 0.16s ease,
              color 0.16s ease, font-weight 0.16s ease;
}
/* 값 있거나 포커스 시 label 위로 float */
.auth-field--float input:focus ~ .auth-label,
.auth-field--float input:not(:placeholder-shown) ~ .auth-label {
  top: 9px;
  transform: translateY(0);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary, #3a9d6e);
}
@media (prefers-reduced-motion: reduce) {
  .auth-field--float .auth-label { transition: none; }
}
.auth-form--login input:hover {
  border-color: #c5ccd8;
}
.auth-form--login input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 172, 57, 0.15);
}
.auth-submit {
  margin-top: 10px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-1) var(--ease-soft), background-color var(--dur-1) var(--ease-soft);
}
.auth-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(46, 172, 57, 0.28);
}
.auth-submit:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(46, 172, 57, 0.2);
}

#signupForm .btn-ghost,
#forgotPwPanel .btn-ghost,
#loginForm .btn-ghost {
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-soft), border-color 0.16s var(--ease-soft);
}
#signupForm .btn-ghost:hover,
#forgotPwPanel .btn-ghost:hover,
#loginForm .btn-ghost:hover {
  box-shadow: 0 4px 12px rgba(15, 27, 51, 0.08);
}
.auth-aux {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.auth-link {
  text-decoration: none;
  font-size: 0.87rem;
}
.auth-link:hover {
  text-decoration: underline;
}
.auth-form--signup-wizard {
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.signup-wizard-head {
  margin-bottom: 4px;
  padding: 12px 12px 10px;
  border-radius: 12px;
  border: 1px solid #dbe7dc;
  background: linear-gradient(145deg, #f5fbf6 0%, #ffffff 100%);
  transition: background 0.22s var(--ease-soft), border-color 0.22s var(--ease-soft), box-shadow 0.22s var(--ease-soft);
}
/* 가입 1단계: 회사 → 아이디 → 비밀번호 (최대 높이 ~7px) */
.signup-subprogress {
  margin: 0 0 19px;
}
.signup-subprogress.hidden {
  display: none !important;
}
.signup-subprogress__track {
  display: flex;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  max-height: 7px;
  height: 6px;
  overflow: hidden;
}
.signup-subprogress__seg {
  flex: 1;
  min-width: 0;
  min-height: 0;
  max-height: 7px;
  border-radius: 999px;
  background: rgba(23, 56, 38, 0.12);
  transition: background 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.signup-subprogress__seg.is-done {
  background: linear-gradient(90deg, #2aac39 0%, #229433 100%);
}
.signup-subprogress__seg.is-active {
  background: linear-gradient(90deg, #34c948 0%, #2aac39 100%);
  box-shadow: 0 0 0 1px rgba(46, 172, 57, 0.35);
}
.auth-form--signup-wizard.signup-step-2 .signup-subprogress,
.auth-form--signup-wizard.signup-step-3 .signup-subprogress {
  display: none !important;
}
.signup-step-heading {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.4;
  transition: color 0.2s var(--ease-soft);
}
.signup-step {
  display: grid;
  gap: 12px;
}
.signup-step:not(.hidden) {
  /* 뷰포트 height 와 translateY 가 동시에 움직이면 이중으로 튀는 느낌 → 페이드 위주 */
  animation: signup-step-fade-in calc(var(--auth-motion-duration) * 0.72) var(--auth-motion-ease);
}
.signup-step.hidden {
  display: none !important;
}
.signup-step-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.signup-step-nav--first {
  grid-template-columns: 1fr;
}
.auth-form--signup-wizard.signup-wizard--step-celebrate::after {
  content: "✨";
  position: absolute;
  right: 10px;
  top: 8px;
  font-size: 1.05rem;
  animation: signup-celebrate-pop 0.8s var(--ease-out);
  pointer-events: none;
}
@keyframes signup-step-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes signup-celebrate-pop {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.7);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.12);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(1);
  }
}
.auth-form--signup-wizard.signup-step-1 .signup-wizard-head {
  border-color: #cce8d1;
  background: linear-gradient(145deg, #f4fbf5 0%, #ffffff 100%);
}
.auth-form--signup-wizard.signup-step-2 .signup-wizard-head {
  border-color: #c9dcff;
  background: linear-gradient(145deg, #f2f7ff 0%, #ffffff 100%);
}
.auth-form--signup-wizard.signup-step-3 .signup-wizard-head {
  border-color: #c9efd0;
  background: linear-gradient(145deg, #effcf1 0%, #ffffff 100%);
  box-shadow: 0 8px 20px rgba(46, 172, 57, 0.12);
}
.auth-form--signup-wizard.signup-step-2 .signup-step-heading {
  color: #285bb8;
}
.auth-form--signup-wizard.signup-step-3 .signup-step-heading {
  color: #157c35;
}
.signup-pw-firebase-wrap {
  margin-top: 10px;
}
.signup-pw-local-wrap {
  margin-top: 4px;
}
/* Firebase 비밀번호 블록: 상단 이메일 영역과 같은 inline-box 안에서 경계만 살짝 분리 */
.signup-pw-firebase-panel {
  padding: 12px 14px 14px;
  border-radius: 10px;
  border: 1px solid #c5dcc9;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
  box-shadow: 0 1px 2px rgba(22, 62, 35, 0.06);
  display: grid;
  gap: 10px;
}
.signup-pw-firebase-panel .signup-pw-hint {
  margin: 0;
  padding-top: 2px;
  border-top: 1px solid rgba(46, 172, 57, 0.14);
  font-size: 0.84rem;
  line-height: 1.5;
}
.signup-company-sync-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}
.signup-stage {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  animation: signup-stage-reveal calc(var(--auth-motion-duration) * 0.42) var(--auth-motion-ease);
}
.signup-stage.hidden {
  display: none !important;
}

/* 회사 선택 후 펼침 — display:none 대신 grid 행 보간(0fr→1fr), 확장이 한 번에 튀지 않게 */
.signup-stage-shell {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--auth-motion-duration) var(--auth-motion-ease);
}
.signup-stage-shell.is-expanded {
  grid-template-rows: 1fr;
}
.signup-stage-shell__inner {
  min-height: 0;
  overflow: hidden;
}
.signup-stage-shell .signup-stage {
  animation: none;
}

@keyframes signup-stage-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.auth-form--signup-wizard input,
.auth-form--signup-wizard select,
.forgot-pw-panel input {
  min-height: 48px;
}
.auth-form--signup-wizard .btn,
.forgot-pw-panel .btn,
.email-verify-panel .btn {
  min-height: 48px;
}
.auth-form--signup-wizard .field-block {
  gap: 7px;
}
.inline-box {
  border: 1px solid #bfe8c3;
  background: #f3fcf5;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
#companyGuideText {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-title { margin: 0; color: #157c35; font-size: 0.86rem; line-height: 1.45; }
.inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.inline-fixed-domain {
  align-self: center;
  padding: 0 10px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #cde2d2;
  border-radius: 8px;
  background: #f7fcf8;
  color: #2f7a45;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.signup-shipping-block { margin-top: 2px; }
.signup-shipping-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.address-zip-row input { min-width: 0; }
.step-msg { margin: 0; color: var(--muted); font-size: 0.82rem; }
.signup-firebase-note { margin: 0 0 10px; line-height: 1.55; }
.email-verify-panel {
  margin-top: 12px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fafcff;
}
.email-verify-panel.hidden { display: none !important; }
.email-verify-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
}
.email-verify-lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.email-verify-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
}
.email-verify-checklist {
  margin: 0 0 14px;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  line-height: 1.55;
}
.email-verify-checklist li { margin-bottom: 6px; }
.email-verify-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.email-verify-logout {
  margin-top: 4px;
  align-self: center;
  width: auto;
  min-width: 0;
}

.auth-card--verify-pending .auth-tabs,
.auth-card--verify-pending .auth-form,
.auth-card--verify-pending .forgot-pw-panel {
  display: none !important;
}

.msg { min-height: 21px; margin: 8px 0 0; color: var(--danger); font-size: 0.88rem; }
.auth-card > .msg {
  margin-top: 16px;
  text-align: center;
  line-height: 1.45;
}
.tip { margin: 6px 0 0; font-size: 0.77rem; color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color var(--dur-1) var(--ease-soft),
    box-shadow var(--dur-1) var(--ease-soft),
    background-color var(--dur-1) var(--ease-soft);
}
.topbar.topbar--dense {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 28px rgba(15, 27, 51, 0.07);
  background: rgba(255, 255, 255, 0.94);
}
.topbar-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  gap: 12px;
  align-items: center;
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  transform: translateY(7px);
}
.search-area input {
  min-height: 46px;
  background: #f8f9fd;
  border-color: #e0e5ef;
}
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-actions .btn {
  white-space: nowrap;
}
.user-email {
  min-width: 0;
  color: var(--muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* @@SECTION:SUBNAV-BRAND-STRIP@@ — 목차 서브네비·브랜드 몰 스트립(공통; 몰은 mall-premium이 #mallWrap에서 오버라이드) */
.subnav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(15, 27, 51, 0.04);
}
.subnav-inner {
  padding: 12px 0 10px;
  display: grid;
  gap: 10px;
}
.subnav-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
}
.subnav-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}
.subnav-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.brand-mall-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.brand-mall-strip.brand-mall-strip--carousel {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
}
.brand-mall-viewport {
  overflow: hidden;
}
.brand-mall-track--carousel {
  display: flex;
  gap: 8px;
  width: max-content;
}
.brand-mall-track--carousel .brand-mall-card {
  flex: 0 0 calc((100vw - 196px - 32px - 80px) / 6);
  min-width: 180px;
  max-width: 260px;
}
.brand-mall-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #3b465c;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.brand-mall-nav:hover {
  border-color: rgba(46, 172, 57, 0.4);
  color: #1f7e2e;
}
.brand-mall-card {
  text-align: left;
  border: 1px solid rgba(27, 36, 56, 0.09);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 76px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.brand-mall-card:hover {
  border-color: rgba(46, 172, 57, 0.35);
  transform: none;
  box-shadow: 0 4px 16px rgba(15, 27, 51, 0.06);
  background: #fff;
}
.brand-mall-card.active {
  border-color: rgba(46, 172, 57, 0.55);
  box-shadow: 0 0 0 1px rgba(46, 172, 57, 0.12);
  background: #fff;
}

/* 로고 카드: 우측 고정 박스(96×44) + 글자와 여백 */
.brand-mall-card--logo {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 12px 108px 12px 14px;
}
.brand-mall-logo-img {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 44px;
  object-fit: contain;
  object-position: center center;
  z-index: 1;
  pointer-events: none;
}
.brand-mall-card--logo > span {
  position: relative;
  z-index: 2;
}

.brand-mall-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-mall-tagline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.75rem;
  color: #585f68;
  line-height: 1.45;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.brand-mall-consult {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.72rem;
  color: #4a5159;
  line-height: 1.45;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .brand-mall-strip.brand-mall-strip--carousel {
    grid-template-columns: 1fr;
  }
  .brand-mall-nav {
    display: none;
  }
  .brand-mall-track--carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .brand-mall-track--carousel .brand-mall-card {
    min-width: 0;
    max-width: none;
  }
  .brand-mall-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .brand-mall-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand-mall-card {
    min-height: 72px;
    padding: 10px 12px;
    gap: 5px;
  }
  .brand-mall-card--logo {
    padding: 10px 92px 10px 12px;
  }
  .brand-mall-logo-img {
    width: 80px;
    height: 38px;
    right: 8px;
  }
}

/* @@SECTION:SHOP-PAGE-HERO@@ — .page·히어로·카탈로그(레거시 몰 공통 마크업) */
.page { padding: 14px 0 30px; display: grid; gap: 14px; }
.page.shop-list {
  padding-top: 0;
  gap: 12px;
}
.catalog-section {
  scroll-margin-top: 8px;
}
#shopHero.hero-banner {
  scroll-margin-top: 96px;
}
.hero-banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  color: #fff;
  background: linear-gradient(135deg, #0e5420 0%, #1a7d2e 38%, #28a43a 100%);
  box-shadow: 0 12px 40px rgba(20, 100, 40, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%);
  pointer-events: none;
}
.hero-main { position: relative; z-index: 1; }
.hero-label { margin: 0; font-size: 0.75rem; letter-spacing: 0.09em; opacity: 0.9; }
.hero-banner h1 { margin: 6px 0; font-size: clamp(1.35rem, 2.8vw, 1.85rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.hero-desc { margin: 0; opacity: 0.94; font-size: 0.95rem; line-height: 1.55; max-width: 36em; }
.hero-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.hero-trust li {
  display: grid;
  gap: 2px;
  padding-right: 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}
.hero-trust li:last-child { border-right: none; padding-right: 0; }
.hero-trust strong { font-size: 0.82rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-trust span { font-size: 0.74rem; opacity: 0.88; }
.hero-status {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.38);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 16px;
  align-self: center;
}
.hero-status .label { margin: 0; font-size: 0.82rem; }
.partner-pill {
  margin: 8px 0 0;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
}

.layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 22px;
  align-items: start;
}
.catalog-section.layout {
  padding-top: 4px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.filters h3 { margin: 0 0 10px; }
.filters { position: sticky; top: 92px; display: grid; gap: 10px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid #d4daea;
  background: #fff;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover:not(.active) { border-color: #c0c9dc; background: #f8f9fc; }
.chip.active { background: #eaf9eb; border-color: #bfe8c3; color: #1f7e2e; font-weight: 600; }
.check-line { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.check-line input { width: 16px; height: 16px; }

.products { display: grid; gap: 10px; }
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.kpi:hover {
  border-color: #d4e6d8;
  box-shadow: var(--shadow-sm);
}
.kpi p { margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.kpi b { margin-top: 4px; display: block; font-size: 1.05rem; letter-spacing: -0.01em; }

/* @@SECTION:PRODUCT-GRID@@ — 상품 카드·그리드 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.24s var(--ease-soft), transform 0.24s var(--ease-out), border-color 0.2s var(--ease-soft);
}
.product-card:hover {
  border-color: #c8e6cf;
  box-shadow: 0 8px 28px rgba(30, 38, 64, 0.1), 0 2px 6px rgba(30, 38, 64, 0.04);
  transform: translateY(-3px);
}
.product-image-hit {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #f2f3f8;
  cursor: pointer;
  line-height: 0;
}
.product-image-hit:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.product-image { width: 100%; height: 200px; object-fit: cover; background: #f2f3f8; }
.product-body { padding: 15px; display: grid; gap: 9px; flex: 1; }
.product-name-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.product-name-btn:hover { color: var(--primary); }
.product-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.product-card-actions .btn-primary {
  grid-column: 1 / -1;
}
.btn-detail-sm {
  font-size: 0.8rem;
  padding: 8px 10px;
  white-space: nowrap;
}
.badge-line { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #157c27;
  border: 1px solid #a8d8b0;
  background: #e2f5e6;
  border-radius: 99px;
  padding: 3px 8px;
}
.product-desc { margin: 0; font-size: 0.82rem; color: var(--muted); min-height: 2.3em; }
.meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}
.price-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.base-price { text-decoration: line-through; color: #8e97ab; font-size: 0.83rem; }
.sale-price { font-size: 1.02rem; font-weight: 700; }
.discount { color: var(--success); font-size: 0.82rem; font-weight: 700; }

/* 정가 / 판매가 / 회사 혜택가 + 할인율 */
.price-area {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 11px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #edf0f5;
}
.price-block-guest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.price-block-staff {
  display: grid;
  gap: 4px;
}
.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.price-line--emphasis .sale-price {
  font-size: 1.08rem;
}
.price-label {
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.02em;
}
.staff-discount-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf9eb;
  border: 1px solid #bfe8c3;
  color: #1f7e2e;
  font-size: 0.8rem;
  font-weight: 700;
}
.price-save-line {
  margin: 4px 0 0;
  font-size: 0.84rem;
}
.price-company-hint {
  margin: 4px 0 0;
  line-height: 1.45;
}
.option-grid { display: grid; gap: 6px; }
.qty-line { display: grid; grid-template-columns: 1fr 78px; gap: 6px; }

/* @@SECTION:CART-DRAWER@@ — 장바구니 드로어 */
.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  /* 뷰포트 세로 전체 — height:100vh 만 쓰면 모바일·래퍼 안에서 아래가 비는 경우 있음 */
  width: min(440px, 100vw);
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 30px rgba(15, 27, 51, 0.14);
  z-index: 62;
  box-sizing: border-box;
  transform: translate3d(100%, 0, 0);
  backface-visibility: hidden;
  transition:
    transform var(--dur-sheet) var(--ease-sheet),
    box-shadow var(--dur-sheet) var(--ease-soft);
}
.cart-drawer.open {
  transform: translate3d(0, 0, 0);
}
.cart-drawer__inner {
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}

@media (min-width: 901px) {
  .cart-drawer {
    width: min(480px, 100vw);
  }
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cart-items {
  overflow: auto;
  display: grid;
  gap: 8px;
  margin: 10px 0;
  align-content: start;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}
.cart-empty {
  margin: 0;
  padding: 36px 16px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
/* 카트 상단 배송지 미입력 안내 — 결제 버튼 누르기 전에 사전 경고. validateCartForCheckout 의 차단 사유와 동일 문구 톤. */
.cart-shipping-notice {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff5f1;
  border: 1px solid #f3c7b5;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  color: #8a3a1d;
  font-size: 0.88rem;
  line-height: 1.55;
}
.cart-shipping-notice strong {
  font-size: 0.94rem;
  color: #6a2d12;
}
.cart-shipping-notice p {
  margin: 0;
}
.cart-shipping-notice__btn {
  margin-top: 4px;
  justify-self: start;
  padding: 8px 14px;
  font-size: 0.86rem;
  border-radius: 8px;
}
.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
  color: var(--text);
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(15, 27, 51, 0.05);
  transition: border-color var(--dur-fast) var(--ease-soft), box-shadow var(--dur-fast) var(--ease-soft);
}
.cart-item:hover {
  border-color: #d0d9e8;
  box-shadow: 0 2px 8px rgba(15, 27, 51, 0.08);
}
.cart-item b { font-size: 0.9rem; }
.item-row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.qty-stepper {
  display: grid;
  grid-template-columns: 34px 72px 34px;
  gap: 6px;
  align-items: center;
}
.qty-stepper input {
  text-align: center;
  padding: 8px 6px;
}
.qty-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}
.cart-foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
  display: grid;
  gap: 8px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 10px);
}
.cart-foot .row {
  min-height: 1.35em;
  align-items: center;
}
.cart-foot .row b {
  font-variant-numeric: tabular-nums;
}
.cart-foot .btn.full {
  margin-top: 6px;
}
.row { display: flex; justify-content: space-between; font-size: 0.9rem; }
.row.total { font-size: 1rem; }

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 36, 0.42);
  /* backdrop-filter 는 스크롤·열림 시 GPU 부담 — 단색 딤만 사용 */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-sheet) var(--ease-sheet);
  z-index: 61;
}
.cart-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* 우측 상단 연결 도트 — 파동은 box-shadow spread 만 사용(항상 정원, 타원 왜곡 없음) */
.firebase-live-indicator {
  position: fixed;
  z-index: 100;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: auto;
  pointer-events: none;
}
.firebase-live-indicator.hidden {
  display: none !important;
}
.firebase-live-indicator-pulse {
  display: block;
  width: 8px;
  height: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  transform: translateZ(0);
  /* 파동은 아래 상태별 animation 한 개만 사용 (::after scale 제거) */
}
/* 미연결 */
.firebase-live-indicator--bad .firebase-live-indicator-pulse {
  background: #e53935;
  animation: firebase-live-ring-bad 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
/* 초기화 오류 */
.firebase-live-indicator--error .firebase-live-indicator-pulse {
  background: #c62828;
  animation: firebase-live-ring-err 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
/* 정상(브랜드 primary 녹색) */
.firebase-live-indicator--ok .firebase-live-indicator-pulse {
  background: var(--primary);
  animation: firebase-live-ring-ok 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes firebase-live-ring-ok {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 172, 57, 0.48);
  }
  65% {
    box-shadow: 0 0 0 11px rgba(46, 172, 57, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 172, 57, 0);
  }
}
@keyframes firebase-live-ring-bad {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.48);
  }
  65% {
    box-shadow: 0 0 0 11px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}
@keyframes firebase-live-ring-err {
  0% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.48);
  }
  65% {
    box-shadow: 0 0 0 11px rgba(198, 40, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0);
  }
}
.firebase-live-indicator-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: min(92vw, 22rem);
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
  opacity: 0;
  box-shadow: var(--shadow-lg);
  transition: opacity var(--dur-modal) var(--ease-soft), transform var(--dur-modal) var(--ease-out);
  z-index: 120;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.product-detail-page {
  padding-top: 8px;
  padding-bottom: 48px;
}
.detail-toolbar {
  position: relative;
  margin: 10px 0 16px;
  padding: 0;
  z-index: 1;
  background: transparent;
  backdrop-filter: none;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f1a20;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #b4c1d1;
  border-radius: 999px;
  padding: 9px 17px 9px 12px;
  box-shadow: 0 8px 22px rgba(18, 28, 38, 0.14);
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.detail-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.84;
  transition: transform 0.15s;
}
.detail-back:hover {
  background: #ffffff;
  border-color: #98adbf;
  box-shadow: 0 10px 24px rgba(18, 28, 38, 0.17);
  transform: none;
}
.detail-back:hover svg {
  transform: translateX(-2px);
}
.detail-back:active {
  transform: scale(0.97);
}
.detail-back:focus-visible {
  outline: 2px solid #7ebd9d;
  outline-offset: 2px;
}
@media (min-width: 901px) {
  .detail-toolbar {
    margin-top: 18px; /* PC에서 상세 시작 지점 살짝 아래 */
    margin-bottom: 18px;
  }
  .detail-back {
    font-size: 0.96rem;
  }
}
.product-detail-root {
  display: grid;
  gap: 22px;
}
.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
  gap: 28px;
  /* stretch: 좌·우 열 높이를 맞춘 뒤 갤러리 안에서 이미지만 세로 중앙 */
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.detail-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  overflow: visible;
  /* 2026-05-14: 회색 음영 제거 — 배경은 투명, 정렬만 flex 로 중앙 */
  background: transparent;
}
.detail-gallery__frame {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--mall-product-img-radius, 16px);
  overflow: hidden;
  line-height: 0;
}
.detail-gallery__frame img,
.detail-gallery img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(620px, 68vh);
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  border-radius: 0;
}
.detail-title {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  font-weight: 800;
  word-break: keep-all;
  letter-spacing: -0.02em;
}
.detail-sub {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  word-break: keep-all;
}
.detail-lead {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #3d4659;
  line-height: 1.72;
  word-break: keep-all;
}
.detail-price-row {
  margin-bottom: 8px;
}
.detail-options .field-label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.detail-options .field-label--option-pick {
  gap: 0;
}
.detail-quick-meta {
  margin: 16px 0 0;
  padding: 12px 14px;
  list-style: none;
  border-radius: 10px;
  background: #f6f8fc;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 0.84rem;
}
.detail-quick-meta li span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.detail-section-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.spec-table th,
.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  width: 28%;
  min-width: 120px;
  color: var(--muted);
  font-weight: 600;
  background: #fafbfd;
}
.detail-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
.detail-block {
  margin-bottom: 20px;
}
.detail-block:last-child { margin-bottom: 0; }
.detail-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}
.detail-block p {
  margin: 0;
  font-size: 0.94rem;
  color: #3a4356;
  line-height: 1.7;
}
.detail-block__figure {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: var(--mall-product-img-radius, 16px);
  border: 1px solid var(--line);
  overflow: hidden;
  background: #f2f3f8;
}

/* @@SECTION:CHECKOUT-PAYMENT@@ — 결제·체크아웃 모달·토스 등 */
.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(12, 20, 36, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: overlay-fade-in var(--dur-modal) var(--ease-soft);
}
@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.checkout-modal-panel {
  width: min(420px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  animation: modal-slide-up var(--dur-modal) var(--ease-out);
}
@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.checkout-modal-panel h3 { margin: 0 0 8px; font-size: 1.15rem; }
.checkout-modal-note { margin: 0 0 14px; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.checkout-modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f4f6fb;
  font-size: 0.92rem;
}
.checkout-modal-total strong { font-size: 1.1rem; }
.checkout-modal-methods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.checkout-modal-chip {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.checkout-modal-chip.muted-chip { opacity: 0.55; }
.checkout-modal-orderid { margin: 0 0 16px; font-size: 0.82rem; color: var(--muted); }
.checkout-modal-orderid code { font-size: 0.85rem; color: var(--text); }
.checkout-modal-actions { display: grid; gap: 8px; }

.toss-checkout-panel.checkout-modal-panel {
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
}
.toss-method-heading.checkout-modal-label {
  margin-bottom: 8px;
}
.toss-method-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.toss-method-chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.toss-method-chip:hover {
  border-color: #b8dfc0;
  background: #f9fdf9;
}
.toss-method-chip.selected {
  border-color: var(--primary);
  background: #eaf7ec;
  color: #157c35;
  box-shadow: 0 0 0 1px rgba(46, 172, 57, 0.25);
}

.checkout-modal-field { margin-bottom: 14px; }
.checkout-modal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.checkout-method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.checkout-method-tab {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafbfd;
  color: var(--text);
  cursor: pointer;
  line-height: 1.25;
}
.checkout-method-tab:hover { background: #f0f3fa; }
.checkout-method-tab.active {
  border-color: #2f6bff;
  background: #eef3ff;
  color: #1a3a8f;
  box-shadow: 0 0 0 1px rgba(47, 107, 255, 0.25);
}
.checkout-modal-sub {
  margin-bottom: 14px;
  padding-top: 2px;
}
.checkout-modal-sub.hidden { display: none; }
.checkout-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checkout-pick-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.checkout-pick-btn:hover { border-color: #c8d4ee; }
.checkout-pick-btn.selected {
  border-color: #2f6bff;
  background: #eef3ff;
  color: #1a3a8f;
}
.checkout-select-wrap {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.checkout-select {
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
@media (max-width: 380px) {
  .checkout-method-tabs {
    grid-template-columns: 1fr;
  }
}

/* 토스 PHP 샘플 checkout — 몰 안 iframe 모달 */
.toss-demo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(12, 20, 36, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: toss-demo-modal-in 0.22s ease;
}
@keyframes toss-demo-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.toss-demo-modal-shell {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  height: min(92vh, 880px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 27, 51, 0.28);
  overflow: hidden;
  border: 1px solid rgba(15, 27, 51, 0.08);
}
.toss-demo-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
  flex-shrink: 0;
}
.toss-demo-modal-head-text h3 {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.toss-demo-modal-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.toss-demo-modal-sub code {
  font-size: 0.78rem;
  font-family: ui-monospace, "Cascadia Code", monospace;
  background: #eef1f7;
  padding: 2px 6px;
  border-radius: 6px;
  color: #2a3347;
}
.toss-demo-modal-head .toss-demo-modal-close {
  flex-shrink: 0;
  font-weight: 600;
}
.toss-demo-modal-frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #e8ecf4;
}
.toss-demo-modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
@media (max-width: 640px) {
  .toss-demo-modal-backdrop {
    padding: 0;
    align-items: stretch;
  }
  .toss-demo-modal-shell {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .toss-demo-modal-head {
    padding: 12px 14px;
  }
}

.order-complete-kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
}
.order-complete-panel h3 { margin: 0 0 10px; font-size: 1.2rem; }

/* 무통장 입금 주문 모달 */
.bank-transfer-panel.checkout-modal-panel {
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
}
.bank-wizard-lead {
  margin-bottom: 14px !important;
  min-height: 2.8em;
}
.bank-wizard-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  margin: 0 0 18px;
  padding: 6px 0 2px;
  list-style: none;
  counter-reset: bw;
  overflow: visible;
}
.bank-wizard-dot {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--muted);
  position: relative;
}
.bank-wizard-dot::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.bank-wizard-dot:last-child::after {
  display: none;
}
.bank-wizard-dot.is-done::after {
  background: var(--success);
  opacity: 0.45;
}
.bank-wizard-dot-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-2, #f0f2f6);
  border: 2px solid var(--line);
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.bank-wizard-dot.is-done .bank-wizard-dot-num {
  border-color: var(--success);
  background: var(--success);
  color: transparent;
  font-size: 0;
}
.bank-wizard-dot.is-done .bank-wizard-dot-num::after {
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}
.bank-wizard-dot.is-current .bank-wizard-dot-num {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.bank-wizard-dot-label {
  display: block;
  padding: 0 2px;
}
.bank-wizard-panels {
  margin-bottom: 8px;
}
.bank-wizard-panel:focus-visible {
  outline: none;
}
.bank-wizard-panel-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}
.bank-wizard-panel-desc {
  margin: 0 0 14px;
  font-size: 0.84rem;
  line-height: 1.45;
}
.bank-wizard-section--flush {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}
.bank-order-id--prominent {
  margin: 0 0 14px;
  font-size: 0.92rem;
}
.bank-order-id--prominent code {
  font-size: 1rem;
  font-weight: 600;
}
.bank-review-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f8fc;
  border: 1px solid var(--line);
}
.bank-review-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.bank-review-row:last-of-type {
  margin-bottom: 0;
}
.bank-review-row strong {
  font-size: 1.05rem;
}
.bank-review-code {
  font-size: 0.88rem;
}
.bank-review-proof {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
}
.bank-review-thumb {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.bank-wizard-actions .bank-wizard-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}
.bank-wizard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (max-width: 480px) {
  .bank-wizard-actions .bank-wizard-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bank-wizard-nav {
    justify-content: stretch;
  }
  .bank-wizard-nav .btn {
    flex: 1;
    min-width: 0;
  }
}
.bank-transfer-section {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.bank-transfer-section:last-of-type {
  border-bottom: none;
}
.bank-transfer-total {
  margin-top: 8px;
}
.bank-order-id {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.bank-order-id code {
  font-size: 0.9rem;
  color: var(--text);
}
.bank-order-lines {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.bank-transfer-rows .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  margin-top: 4px;
}
.bank-account-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8fc;
  border: 1px solid var(--line);
}
.bank-account-line {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.bank-account-line.mono {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.bank-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.btn-sm {
  padding: 6px 10px;
  font-size: 0.82rem;
}
.bank-shortcut-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.bank-shortcut-btn {
  font-size: 0.82rem !important;
}
.bank-proof-label {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.86rem;
}
.bank-proof-input {
  font: inherit;
}
.bank-proof-preview-wrap {
  margin-top: 10px;
}
.bank-proof-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.bank-proof-err--hint {
  color: var(--mall-green-deep, #2d7a52);
}

.bank-proof-err {
  margin-top: 8px;
  font-size: 0.84rem;
  color: #b42318;
}

/* 마이페이지 주문 진행 단계 */
ul.order-flow-steps {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.78rem;
}
@media (max-width: 640px) {
  ul.order-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fafbff;
  color: var(--muted);
}
.flow-step.done {
  border-color: #bfe8c3;
  background: #f1fbf2;
  color: #1a4d1f;
}
.flow-step.current {
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(31, 126, 46, 0.2);
}
.flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd6e6;
  flex-shrink: 0;
}
.flow-step.done .flow-dot {
  background: #1f7e2e;
}
.order-proof-box {
  margin: 10px 0 0;
}
.order-proof-thumb {
  max-width: 100%;
  max-height: 160px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.payment-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 20, 36, 0.5);
  display: grid;
  place-items: center;
  align-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: overlay-fade-in var(--dur-modal) var(--ease-soft);
}
.payment-result-overlay.hidden { display: none; }

/* 개인정보 처리방침 — 전역 다이얼로그 */
.privacy-policy-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  background: rgba(12, 20, 36, 0.52);
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  animation: overlay-fade-in var(--dur-modal) var(--ease-soft);
}
.privacy-policy-overlay.hidden {
  display: none;
}
.privacy-policy-dialog {
  width: min(640px, 100%);
  max-height: min(88vh, calc(100dvh - 24px));
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(12, 20, 36, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.privacy-policy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.privacy-policy-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.privacy-policy-close {
  flex-shrink: 0;
}
.privacy-policy-body {
  padding: 14px 18px 20px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}
.privacy-policy-body p {
  margin: 0 0 12px;
}
.privacy-policy-body ul {
  margin: 0 0 12px;
  padding-left: 1.15rem;
}
.privacy-policy-body li {
  margin-bottom: 6px;
}
.privacy-policy-meta {
  font-size: 0.9rem;
}
.privacy-policy-body > h3.privacy-policy-section-title {
  margin: 20px 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}
.privacy-policy-body > h3.privacy-policy-section-title:first-of-type {
  margin-top: 4px;
}
.privacy-policy-muted {
  font-size: 0.82rem;
  color: var(--muted);
}

/* @@SECTION:WELCOME-MALL-PROFILE-OVERLAYS@@ — 결제 결과·몰 프로필 오버레이 */
.mall-profile-overlay {
  z-index: 90;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.36);
}
.mall-profile-card {
  position: relative;
  width: min(440px, 100%);
  max-height: none;
  overflow: hidden;
  padding-top: 0;
  text-align: center;
}
.mall-profile-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #5fd68a 100%);
}
.mall-profile-card .mall-profile-head,
.mall-profile-card .mall-profile-form,
.mall-profile-card .mall-pay-notice {
  text-align: left;
}
.mall-profile-eyebrow {
  margin: 4px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.mall-profile-card .mall-profile-title {
  font-size: clamp(1.2rem, 2.8vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.34;
}
.mall-profile-card .payment-result-muted {
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: color-mix(in srgb, var(--text) 68%, var(--muted));
}
.mall-profile-card .mall-pay-notice {
  margin-top: 18px;
}
.mall-profile-card .mall-profile-form {
  margin-top: 18px;
}
.mall-profile-head {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 8px;
}
.mall-profile-close {
  font-size: 0.86rem;
}
.mall-profile-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.mall-profile-msg {
  min-height: 20px;
  margin: 0;
}
.payment-result-card {
  width: min(520px, 100%);
  font-family: var(--font-sans);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(229, 232, 240, 0.85);
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 26px) 22px;
  box-shadow: var(--shadow-xl);
  animation: modal-slide-up var(--dur-modal) var(--ease-out);
}
.payment-result-section { text-align: center; }
.payment-result-illust { display: block; margin: 0 auto 12px; }
.payment-result-lead {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.45;
  word-break: keep-all;
}
.payment-result-title {
  margin: 0 0 14px;
  font-size: clamp(1.22rem, 2.8vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: keep-all;
  text-wrap: balance;
  color: var(--text);
}
.payment-result-muted {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.58;
  word-break: keep-all;
}
.payment-result-dl {
  margin: 0 0 18px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
}
.payment-result-dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.payment-result-dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.payment-result-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.payment-result-dl dd { margin: 0; word-break: break-all; }
.payment-result-break { word-break: break-all; }
.payment-result-json {
  margin: 0 0 16px;
  text-align: left;
}
.payment-result-json b { font-size: 0.85rem; }
.payment-result-pre {
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 10px;
  background: #f4f6fb;
  font-size: 0.75rem;
  line-height: 1.45;
  overflow: auto;
  max-height: 200px;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-all;
}

.auth-row-between {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.btn-text {
  border: none;
  background: none;
  padding: 6px 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #157c35;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-text:hover { color: #0d5223; }

/* iPhone 스타일 4자리 PIN (비밀번호 찾기용 휴대폰 뒷자리) */
.pin-code-field {
  margin: 12px 0 4px;
}
.pin-code-field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark, #0a0f0c);
  margin-bottom: 4px;
}
.pin-code-field__hint {
  margin: 0 0 10px;
  font-size: 0.74rem;
  line-height: 1.45;
}
.pin-code-input-host.pin-code-input {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
  cursor: text;
}
.pin-code-input__cells {
  display: flex;
  gap: 10px;
  pointer-events: none;
}
.pin-code-input__cell {
  width: 52px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid rgba(10, 15, 12, 0.14);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--dark, #0a0f0c);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pin-code-input__cell.is-active {
  border-color: var(--primary, #2eac39);
  box-shadow: 0 0 0 3px rgba(46, 172, 57, 0.18);
}
.pin-code-input__cell.is-filled {
  border-color: rgba(10, 15, 12, 0.28);
}
.pin-code-input__hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: text;
}

.forgot-pw-panel {
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #cfe8d3;
  background: #f8fdf9;
  display: grid;
  gap: 10px;
}
.forgot-pw-panel.hidden { display: none !important; }
.forgot-pw-lead {
  margin: 0 0 4px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.field-block {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.my-page { padding-top: 10px; padding-bottom: 40px; }
.mypage-head { margin-bottom: 18px; }
.mypage-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.28;
  word-break: keep-all;
  text-wrap: balance;
}
.mypage-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  word-break: keep-all;
}
.mypage-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
.mypage-nav {
  display: grid;
  gap: 6px;
  padding: 12px;
  position: sticky;
  top: 92px;
}
.mypage-nav-btn {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mypage-nav-btn:hover {
  background: #f4fbf5;
  border-color: #bfe8c3;
}
.mypage-nav-btn.active {
  border-color: var(--primary);
  background: #eaf7ec;
  color: #157c35;
}
.mypage-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  min-height: 280px;
}
.mypage-content h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
}
.order-list { display: grid; gap: 14px; }
.order-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: #fafbfd;
}
.order-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.order-id { font-weight: 800; font-size: 0.95rem; }
.order-meta { font-size: 0.82rem; color: var(--muted); }
.order-lines { margin: 0; padding-left: 18px; font-size: 0.88rem; color: #3a4356; }
.order-lines li { margin-bottom: 4px; }
.tracking-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.tracking-box h4 { margin: 0 0 8px; font-size: 0.82rem; color: var(--muted); }
.cash-receipt-customer {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.cash-receipt-customer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.cash-receipt-customer__title {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.cash-receipt-customer__pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.cash-receipt-customer--pending .cash-receipt-customer__pill {
  background: #fff7ed;
  color: #b45309;
  border: 1px solid #fed7aa;
}
.cash-receipt-customer--done .cash-receipt-customer__pill {
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}
.cash-receipt-customer__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.86rem;
  margin-bottom: 6px;
}
.cash-receipt-customer__row span { color: var(--muted); }
.cash-receipt-customer__row code {
  font-size: 0.85rem;
  background: #f0f2f7;
  padding: 2px 6px;
  border-radius: 4px;
}
.cash-receipt-apply__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cash-receipt-apply__submit {
  margin-top: 10px;
}

.cash-receipt-apply__msg {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.cash-receipt-apply__msg--err {
  color: #b5345c;
  font-weight: 600;
}

.cash-receipt-customer__when {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}
.tracking-row { font-size: 0.88rem; margin-bottom: 6px; }
.tracking-row code { font-size: 0.85rem; background: #f0f2f7; padding: 2px 6px; border-radius: 4px; }
.tracking-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.tracking-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}
.tracking-steps li.done { color: var(--text); font-weight: 600; }
.tracking-steps .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.tracking-steps li.done .dot { background: var(--primary); }
.shipping-form { display: grid; gap: 12px; max-width: 480px; }
.shipping-form label { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.pw-form { display: grid; gap: 12px; max-width: 420px; }
.pw-form .hint { margin: 0; font-size: 0.82rem; color: var(--muted); }
.empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1120px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-hero { grid-template-columns: 1fr; }
  .mypage-layout { grid-template-columns: 1fr; }
  .mypage-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mypage-nav-btn { flex: 1; min-width: 140px; text-align: center; }
}
/* iOS Safari — index 공유 로그인·가입(auth-gate): 입력 포커스 시 <16px 이면 화면 확대 */
@media (max-width: 768px) {
  .auth-gate input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]),
  .auth-gate select,
  .auth-gate textarea {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  #shopHero.hero-banner { scroll-margin-top: 80px; }
  .container { width: min(100%, calc(100vw - 20px)); }
  .auth-gate {
    min-height: calc(100vh / var(--app-visual-scale));
    min-height: calc(100dvh / var(--app-visual-scale));
  }
  .auth-gate-main {
    padding: 16px 10px;
  }
  .auth-card {
    padding: 22px 16px 18px;
    border-radius: 16px;
  }
  .auth-card-head {
    margin-bottom: 18px;
  }
  .auth-logo-image {
    max-width: 172px;
    margin-bottom: 10px;
  }
  .auth-title {
    font-size: 1.3rem;
  }
  .auth-sub {
    font-size: 0.84rem;
  }
  .auth-tabs {
    padding: 4px;
    margin-bottom: 18px;
  }
  .auth-tabs::before {
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
  }
  .auth-field {
    margin-bottom: 10px;
  }
  .auth-form--login input {
    min-height: 48px;
  }
  .auth-submit {
    min-height: 50px;
  }
  .auth-form--signup-wizard {
    gap: 12px;
  }
  .signup-wizard-head {
    padding: 11px 10px 9px;
  }
  .signup-step-heading {
    font-size: 1rem;
    line-height: 1.35;
  }
  .inline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .signup-stage {
    gap: 9px;
  }
  .auth-form--signup-wizard input,
  .auth-form--signup-wizard select,
  .auth-form--signup-wizard .btn,
  .forgot-pw-panel input,
  .email-verify-panel input {
    min-height: 50px;
  }
  .inline-fixed-domain {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  .signup-step-nav {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px 0 11px;
    gap: 9px;
  }
  .brand {
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .brand-sub {
    transform: none;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .search-area input {
    min-height: 48px;
    font-size: 16px;
  }
  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    align-items: stretch;
  }
  .top-actions .btn {
    width: 100%;
    min-height: 46px;
    padding: 10px 8px;
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-email {
    grid-column: 1 / -1;
    min-height: 20px;
    text-align: left;
    font-size: 0.82rem;
    padding: 0 2px;
  }
  .subnav-inner {
    padding: 10px 0 8px;
    gap: 8px;
  }
  .subnav-head {
    gap: 6px;
  }
  .subnav-desc {
    font-size: 0.82rem;
    line-height: 1.4;
  }
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 22px 16px;
    gap: 14px;
    border-radius: 16px;
  }
  .hero-banner h1 {
    font-size: clamp(1.3rem, 5.8vw, 1.55rem);
  }
  .hero-desc {
    font-size: 0.88rem;
  }
  .hero-status {
    padding: 14px;
    border-radius: 12px;
  }
  .filters.panel,
  .products,
  .mypage-content,
  .detail-hero,
  .detail-article {
    border-radius: 14px;
  }
  .filters {
    gap: 8px;
    padding: 12px;
  }
  .check-line {
    min-height: 40px;
  }
  .product-grid:not(.product-grid--premium) {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-image {
    height: clamp(210px, 56vw, 280px);
  }
  .product-body {
    padding: 16px 14px 17px;
    gap: 10px;
  }
  .product-name-btn {
    font-size: 1rem;
    line-height: 1.4;
  }
  .price-line--emphasis .sale-price {
    font-size: 1.18rem;
  }
  .product-card-price {
    gap: 7px;
    margin-top: 4px;
    padding: 11px 10px;
  }
  .price-line {
    gap: 6px 8px;
  }
  .hero-trust {
    flex-direction: column;
    gap: 0;
    margin-top: 14px;
  }
  .hero-trust li {
    border-right: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .hero-trust li:last-child { border-bottom: none; padding-bottom: 0; }
  .kpi-strip { grid-template-columns: 1fr; }
  .detail-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .detail-gallery {
    justify-content: center;
    padding: 4px 0 8px;
  }
  .detail-gallery img { max-height: 42vh; }
  .cart-drawer {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-left: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100%, calc(100vw - 16px));
  }
  .auth-gate-main {
    padding: 12px 8px;
  }
  .auth-card {
    padding: 18px 13px 15px;
  }
  .auth-card-head {
    margin-bottom: 16px;
  }
  .auth-logo-image {
    max-width: 160px;
  }
  .tab-btn {
    min-height: 44px;
  }
  .forgot-pw-panel,
  .email-verify-panel,
  .inline-box {
    padding: 12px 10px;
  }
  .signup-pw-firebase-panel {
    padding: 11px 10px 12px;
  }
  .top-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .hero-banner {
    padding: 18px 14px;
  }
  .page {
    gap: 10px;
  }
  .panel {
    padding: 12px;
  }
  .kpi {
    padding: 11px 12px;
  }
  .product-card {
    border-radius: 14px;
  }
  .product-image {
    height: clamp(215px, 64vw, 270px);
  }
  .product-card-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .product-card-actions select,
  .product-card-actions .btn {
    min-height: 48px;
  }
  .btn-detail-sm {
    width: 100%;
  }
}

/* ---------- 소비자 몰 · 모던 모션 (성능 우선, prefers-reduced-motion 존중) ---------- */
@keyframes mall-hero-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@keyframes mall-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes mall-kpi-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner::after {
  animation: mall-hero-glow 18s var(--ease-soft) infinite;
}

.product-card {
  animation: mall-card-in var(--dur-2) var(--ease-out) backwards;
}
.product-grid .product-card:nth-child(1) {
  animation-delay: 0.03s;
}
.product-grid .product-card:nth-child(2) {
  animation-delay: 0.06s;
}
.product-grid .product-card:nth-child(3) {
  animation-delay: 0.09s;
}
.product-grid .product-card:nth-child(4) {
  animation-delay: 0.12s;
}
.product-grid .product-card:nth-child(5) {
  animation-delay: 0.15s;
}
.product-grid .product-card:nth-child(6) {
  animation-delay: 0.18s;
}
.product-grid .product-card:nth-child(7) {
  animation-delay: 0.21s;
}
.product-grid .product-card:nth-child(8) {
  animation-delay: 0.24s;
}
.product-grid .product-card:nth-child(9) {
  animation-delay: 0.27s;
}
.product-grid .product-card:nth-child(10) {
  animation-delay: 0.3s;
}
.product-grid .product-card:nth-child(11) {
  animation-delay: 0.33s;
}
.product-grid .product-card:nth-child(12) {
  animation-delay: 0.36s;
}

.kpi-strip article.kpi {
  animation: mall-kpi-in 0.38s var(--ease-out) backwards;
}
.kpi-strip article.kpi:nth-child(1) {
  animation-delay: 0.02s;
}
.kpi-strip article.kpi:nth-child(2) {
  animation-delay: 0.06s;
}
.kpi-strip article.kpi:nth-child(3) {
  animation-delay: 0.1s;
}
.kpi-strip article.kpi:nth-child(4) {
  animation-delay: 0.14s;
}

.product-image-hit .product-image {
  transition: transform 0.55s var(--ease-out);
}
.product-card:hover .product-image-hit .product-image {
  transform: scale(1.04);
}

.panel,
.filters {
  transition: box-shadow 0.22s var(--ease-soft);
}
.filters:hover {
  box-shadow: 0 8px 28px rgba(15, 27, 51, 0.05);
}

.detail-gallery {
  /* 2026-05-14: 회색 음영(#f0f2f8) 제거 — 위 첫 번째 정의 주석 참조.
     이 블록은 후순위 cascade 라 함께 비워둬야 회색이 남지 않는다. */
  background: transparent;
}
.detail-gallery__frame {
  transition: transform 0.65s var(--ease-out);
}
.detail-gallery__frame img,
.detail-gallery img {
  transition: transform 0.65s var(--ease-out);
}
.detail-buy {
  transition: opacity 0.3s var(--ease-soft);
}

#mallWrap .chip {
  transition:
    transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-soft),
    border-color var(--dur-1) var(--ease-soft);
}
#mallWrap .chip:active {
  transform: scale(0.96);
}

.brand-mall-card {
  transition:
    border-color 0.2s var(--ease-soft),
    box-shadow 0.22s var(--ease-soft),
    transform 0.22s var(--ease-out),
    background-color 0.2s var(--ease-soft);
}

.subnav {
  transition: box-shadow 0.25s var(--ease-soft);
}

@media (prefers-reduced-motion: reduce) {
  .signup-stage {
    animation: none !important;
  }
  .auth-tabs::before {
    transition: none;
  }
  .signup-step:not(.hidden),
  .auth-form--signup-wizard.signup-wizard--step-celebrate::after {
    animation: none !important;
  }
  .hero-banner::after,
  .product-card,
  .kpi-strip article.kpi {
    animation: none !important;
  }
  .product-card,
  .kpi-strip article.kpi {
    opacity: 1;
    transform: none;
  }
  .product-image-hit .product-image,
  .detail-gallery img {
    transition: none !important;
    transform: none;
  }
  .product-card:hover .product-image-hit .product-image {
    transform: none;
  }
  .btn:active:not(:disabled) {
    transform: none;
  }
  #mallWrap .chip:active {
    transform: none;
  }
  .checkout-modal-backdrop,
  .checkout-modal-panel,
  .payment-result-overlay,
  .payment-result-card {
    animation: none !important;
  }
  .cart-drawer {
    transition: none !important;
  }
  .cart-drawer.open {
    transform: translate3d(0, 0, 0);
  }
}
