:root {
  --ink: #17211d;
  --muted: #69756f;
  --line: #dfe7e2;
  --paper: #f6f7f2;
  --panel: #ffffff;
  --green: #0f766e;
  --blue: #2563eb;
  --red: #dc2626;
  --gold: #b7791f;
  --shadow: 0 18px 50px rgba(24, 38, 32, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans TC", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

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

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.member-app {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 12px 14px 110px;
  overflow-x: hidden;
}

.retail-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: rgba(246, 247, 242, 0.94);
  backdrop-filter: blur(14px);
}

.retail-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(36px, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-toggle button {
  min-height: 32px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.language-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.mini-btn,
.text-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}

.member-login-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin: 8px 0 14px;
}

.member-login-form,
.member-register-form {
  display: grid;
  gap: 8px;
}

.member-register-form h3 {
  margin: 0;
}

.verify-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.member-login-form input,
.member-register-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
}

.member-login-form button,
.member-register-form button {
  min-height: 44px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.member-status {
  color: var(--muted);
  font-size: 13px;
}

.member-order-history {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.member-order-history article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.member-order-history article div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.member-order-history p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.member-fulfillment {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 13px;
}

.member-fulfillment span {
  color: var(--muted);
}

.member-fulfillment div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.member-fulfillment button {
  min-height: 32px;
  border-radius: 8px;
  background: #eef3ef;
  color: var(--ink);
  padding: 0 10px;
}

.retail-topbar strong {
  display: block;
  font-size: 22px;
}

.retail-topbar span {
  color: var(--muted);
  font-size: 13px;
}

.icon-btn {
  min-width: 74px;
  min-height: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.icon-btn b {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.carousel-shell {
  position: relative;
}

.carousel-shell::before,
.carousel-shell::after,
.scroll-fade::before,
.scroll-fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  z-index: 2;
  pointer-events: none;
}

.carousel-shell::before,
.scroll-fade::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper), rgba(246, 247, 242, 0));
}

.carousel-shell::after,
.scroll-fade::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper), rgba(246, 247, 242, 0));
}

.carousel,
.horizontal-list {
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar,
.horizontal-list::-webkit-scrollbar {
  display: none;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 0 10px;
}

.banner-card {
  scroll-snap-align: start;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background: #0f766e;
  box-shadow: var(--shadow);
}

.banner-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.banner-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
}

.banner-card h2 {
  margin: 0 0 4px;
  font-size: 23px;
}

.banner-card p {
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px 0;
}

.quick-chip,
.mini-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
}

.quick-chip {
  min-width: 0;
  min-height: 44px;
  padding: 9px 8px;
  white-space: nowrap;
}

.quick-chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.search-bar input,
.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.coupon-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 13px 14px;
  min-height: 46px;
}

.checkout-form textarea {
  min-height: 88px;
  resize: vertical;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.horizontal-list {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.horizontal-list.compact {
  grid-auto-columns: 40%;
}

.scroll-fade {
  position: relative;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.product-card a,
.product-card button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: inherit;
  display: block;
  padding: 0;
  text-decoration: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e8eee9;
}

.product-card .body {
  padding: 11px;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.product-card p,
.product-card span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
}

.product-list .product-card a,
.product-list .product-card button {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
}

.product-list .product-card img {
  height: 100%;
  min-height: 124px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.sheet.hidden {
  display: none;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 480px);
  margin: 0 auto;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--panel);
  border-radius: 8px 8px 0 0;
  padding: 16px;
  box-shadow: var(--shadow);
}

.sheet-close {
  float: right;
  min-height: 36px;
  border-radius: 8px;
  background: #eef3ef;
  color: var(--ink);
  padding: 0 12px;
}

.detail-hero {
  clear: both;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.series-image-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.series-image-strip button {
  border: 0;
  padding: 0;
  background: transparent;
}

.series-image-strip img {
  aspect-ratio: 1;
  border-radius: 8px;
}

.detail-hero h2 {
  margin: 14px 0 4px;
}

.series-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  background: rgba(246, 247, 242, 0.94);
  backdrop-filter: blur(14px);
}

.back-btn {
  min-height: 42px;
  border-radius: 8px;
  background: #eef3ef;
  color: var(--ink);
  padding: 0 14px;
}

.category-title,
.tier-price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
  margin: 14px 0;
}

.category-title span,
.category-title p,
.tier-price-head span {
  color: var(--muted);
  font-size: 13px;
}

.category-title h1,
.tier-price-head h3 {
  margin: 3px 0;
}

.tier-price-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .tier-price-head span {
    display: none;
  }
}

.tier-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tier-price-grid.single {
  grid-template-columns: 1fr;
}

.tier-price-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.tier-price-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tier-price-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 18px;
}

.variant-picker {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.variant-picker-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.variant-picker-head h3 {
  margin: 0;
}

.variant-picker-head span {
  color: #dc2626;
  font-weight: 800;
}

.variant-choice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 42%);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px;
}

.variant-name {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.variant-qty-control {
  display: grid;
  grid-template-columns: 36px minmax(46px, 1fr) 36px;
  width: 100%;
  max-width: 220px;
  justify-self: end;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.variant-qty-control button {
  min-height: 34px;
  border-radius: 0;
  background: #eef3ef;
  color: var(--ink);
  padding: 0;
}

.variant-qty-control input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

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

.variant-confirm-btn {
  min-height: 38px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 0 8px;
  width: 100%;
}

.variant-confirm-all-btn {
  min-height: 46px;
  margin-top: 4px;
  font-weight: 800;
}

.variant-stock-warning {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 360px) {
  .variant-choice-row {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
    gap: 8px;
  }

  .variant-qty-control {
    grid-template-columns: 32px minmax(40px, 1fr) 32px;
  }
}

.variant-confirm-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.variant-list,
.review-list,
.cart-items,
.checkout-form {
  display: grid;
  gap: 10px;
}

.variant-row,
.review-card,
.cart-row,
.file-card,
.totals {
  border: 1px solid var(--line);
  background: #fbfcfa;
  border-radius: 8px;
  padding: 10px;
}

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

.variant-row button,
.submit-btn,
.coupon-row button,
.bottom-cart button,
.review-form button {
  min-height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 0 14px;
}

.variant-row button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.review-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.review-panel,
.review-login-note {
  border: 1px solid var(--line);
  background: #fbfcfa;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}

.review-panel h3,
.review-form h3 {
  margin: 0;
}

.review-card {
  display: grid;
  gap: 6px;
}

.review-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.review-card strong {
  color: var(--gold);
}

.review-card p {
  margin: 0;
}

.review-login-note {
  display: grid;
  gap: 10px;
}

.review-form textarea,
.review-form input,
.review-form select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cart-row button {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 8px;
  min-width: 42px;
}

.totals {
  display: grid;
  gap: 7px;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals strong {
  font-size: 20px;
}

.delivery-red-info {
  margin: 0;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red);
  background: #fff7f7;
  color: #991b1b;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
  font-size: 13px;
}

.delivery-red-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.delivery-red-info p,
.phone-format-warning {
  margin: 0;
}

.phone-format-warning,
.error-text {
  color: var(--red);
  font-weight: 700;
}

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

.checkout-step .checkout-date input,
.checkout-step .checkout-date select {
  display: block;
  min-height: 46px;
}

.delivery-area-picker {
  position: relative;
  display: grid;
  gap: 8px;
}

.delivery-picker-trigger,
.delivery-picker-choices button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  text-align: left;
  font-weight: 700;
}

.delivery-picker-trigger:not(:disabled)::after {
  content: "⌄";
  float: right;
  color: var(--muted);
  font-size: 20px;
}

.delivery-picker-trigger:disabled {
  background: #f1f5f3;
  color: var(--muted);
}

.delivery-picker-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.delivery-picker-choices button {
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
}

.delivery-area-native {
  position: absolute;
  width: 1px !important;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.delivery-schedule-picker {
  display: grid;
  gap: 14px;
}

.delivery-schedule-group {
  display: grid;
  gap: 8px;
}

.delivery-schedule-group > strong {
  color: var(--ink);
}

.delivery-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#deliveryDateChoices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-choice-grid button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  font-weight: 700;
}

.delivery-choice-grid button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.delivery-schedule-native {
  position: absolute;
  width: 1px !important;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.checkout-step .checkout-date select {
  appearance: auto;
  -webkit-appearance: menulist;
  touch-action: manipulation;
}

.cart-empty-notice {
  display: grid;
  gap: 8px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px;
  background: #fffbeb;
  color: #92400e;
}

.cart-empty-notice p {
  margin: 0;
}

.cart-empty-notice button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid #d97706;
  border-radius: 8px;
  background: #fff;
  color: #92400e;
  padding: 0 12px;
}

#deliveryConsolidationDate {
  width: 100%;
}

.file-card {
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.file-card input[type="file"] {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: -1px;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.file-upload-control {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-upload-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}

.file-upload-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-hint,
.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkout-step {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.checkout-step h3,
.checkout-step > label {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.checkout-progress {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.checkout-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.checkout-step-actions .submit-btn:only-child {
  grid-column: 1 / -1;
}

.secondary-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.field-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.input-error {
  border-color: var(--red) !important;
}

.checkout-access-status,
.purchase-login-note {
  display: grid;
  gap: 10px;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #78350f;
  padding: 12px;
}

.checkout-access-status .mini-btn,
.purchase-login-note .mini-btn {
  justify-self: start;
}

.reward-panel,
.reward-picker {
  display: grid;
  gap: 10px;
  border: 1px solid #d8b4fe;
  border-radius: 8px;
  background: #faf5ff;
  padding: 12px;
}

.reward-picker {
  gap: 8px;
  margin-top: 8px;
  background: #fff;
}

.reward-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reward-picker header h3,
.reward-picker > p {
  margin: 0;
}

.reward-picker header h3 {
  font-size: 18px;
}

.reward-picker header button {
  min-width: 44px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.reward-summary {
  display: grid;
  gap: 4px;
  text-align: left;
  color: #581c87;
  width: 100%;
  border: 1px solid #c084fc;
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.reward-summary-hint {
  color: var(--muted);
  font-weight: 400;
}

.reward-summary-action {
  color: #581c87;
  font-size: 14px;
  font-weight: 700;
}

.reward-picker article {
  display: grid;
  gap: 6px;
  padding: 0;
}

.reward-picker article + article {
  border-top: 1px solid #ece7f4;
  padding-top: 8px;
}

.reward-picker article button {
  min-height: 38px;
  border: 1px solid #c084fc;
  border-radius: 6px;
  background: #fff;
  text-align: left;
  padding: 8px;
}

.reward-series-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  border: 1px solid #c084fc;
  border-radius: 6px;
  background: #fff;
  color: #581c87;
  padding: 8px 10px;
  text-align: left;
}

.reward-series-button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-series-button > strong {
  text-align: center;
}

.reward-series-button::after {
  content: "⌄";
  font-size: 18px;
  text-align: center;
}

.reward-series-button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.reward-variant-list {
  display: grid;
  gap: 6px;
  padding-top: 6px;
}

.checkout-success {
  display: grid;
  gap: 6px;
  border: 2px solid #0f766e;
  border-radius: 8px;
  background: #ecfdf5;
  color: #064e3b;
  padding: 14px;
  font-size: 15px;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.18);
}

.checkout-success strong {
  display: block;
  font-size: 22px;
}

.checkout-success span {
  display: block;
}

.checkout-bow {
  width: 112px;
  height: 112px;
  justify-self: center;
  display: block;
  object-fit: contain;
  transform-origin: 50% 90%;
  animation: checkoutBow 1.2s ease-in-out 2;
}

@keyframes checkoutBow {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  45% { transform: rotate(6deg) translateY(6px); }
  70% { transform: rotate(0deg) translateY(0); }
}

.fps-payment-card {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
}

.fps-payment-card.hidden {
  display: none;
}

.fps-payment-card span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.fps-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
}

.fps-payment-actions .mini-btn {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px;
}

.file-card.needs-proof {
  border-color: #dc2626;
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.checkout-proof-warning {
  border-left: 5px solid #dc2626;
  background: #fff1f2;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.consolidation-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  border: 1px solid #b7ddd4;
  border-radius: 8px;
  background: #f0fdfa;
  padding: 12px;
}

.consolidation-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consolidation-choice input {
  width: auto;
  min-height: auto;
}

.alipay-payment-image {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 420px) {
  .fps-payment-actions {
    justify-content: center;
  }
}

.whatsapp-support {
  position: fixed;
  right: max(16px, calc((100vw - 480px) / 2 + 16px));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 30px rgba(16, 96, 55, 0.3);
  text-decoration: none;
  font-weight: 800;
}

.whatsapp-support svg {
  display: block;
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-support b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.member-notification-btn {
  position: relative;
}

.member-notification-btn b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  color: #ffffff;
  background: #dc2626;
  border-radius: 999px;
  font-size: 11px;
}

.member-notification-panel {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 90;
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(18, 28, 23, 0.24);
}

.member-notification-panel.hidden {
  display: none;
}

.member-notification-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.member-notification-panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: var(--soft);
  font-size: 22px;
}

.member-notification-actions {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.member-notification-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}

.member-notification-panel section {
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.member-notification-panel article {
  border-bottom: 1px solid var(--line);
}

.member-notification-panel article.unread button {
  background: #eef6ff;
}

.member-notification-panel article button {
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 14px 16px;
  border: 0;
  background: #ffffff;
  color: var(--text);
  text-align: left;
}

.member-notification-panel article span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .whatsapp-support {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .retail-top-actions {
    gap: 5px;
  }

  .language-toggle button {
    min-width: 32px;
    padding: 0 6px;
  }
}

.bottom-cart {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  transform: translateX(-50%);
  width: min(100%, 480px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(24, 38, 32, 0.1);
}

.bottom-cart span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.bottom-cart strong {
  display: block;
  margin-top: 2px;
}

@media (min-width: 720px) {
  .member-app,
  .bottom-cart,
  .sheet-panel {
    max-width: 520px;
  }
}
