:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --panel: rgba(16, 18, 22, 0.64);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff4d4f;
  --gold: #ffd36a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  background: #fff8f6;
  color: #161616;
}

body.live-mode {
  background: #08090d;
  color: var(--text);
}

body.login-mode {
  background: #fff8f6;
  color: #161616;
}

body.no-live-mode {
  background: #fff8f6;
  color: #161616;
}

body.no-live-mode .mobile-shell {
  background: transparent;
}

html {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

button:focus,
button:focus-visible,
button:active {
  outline: none;
}

a,
[role="button"],
label[for],
img[role="button"] {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

a:focus,
a:focus-visible,
[role="button"]:focus,
[role="button"]:focus-visible {
  outline: none;
}

.mobile-shell {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #fff8f6;
}

.stage {
  position: absolute;
  inset: 0;
  background: #fff8f6;
}

html.live-mode,
body.live-mode {
  background: #08090d;
}

body.live-mode .mobile-shell {
  background: #0d1016;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  overflow: hidden;
}

body.live-mode.chat-keyboard-open .mobile-shell {
  bottom: auto;
  height: var(--live-viewport-h, 100dvh);
  min-height: var(--live-viewport-h, 100dvh);
}

body.live-mode .stage {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  background: #000;
  z-index: 1;
  transform: translate3d(0, var(--viewport-offset-top, 0px), 0);
}

body.live-mode.chat-keyboard-open .stage {
  bottom: auto;
  height: var(--live-viewport-h, 100dvh);
  min-height: var(--live-viewport-h, 100dvh);
}

body.live-mode.chat-keyboard-open .top-card,
body.live-mode.chat-keyboard-open .replay-controls {
  transform: translate3d(0, var(--viewport-offset-top, 0px), 0);
}

body.keyboard-scroll-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

html.keyboard-scroll-locked {
  overflow: hidden;
  height: 100%;
}

.live-comment-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.live-comment-ui > .comment-area,
.live-comment-ui > .bottom-chat {
  pointer-events: auto;
}

.comment-area {
  position: absolute;
  left: 12px;
  right: 33.333%;
  bottom: var(--comment-area-bottom, 98px);
  height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  pointer-events: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.22) 12%, #000 34%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.22) 12%, #000 34%, #000 100%);
}

.comment-area::before {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
  width: 1px;
}

body.chat-keyboard-open .comment-area {
  right: 12px;
  bottom: max(var(--comment-area-bottom, 98px), calc(var(--keyboard-offset, 0px) + var(--chat-bar-height, 56px) + 10px));
  height: auto;
  max-height: min(168px, calc(var(--live-viewport-h, 100vh) - var(--keyboard-offset, 0px) - var(--chat-bar-height, 56px) - 96px));
  min-height: 72px;
}

body.chat-input-open .comment-area {
  bottom: max(var(--comment-area-bottom, 98px), calc(var(--chat-bar-height, 56px) + 10px));
}

.stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 28%, transparent 52%, rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 42%);
  pointer-events: none;
}

body.login-mode .stage {
  background:
    radial-gradient(circle at 16% 12%, rgba(244, 83, 67, 0.14), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(244, 83, 67, 0.18), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fff8f5 56%, #ffe8e2 100%);
}

body.login-mode .stage img,
body.login-mode .stage video,
body.login-mode .stage::after {
  display: none;
}

body.login-mode.live-video-preload .stage {
  background: #000;
}

body.login-mode.live-video-preload .stage video:not(.hidden) {
  display: block !important;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

body.login-mode.live-video-preload .stage::after {
  display: none;
}

body.live-enter-pending .stage {
  background: #000;
}

body.live-enter-pending .stage video:not(.hidden) {
  opacity: 1;
}

body.no-live-mode .stage {
  background:
    radial-gradient(circle at 16% 12%, rgba(244, 83, 67, 0.14), transparent 34%),
    radial-gradient(circle at 88% 78%, rgba(244, 83, 67, 0.18), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fff8f5 56%, #ffe8e2 100%);
}

body.live-mode .stage::after {
  display: block;
}

body.live-mode .stage video:not(.hidden) {
  display: block !important;
}

body.mobile-pending-enter .stage video,
body.android-pending-enter .stage video {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

body.mobile-pending-enter .live-enter-overlay,
body.android-pending-enter .live-enter-overlay {
  background: rgba(0, 0, 0, 0.72);
}

body.mobile-pending-enter.live-enter-pending .stage,
body.android-pending-enter.live-enter-pending .stage {
  background: #000;
}

.live-enter-overlay {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

body.live-enter-pending .comment-area,
body.live-enter-pending .bottom-chat,
body.live-enter-pending .action-rail,
body.live-enter-pending .product-toast-card {
  visibility: hidden;
  pointer-events: none;
}

.live-enter-overlay.hidden {
  display: none !important;
}

.live-enter-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px 11px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.live-enter-btn:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.34);
}

.live-enter-eq {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.live-enter-bar {
  width: 3px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center bottom;
  animation: live-enter-bar 0.82s ease-in-out infinite;
}

.live-enter-bar:nth-child(1) {
  height: 10px;
  animation-delay: 0s;
}

.live-enter-bar:nth-child(2) {
  height: 14px;
  animation-delay: 0.14s;
  animation-duration: 0.68s;
}

.live-enter-bar:nth-child(3) {
  height: 12px;
  animation-delay: 0.28s;
  animation-duration: 0.76s;
}

@keyframes live-enter-bar {
  0%,
  100% {
    transform: scaleY(0.42);
    opacity: 0.82;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-enter-bar {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

.top-card {
  position: absolute;
  left: 12px;
  top: max(12px, env(safe-area-inset-top));
  width: min(216px, calc(100% - 24px));
  display: block;
  padding: 6px 8px 7px;
  border-radius: 5px;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  color: #fff;
  text-align: left;
  z-index: 4;
}

.brand-main {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.brand-avatar,
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffef9f, #f26053);
  display: grid;
  place-items: center;
  color: #48110f;
  font-weight: 800;
  flex: 0 0 auto;
}

.brand-avatar {
  object-fit: cover;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.brand-avatar:focus,
.brand-avatar:focus-visible,
.brand-avatar:active {
  outline: none;
}

.brand-avatar.is-static {
  cursor: default;
  pointer-events: none;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.brand-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verify {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  overflow: visible;
}

.verify-badge {
  fill: #1686e8;
}

.verify-check {
  fill: none;
  stroke: #fff;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-meta {
  display: flex;
  align-items: center;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.brand-divider {
  margin: 0 6px;
}

.expired-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: max(34px, env(safe-area-inset-bottom));
  padding: 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-panel {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(96px, calc(env(safe-area-inset-top) + 86px)) 28px max(34px, env(safe-area-inset-bottom));
  color: #111;
  background:
    radial-gradient(circle at 4% 8%, rgba(164, 20, 30, 0.09), transparent 34%),
    radial-gradient(circle at 96% 32%, rgba(20, 67, 145, 0.075), transparent 36%),
    radial-gradient(circle at 82% 94%, rgba(190, 38, 44, 0.085), transparent 34%),
    linear-gradient(160deg, #fffdfc 0%, #faf7f7 58%, #f7f8fb 100%);
}

.login-logo-wrap {
  width: min(54vw, 250px);
  aspect-ratio: 1;
  margin-top: 16vh;
  margin-bottom: auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(61, 28, 46, 0.15);
  background: #f3ece8;
}

.login-logo-wrap.is-loading,
.no-live-image-wrap.is-loading {
  background: linear-gradient(180deg, #f6f0ec 0%, #efe6e1 100%);
}

.login-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}

.login-logo-wrap img.is-ready {
  opacity: 1;
}

.expired-panel h1 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.expired-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.login-panel .primary-btn {
  width: min(78vw, 330px);
  min-height: 54px;
  margin-bottom: 0;
  border-radius: 999px;
  background: #07c160;
  font-size: 22px;
  font-weight: 500;
  box-shadow: 0 12px 26px rgba(7, 193, 96, 0.24);
}

.login-footer {
  width: min(78vw, 330px);
  margin-top: auto;
  margin-bottom: max(34px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.login-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  color: rgba(22, 22, 22, 0.72);
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
  user-select: none;
}

.login-agreement input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: #07c160;
}

.login-agreement-text {
  flex: 1;
  min-width: 0;
}

.legal-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #1686e8;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.legal-link:active {
  opacity: 0.78;
}

.login-panel .login-wechat-hint {
  margin: 0;
}

.login-panel .primary-btn:active {
  background: #06ad56;
}

.login-wechat-hint {
  margin: -10vh 0 14vh;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(22, 22, 22, 0.56);
  text-align: center;
}

body.login-mode .login-wechat-hint {
  margin: 0;
}

body:not(.login-mode) .login-wechat-hint {
  display: none;
}

body.product-detail-open #productSheet {
  display: none !important;
}

body.no-live-mode #productDetailSheet,
body.no-live-mode #productSheet,
body.no-live-mode #orderSheet,
body.login-mode #productDetailSheet,
body.login-mode #productSheet,
body.login-mode #orderSheet {
  display: none !important;
}

.no-live-panel {
  --no-live-badge-h: 24px;
  --no-live-exit-half: 24px;
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  padding:
    max(12px, env(safe-area-inset-top))
    16px
    max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 4% 8%, rgba(164, 20, 30, 0.09), transparent 34%),
    radial-gradient(circle at 96% 32%, rgba(20, 67, 145, 0.075), transparent 36%),
    radial-gradient(circle at 82% 94%, rgba(190, 38, 44, 0.085), transparent 34%),
    linear-gradient(160deg, #fffdfc 0%, #faf7f7 58%, #f7f8fb 100%);
}

.no-live-user-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  max-width: calc(100% - 8px);
  margin-bottom: 14px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(72, 38, 34, 0.68);
  backdrop-filter: blur(10px);
}

.no-live-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.no-live-user-trigger:active {
  opacity: 0.86;
}

.no-live-user-bar .user-avatar {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

.no-live-user-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.no-live-card {
  position: relative;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: min(100%, 340px);
  margin: auto;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(61, 28, 46, 0.12);
  transform: translateY(calc(var(--no-live-badge-h) * -1));
}

.no-live-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7043, #ff4d4f);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.no-live-card h1 {
  margin: 8px 0 4px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
  text-align: center;
  color: #161616;
}

.no-live-status {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.32;
  text-align: center;
  color: #161616;
}

.no-live-subtext {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: rgba(22, 22, 22, 0.58);
}

.no-live-image-wrap {
  width: min(60vw, 228px);
  aspect-ratio: 1;
  margin: 12px 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(61, 28, 46, 0.15);
  background: #f3ece8;
}

.no-live-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
}

.no-live-image-wrap img.is-ready {
  opacity: 1;
}

.no-live-exit-btn {
  width: 100%;
  min-height: 47px;
  margin-top: calc(12px + var(--no-live-exit-half));
}

.no-live-subscribe-host {
  width: 100%;
  margin-top: calc(12px + var(--no-live-exit-half));
}

.no-live-subscribe-host wx-open-subscribe {
  display: block;
  width: 100%;
}

.fallback-reserve-btn {
  background: linear-gradient(135deg, #ff7043, #ff4d4f);
  box-shadow: 0 12px 30px rgba(255, 77, 79, 0.22);
}

.primary-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #10c35b, #0ca950);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(16, 195, 91, 0.28);
}

.secondary-btn {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.comment-area::-webkit-scrollbar {
  display: none;
}

.comment-spacer {
  display: none;
}

.comment.order-notice {
  border-radius: 999px;
  white-space: nowrap;
}

.comment.order-notice .order-notice-user,
.comment.order-notice .order-notice-action {
  color: rgba(255, 255, 255, 0.92);
}

.comment.order-notice .order-notice-product {
  color: #ffd54a;
}

.comment {
  box-sizing: border-box;
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
  width: fit-content;
  margin-top: 3px;
  padding: 5px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  line-height: 1.36;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.26);
}

.product-toast-card {
  position: absolute;
  left: 10px;
  right: 72px;
  bottom: max(116px, calc(env(safe-area-inset-bottom) + 116px));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #181818;
}

.product-toast-panel {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.product-toast-inner {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.product-toast-close {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

.product-toast-card img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #f0f0f0;
  opacity: 0;
}

.product-toast-card img.is-ready {
  opacity: 1;
}

.product-toast-info {
  min-width: 0;
}

.product-toast-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-toast-card p {
  margin: 3px 0;
  color: #666;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-toast-card strong {
  color: #ff5a3d;
  font-size: 15px;
}

.product-toast-buy {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #ff6a3d;
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.comment strong {
  color: rgba(255, 255, 255, 0.58);
  font-weight: 500;
}

.comment-author-link {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.comment.admin .comment-author-link,
.comment.admin strong {
  color: #ff7043;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(255, 112, 67, 0.3);
}

.comment-blocked-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 183, 77, 0.22);
  color: #ffd180;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.comment-blocked {
  border: 1px solid rgba(255, 183, 77, 0.35);
}

.comment-muted-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(239, 83, 80, 0.22);
  color: #ff8a80;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.bottom-chat {
  position: absolute;
  left: 12px;
  right: auto;
  width: min(42vw, 156px);
  bottom: max(36px, calc(env(safe-area-inset-bottom) + 18px));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: right 0.2s ease, left 0.2s ease, width 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

.bottom-chat.is-active {
  left: 0;
  right: 0;
  width: auto;
  bottom: 0;
  padding: 8px 12px;
  background: #191919;
  border-radius: 0;
}

body.chat-keyboard-open .bottom-chat {
  left: 0;
  right: 0;
  width: auto;
  bottom: calc(var(--keyboard-offset, 0px));
  padding: 8px 12px;
  padding-right: 12px;
  background: #191919;
  border-radius: 0;
}

.chat-input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  max-height: 96px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  outline: 0;
  resize: none;
  overflow-y: auto;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  transition: background 0.2s ease, color 0.2s ease, height 0.15s ease, border-radius 0.15s ease;
}

.bottom-chat.is-active .chat-input {
  min-height: 40px;
  color: #fff;
  background: #404040;
  border-radius: 999px;
  box-shadow: none;
}

.bottom-chat.is-active.is-multiline .chat-input {
  border-radius: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.chat-send {
  display: none;
  flex: 0 0 auto;
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  background: #07c160;
  box-shadow: none;
  cursor: pointer;
}

.bottom-chat.is-active .chat-send,
body.chat-keyboard-open .bottom-chat .chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.bottom-chat.is-active .chat-input::placeholder {
  color: #8a8a8a;
}

.action-rail {
  position: absolute;
  right: 14px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 7;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

body.chat-input-open .action-rail,
body.chat-keyboard-open .action-rail,
body:has(.bottom-chat.is-active) .action-rail,
.action-rail.chat-suppressed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.action-btn {
  width: 42px;
  height: 58px;
  min-height: 58px;
  color: #fff;
  background: transparent;
  display: grid;
  grid-template-rows: 42px 14px;
  justify-items: center;
  align-content: start;
  gap: 3px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.action-btn:focus,
.action-btn:focus-visible,
.action-btn:active {
  outline: none;
  box-shadow: none;
}

.action-icon {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-icon svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}

.bag-action {
  color: #ff6547;
}

.bag-action .action-icon svg {
  width: 25px;
  height: 25px;
}

.action-count {
  min-height: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 14px;
}

.action-count-placeholder {
  visibility: hidden;
}

.like-burst {
  position: absolute;
  right: 6px;
  bottom: max(10px, env(safe-area-inset-bottom));
  width: 92px;
  height: min(240px, 38vh);
  overflow: hidden;
  pointer-events: none;
  z-index: 7;
}

.tap-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 7;
}

.floating-heart {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  color: #ff4d6d;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
  animation: float-heart 0.9s ease-out forwards;
}

.floating-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.floating-heart.from-tap {
  animation-name: tap-heart-pop;
}

.floating-heart.small-heart {
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  color: #ff385c;
}

@keyframes tap-heart-pop {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  22% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.15);
  }
}

@keyframes float-heart {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.55) rotate(0);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--heart-x), -88px) scale(1.15) rotate(var(--heart-rotate));
  }
}

.sheet,
.drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 76vh;
  overflow: auto;
  padding: 16px 14px max(20px, env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #11141a;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.38);
  transform: translateY(110%);
  transform-origin: bottom center;
  transition: transform 0.24s ease;
  z-index: 20;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 19;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.sheet-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

#orderSheet.open {
  z-index: 22;
}

#productSheet.open {
  z-index: 20;
}

.bag-sheet {
  display: flex;
  flex-direction: column;
  max-height: 76vh;
  overflow: hidden;
  padding: 12px 14px max(16px, env(safe-area-inset-bottom));
  background: #fff7f4;
  color: #1f1f1f;
  box-shadow: 0 -14px 40px rgba(255, 77, 79, 0.12);
}

.bag-sheet-head {
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 77, 79, 0.08);
}

.bag-sheet-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
}

.bag-order-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 77, 79, 0.08);
  color: #ff4d4f;
  font-size: 14px;
  font-weight: 600;
}

.bag-order-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.bag-product-list {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.bag-product-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(255, 77, 79, 0.06);
}

.bag-product-media {
  display: block;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
}

.bag-product-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 0;
}

.bag-product-media img.is-ready {
  opacity: 1;
}

.bag-product-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bag-product-title {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.bag-product-note {
  margin: 4px 0 8px;
  color: #999;
  font-size: 12px;
  line-height: 1.4;
}

.bag-product-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.bag-price-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.bag-sold-count {
  display: block;
  margin-top: 2px;
  color: #999;
  font-size: 12px;
  line-height: 1.2;
}

.bag-sale-price {
  color: #ff4d4f;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.bag-price-tag {
  color: #ff4d4f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.bag-original-price {
  color: #b8b8b8;
  font-size: 12px;
}

.bag-buy-btn {
  flex: 0 0 auto;
  min-width: 68px;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4f 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.28);
}

.bag-buy-btn:active {
  transform: scale(0.98);
}

.bag-empty {
  margin: 24px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.sheet.open,
.drawer.open {
  transform: translateY(0);
}

.user-center {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #f3f3f3;
  color: #161616;
  overflow: hidden;
}

.user-center.open {
  display: flex;
}

.uc-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 48px;
  padding: max(8px, env(safe-area-inset-top)) 12px 8px;
  background: #f3f3f3;
}

.uc-header h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.uc-back-btn {
  position: absolute;
  left: 8px;
  top: max(4px, env(safe-area-inset-top));
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #161616;
}

.uc-back-btn svg {
  width: 22px;
  height: 22px;
}

.uc-page {
  flex: 1;
  overflow: auto;
  padding: 0 16px max(24px, env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.uc-list-page {
  padding-left: 0;
  padding-right: 0;
}

.uc-list-page .uc-list-body {
  padding-top: 0;
}

.uc-section-label {
  margin: 8px 0 8px 4px;
  color: rgba(22, 22, 22, 0.45);
  font-size: 13px;
}

.uc-card {
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.uc-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  color: #161616;
  font-size: 16px;
  text-align: left;
}

.uc-row:last-child {
  border-bottom: 0;
}

.uc-chevron {
  color: rgba(22, 22, 22, 0.28);
  font-size: 22px;
  line-height: 1;
}

.uc-logout-btn {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border-radius: 12px;
  background: #fff;
  color: #ff4d4f;
  font-size: 16px;
  font-weight: 500;
}

.uc-list-body {
  padding-top: 4px;
}

.uc-replay-item,
.uc-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  margin-bottom: 0;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  background: #fff;
  color: #161616;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.uc-list-page .uc-replay-item:last-child,
.uc-list-page .uc-order-item:last-child {
  border-bottom: 0;
}

.uc-replay-item > div,
.uc-order-item > div {
  min-width: 0;
  flex: 1;
}

.uc-replay-title {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: #161616;
}

.uc-replay-item h3,
.uc-order-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #161616;
}

.uc-replay-sub,
.uc-replay-item p,
.uc-order-item p {
  margin: 0;
  color: rgba(22, 22, 22, 0.48);
  font-size: 13px;
  line-height: 1.45;
}

.uc-replay-item .uc-chevron {
  flex: 0 0 auto;
}

.uc-empty {
  margin: 32px 16px;
  text-align: center;
  color: rgba(22, 22, 22, 0.42);
  font-size: 14px;
}

.uc-order-delivery {
  margin-top: 6px !important;
  color: rgba(22, 22, 22, 0.62) !important;
  font-size: 12px !important;
  word-break: break-all;
}

body.replay-mode {
  background: #fff8f6;
  color: #161616;
}

body.replay-mode .mobile-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff8f6;
}

body.replay-mode #productSheet,
body.replay-mode #productDetailSheet {
  display: none !important;
}

body.replay-mode .sheet:not(.open) {
  visibility: hidden;
  pointer-events: none;
}

body.replay-mode .sheet.open {
  visibility: visible;
  pointer-events: auto;
}

body.replay-mode .stage {
  position: relative;
  inset: auto;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  background: #000;
  transform: none;
  z-index: 1;
}

body.replay-mode .stage::after {
  display: none !important;
}

body.replay-mode .stage video:not(.hidden) {
  display: block !important;
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: contain;
  pointer-events: auto;
  background: #000;
}

body.replay-mode .top-card,
body.replay-mode .action-rail,
body.replay-mode .like-burst,
body.replay-mode .tap-burst,
body.replay-mode .product-toast-card,
body.replay-mode .live-comment-ui,
body.replay-mode .live-enter-overlay,
body.replay-mode .replay-controls {
  display: none !important;
}

.replay-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: #fff8f6;
  border-bottom: 1px solid rgba(22, 22, 22, 0.06);
}

.replay-header.hidden {
  display: none !important;
}

.replay-back-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.06);
  color: #161616;
}

.replay-back-btn svg {
  width: 22px;
  height: 22px;
}

.replay-back-btn.hidden {
  display: none !important;
}

.replay-back-btn:active {
  background: rgba(22, 22, 22, 0.12);
}

.replay-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.replay-brand-text {
  min-width: 0;
  flex: 1 1 auto;
}

.replay-brand-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #161616;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.replay-stream-title {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(22, 22, 22, 0.52);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.replay-products {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
  background: #fff8f6;
}

.replay-products.hidden {
  display: none !important;
}

.replay-products-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.replay-product-list {
  display: grid;
  gap: 12px;
}

.replay-product-list .bag-empty {
  margin: 0;
  padding: 28px 12px;
  text-align: center;
  color: rgba(22, 22, 22, 0.42);
  font-size: 14px;
}

.replay-product-detail {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #111;
}

.replay-product-detail.hidden {
  display: none !important;
}

body.replay-detail-open .mobile-shell {
  overflow: hidden;
}

.replay-detail-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

.replay-detail-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #161616;
}

.replay-product-detail .product-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.replay-product-detail-bar {
  position: relative;
  flex: 0 0 auto;
}

.replay-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fff8f6;
  color: rgba(22, 22, 22, 0.56);
  text-align: center;
}

.replay-loading.hidden {
  display: none !important;
}

.replay-loading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.replay-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.replay-controls.hidden {
  display: none !important;
}

.replay-controls.is-paused {
  pointer-events: none;
  background: rgba(0, 0, 0, 0.22);
}

.replay-toggle-btn {
  pointer-events: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.replay-toggle-btn:active {
  transform: scale(0.96);
}

.replay-icon-play {
  width: 34px;
  height: 34px;
}

.uc-order-id {
  margin: 0 0 4px !important;
  color: rgba(22, 22, 22, 0.56) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  word-break: break-all;
  font-family: Consolas, "Courier New", monospace;
}

.uc-order-item .uc-chevron {
  flex: 0 0 auto;
}

.uc-order-detail-head {
  padding: 16px;
  border-bottom: 8px solid #f5f5f5;
  background: #fff;
}

.uc-order-detail-head h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #161616;
}

.uc-order-detail-head > p:last-of-type {
  margin: 0;
  color: rgba(22, 22, 22, 0.48);
  font-size: 13px;
  line-height: 1.45;
}

.uc-order-receiver {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.uc-order-receiver p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
}

.uc-order-receiver p:last-child {
  margin-bottom: 0;
}

.uc-order-receiver span {
  flex: 0 0 auto;
  color: rgba(22, 22, 22, 0.48);
}

.uc-order-receiver strong {
  color: #161616;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.uc-order-detail-vouchers {
  padding: 12px;
}

.uc-order-detail-delivery {
  margin: 16px !important;
}

.uc-order-item .price {
  color: #ff5a3d;
  font-weight: 700;
}

.sheet-head,
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sheet h2,
.drawer h2 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.product-card,
.order-card,
.replay-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #252a33;
  opacity: 0;
}

.product-card img.is-ready {
  opacity: 1;
}

.product-card h3,
.order-card h3,
.replay-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.product-card p,
.order-card p,
.replay-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.price {
  color: #ffcf6a;
  font-weight: 800;
}

.buy-btn {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
}

.sheet.product-detail-sheet {
  max-height: none;
  overflow: hidden;
  padding: 0;
}

.product-detail-sheet {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #111;
  border-radius: 14px 14px 0 0;
  position: relative;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.product-detail-sheet:not(.open) {
  display: none;
}

.product-detail-sheet.open {
  display: flex;
  flex-direction: column;
  top: 10vh;
  top: 10dvh;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(100% - 10vh);
  height: calc(100dvh - 10dvh);
  max-height: calc(100% - 10vh);
  max-height: calc(100dvh - 10dvh);
  overflow: hidden;
  z-index: 23;
  transform: translateY(0);
  transition: transform 0.24s ease;
}

.product-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 calc(68px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-detail-body::-webkit-scrollbar {
  display: none;
}

.product-detail-sheet:not(.open) .product-detail-bar {
  display: none;
}

.product-detail-sheet.open .product-detail-bar {
  display: grid;
}

.detail-main-gallery-wrap {
  position: relative;
  width: 100%;
  background: #f5f5f5;
}

.detail-main-gallery {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.detail-main-gallery::-webkit-scrollbar {
  display: none;
}

.detail-main-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.detail-main-image-wrap {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  line-height: 0;
}

.detail-main-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0;
  background: #f5f5f5;
  opacity: 0;
}

.detail-main-image.is-ready {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.detail-main-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.detail-main-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.detail-main-dot.active {
  width: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.detail-price-banner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%);
  color: #fff;
}

.detail-price-left {
  min-width: 0;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.detail-price-yen {
  font-size: 18px;
  font-weight: 700;
}

.detail-sale-price {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.detail-original-line {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.92;
}

.detail-original-line span {
  opacity: 0.85;
}

.detail-sold {
  flex: 0 0 auto;
  font-size: 13px;
  opacity: 0.92;
  white-space: nowrap;
}

.detail-refund-policy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px 8px;
  color: #8a6a4b;
  font-size: 13px;
  background: #fff;
  border-bottom: 1px solid #f3f3f3;
}

.detail-refund-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #b8956e;
}

.detail-info-block {
  padding: 16px 16px 8px;
}

.detail-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.detail-note {
  margin: 0 0 12px;
  color: #999;
  font-size: 13px;
}

.detail-desc {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-gallery {
  margin-top: 8px;
  padding: 0 0 16px;
  border-top: 1px solid #f0f0f0;
}

.detail-gallery-title {
  margin: 0 0 12px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.product-detail-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
}

.detail-bar-side,
.detail-bar-buy {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.detail-bar-side {
  background: #fff5f0;
  color: #ff4d4f;
  border: 1px solid rgba(255, 77, 79, 0.18);
}

.detail-bar-buy {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4f 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 77, 79, 0.28);
}

.detail-hero {
  width: 100%;
  max-height: 58vh;
  object-fit: cover;
  border-radius: 14px;
  background: #f5f5f5;
}

.detail-image-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0;
  font-size: 0;
}

.detail-extra-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #f5f5f5;
  opacity: 0;
}

.detail-extra-image.is-ready {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.detail-image-list .detail-hero {
  max-height: none;
  border-radius: 12px;
}

.detail-info {
  display: grid;
  gap: 12px;
  padding: 16px 0 4px;
}

.detail-info h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.detail-price-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sale-price-label {
  font-size: 13px;
  color: #ff5a3d;
  font-weight: 600;
}

.sale-price {
  color: #ff5a3d;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.original-price {
  color: #999;
  font-size: 15px;
  line-height: 1.2;
}

.price .sale-price,
.product-toast-card .sale-price {
  color: #ff5a3d;
  font-size: inherit;
  font-weight: 800;
}

.price .original-price,
.product-toast-card .original-price {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
}

.detail-desc {
  margin: 0;
  color: #666;
  line-height: 1.55;
  font-size: 15px;
}

.detail-buy-btn {
  margin-top: 4px;
}

.detail-info strong {
  color: #ff5a3d;
  font-size: 28px;
}

.detail-info p {
  margin: 0;
  color: #666;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.form-grid textarea {
  min-height: 78px;
  resize: vertical;
}

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  max-width: 86vw;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 13px;
  z-index: 200;
  display: none;
  pointer-events: none;
}

.toast.show {
  display: block;
  animation: toast-in 0.18s ease-out forwards;
}

@keyframes toast-in {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

.admin-body {
  min-height: 100vh;
  background: #f4f6f8;
  color: #17202a;
}

.admin-app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-tabs button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #1f2a37;
  border: 1px solid #d9e1ea;
}

.admin-tabs button.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.admin-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 10px 11px;
  color: #111827;
  background: #fff;
}

.admin-form textarea,
.admin-form .wide {
  grid-column: 1 / -1;
}

.admin-form textarea {
  min-height: 88px;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.admin-primary {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: #1677ff;
}

.admin-secondary {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 16px;
  color: #111827;
  background: #eef2f7;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-box {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.stat-box strong {
  display: block;
  font-size: 26px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: #4b5563;
  background: #f9fafb;
}

.login-box {
  max-width: 380px;
  margin: 12vh auto;
}

.hidden {
  display: none !important;
}

[v-cloak] {
  display: none;
}

.ep-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(22, 119, 255, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.ep-login-card {
  width: 380px;
  border-radius: 8px;
}

.ep-login-title {
  font-size: 20px;
  font-weight: 700;
}

.ep-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  background: #f5f7fb;
}

.ep-sidebar {
  min-height: 100vh;
  background: #111827;
  color: #fff;
}

.ep-content {
  min-width: 0;
}

.native-menu {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.native-menu button {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  padding: 0 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
}

.native-menu button:hover,
.native-menu button.active {
  color: #fff;
  background: rgba(64, 158, 255, 0.18);
}

.ep-brand {
  height: 74px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-brand strong {
  font-size: 17px;
}

.ep-brand span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.ep-menu {
  border-right: 0 !important;
  background: transparent !important;
}

.ep-menu .el-menu-item {
  color: rgba(255, 255, 255, 0.72);
  height: 46px;
}

.ep-menu .el-menu-item:hover,
.ep-menu .el-menu-item.is-active {
  color: #fff;
  background: rgba(64, 158, 255, 0.18);
}

.ep-header {
  height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.ep-header h1 {
  margin: 0;
  font-size: 22px;
  color: #111827;
}

.ep-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.ep-main {
  padding: 18px;
}

.ep-card {
  margin-top: 16px;
  border-radius: 8px;
}

.ep-card:first-child {
  margin-top: 0;
}

.ep-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ep-stat {
  border-radius: 8px;
}

.ep-stat span {
  display: block;
  color: #64748b;
  font-size: 13px;
}

.ep-stat strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 28px;
}

.ep-upload-line {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.native-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.native-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #111827;
}

.native-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.native-form label,
.ep-login-card label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 13px;
}

.native-form input,
.native-form textarea,
.native-form select,
.ep-login-card input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  padding: 8px 11px;
  color: #111827;
  background: #fff;
  outline: 0;
}

.native-form input:focus,
.native-form textarea:focus,
.native-form select:focus,
.ep-login-card input:focus {
  border-color: #409eff;
}

.native-form textarea {
  min-height: 86px;
  resize: vertical;
}

.native-form .wide,
.native-actions {
  grid-column: 1 / -1;
}

.with-upload {
  grid-template-columns: minmax(0, 1fr) 190px 88px;
  align-items: end;
}

.with-upload > input:first-of-type {
  grid-column: 1;
}

.with-upload > input[type="file"] {
  grid-column: 2;
  padding: 6px;
}

.with-upload > button {
  grid-column: 3;
  min-height: 38px;
  border-radius: 6px;
  color: #111827;
  background: #eef2f7;
}

.native-primary,
.native-secondary {
  min-height: 38px;
  border-radius: 6px;
  padding: 0 16px;
}

.native-primary {
  color: #fff;
  background: #409eff;
}

.native-secondary {
  color: #111827;
  background: #eef2f7;
}

.native-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.native-card.stat span {
  color: #64748b;
  font-size: 13px;
}

.native-card.stat strong {
  display: block;
  margin-top: 8px;
  color: #111827;
  font-size: 30px;
}

.native-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.native-table th,
.native-table td {
  border-bottom: 1px solid #ebeef5;
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.native-table th {
  color: #606266;
  background: #f5f7fa;
  font-weight: 600;
}

.native-table td {
  color: #303133;
}

.ep-login-card {
  display: grid;
  gap: 14px;
}

@media (max-width: 760px) {
  .admin-app {
    padding: 14px;
  }

  .admin-form,
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .expired-panel,
  .no-live-user-bar,
  .sheet-backdrop.show {
    backdrop-filter: none;
  }

  .expired-panel {
    background: rgba(0, 0, 0, 0.78);
  }

  .no-live-user-bar {
    background: rgba(72, 38, 34, 0.88);
  }
}

.order-product-summary {
  padding: 12px;
  border-radius: 12px;
  background: #faf7f4;
}

.order-sheet {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #222;
  border-radius: 18px 18px 0 0;
}

.order-sheet-head {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #f3f3f3;
}

.order-sheet-close {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #666;
  font-size: 28px;
  line-height: 1;
}

.order-policy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 36px 0;
  color: #666;
  font-size: 13px;
}

.order-policy-icon {
  width: 16px;
  height: 16px;
  color: #52c41a;
  flex: 0 0 auto;
}

.order-sheet-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.order-sheet-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 16px 12px;
}

.order-field-list {
  border-bottom: 1px solid #f3f3f3;
}

.order-field-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0;
  border-bottom: 1px solid #f5f5f5;
}

.order-field-row:last-child {
  border-bottom: 0;
}

.order-field-row span {
  color: #333;
  font-size: 15px;
}

.order-field-row input {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 15px;
  text-align: right;
}

.order-field-row input::placeholder {
  color: #bbb;
}

.order-product-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f3f3f3;
}

.order-product-card img {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  object-fit: cover;
  background: #f5f5f5;
  opacity: 0;
}

.order-product-card img.is-ready {
  opacity: 1;
}

.order-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.order-product-info h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
}

.order-product-price-row {
  margin-top: auto;
}

.order-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.order-sale-price {
  color: #ff4d4f;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.order-price-tag {
  color: #ff4d4f;
  font-size: 12px;
}

.order-original-price {
  color: #bbb;
  font-size: 12px;
}

.order-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  font-size: 15px;
  color: #333;
}

.order-sheet-footer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #f0f0f0;
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.05);
}

.order-footer-total strong {
  color: #ff4d4f;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.order-submit-btn {
  min-width: 132px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 77, 79, 0.28);
}

.order-submit-btn:disabled {
  opacity: 0.65;
}

.order-product-name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.order-product-price {
  margin: 0;
  font-size: 14px;
  color: #c45c26;
}

.order-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid #e8ddd4;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  width: 40px;
  height: 36px;
  border: 0;
  background: #fff7f0;
  color: #c45c26;
  font-size: 20px;
  line-height: 1;
}

.qty-stepper input {
  width: 48px;
  height: 36px;
  border: 0;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  border-radius: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.order-total-amount {
  margin: -4px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #c45c26;
  text-align: right;
}

.voucher-modal-stack {
  display: grid;
  gap: 12px;
}

.voucher-modal-stack .share-voucher-card + .share-voucher-card {
  margin-top: 0;
}

.uc-voucher-wrap .share-voucher-card + .share-voucher-card {
  margin-top: 12px;
}

.voucher-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.voucher-modal.hidden {
  display: none;
}

.voucher-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.voucher-modal-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.voucher-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  font-size: 22px;
  line-height: 1;
}

.voucher-modal-title {
  margin: 0 0 8px;
  font-size: 20px;
  text-align: center;
  color: #161616;
}

.voucher-modal-tip {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: #666;
}

.voucher-modal-btn {
  width: 100%;
  margin-top: 14px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.legal-modal.hidden {
  display: none;
}

.legal-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.legal-modal-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.legal-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  font-size: 22px;
  line-height: 1;
}

.legal-modal-title {
  margin: 0 28px 12px 0;
  font-size: 18px;
  line-height: 1.35;
  color: #161616;
}

.legal-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  color: #333;
  font-size: 13px;
  line-height: 1.7;
}

.legal-modal-body h3 {
  margin: 16px 0 8px;
  font-size: 14px;
  color: #161616;
}

.legal-modal-body p {
  margin: 0 0 8px;
}

.legal-meta {
  color: #888 !important;
  font-size: 12px !important;
}

.legal-modal-btn {
  width: 100%;
  margin-top: 14px;
  flex: 0 0 auto;
}

.share-voucher-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff8f0 0%, #fff 42%, #fff5eb 100%);
  border: 1px solid #f3dcc8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.share-voucher-card.is-active {
  background: linear-gradient(145deg, #f0fff4 0%, #fff 42%, #edfbf1 100%);
  border-color: #b7e4c7;
}

.share-voucher-card.is-expired {
  background: linear-gradient(145deg, #f7f7f7 0%, #fff 42%, #f2f2f2 100%);
  border-color: #ddd;
  opacity: 0.92;
}

.share-voucher-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.share-voucher-brand {
  margin: 0;
  font-size: 12px;
  color: #8a5a44;
  letter-spacing: 0.04em;
}

.share-voucher-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff1e6;
  color: #c45c26;
  font-size: 12px;
  font-weight: 600;
}

.share-voucher-card.is-active .share-voucher-badge {
  background: #e8f8ee;
  color: #2d9a57;
}

.share-voucher-card.is-expired .share-voucher-badge {
  background: #eee;
  color: #888;
}

.share-voucher-title {
  margin: 0 0 4px;
  font-size: 22px;
  color: #161616;
}

.share-voucher-product {
  margin: 0 0 14px;
  font-size: 14px;
  color: #666;
}

.share-voucher-code-wrap {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.share-voucher-code-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #999;
}

.share-voucher-code {
  display: block;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #c45c26;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.share-voucher-meta p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
}

.share-voucher-meta strong {
  color: #222;
  font-weight: 600;
  text-align: right;
}

.share-voucher-foot {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #999;
  text-align: center;
}

.uc-voucher-wrap {
  padding: 14px 12px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.uc-voucher-meta {
  margin: 8px 2px 0;
  font-size: 12px;
  color: #999;
  text-align: center;
}
