:root {
  --app-font:"Noto Sans Thai","Prompt",Arial,sans-serif;
}

html,body,button,input,textarea,select,option,.card,.modal,.popup,.coupon-card,.coupon-popup,.bottom-nav,.nav,.btn {
  font-family:var(--app-font)!important;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:geometricPrecision;
}

body {
  font-variant-numeric:tabular-nums;
}

:root {
  --orange:#334155;
  --orange2:#64748b;
  --orange3:#f1f5f9;
  --bg:#f5f5f5;
  --card:#fff;
  --text:#222;
  --muted:#777;
  --line:#eee;
  --green:#22c55e;
  --red:#ef4444;
  --blue:#2563eb;
  --shadow:0 4px 18px rgba(0,0,0,.08);
  --radius:10px
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-family:var(--app-font);
  background:var(--bg);
  color:var(--text);
  font-size:13px;
  padding-bottom:72px
}

button,input,textarea,select {
  font-family:inherit;
  font-size:13px
}

button {
  cursor:pointer
}

a {
  text-decoration:none;
  color:inherit
}

.auth {
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  padding:18px
}

.auth-card {
  width:100%;
  max-width:420px;
  background:#fff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 18px 48px rgba(0,0,0,.18)
}

.auth-logo {
  width:70px;
  height:70px;
  border-radius:22px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#fff;
  display:grid;
  place-items:center;
  font-size:34px;
  margin:0 auto 10px
}

.auth h1 {
  font-size:24px;
  text-align:center;
  margin:0
}

.auth p {
  text-align:center;
  color:var(--muted);
  margin:6px 0 18px
}

.tabs {
  display:grid;
  grid-template-columns:1fr 1fr;
  background:#f6f6f6;
  border-radius:12px;
  padding:4px;
  margin-bottom:12px
}

.tabs button {
  border:none;
  border-radius:10px;
  background:transparent;
  height:40px;
  font-weight:800;
  color:#666
}

.tabs button.active {
  background:#fff;
  color:var(--orange);
  box-shadow:0 3px 10px rgba(0,0,0,.08)
}

.form {
  display:none
}

.form.active {
  display:block
}

.field {
  margin-bottom:10px
}

.field label {
  display:block;
  font-size:12px;
  font-weight:700;
  margin-bottom:5px;
  color:#444
}

.field input,.field textarea,.field select {
  width:100%;
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
  padding:11px;
  outline:none
}

.field textarea {
  min-height:86px
}

.btn {
  border:none;
  border-radius:10px;
  padding:10px 14px;
  background:var(--orange);
  color:#fff;
  font-weight:800
}

.btn.full {
  width:100%;
  min-height:44px
}

.btn.dark {
  background:#222
}

.btn.green {
  background:#16a34a
}

.btn.gray {
  background:#64748b
}

.btn.red {
  background:#dc2626
}

.btn.ghost {
  background:#fff;
  color:var(--orange);
  border:1px solid var(--orange)
}

.app {
  display:none
}

.header {
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg,var(--orange),var(--orange2));
  color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.12)
}

.topbar {
  max-width:1280px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:7px 14px;
  font-size:12px;
  gap:12px
}

.topbar .right {
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap
}

.mainbar {
  max-width:1280px;
  margin:0 auto;
  display:grid;
  grid-template-columns:220px 1fr 210px;
  gap:16px;
  align-items:center;
  padding:12px 14px 16px
}

.logo {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:22px;
  font-weight:900
}

.logo-badge {
  width:42px;
  height:42px;
  border-radius:14px;
  background:#fff;
  color:var(--orange);
  display:grid;
  place-items:center;
  font-size:24px
}

.search {
  height:42px;
  background:#fff;
  border-radius:4px;
  display:flex;
  align-items:center;
  padding:3px
}

.search input {
  flex:1;
  border:none;
  outline:none;
  padding:0 12px
}

.search button {
  height:36px;
  border:none;
  background:var(--orange);
  color:#fff;
  border-radius:4px;
  width:70px;
  font-weight:800
}

.wallet-card {
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.22);
  border-radius:10px;
  padding:10px
}

.wallet-card small {
  display:block;
  opacity:.8
}

.wallet-card b {
  font-size:18px
}

.desktop-nav {
  background:#fff;
  border-bottom:1px solid var(--line)
}

.desktop-nav-inner {
  max-width:1280px;
  margin:0 auto;
  display:flex;
  gap:8px;
  padding:8px 14px
}

.desktop-nav button {
  border:none;
  background:#fff;
  border-radius:8px;
  padding:10px 14px;
  font-weight:800;
  color:#444
}

.desktop-nav button.active,.desktop-nav button:hover {
  background:var(--orange3);
  color:var(--orange)
}

.container {
  max-width:1280px;
  margin:0 auto;
  padding:14px;
  display:grid;
  grid-template-columns:230px 1fr;
  gap:14px
}

.sidebar {
  display:block
}

.side-card {
  background:#fff;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:12px;
  margin-bottom:12px
}

.side-title {
  font-weight:900;
  margin-bottom:8px
}

.side-menu {
  display:grid;
  gap:6px
}

.side-menu button {
  border:none;
  background:#fff;
  text-align:left;
  border-radius:8px;
  padding:9px;
  color:#444
}

.side-menu button:hover {
  background:var(--orange3);
  color:var(--orange)
}

.page {
  display:none
}

.page.active {
  display:block
}

.banner-row {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:12px;
  margin-bottom:14px
}

.banner-main {
  height:250px;
  background:linear-gradient(135deg,#ff794d,#ffb26b);
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow)
}

.banner-main img {
  width:100%;
  height:100%;
  object-fit:cover
}

.banner-fallback {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.35));
  color:#fff;
  font-size:28px;
  font-weight:900;
  display:flex;
  align-items:flex-end;
  padding:22px
}

.banner-mini {
  display:grid;
  gap:12px
}

.mini-banner {
  height:119px;
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow)
}

.mini-banner img {
  width:100%;
  height:100%;
  object-fit:cover
}

.mini-banner div {
  position:absolute;
  left:12px;
  bottom:10px;
  color:#fff;
  font-weight:900;
  text-shadow:0 2px 5px rgba(0,0,0,.5)
}

.notice {
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:var(--radius);
  padding:10px 12px;
  margin-bottom:12px
}

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

.section-head h2 {
  margin:0;
  font-size:18px
}

.section-head .tools {
  display:flex;
  gap:8px
}

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

.product {
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transition:.15s
}

.product:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.12)
}

.cover {
  position:relative;
  aspect-ratio:1/1;
  background:#eee;
  overflow:hidden
}

.cover img {
  width:100%;
  height:100%;
  object-fit:cover
}

.tag {
  position:absolute;
  top:7px;
  left:7px;
  background:var(--orange);
  color:#fff;
  font-size:11px;
  border-radius:999px;
  padding:3px 7px;
  font-weight:800
}

.body {
  padding:10px
}

.name {
  font-size:13px;
  height:38px;
  line-height:1.45;
  overflow:hidden
}

.condition {
  font-size:11px;
  color:var(--muted);
  height:32px;
  overflow:hidden;
  margin-top:5px
}

.price {
  display:flex;
  align-items:baseline;
  gap:6px;
  margin:8px 0
}

.sale {
  font-size:18px;
  font-weight:900;
  color:var(--orange)
}

.price .full,
.product .price .full,
.public-product .price .full {
  text-decoration:line-through;
  color:#aaa;
  font-size:12px
}

button.full,
.btn.full,
.topup-copy-account-v438,
.topup-submit-v438,
.topup-code-submit-v438 {
  text-decoration:none!important;
}

.qty {
  display:flex;
  align-items:center;
  justify-content:space-between
}

.qty-ctl {
  display:flex;
  align-items:center;
  background:#f5f5f5;
  border-radius:999px;
  overflow:hidden
}

.qty-ctl button {
  width:28px;
  height:28px;
  border:none;
  background:#fff;
  color:var(--orange);
  font-weight:900
}

.qty-ctl span {
  min-width:26px;
  text-align:center;
  font-weight:800
}

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

.coupon {
  background:#fff;
  border-radius:10px;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:150px 1fr;
  overflow:hidden
}

.coupon .cover {
  aspect-ratio:auto;
  height:100%
}

.coupon-info {
  padding:12px
}

.coupon h3 {
  margin:0;
  font-size:16px
}

.expiry {
  color:#dc2626;
  font-weight:900;
  font-size:12px;
  margin:6px 0
}

.urgent {
  background:#fef2f2;
  border:1px solid #fecaca;
  color:#991b1b;
  border-radius:8px;
  padding:6px;
  margin:7px 0
}

.used {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:22px;
  font-weight:900
}

.card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  box-shadow:var(--shadow);
  padding:14px;
  margin-bottom:14px
}

.grid2 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}

.rows {
  display:grid;
  gap:8px
}

.row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px dashed #eee;
  padding:7px 0
}

.row:last-child {
  border-bottom:none
}

.empty {
  background:#fff;
  border:1px dashed #ddd;
  border-radius:10px;
  padding:28px;
  text-align:center;
  color:#888
}

.cart-drawer {
  position:fixed;
  right:0;
  top:0;
  width:420px;
  max-width:96vw;
  height:100vh;
  background:#fff;
  z-index:60;
  box-shadow:-10px 0 30px rgba(0,0,0,.18);
  transform:translateX(110%);
  transition:.25s;
  display:flex;
  flex-direction:column
}

.cart-drawer.show {
  transform:translateX(0)
}

.drawer-head {
  padding:14px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center
}

.drawer-body {
  padding:12px;
  overflow:auto;
  flex:1
}

.drawer-foot {
  border-top:1px solid var(--line);
  padding:12px
}

.cart-item {
  display:grid;
  grid-template-columns:60px 1fr auto;
  gap:10px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px;
  margin-bottom:8px
}

.cart-item img {
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:8px
}

.discount-box {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin:12px 0
}

.discount-box input {
  border:1px solid #ddd;
  border-radius:8px;
  padding:10px;
  text-transform:uppercase
}

.summary {
  background:#fafafa;
  border-radius:10px;
  padding:10px;
  margin:10px 0
}

.summary .row {
  padding:5px 0
}

.summary .total {
  font-size:18px;
  font-weight:900;
  color:var(--orange)
}

.overlay {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:50;
  display:none
}

.overlay.show {
  display:block
}

.modal {
  position:fixed;
  z-index:70;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(.95);
  width:min(94vw,620px);
  max-height:92vh;
  overflow:auto;
  background:#fff;
  border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
  opacity:0;
  pointer-events:none;
  transition:.2s
}

.modal.show {
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,-50%) scale(1)
}

.modal-head {
  padding:14px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center
}

.modal-body {
  padding:14px
}

.close {
  border:none;
  background:#f3f4f6;
  border-radius:8px;
  width:34px;
  height:34px;
  font-weight:900
}

.coupon-preview {
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:10px;
  background:#eee
}

.code-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px
}

.code-box {
  border:1px solid #ddd;
  border-radius:12px;
  padding:12px;
  text-align:center;
  background:#fff
}

.code-title {
  font-weight:900;
  margin-bottom:8px
}

.qr-svg svg {
  width:220px;
  height:220px
}

.qr-svg img,.qr-svg canvas {
  width:220px!important;
  height:220px!important
}

.barcode svg {
  width:100%;
  height:120px
}

.plain-code {
  grid-column:1/-1;
  background:#f8fafc;
  border-color:#fed7aa;
  font-size:24px;
  font-weight:900;
  word-break:break-all
}

.toast-container {
  position:fixed;
  top:16px;
  right:16px;
  z-index:300;
  width:min(360px,calc(100vw - 24px));
  display:grid;
  gap:9px;
  pointer-events:none;
}

.toast-item {
  background:#222;
  color:#fff;
  border-radius:12px;
  padding:11px 13px;
  box-shadow:0 12px 32px rgba(0,0,0,.22);
  border-left:4px solid var(--orange);
  opacity:0;
  transform:translateX(24px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:auto;
  line-height:1.55;
  word-break:break-word;
}

.toast-item.show {
  opacity:1;
  transform:translateX(0)
}

.toast-item.hide {
  opacity:0;
  transform:translateX(24px)
}

.toast-item.success {
  border-left-color:#16a34a
}

.toast-item.error {
  border-left-color:#dc2626
}

@media(max-width:980px) {
  .toast-container {
    top:10px;
    right:10px;
    width:calc(100vw - 20px)
  }
}

.point-discount-panel-v151 {
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  border-radius:12px;
  padding:10px;
  margin:10px 0 0;
}

.point-discount-note-v151 {
  color:#166534;
  font-weight:800;
  font-size:12px;
  line-height:1.65;
  margin-bottom:8px;
}

.point-discount-result-v151 {
  margin-top:8px;
  border-radius:10px;
  padding:8px 10px;
  background:#ffffff;
  border:1px solid #dcfce7;
  color:#166534;
  font-weight:800;
  font-size:12px;
  line-height:1.6;
}

.point-discount-result-v151.error {
  border-color:#fecaca;
  color:#991b1b;
  background:#fff7f7;
}

@media(max-width:980px) {
  .point-discount-panel-v151 {
    padding:8px;
    border-radius:12px;
    margin-top:7px
  }

  .point-discount-note-v151,.point-discount-result-v151 {
    font-size:10.5px
  }
}

.product-summary-v152 {
  margin:3px 0 0;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  line-height:1.55;
}

.product-summary-v152 b {
  color:var(--orange)
}

.banner-carousel-v152 {
  position:absolute;
  inset:0;
  overflow:hidden;
  border-radius:inherit;
}

.banner-track-v152 {
  height:100%;
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}

.banner-track-v152::-webkit-scrollbar {
  display:none
}

.banner-slide-v152 {
  position:relative;
  flex:0 0 100%;
  height:100%;
  scroll-snap-align:start;
  display:block;
  background:#fff;
  color:#fff;
}

.banner-slide-v152 img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.banner-slide-v152 .banner-fallback, .banner-slide-v152 .public-banner-fallback {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.38));
  display:flex;
  align-items:flex-end;
  padding:18px;
  font-weight:900;
  text-shadow:0 3px 10px rgba(0,0,0,.35);
}

.banner-dots-v152 {
  position:absolute;
  left:0;
  right:0;
  bottom:8px;
  display:flex;
  justify-content:center;
  gap:5px;
  z-index:3;
  pointer-events:none;
}

.banner-dots-v152 span {
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}

.banner-dots-v152 span:first-child {
  width:18px;
  background:#fff
}

@media(max-width:980px) {
  .product-summary-v152 {
    font-size:10.5px
  }

  .banner-slide-v152 img {
    object-fit:cover
  }
}

.loading {
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(4px);
  z-index:120;
  display:none;
  place-items:center
}

.loading.show {
  display:grid
}

.loader {
  background:#fff;
  border-radius:14px;
  padding:18px;
  box-shadow:var(--shadow);
  font-weight:900;
  text-align:center
}

.spin {
  width:34px;
  height:34px;
  border:4px solid #eee;
  border-top-color:var(--orange);
  border-radius:50%;
  margin:0 auto 8px;
  animation:spin .8s linear infinite
}

@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}

.bottom-nav {
  display:none
}

@media(max-width:980px) {
  body {
    font-size:11px
  }

  .topbar {
    display:none
  }

  .mainbar {
    grid-template-columns:1fr auto;
    gap:10px;
    padding:10px
  }

  .mainbar .wallet-card {
    display:none
  }

  .logo {
    font-size:17px
  }

  .logo-badge {
    width:36px;
    height:36px
  }

  .search {
    height:38px
  }

  .desktop-nav {
    display:none
  }

  .container {
    display:block;
    padding:10px
  }

  .sidebar {
    display:none
  }

  .banner-row {
    display:block
  }

  .banner-main {
    height:150px;
    margin-bottom:10px
  }

  .banner-mini {
    display:none
  }

  .products {
    grid-template-columns:repeat(2,1fr);
    gap:8px
  }

  .product {
    border-radius:7px
  }

  .body {
    padding:8px
  }

  .name {
    font-size:11px;
    height:34px
  }

  .condition {
    font-size:9.5px;
    height:28px
  }

  .sale {
    font-size:15px
  }

  .full {
    font-size:10px
  }

  .qty-ctl button {
    width:24px;
    height:24px
  }

  .btn {
    font-size:11px;
    padding:8px 10px
  }

  .coupon {
    grid-template-columns:105px 1fr
  }

  .coupon h3 {
    font-size:13px
  }

  .coupon-info {
    padding:9px
  }

  .grid2 {
    grid-template-columns:1fr
  }

  .code-grid {
    grid-template-columns:1fr
  }

  .plain-code {
    grid-column:auto
  }

  .modal {
    width:94vw
  }

  .coupon-preview {
    height:140px
  }

  .qr-svg svg {
    width:190px;
    height:190px
  }

  .barcode svg {
    height:95px
  }

  .bottom-nav {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#fff;
    border-top:1px solid #ddd;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    z-index:30
  }

  .bottom-nav button {
    border:none;
    background:#fff;
    padding:7px 2px;
    color:#555;
    font-size:10px
  }

  .bottom-nav button.active {
    color:var(--orange);
    font-weight:900
  }

  .bottom-nav span {
    display:block;
    font-size:18px
  }

  .cart-drawer {
    width:100%;
    max-width:100vw
  }

  .section-head h2 {
    font-size:15px
  }
}

.cover img,.coupon-preview,.banner-main img,.mini-banner img {
  object-fit:contain!important;
  background:#fff!important
}

.code-switch {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:12px
}

.code-switch button {
  border:1px solid var(--orange);
  background:#fff;
  color:var(--orange);
  border-radius:10px;
  padding:10px;
  font-weight:900
}

.code-switch button.active {
  background:var(--orange);
  color:#fff
}

.code-panel {
  display:none!important
}

.code-panel.active {
  display:block!important
}

.code-grid {
  grid-template-columns:1fr!important
}

.plain-code.code-panel {
  grid-column:auto!important;
  min-height:120px;
  display:none;
  place-items:center
}

.plain-code.code-panel.active {
  display:grid!important
}

.coupon-qr-preview {
  width:92px;
  height:92px;
  border:1px solid #eee;
  border-radius:10px;
  background:#fff;
  display:grid;
  place-items:center;
  padding:5px
}

.coupon-qr-preview svg {
  width:80px;
  height:80px
}

.coupon-qr-preview img,.coupon-qr-preview canvas {
  width:80px!important;
  height:80px!important
}

.coupon-tools {
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:8px;
  flex-wrap:wrap
}

.start-screen {
  position:fixed;
  inset:0;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  z-index:200;
  display:none;
  place-items:center;
  color:#fff;
  text-align:center
}

.start-screen.show {
  display:grid
}

.start-card {
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.25);
  border-radius:20px;
  padding:22px;
  width:min(90vw,360px);
  box-shadow:0 18px 48px rgba(0,0,0,.18)
}

.start-card .spin {
  border-color:rgba(255,255,255,.35);
  border-top-color:#fff
}

@media(max-width:980px) {
  .coupon-qr-preview {
    width:74px;
    height:74px
  }

  .coupon-qr-preview svg {
    width:64px;
    height:64px
  }

  .coupon-qr-preview img,.coupon-qr-preview canvas {
    width:64px!important;
    height:64px!important
  }

  .coupon-tools {
    gap:7px
  }

  .code-switch button {
    padding:8px;
    font-size:11px
  }
}

.coupon-clean-list {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px
}

.coupon-clean-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column
}

.coupon-clean-cover {
  width:100%;
  aspect-ratio:16/10;
  background:#fff;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-bottom:1px solid #f1f1f1
}

.coupon-clean-cover img {
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff
}

.coupon-clean-body {
  padding:12px;
  display:grid;
  gap:7px;
  flex:1
}

.coupon-clean-title {
  font-size:15px;
  font-weight:900;
  line-height:1.35;
  min-height:40px
}

.coupon-clean-expiry {
  font-size:12px;
  color:#dc2626;
  font-weight:900;
  background:#fef2f2;
  border:1px solid #fecaca;
  border-radius:9px;
  padding:7px;
  text-align:center
}

.coupon-clean-actions {
  margin-top:auto;
  display:grid
}

.coupon-clean-actions {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:center
}

.my-coupon-share-btn {
  min-height:42px!important;
  min-width:48px!important;
  padding:0 13px!important;
  border-radius:13px!important;
  border:1px solid rgba(255,90,54,.28)!important;
  background:#fff!important;
  color:var(--orange)!important;
  box-shadow:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  font-weight:900!important;
}

.my-coupon-share-btn.shared {
  background:linear-gradient(135deg,#16a34a,#22c55e)!important;
  border-color:#16a34a!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(22,163,74,.18)!important;
}

.my-coupon-share-btn .share-check {
  display:none
}

.my-coupon-share-btn.shared .share-icon {
  display:none
}

.my-coupon-share-btn.shared .share-check {
  display:inline
}

@media(max-width:980px) {
  #couponList .coupon-clean-actions {
    grid-template-columns:1fr 44px!important;
    gap:7px!important
  }

  .my-coupon-share-btn {
    min-width:44px!important;
    height:38px!important;
    border-radius:12px!important;
    padding:0!important;
    font-size:15px!important
  }
}

.coupon-history-list {
  display:grid;
  gap:8px
}

.coupon-history-item {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start
}

.coupon-history-item b {
  color:var(--orange)
}

.history-tabs {
  display:flex;
  gap:8px;
  overflow:auto;
  padding:8px 0;
  margin-bottom:12px;
  position:sticky;
  top:0;
  background:var(--bg);
  z-index:5
}

.history-tab {
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  color:#374151
}

.history-tab.active {
  background:var(--orange);
  border-color:var(--orange);
  color:#fff;
  box-shadow:0 6px 18px rgba(var(--v400-primary-rgb,49,135,238),.20)
}

.history-panel {
  display:none
}

.history-panel.active {
  display:block
}

.history-filter {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  margin:10px 0 12px
}

.history-filter input {
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px 12px;
  font-family:inherit
}

.history-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  margin-bottom:10px;
  box-shadow:0 2px 10px rgba(0,0,0,.04)
}

.history-card h3 {
  font-size:15px;
  margin:0 0 8px;
  color:#111827
}

.history-card small {
  color:#6b7280
}

.history-card .red-note {
  color:#dc2626;
  font-weight:800;
  margin-top:6px
}

.coupon-modal-center {
  text-align:center
}

.coupon-modal-top {
  display:grid;
  grid-template-columns:160px 1fr;
  gap:14px;
  align-items:center;
  text-align:left
}

.coupon-modal-img {
  width:160px;
  height:110px;
  object-fit:contain;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px
}

.coupon-modal-title {
  font-size:20px;
  font-weight:900;
  margin:0 0 6px
}

.coupon-modal-expiry {
  display:inline-block;
  background:#fef2f2;
  color:#b91c1c;
  border:1px solid #fecaca;
  border-radius:999px;
  padding:7px 11px;
  font-weight:900
}

.coupon-modal-condition {
  margin:12px auto 0;
  max-width:520px;
  background:#fafafa;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  color:#555;
  line-height:1.65;
  text-align:left;
  white-space:pre-wrap
}

.code-switch {
  max-width:460px;
  margin:14px auto 0
}

.code-grid {
  max-width:460px;
  margin-left:auto;
  margin-right:auto
}

.modal-actions-center {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap
}

.modal-actions-center .btn {
  min-width:150px
}

@media(max-width:980px) {
  .coupon-clean-list {
    grid-template-columns:1fr;
    gap:10px
  }

  .coupon-clean-card {
    display:grid;
    grid-template-columns:112px 1fr;
    min-height:128px
  }

  .coupon-clean-cover {
    height:100%;
    aspect-ratio:auto;
    border-bottom:none;
    border-right:1px solid #f1f1f1
  }

  .coupon-clean-title {
    font-size:13px;
    min-height:auto
  }

  .coupon-clean-expiry {
    font-size:10px;
    padding:6px
  }

  .coupon-modal-top {
    grid-template-columns:1fr;
    text-align:center
  }

  .coupon-modal-img {
    width:100%;
    height:145px
  }

  .coupon-modal-title {
    font-size:16px
  }

  .modal-actions-center .btn {
    min-width:120px;
    flex:1
  }
}

.qr-svg,.coupon-qr-preview {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

.qr-svg > *,.coupon-qr-preview > * {
  margin-left:auto!important;
  margin-right:auto!important;
}

.code-box {
  text-align:center!important;
}

.barcode {
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%;
}

.barcode svg {
  margin-left:auto!important;
  margin-right:auto!important;
  display:block!important;
}

.coupon-modal-expiry,.coupon-clean-expiry {
  font-family:var(--app-font);
}

.qr-svg img,.qr-svg canvas,.qr-svg svg {
  width:168px!important;
  height:168px!important
}

.barcode svg {
  height:82px!important;
  max-width:360px
}

.code-grid {
  max-width:390px!important
}

.code-switch {
  max-width:390px!important
}

.code-box {
  padding:10px!important
}

.profile-actions {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px
}

.action-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:18px;
  text-align:center
}

.action-card .icon {
  font-size:36px;
  margin-bottom:8px
}

.action-card h3 {
  margin:0 0 8px
}

.bank-box {
  background:linear-gradient(135deg,#f8fafc,#fff);
  border:1px solid #fed7aa;
  border-radius:14px;
  padding:14px;
  display:grid;
  gap:8px
}

.bank-row {
  display:flex;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px dashed #fed7aa;
  padding:7px 0
}

.bank-row:last-child {
  border-bottom:none
}

.bank-row b {
  color:var(--orange)
}

.coupon-meta {
  display:grid;
  gap:5px;
  font-size:12px;
  color:#555;
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:8px
}

.coupon-meta span {
  display:flex;
  justify-content:space-between;
  gap:8px
}

.claim-box {
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:14px;
  margin-bottom:14px
}

.claim-row {
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px
}

@media(max-width:980px) {
  .qr-svg img,.qr-svg canvas,.qr-svg svg {
    width:150px!important;
    height:150px!important
  }

  .barcode svg {
    height:78px!important
  }

  .profile-actions {
    grid-template-columns:1fr
  }

  .claim-row {
    grid-template-columns:1fr
  }
}

.profile-actions {
  grid-template-columns:repeat(4,1fr)!important
}

.discount-check-result {
  margin-top:12px;
  border-radius:12px;
  padding:12px;
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  line-height:1.7;
}

.discount-check-result b {
  color:var(--orange)
}

@media(max-width:980px) {
  .profile-actions {
    grid-template-columns:1fr!important
  }
}

.remember-row {
  display:flex;
  align-items:center;
  gap:8px;
  margin:8px 0 12px;
  color:#555;
  font-size:12px;
  font-weight:700
}

.remember-row input {
  width:auto
}

.discount-wallet-list {
  display:grid;
  gap:10px;
  margin-top:12px
}

.discount-wallet-card {
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.04)
}

.discount-wallet-card h4 {
  margin:0 0 5px;
  color:var(--orange);
  font-size:16px
}

.discount-wallet-meta {
  font-size:12px;
  color:#666;
  line-height:1.7
}

.discount-wallet-actions {
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap
}

.discount-info-box {
  margin-top:12px;
  border-radius:12px;
  padding:12px;
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  line-height:1.75
}

.discount-info-box b {
  color:var(--orange)
}

.cart-saved-row {
  display:flex;
  gap:8px;
  margin:8px 0;
  align-items:center;
  flex-wrap:wrap
}

@media(max-width:980px) {
  .discount-wallet-actions .btn {
    flex:1
  }

  .cart-saved-row .btn {
    flex:1
  }
}

.my-activity-list .row {
  justify-content:flex-start!important;
  display:block!important;
  text-align:left!important;
}

.my-activity-title {
  font-weight:800;
  color:#222;
  line-height:1.5;
}

.my-activity-date {
  color:#777;
  font-size:11px;
  margin-top:3px;
}

.settings-page {
  display:grid;
  gap:14px;
}

.settings-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.settings-head {
  padding:14px 16px;
  border-bottom:1px solid #f1f1f1;
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  font-size:16px;
}

.settings-head .icon {
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff1eb;
  color:var(--orange);
  font-size:20px;
}

.settings-list {
  display:grid;
}

.setting-row {
  display:grid;
  grid-template-columns:42px 1fr auto;
  gap:12px;
  align-items:center;
  padding:13px 16px;
  border-bottom:1px solid #f4f4f4;
  background:#fff;
}

.setting-row:last-child {
  border-bottom:none
}

.setting-row:hover {
  background:#fffaf7
}

.setting-icon {
  width:42px;
  height:42px;
  border-radius:14px;
  background:#f8f8f8;
  display:grid;
  place-items:center;
  font-size:21px;
}

.setting-title {
  font-weight:900;
  color:#222;
}

.setting-desc {
  color:#777;
  font-size:12px;
  margin-top:2px;
  line-height:1.45;
}

.setting-action {
  min-width:92px;
  text-align:right;
}

.profile-summary {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  padding:14px 16px;
}

.profile-stat {
  background:#fafafa;
  border:1px solid #f1f1f1;
  border-radius:14px;
  padding:12px;
}

.profile-stat span {
  color:#777;
  font-size:12px;
}

.profile-stat b {
  display:block;
  margin-top:4px;
  color:var(--orange);
  font-size:17px;
}

.date-thai {
  white-space:normal;
}

@media(max-width:980px) {
  .settings-head {
    font-size:14px;
    padding:12px
  }

  .setting-row {
    grid-template-columns:38px 1fr;
    padding:12px;
  }

  .setting-icon {
    width:38px;
    height:38px;
    border-radius:12px
  }

  .setting-action {
    grid-column:1/-1;
    text-align:left;
  }

  .setting-action .btn {
    width:100%;
  }

  .profile-summary {
    grid-template-columns:1fr;
    padding:12px;
  }
}

:root {
  --orange:#ff5a36;
  --orange2:#ff7a45;
  --orange3:#fff4ef;
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e9edf3;
  --green:#16a34a;
  --red:#dc2626;
  --blue:#2563eb;
  --shadow:0 10px 30px rgba(31,41,55,.08);
  --shadow-strong:0 18px 46px rgba(31,41,55,.15);
  --radius:18px;
}

body {
  background: radial-gradient(circle at 0 0,rgba(255,90,54,.07),transparent 28%), radial-gradient(circle at 100% 15%,rgba(37,99,235,.05),transparent 24%), var(--bg);
}

.header {
  background:linear-gradient(135deg,#ff4f2e 0%,#ff7a45 55%,#ff9a5f 100%);
  box-shadow:0 8px 28px rgba(var(--v400-primary-rgb,49,135,238),.18);
}

.mainbar {
  padding-top:15px;
  padding-bottom:18px
}

.logo-badge {
  border-radius:16px;
  box-shadow:0 10px 24px rgba(128,38,15,.2);
}

.search {
  border-radius:14px;
  padding:4px;
  box-shadow:0 10px 24px rgba(128,38,15,.14);
}

.search button {
  border-radius:11px
}

.wallet-card {
  border-radius:15px;
  backdrop-filter:blur(10px);
  box-shadow:inset 0 1px rgba(255,255,255,.2);
}

.desktop-nav {
  border-bottom:none;
  box-shadow:0 5px 18px rgba(31,41,55,.05);
}

.desktop-nav button {
  border-radius:12px
}

.side-card,.card,.settings-card {
  border:none;
  border-radius:18px;
  box-shadow:var(--shadow);
}

.banner-main,.mini-banner {
  border-radius:20px
}

.product {
  border:none;
  border-radius:18px;
  box-shadow:0 8px 22px rgba(31,41,55,.07);
  transition:transform .2s ease,box-shadow .2s ease;
}

.product:hover {
  transform:translateY(-5px);
  box-shadow:0 18px 40px rgba(31,41,55,.14);
}

.product .cover {
  background:linear-gradient(180deg,#fff,#fafafa)
}

.product .body {
  padding:13px
}

.tag {
  top:10px;
  left:10px;
  border-radius:10px;
  box-shadow:0 6px 14px rgba(var(--v400-primary-rgb,49,135,238),.2);
}

.btn {
  border-radius:12px;
  box-shadow:0 7px 16px rgba(var(--v400-primary-rgb,49,135,238),.14);
  transition:transform .15s ease,filter .15s ease,box-shadow .15s ease;
}

.btn:hover {
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(var(--v400-primary-rgb,49,135,238),.2)
}

.qty-ctl {
  border:1px solid var(--line);
  background:#fff
}

.qty-ctl button {
  background:#fff4ef
}

.notice {
  border-radius:14px
}

.cart-drawer {
  width:440px;
  border-radius:24px 0 0 24px;
  box-shadow:-22px 0 65px rgba(31,41,55,.2);
}

.drawer-head {
  background:linear-gradient(135deg,#fff7f2,#fff);
  padding:18px;
}

.cart-item {
  border:none;
  box-shadow:0 6px 18px rgba(31,41,55,.07);
  padding:10px;
}

.summary {
  background:linear-gradient(135deg,#fff7f2,#fff);
  border:1px solid #ffe0d4;
}

.modal {
  border-radius:22px;
  box-shadow:0 28px 80px rgba(31,41,55,.3);
}

.modal-head {
  padding:17px 20px
}

.modal-body {
  padding:18px 20px 20px
}

.coupon-clean-card {
  border:none;
  border-radius:18px;
  box-shadow:var(--shadow);
}

.bank-box {
  box-shadow:inset 0 1px rgba(255,255,255,.7)
}

.bottom-nav {
  box-shadow:0 -10px 28px rgba(31,41,55,.09);
  border-top:none;
}

.wallet-priority {
  border:2px solid #ffe0d4!important;
  background:linear-gradient(135deg,#fff,#f8fafc)!important;
}

.wallet-priority h3 {
  color:var(--orange)
}

.floating-cart {
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:42;
  border:none;
  border-radius:18px;
  min-width:150px;
  height:58px;
  padding:0 17px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  box-shadow:0 16px 38px rgba(var(--v400-primary-rgb,49,135,238),.34);
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease;
}

.floating-cart:hover {
  transform:translateY(-3px);
  box-shadow:0 20px 44px rgba(var(--v400-primary-rgb,49,135,238),.42)
}

.floating-cart .cart-icon {
  font-size:25px
}

.floating-cart .cart-badge {
  min-width:25px;
  height:25px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--orange);
  padding:0 7px;
}

.floating-cart.pulse {
  animation:cartPulse .48s ease
}

@keyframes cartPulse {
  0% {
    transform:scale(1)
  }

  45% {
    transform:scale(1.12)
  }

  100% {
    transform:scale(1)
  }
}

.success-modal-icon {
  width:76px;
  height:76px;
  border-radius:24px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  color:#15803d;
  font-size:40px;
  box-shadow:0 12px 30px rgba(22,163,74,.18);
}

.success-order-summary {
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  margin:14px 0;
  text-align:left;
}

.success-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.sync-chip {
  position:fixed;
  right:22px;
  bottom:92px;
  z-index:41;
  background:#111827;
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  box-shadow:0 10px 26px rgba(31,41,55,.2);
  display:none;
}

.sync-chip.show {
  display:block
}

@media(max-width:980px) {
  .container {
    padding:9px
  }

  .product {
    border-radius:14px
  }

  .floating-cart {
    right:12px;
    bottom:72px;
    min-width:auto;
    width:58px;
    padding:0;
    border-radius:18px;
  }

  .floating-cart .cart-label {
    display:none
  }

  .floating-cart .cart-badge {
    position:absolute;
    right:-4px;
    top:-5px;
    min-width:22px;
    height:22px;
    font-size:10px;
  }

  .sync-chip {
    right:12px;
    bottom:137px
  }

  .success-actions {
    grid-template-columns:1fr
  }

  .cart-drawer {
    border-radius:0
  }
}

.qr-svg {
  min-height:188px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden;
}

.qr-svg canvas {
  display:block!important;
  width:168px!important;
  height:168px!important;
  margin:auto!important;
  image-rendering:auto;
}

.qr-svg img {
  display:none!important;
  width:168px!important;
  height:168px!important;
  margin:auto!important;
  image-rendering:auto;
}

.barcode {
  min-height:94px;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow-x:auto;
  overflow-y:hidden;
}

.barcode svg {
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  height:82px!important;
  margin:auto!important;
}

.code-loading {
  width:100%;
  min-height:120px;
  display:grid;
  place-items:center;
  color:#777;
  font-size:12px;
}

.code-error {
  width:100%;
  border:1px dashed #fecaca;
  border-radius:12px;
  background:#fef2f2;
  color:#991b1b;
  padding:14px;
  text-align:center;
  word-break:break-all;
}

.coupon-fast-status {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  padding:9px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  color:#666;
  font-size:11px;
}

.coupon-skeleton {
  height:190px;
  border-radius:18px;
  background:linear-gradient(90deg,#f1f3f6 25%,#fafafa 37%,#f1f3f6 63%);
  background-size:400% 100%;
  animation:couponShimmer 1.1s ease infinite;
}

@keyframes couponShimmer {
  0% {
    background-position:100% 0
  }

  100% {
    background-position:0 0
  }
}

.coupon-history-collapsed {
  display:none
}

.coupon-history-collapsed.show {
  display:block
}

.code-view-title {
  font-size:12px;
  font-weight:900;
  margin-bottom:8px;
  color:#333
}

.code-panel {
  min-height:210px
}

#qrPanel.active,#barPanel.active,#codePanel.active {
  display:grid!important;
  place-items:center!important
}

#qrPanel .qr-svg {
  min-height:176px;
  width:100%
}

#qrPanel .qr-svg canvas {
  width:160px!important;
  height:160px!important
}

#qrPanel .qr-svg img {
  display:none!important;
  width:160px!important;
  height:160px!important
}

#barPanel .barcode {
  min-height:115px;
  width:100%
}

#barPanel .barcode svg {
  height:82px!important;
  max-width:390px!important;
  width:100%!important
}

#codePanel {
  min-height:150px!important;
  font-size:22px!important;
  padding:18px!important
}

.code-switch {
  position:sticky;
  top:0;
  background:#fff;
  z-index:2;
  padding-top:3px
}

.coupon-modal-condition {
  max-height:210px;
  overflow:auto
}

@media(max-width:980px) {
  .code-panel {
    min-height:190px
  }

  #qrPanel .qr-svg canvas {
    width:150px!important;
    height:150px!important
  }

  #qrPanel .qr-svg img {
    display:none!important;
    width:150px!important;
    height:150px!important
  }

  #barPanel .barcode svg {
    height:76px!important
  }
}

#qrBox canvas {
  display:block!important;
  margin:auto!important
}

#qrBox img {
  display:none!important
}

.fast-status {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:14px;
  padding:9px 12px;
  margin-bottom:12px;
  font-size:12px;
}

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

.fast-card-skeleton,.fast-line-skeleton,.product-fast-skeleton {
  position:relative;
  overflow:hidden;
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
}

.fast-card-skeleton {
  height:205px
}

.fast-line-skeleton {
  height:66px;
  margin-bottom:8px
}

.product-fast-skeleton {
  aspect-ratio:3/4
}

.fast-card-skeleton:after,.fast-line-skeleton:after,.product-fast-skeleton:after {
  content:'';
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.8),transparent);
  animation:fastShimmer 1.1s infinite;
}

@keyframes fastShimmer {
  100% {
    transform:translateX(100%)
  }
}

.credit-code-page {
  display:grid;
  place-items:start center;
  padding:20px 0
}

.credit-code-card {
  width:min(100%,520px);
  text-align:center;
  padding:28px!important;
  background:linear-gradient(145deg,#fff,#f8fafc)!important;
  border:1px solid #ffe1d6!important
}

.credit-code-icon {
  width:76px;
  height:76px;
  border-radius:24px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  background:linear-gradient(135deg,#ffedd5,#fed7aa);
  font-size:38px;
  box-shadow:0 12px 30px rgba(var(--v400-primary-rgb,49,135,238),.15)
}

.credit-code-card h2 {
  margin:0 0 7px
}

.credit-code-card p {
  color:#777;
  margin:0 0 18px;
  line-height:1.7
}

.credit-code-card .field {
  text-align:left
}

@media(max-width:980px) {
  .fast-status {
    font-size:10px
  }

  .credit-code-page {
    padding:8px 0
  }

  .credit-code-card {
    padding:20px!important
  }
}

.feature-hidden {
  display:none!important
}

.feature-status-note {
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
  text-align:center
}

.bank-transfer-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:14px
}

.bank-account-box {
  background:linear-gradient(135deg,#f8fafc,#fff);
  border:1px solid #fed7aa;
  border-radius:16px;
  padding:14px;
  display:grid;
  gap:8px
}

.bank-account-row {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:7px 0;
  border-bottom:1px dashed #fed7aa
}

.bank-account-row:last-of-type {
  border-bottom:none
}

.bank-account-row b {
  color:var(--orange);
  text-align:right;
  word-break:break-word
}

@media(max-width:980px) {
  .bank-transfer-grid {
    grid-template-columns:1fr
  }
}

.product.unavailable {
  opacity:.82;
  filter:grayscale(.12);
  position:relative
}

.product.unavailable .cover::after {
  content:"สินค้าไม่พร้อมใช้งาน";
  position:absolute;
  inset:auto 10px 10px 10px;
  background:rgba(17,24,39,.88);
  color:#fff;
  border-radius:10px;
  padding:8px;
  text-align:center;
  font-weight:900
}

.product.unavailable .btn {
  background:#9ca3af;
  box-shadow:none;
  cursor:not-allowed
}

.coupon-store-note,.coupon-modal-note {
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:10px;
  padding:8px 10px;
  font-size:11px;
  line-height:1.6
}

.coupon-modal-note {
  margin:10px auto 0;
  max-width:520px;
  text-align:left;
  display:none
}

.coupon-modal-note.show {
  display:block
}

.auth-logo img,.logo-badge img,.maintenance-logo img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:none
}

.auth-logo img.show,.logo-badge img.show,.maintenance-logo img.show {
  display:block
}

.maintenance-screen {
  position:fixed;
  inset:0;
  z-index:500;
  background:linear-gradient(135deg,#ff5a36,#ff8b55);
  display:none;
  place-items:center;
  padding:18px
}

.maintenance-screen.show {
  display:grid
}

.maintenance-card {
  width:min(94vw,520px);
  background:#fff;
  border-radius:26px;
  padding:28px;
  text-align:center;
  box-shadow:0 28px 80px rgba(0,0,0,.26)
}

.maintenance-logo {
  width:82px;
  height:82px;
  border-radius:24px;
  background:#fff4ef;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  font-size:38px;
  overflow:hidden;
  padding:8px
}

.maintenance-card h1 {
  margin:0;
  color:var(--orange);
  font-size:24px
}

.maintenance-card h2 {
  margin:8px 0;
  font-size:20px
}

.maintenance-card p {
  color:#666;
  line-height:1.7
}

.maintenance-period {
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px;
  margin-top:12px;
  color:#555
}

.maintenance-countdown {
  font-weight:900;
  color:var(--orange);
  margin-top:10px
}

.auth-logo,.logo-badge,.maintenance-logo {
  display:none!important
}

.header .logo {
  min-width:160px
}

.header .logo > div:last-child {
  font-size:22px;
  font-weight:900
}

body {
  background-color:var(--bg);
  background-position:center;
  background-size:cover;
  background-attachment:fixed;
}

.banner-row {
  display:block!important
}

.banner-main {
  position:relative;
  overflow:hidden;
  min-height:180px;
}

.banner-mini {
  display:none!important
}

.banner-slide {
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease;
}

.banner-slide.active {
  opacity:1;
  pointer-events:auto;
}

.banner-slide a,.banner-slide img {
  display:block;
  width:100%;
  height:100%;
}

.banner-slide img {
  object-fit:contain;
  background:#fff
}

.banner-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  z-index:4;
  width:38px;
  height:38px;
  border:none;
  border-radius:999px;
  background:rgba(17,24,39,.68);
  color:#fff;
  font-size:22px;
}

.banner-arrow.prev {
  left:10px
}

.banner-arrow.next {
  right:10px
}

.banner-dots {
  position:absolute;
  z-index:4;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
}

.banner-dot {
  width:8px;
  height:8px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.6);
  padding:0;
}

.banner-dot.active {
  width:22px;
  background:var(--orange);
}

.customer-popup-overlay {
  position:fixed;
  inset:0;
  z-index:500;
  display:none;
  place-items:center;
  padding:16px;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(5px);
}

.customer-popup-overlay.show {
  display:grid
}

.customer-popup-card {
  width:min(430px,94vw);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border-radius:22px;
  box-shadow:0 28px 80px rgba(0,0,0,.32);
}

.customer-popup-image {
  width:100%;
  max-height:280px;
  object-fit:contain;
  background:#f8fafc;
  display:none;
}

.customer-popup-image.show {
  display:block
}

.customer-popup-content {
  padding:18px;
  text-align:center
}

.customer-popup-content h2 {
  margin:0 0 8px;
  font-size:20px
}

.customer-popup-content p {
  margin:0 0 16px;
  color:#555;
  white-space:pre-wrap;
  line-height:1.75;
}

.customer-popup-counter {
  color:#999;
  font-size:10px;
  margin-bottom:8px;
}

.coupon-transfer-history {
  display:grid;
  gap:8px;
}

.transfer-coupon-button {
  background:#2563eb!important;
}

@media(max-width:980px) {
  .banner-main {
    min-height:145px
  }

  .banner-arrow {
    width:32px;
    height:32px
  }
}

#couponTransferModal {
  z-index:95!important;
  display:block;
}

#couponTransferModal.show {
  opacity:1!important;
  pointer-events:auto!important;
  visibility:visible!important;
}

#couponTransferButton[hidden] {
  display:none!important;
}

body.theme-ready {
  transition:background-color .25s ease,background-image .25s ease;
}

.cover img, .public-product-cover img, .coupon-clean-cover img, .banner-main img, .public-banner-main img, .mini-banner img, .public-mini-banner img {
  transform:translateZ(0);
  backface-visibility:hidden;
  will-change:auto;
}

.image-stable-v60 {
  opacity:1;
  transition:none!important;
}

.img-placeholder-v60 {
  background:linear-gradient(135deg,#f8fafc,#fff)!important;
}

.memory-chip-v61 {
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:44;
  background:#111827;
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-size:11px;
  font-weight:800;
  box-shadow:0 10px 26px rgba(15,23,42,.22);
  display:none;
  pointer-events:none;
  max-width:calc(100vw - 28px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.memory-chip-v61.show {
  display:block
}

body.memory-ready img {
  transition:none!important
}

@media(max-width:980px) {
  .memory-chip-v61 {
    left:10px;
    bottom:calc(92px + env(safe-area-inset-bottom));
    max-width:calc(100vw - 100px);
  }
}

.shop-balance-v62 {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 14px;
  padding:13px 15px;
  border-radius:18px;
  background: radial-gradient(circle at 0 0,rgba(var(--v400-primary-rgb,49,135,238),.10),transparent 32%), linear-gradient(135deg,#fff,#f8fafc);
  border:1px solid #ffe0d4;
  box-shadow:var(--shadow);
}

.shop-balance-left-v62 {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.shop-balance-icon-v62 {
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#fff;
  font-size:23px;
  box-shadow:0 10px 24px rgba(var(--v400-primary-rgb,49,135,238),.22);
  flex:0 0 auto;
}

.shop-balance-v62 small {
  display:block;
  color:#7c2d12;
  font-size:11px;
  font-weight:800;
}

.shop-balance-v62 b {
  display:block;
  color:var(--orange);
  font-size:24px;
  line-height:1.15;
  margin-top:2px;
}

.shop-balance-sub-v62 {
  color:#64748b;
  font-size:12px;
  font-weight:700;
  margin-top:3px;
}

.shop-balance-actions-v62 {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.shop-cart-summary-v62 {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #fed7aa;
  color:#9a3412;
  font-size:12px;
  font-weight:900;
}

.qty-number-v62 {
  display:inline-grid!important;
  place-items:center!important;
  min-width:28px;
  height:28px;
  border-radius:999px;
  transition:transform .13s ease,background .13s ease,color .13s ease;
}

.qty-number-v62.bump-v62 {
  transform:scale(1.16);
  background:var(--orange);
  color:#fff;
}

.product.cart-added-v62 {
  box-shadow:0 12px 34px rgba(var(--v400-primary-rgb,49,135,238),.18)!important;
}

.product.cart-added-v62 .cover::before {
  content:"เพิ่มแล้ว";
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  background:#16a34a;
  color:#fff;
  border-radius:999px;
  padding:5px 9px;
  font-size:10px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(22,163,74,.22);
}

.btn.add-cart-v62 {
  min-width:94px;
  transform:translateZ(0);
}

.btn.add-cart-v62:active, .qty-ctl button:active {
  transform:scale(.94)!important;
}

.cart-item img {
  transform:translateZ(0);
  backface-visibility:hidden;
}

@media(max-width:980px) {
  .shop-balance-v62 {
    padding:12px;
    border-radius:16px;
  }

  .shop-balance-v62 b {
    font-size:20px;
  }

  .shop-balance-actions-v62 {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .shop-cart-summary-v62, .shop-balance-actions-v62 .btn {
    width:100%;
    justify-content:center;
  }
}

.bottom-nav {
  overflow:visible!important;
}

.bottom-nav button em {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  font-style:normal!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  line-height:1.12!important;
}

@media(max-width:980px) {
  body {
    padding-bottom:calc(102px + env(safe-area-inset-bottom))!important;
  }

  .bottom-nav {
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    min-width:0!important;
    min-height:88px!important;
    height:auto!important;
    padding: 7px 5px calc(8px + env(safe-area-inset-bottom))!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:3px!important;
    align-items:stretch!important;
    border-radius:18px 18px 0 0!important;
  }

  .bottom-nav button {
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    min-height:72px!important;
    height:auto!important;
    padding:7px 1px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    border-radius:14px!important;
    font-size:11px!important;
    line-height:1.12!important;
    white-space:normal!important;
    overflow:visible!important;
  }

  .bottom-nav button span {
    display:block!important;
    width:100%!important;
    min-height:27px!important;
    height:27px!important;
    font-size:24px!important;
    line-height:27px!important;
    text-align:center!important;
    flex:0 0 auto!important;
  }

  .bottom-nav button em {
    min-height:24px!important;
    height:auto!important;
    max-height:none!important;
    font-size:11px!important;
    font-weight:900!important;
    letter-spacing:-.02em!important;
  }
}

@media(max-width:390px) {
  .bottom-nav {
    padding-left:2px!important;
    padding-right:2px!important;
    gap:1px!important;
  }

  .bottom-nav button {
    min-height:70px!important;
    padding-left:0!important;
    padding-right:0!important;
    font-size:10px!important;
  }

  .bottom-nav button span {
    height:25px!important;
    min-height:25px!important;
    font-size:22px!important;
    line-height:25px!important;
  }

  .bottom-nav button em {
    font-size:10px!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
  }
}

@media(max-width:340px) {
  .bottom-nav button em {
    font-size:9.4px!important;
  }

  .bottom-nav button span {
    font-size:21px!important;
  }
}

.product.unavailable, .public-product.unavailable {
  display:none!important
}

.my-coupon-tools-v131 {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:12px;
  margin:0 0 14px;
  display:grid;
  grid-template-columns:1fr 220px auto;
  gap:10px;
  align-items:end;
}

.my-coupon-tools-v131 .field {
  margin:0!important;
  display:grid;
  gap:6px
}

.my-coupon-tools-v131 label {
  font-size:12px;
  font-weight:900;
  color:#555
}

.my-coupon-tools-v131 .input,.my-coupon-tools-v131 .select {
  height:46px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  font-weight:800;
  background:#fff
}

.my-coupon-result-v131 {
  grid-column:1/-1;
  color:#777;
  font-size:12px;
  font-weight:800;
  line-height:1.5
}

.my-coupon-filter-empty-v131 b {
  color:var(--orange)
}

@media(max-width:720px) {
  .my-coupon-tools-v131 {
    grid-template-columns:1fr;
    gap:8px;
    border-radius:14px;
    padding:10px;
    margin-bottom:10px
  }

  .my-coupon-tools-v131 .input,.my-coupon-tools-v131 .select {
    height:42px;
    font-size:12px
  }
}

.banner-slide-v152 .public-banner-fallback, .banner-slide-v152 .banner-fallback {
  display:flex!important
}

.banner-carousel-v152 .banner-track-v152 {
  touch-action:pan-x pan-y
}

#homeProductSummaryV152,#publicProductSummaryV152 {
  display:block
}

.customer-popup-overlay {
  z-index:520!important;
  background: radial-gradient(circle at top left,rgba(255,255,255,.16),transparent 30%), rgba(15,23,42,.68)!important;
  backdrop-filter:blur(10px)!important;
}

.customer-popup-card {
  width:min(440px,94vw)!important;
  border-radius:28px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.55);
  box-shadow:0 34px 100px rgba(15,23,42,.38)!important;
  animation:popupEnterV32 .28s ease both;
}

.customer-popup-image {
  max-height:300px!important;
  background:linear-gradient(135deg,#f8fafc,#f8fafc)!important;
}

.customer-popup-content {
  position:relative;
  padding:22px!important;
  background: radial-gradient(circle at 100% 0,rgba(var(--v400-primary-rgb,49,135,238),.10),transparent 35%), #fff;
}

.customer-popup-content::before {
  content:"แจ้งเตือน";
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 11px;
  margin-bottom:10px;
  border-radius:999px;
  background:var(--orange3,#fff1eb);
  color:var(--orange,#3187ee);
  font-size:11px;
  font-weight:900;
}

.customer-popup-content h2 {
  font-size:23px!important;
  line-height:1.35;
}

.customer-popup-counter {
  margin-bottom:4px!important;
  color:#94a3b8!important;
}

@keyframes popupEnterV32 {
  from {
    opacity:0;
    transform:translateY(18px) scale(.96)
  }

  to {
    opacity:1;
    transform:translateY(0) scale(1)
  }
}

#couponTransferModal {
  z-index:110!important;
  width:min(94vw,470px)!important;
  border-radius:26px!important;
  overflow:hidden;
  box-shadow:0 34px 100px rgba(15,23,42,.36)!important;
}

#couponTransferModal.show {
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translate(-50%,-50%) scale(1)!important;
}

#couponTransferModal .modal-head {
  padding:19px 20px!important;
  color:#fff;
  border:none!important;
  background:linear-gradient(135deg,#2563eb,#4f46e5);
}

#couponTransferModal .modal-head h3 {
  margin:0;
  font-size:18px;
}

#couponTransferModal .modal-head .close {
  color:#fff;
  background:rgba(255,255,255,.18);
}

#couponTransferModal .modal-body {
  padding:20px!important;
  background: radial-gradient(circle at 100% 0,rgba(37,99,235,.08),transparent 36%), #fff;
}

#couponTransferModal .notice {
  border-color:#bfdbfe;
  color:#1e40af;
  background:#eff6ff;
}

#couponTransferModal .field input {
  min-height:48px;
  border-radius:14px;
}

.transfer-coupon-button {
  background:linear-gradient(135deg,#2563eb,#4f46e5)!important;
  box-shadow:0 10px 24px rgba(37,99,235,.25)!important;
}

.loading {
  z-index:600!important;
  background:rgba(15,23,42,.62)!important;
  backdrop-filter:blur(10px)!important;
}

.loading.show {
  display:grid!important;
}

.loading-card-v32 {
  width:min(330px,88vw);
  padding:26px 24px 22px;
  border-radius:28px;
  text-align:center;
  background: radial-gradient(circle at 100% 0,rgba(var(--v400-primary-rgb,49,135,238),.13),transparent 36%), #fff;
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 34px 100px rgba(15,23,42,.38);
  animation:popupEnterV32 .24s ease both;
}

.loading-visual-v32 {
  width:84px;
  height:84px;
  margin:0 auto 14px;
  position:relative;
  display:grid;
  place-items:center;
}

.loading-orbit-v32 {
  position:absolute;
  inset:0;
  border-radius:50%;
  animation:loadingRotateV32 1.15s linear infinite;
}

.loading-orbit-v32::before {
  content:"";
  position:absolute;
  inset:5px;
  border-radius:50%;
  border:3px solid #eef2f7;
  border-top-color:var(--orange,#3187ee);
  border-right-color:var(--orange2,#5aa7ff);
}

.loading-orbit-v32 span {
  position:absolute;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--orange,#3187ee);
  box-shadow:0 4px 12px rgba(var(--v400-primary-rgb,49,135,238),.28);
}

.loading-orbit-v32 span:nth-child(1) {
  top:1px;
  left:38px
}

.loading-orbit-v32 span:nth-child(2) {
  right:4px;
  bottom:17px;
  background:#2563eb
}

.loading-orbit-v32 span:nth-child(3) {
  left:7px;
  bottom:14px;
  background:#16a34a
}

.loading-state-icon-v32 {
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:17px;
  color:#fff;
  font-size:23px;
  background:linear-gradient(135deg,var(--orange,#3187ee),var(--orange2,#5aa7ff));
  box-shadow:0 10px 24px rgba(var(--v400-primary-rgb,49,135,238),.25);
}

.loading-title-v32 {
  color:#111827;
  font-size:17px;
  font-weight:900;
}

.loading-subtitle-v32 {
  margin-top:5px;
  color:#64748b;
  font-size:12px;
  line-height:1.6;
}

.loading-progress-v32 {
  height:6px;
  margin-top:17px;
  border-radius:999px;
  overflow:hidden;
  background:#eef2f7;
}

.loading-progress-v32 span {
  display:block;
  width:45%;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--orange,#3187ee),#2563eb);
  animation:loadingProgressV32 1.15s ease-in-out infinite;
}

.loading.success .loading-orbit-v32, .loading.error .loading-orbit-v32 {
  display:none;
}

.loading.success .loading-state-icon-v32 {
  background:linear-gradient(135deg,#16a34a,#22c55e);
}

.loading.error .loading-state-icon-v32 {
  background:linear-gradient(135deg,#dc2626,#ef4444);
}

.loading.success .loading-progress-v32 span {
  width:100%;
  animation:none;
  background:#22c55e;
}

.loading.error .loading-progress-v32 span {
  width:100%;
  animation:none;
  background:#ef4444;
}

@keyframes loadingRotateV32 {
  to {
    transform:rotate(360deg)
  }
}

@keyframes loadingProgressV32 {
  0% {
    transform:translateX(-110%)
  }

  55% {
    transform:translateX(135%)
  }

  100% {
    transform:translateX(250%)
  }
}

#customerPopupOverlay {
  z-index:700!important;
}

#customerPopupOverlay.show {
  display:grid!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

#couponTransferModal {
  z-index:710!important;
}

#couponTransferModal.show {
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

#overlay {
  z-index:50!important;
}

#overlay.show {
  z-index:50!important;
}

.popup-debug-hidden {
  display:none!important;
}

#overlay {
  z-index:50!important;
}

#overlay.show {
  display:block!important;
  z-index:50!important;
  pointer-events:auto!important;
}

.cart-drawer {
  z-index:60!important;
}

.modal {
  z-index:70!important;
}

.modal.show {
  z-index:70!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}

#couponModal.show, #profileEditModal.show, #transferModal.show, #discountCheckModal.show, #discountWalletModal.show, #orderSuccessModal.show {
  z-index:80!important;
}

#couponTransferModal.show {
  z-index:90!important;
}

#customerPopupOverlay.show {
  z-index:120!important;
}

#loading.show {
  z-index:150!important;
}

.modal.show button, .modal.show input, .modal.show textarea, .modal.show select, .modal.show a, .modal.show [onclick] {
  pointer-events:auto!important;
  position:relative;
  z-index:1;
}

.coupon-transfer-history {
  display:grid;
  gap:9px;
}

.coupon-transfer-item {
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:11px;
  padding:11px;
  border:1px solid #edf0f4;
  border-radius:14px;
  background:#fff;
}

.coupon-transfer-icon {
  width:44px;
  height:44px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:20px;
}

.coupon-transfer-icon.out {
  color:#9a3412;
  background:#ffedd5;
}

.coupon-transfer-icon.in {
  color:#166534;
  background:#dcfce7;
}

.coupon-transfer-main {
  min-width:0;
}

.coupon-transfer-main b {
  display:block;
  color:#1f2937;
  line-height:1.45;
}

.coupon-transfer-main small {
  display:block;
  margin-top:3px;
  color:#64748b;
  line-height:1.5;
  word-break:break-word;
}

.coupon-transfer-side {
  text-align:right;
}

.coupon-transfer-type {
  display:inline-flex;
  border-radius:999px;
  padding:5px 8px;
  font-size:10px;
  font-weight:900;
}

.coupon-transfer-type.out {
  color:#9a3412;
  background:#ffedd5;
}

.coupon-transfer-type.in {
  color:#166534;
  background:#dcfce7;
}

.coupon-transfer-note {
  margin-top:5px;
  color:#7c2d12;
  font-size:10px;
}

@media(max-width:620px) {
  .coupon-transfer-item {
    grid-template-columns:40px 1fr;
  }

  .coupon-transfer-icon {
    width:40px;
    height:40px;
  }

  .coupon-transfer-side {
    grid-column:1/-1;
    text-align:left;
    padding-left:51px;
  }
}

.product-expiry-v36 {
  margin:7px 0 9px;
  padding:8px 9px;
  border:1px solid #fecaca;
  border-radius:11px;
  background:#fff5f5;
  color:#b91c1c;
  font-size:11px;
  font-weight:800;
  line-height:1.55;
}

.product-expiry-v36::before {
  content:"⏰ ";
}

.coupon-clean-expiry {
  line-height:1.6;
}

@media (max-width:980px) {
  body {
    padding-bottom:calc(94px + env(safe-area-inset-bottom))!important;
  }

  .bottom-nav {
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:48!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    gap:4px!important;
    min-height:82px!important;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom))!important;
    border-top:none!important;
    border-radius:20px 20px 0 0!important;
    background:rgba(255,255,255,.98)!important;
    box-shadow:0 -12px 34px rgba(15,23,42,.14)!important;
    backdrop-filter:blur(12px)!important;
  }

  .bottom-nav button {
    position:relative!important;
    min-width:0!important;
    min-height:64px!important;
    margin:0!important;
    padding:7px 2px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    border:none!important;
    border-radius:15px!important;
    background:transparent!important;
    color:#5b6472!important;
    font-family:inherit!important;
    font-size:12px!important;
    font-weight:800!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    -webkit-tap-highlight-color:transparent;
    touch-action:manipulation;
    transition: background .18s ease, color .18s ease, transform .18s ease!important;
  }

  .bottom-nav button span {
    display:block!important;
    min-height:29px!important;
    font-size:26px!important;
    line-height:29px!important;
    transform:translateY(0)!important;
  }

  .bottom-nav button em {
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:12px!important;
    font-style:normal!important;
    line-height:1.15!important;
  }

  .bottom-nav button.active {
    color:var(--orange)!important;
    background:var(--orange3,#fff1eb)!important;
    font-weight:900!important;
    transform:translateY(-2px)!important;
  }

  .bottom-nav button.active::before {
    content:""!important;
    position:absolute!important;
    top:3px!important;
    left:50%!important;
    width:24px!important;
    height:3px!important;
    border-radius:999px!important;
    background:var(--orange)!important;
    transform:translateX(-50%)!important;
  }

  .bottom-nav button:active {
    transform:scale(.95)!important;
  }

  .floating-cart {
    bottom:calc(98px + env(safe-area-inset-bottom))!important;
  }

  .sync-chip {
    bottom:calc(164px + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:380px) {
  .bottom-nav {
    padding-left:3px!important;
    padding-right:3px!important;
    gap:1px!important;
  }

  .bottom-nav button {
    font-size:11px!important;
  }

  .bottom-nav button em {
    font-size:11px!important;
  }

  .bottom-nav button span {
    font-size:24px!important;
  }
}

.floating-cart {
  top:92px!important;
  right:22px!important;
  bottom:auto!important;
  z-index:46!important;
}

.sync-chip {
  top:158px!important;
  right:22px!important;
  bottom:auto!important;
}

@media (max-width:980px) {
  .floating-cart {
    top:14px!important;
    right:12px!important;
    bottom:auto!important;
    min-width:auto!important;
    width:auto!important;
    height:48px!important;
    padding:0 12px!important;
    border-radius:999px!important;
    gap:7px!important;
    box-shadow:0 12px 30px rgba(var(--v400-primary-rgb,49,135,238),.28)!important;
  }

  .floating-cart .cart-icon {
    font-size:22px!important;
  }

  .floating-cart .cart-label {
    display:none!important;
  }

  .floating-cart .cart-badge {
    min-width:24px!important;
    height:24px!important;
    font-size:12px!important;
    font-weight:900!important;
  }

  .sync-chip {
    top:68px!important;
    right:12px!important;
    bottom:auto!important;
    max-width:190px!important;
  }
}

@media (max-width:420px) {
  .floating-cart {
    top:10px!important;
    right:10px!important;
    height:46px!important;
    padding:0 10px!important;
  }

  .sync-chip {
    top:62px!important;
    right:10px!important;
  }
}

@media (max-width:980px) {
  .floating-cart {
    top:74px!important;
    right:12px!important;
    bottom:auto!important;
    z-index:46!important;
    height:46px!important;
    min-width:70px!important;
    padding:0 11px!important;
    border-radius:999px!important;
  }

  .floating-cart .cart-icon {
    font-size:21px!important;
  }

  .floating-cart .cart-label {
    display:none!important;
  }

  .floating-cart .cart-badge {
    min-width:23px!important;
    height:23px!important;
    font-size:12px!important;
  }

  .sync-chip {
    top:126px!important;
    right:12px!important;
    bottom:auto!important;
    max-width:190px!important;
  }
}

@media (max-width:420px) {
  .floating-cart {
    top:76px!important;
    right:10px!important;
  }

  .sync-chip {
    top:128px!important;
    right:10px!important;
  }
}

.profile-logout-card-v42 {
  border:1px solid #fecaca!important;
  background:#fff!important;
}

.logout-setting-row-v42 {
  width:100%;
  border:0!important;
  border-bottom:0!important;
  cursor:pointer;
  text-align:left;
  font-family:inherit;
}

.logout-setting-row-v42:hover {
  background:#fff5f5!important;
}

.logout-profile-btn-v42 {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:0 14px!important;
  border-radius:12px!important;
  color:#fff!important;
}

@media(max-width:980px) {
  .profile-logout-card-v42 {
    margin-bottom:14px!important;
  }

  .logout-setting-row-v42 {
    grid-template-columns:42px 1fr!important;
    padding:14px!important;
    border-radius:0!important;
  }

  .logout-setting-row-v42 .setting-action {
    grid-column:1/-1!important;
    width:100%!important;
    padding-left:54px!important;
    text-align:left!important;
  }

  .logout-profile-btn-v42 {
    width:100%!important;
    min-height:48px!important;
    font-size:13px!important;
    font-weight:900!important;
  }
}

.public-home {
  min-height:100vh;
  background: radial-gradient(circle at 0 0,rgba(255,90,54,.15),transparent 32%), radial-gradient(circle at 100% 10%,rgba(37,99,235,.08),transparent 30%), var(--bg);
  color:var(--text);
}

.public-top {
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.public-top-inner {
  max-width:1180px;
  margin:0 auto;
  padding:12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

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

.public-brand-logo {
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  box-shadow:0 10px 24px rgba(var(--v400-primary-rgb,49,135,238),.20);
  font-size:22px;
}

.public-brand b {
  display:block;
  font-size:17px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.public-brand small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:1px;
}

.public-actions {
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.public-hero {
  max-width:1180px;
  margin:0 auto;
  padding:22px 14px 14px;
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:18px;
  align-items:center;
}

.public-hero-card {
  background:linear-gradient(135deg,#fff,#fff7f2);
  border:1px solid #ffe2d6;
  border-radius:28px;
  box-shadow:var(--shadow-strong,0 18px 46px rgba(31,41,55,.15));
  padding:28px;
  position:relative;
  overflow:hidden;
}

.public-hero-card::after {
  content:"";
  position:absolute;
  width:240px;
  height:240px;
  border-radius:50%;
  right:-90px;
  top:-100px;
  background:rgba(255,90,54,.12);
}

.public-pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:#fff1eb;
  color:var(--orange);
  font-size:12px;
  font-weight:900;
  margin-bottom:12px;
}

.public-hero h1 {
  margin:0;
  font-size:42px;
  line-height:1.18;
  letter-spacing:-.8px;
}

.public-hero p {
  color:var(--muted);
  line-height:1.8;
  margin:14px 0 0;
  font-size:15px;
}

.public-hero-buttons {
  display:flex;
  gap:10px;
  margin-top:22px;
  flex-wrap:wrap;
}

.public-hero-buttons .btn {
  min-height:46px;
  padding-left:18px;
  padding-right:18px;
}

.public-trust {
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}

.public-trust-item {
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  box-shadow:0 8px 20px rgba(31,41,55,.05);
}

.public-trust-item b {
  display:block;
  color:var(--orange);
  font-size:18px;
}

.public-trust-item span {
  color:var(--muted);
  font-size:11px;
}

.public-banner-panel {
  display:grid;
  gap:12px;
}

.public-banner-main {
  min-height:315px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  border-radius:28px;
  overflow:hidden;
  position:relative;
  box-shadow:var(--shadow-strong,0 18px 46px rgba(31,41,55,.15));
}

.public-banner-main img {
  width:100%;
  height:100%;
  min-height:315px;
  object-fit:contain;
  background:#fff;
}

.public-banner-fallback {
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding:24px;
  color:#fff;
  font-size:28px;
  font-weight:900;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.35));
}

.public-mini-banners {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.public-mini-banner {
  height:120px;
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow);
  position:relative;
}

.public-mini-banner img {
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.public-mini-banner span {
  position:absolute;
  left:12px;
  bottom:10px;
  color:#fff;
  font-weight:900;
  text-shadow:0 3px 8px rgba(0,0,0,.45);
}

.public-container {
  max-width:1180px;
  margin:0 auto;
  padding:4px 14px 34px;
}

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

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

.public-section-head p {
  margin:3px 0 0;
  color:var(--muted);
  font-size:12px;
}

.public-products {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.public-product {
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .18s ease,box-shadow .18s ease;
}

.public-product:hover {
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(31,41,55,.12);
}

.public-product-cover {
  aspect-ratio:1/1;
  background:#fff;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}

.public-product-cover img {
  width:100%;
  height:100%;
  object-fit:contain;
  background:#fff;
}

.public-product-cover .tag {
  top:10px;
  left:10px;
}

.public-product-body {
  padding:13px;
  display:grid;
  gap:7px;
}

.public-product-name {
  font-size:14px;
  font-weight:900;
  line-height:1.45;
  min-height:41px;
}

.public-product-condition {
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
  height:34px;
  overflow:hidden;
}

.public-product-price {
  color:var(--orange);
  font-size:20px;
  font-weight:900;
}

.public-login-lock {
  background:#f8fafc;
  border:1px dashed #d7dce4;
  color:#64748b;
  border-radius:14px;
  padding:12px;
  text-align:center;
  font-size:12px;
  line-height:1.6;
}

.public-product .btn {
  width:100%;
}

.public-notices {
  display:grid;
  gap:8px;
  margin:12px 0;
}

.public-notices .notice {
  margin-bottom:0;
}

.public-bottom-cta {
  margin-top:22px;
  border-radius:24px;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#fff;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 18px 42px rgba(var(--v400-primary-rgb,49,135,238),.24);
}

.public-bottom-cta h2 {
  margin:0;
  font-size:24px;
}

.public-bottom-cta p {
  margin:5px 0 0;
  opacity:.9;
  line-height:1.6;
}

.public-bottom-cta .btn {
  background:#fff;
  color:var(--orange);
  box-shadow:none;
}

.public-member-chip {
  display:none;
  align-items:center;
  gap:6px;
  padding:8px 11px;
  border-radius:999px;
  color:#166534;
  background:#dcfce7;
  font-size:12px;
  font-weight:900;
}

.public-member-chip.show {
  display:inline-flex;
}

@media(max-width:980px) {
  .public-top-inner {
    align-items:flex-start;
  }

  .public-actions .btn {
    padding:8px 10px;
    font-size:11px;
  }

  .public-hero {
    grid-template-columns:1fr;
    padding-top:14px;
  }

  .public-hero h1 {
    font-size:30px;
  }

  .public-hero-card {
    padding:22px;
    border-radius:22px;
  }

  .public-banner-main, .public-banner-main img {
    min-height:180px;
  }

  .public-mini-banners {
    display:none;
  }

  .public-trust {
    grid-template-columns:1fr;
  }

  .public-products {
    grid-template-columns:repeat(2,1fr);
    gap:9px;
  }

  .public-product {
    border-radius:14px;
  }

  .public-product-body {
    padding:9px;
  }

  .public-product-name {
    font-size:12px;
    min-height:36px;
  }

  .public-product-condition {
    font-size:10px;
    height:30px;
  }

  .public-product-price {
    font-size:16px;
  }

  .public-section-head {
    align-items:flex-start;
  }

  .public-bottom-cta {
    display:block;
    text-align:center;
  }

  .public-bottom-cta .btn {
    width:100%;
    margin-top:12px;
  }
}

@media(max-width:460px) {
  .public-products {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .public-product {
    border-radius:12px;
  }

  .public-product-body {
    padding:8px;
  }

  .public-login-lock {
    font-size:9px;
    padding:7px;
    border-radius:10px;
  }

  .public-product .btn {
    padding:8px 6px;
    font-size:10px;
  }
}

.discount-badge-v49 {
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg,#ef4444,#fb7185);
  box-shadow:0 8px 18px rgba(239,68,68,.28);
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:.1px;
}

@media(max-width:980px) {
  .discount-badge-v49 {
    top:8px;
    right:8px;
    min-height:23px;
    padding:4px 8px;
    font-size:10px;
  }
}

.product .condition {
  height:32px!important;
  max-height:32px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:4px!important;
  line-height:1.45!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-width:thin;
}

.product .condition::-webkit-scrollbar {
  width:4px;
}

.product .condition::-webkit-scrollbar-thumb {
  background:#ffd0c2;
  border-radius:999px;
}

.product .condition::-webkit-scrollbar-track {
  background:transparent;
}

@media(max-width:980px) {
  .product .condition {
    height:28px!important;
    max-height:28px!important;
  }
}

.public-banner-main img, .public-mini-banner img, .public-product-cover img {
  content-visibility:auto;
  image-rendering:auto;
}

.public-fast-image-ready {
  opacity:1;
}

html, body {
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
}

@media(max-width:980px) {
  body {
    padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;
  }

  .bottom-nav {
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:999!important;
    display:grid!important;
    grid-template-columns:repeat(5, minmax(0, 1fr))!important;
    grid-auto-flow:column!important;
    width:100vw!important;
    max-width:100vw!important;
    min-width:0!important;
    height:auto!important;
    min-height:78px!important;
    padding: 6px max(2px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(2px, env(safe-area-inset-right))!important;
    gap:1px!important;
    overflow:hidden!important;
    border-radius:18px 18px 0 0!important;
    border-top:1px solid rgba(226,232,240,.85)!important;
    background:rgba(255,255,255,.985)!important;
    box-shadow:0 -10px 30px rgba(15,23,42,.14)!important;
    backdrop-filter:blur(12px)!important;
    box-sizing:border-box!important;
  }

  .bottom-nav button {
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    margin:0!important;
    padding:5px 0 4px!important;
    display:grid!important;
    grid-template-rows:30px 1fr!important;
    place-items:center!important;
    align-items:center!important;
    justify-items:center!important;
    gap:1px!important;
    overflow:hidden!important;
    border:0!important;
    border-radius:13px!important;
    background:transparent!important;
    color:#5b6472!important;
    font-family:var(--app-font)!important;
    font-size:10.5px!important;
    font-weight:900!important;
    line-height:1.08!important;
    text-align:center!important;
    white-space:normal!important;
    -webkit-tap-highlight-color:transparent!important;
    touch-action:manipulation!important;
    box-sizing:border-box!important;
  }

  .bottom-nav button span {
    display:block!important;
    width:100%!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    line-height:30px!important;
    font-size:24px!important;
    text-align:center!important;
    overflow:hidden!important;
    transform:none!important;
  }

  .bottom-nav button em {
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:22px!important;
    max-height:28px!important;
    margin:0!important;
    padding:0 1px!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    font-style:normal!important;
    font-size:10.5px!important;
    font-weight:900!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
    text-align:center!important;
    box-sizing:border-box!important;
  }

  .bottom-nav button.active {
    color:var(--orange,#3187ee)!important;
    background:var(--orange3,#fff1eb)!important;
    transform:none!important;
  }

  .bottom-nav button.active::before {
    content:""!important;
    position:absolute!important;
    top:3px!important;
    left:50%!important;
    width:20px!important;
    height:3px!important;
    border-radius:999px!important;
    background:var(--orange,#3187ee)!important;
    transform:translateX(-50%)!important;
  }

  .bottom-nav button:active {
    transform:scale(.96)!important;
  }

  .floating-cart {
    bottom:auto!important;
    top:76px!important;
  }

  .sync-chip {
    bottom:auto!important;
    top:128px!important;
  }
}

@media(max-width:360px) {
  .bottom-nav {
    min-height:74px!important;
    padding-left:1px!important;
    padding-right:1px!important;
    gap:0!important;
  }

  .bottom-nav button {
    height:63px!important;
    min-height:63px!important;
    max-height:63px!important;
    grid-template-rows:28px 1fr!important;
    font-size:9.6px!important;
    border-radius:11px!important;
  }

  .bottom-nav button span {
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    line-height:28px!important;
    font-size:21px!important;
  }

  .bottom-nav button em {
    font-size:9.4px!important;
    line-height:1.05!important;
    letter-spacing:-.055em!important;
    padding:0!important;
    min-height:20px!important;
    max-height:25px!important;
  }
}

@media(max-width:320px) {
  .bottom-nav button em {
    font-size:8.8px!important;
    letter-spacing:-.07em!important;
  }

  .bottom-nav button span {
    font-size:20px!important;
  }
}

.credit-history-card-v65 {
  position:relative;
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:13px;
  margin-bottom:10px;
  background:#fff;
  box-shadow:0 6px 18px rgba(31,41,55,.06);
}

.credit-history-card-v65.admin-add {
  border-color:#bbf7d0;
  background:linear-gradient(135deg,#f0fdf4,#fff);
}

.credit-history-card-v65.admin-deduct {
  border-color:#fecaca;
  background:linear-gradient(135deg,#fff1f2,#fff);
}

.credit-history-top-v65 {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}

.credit-history-title-v65 {
  font-size:15px;
  font-weight:900;
  color:#111827;
  line-height:1.45;
}

.credit-history-date-v65 {
  margin-top:3px;
  color:#64748b;
  font-size:11px;
}

.credit-history-amount-v65 {
  font-size:18px;
  font-weight:900;
  white-space:nowrap;
}

.credit-history-amount-v65.plus {
  color:#16a34a
}

.credit-history-amount-v65.minus {
  color:#dc2626
}

.credit-history-meta-v65 {
  display:grid;
  gap:5px;
  margin-top:10px;
  padding:10px;
  border-radius:12px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(226,232,240,.75);
  font-size:12px;
  color:#475569;
}

.credit-history-meta-v65 span {
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.credit-history-note-v65 {
  margin-top:8px;
  border-radius:12px;
  padding:9px 10px;
  background:#fffbeb;
  border:1px solid #fde68a;
  color:#92400e;
  font-size:12px;
  line-height:1.65;
}

.credit-recent-box-v65 {
  margin-top:14px;
}

.credit-recent-head-v65 {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.credit-recent-head-v65 h3 {
  margin:0;
  font-size:15px;
}

@media(max-width:620px) {
  .credit-history-top-v65 {
    display:grid;
    grid-template-columns:1fr;
  }

  .credit-history-amount-v65 {
    font-size:16px;
  }

  .credit-history-meta-v65 span {
    display:grid;
    grid-template-columns:1fr;
    gap:2px;
  }
}

:root {
  --bottom-nav-height-v71: 104px;
  --bottom-nav-gap-v71: 18px;
  --bottom-safe-total-v71: calc(var(--bottom-nav-height-v71) + var(--bottom-nav-gap-v71) + env(safe-area-inset-bottom));
}

@media(max-width:980px) {
  html, body {
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body {
    padding-bottom:var(--bottom-safe-total-v71)!important;
    scroll-padding-bottom:var(--bottom-safe-total-v71)!important;
  }

  .app, main, .container, .page, .page.active, .settings-page, .list, .fast-list, .coupon-clean-list, .products, .card:last-child {
    padding-bottom:calc(var(--bottom-safe-total-v71) * .35)!important;
  }

  .bottom-nav {
    z-index:850!important;
    min-height:88px!important;
    height:auto!important;
    padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;
  }

  .floating-cart {
    bottom:calc(var(--bottom-nav-height-v71) + 12px + env(safe-area-inset-bottom))!important;
    z-index:860!important;
  }

  .sync-chip {
    bottom:calc(var(--bottom-nav-height-v71) + 78px + env(safe-area-inset-bottom))!important;
    z-index:859!important;
  }

  .memory-chip-v61 {
    bottom:calc(var(--bottom-nav-height-v71) + 12px + env(safe-area-inset-bottom))!important;
    z-index:858!important;
  }

  .toast-container {
    bottom:calc(var(--bottom-nav-height-v71) + 12px + env(safe-area-inset-bottom))!important;
    top:auto!important;
    right:10px!important;
    left:10px!important;
    width:auto!important;
  }

  .cart-drawer {
    height:calc(100dvh - var(--bottom-nav-height-v71) - 8px - env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - var(--bottom-nav-height-v71) - 8px - env(safe-area-inset-bottom))!important;
    top:0!important;
    bottom:auto!important;
    z-index:900!important;
  }

  .cart-drawer.show {
    transform:translateX(0)!important;
  }

  .cart-drawer .drawer-body {
    padding-bottom:22px!important;
    scroll-padding-bottom:140px!important;
  }

  .cart-drawer .drawer-foot {
    position:sticky!important;
    bottom:0!important;
    z-index:4!important;
    background:#fff!important;
    padding-bottom:calc(16px + env(safe-area-inset-bottom))!important;
    box-shadow:0 -12px 30px rgba(15,23,42,.12)!important;
  }

  .cart-drawer .drawer-foot .btn.full, .cart-drawer .drawer-foot button[onclick*="checkout"] {
    min-height:52px!important;
    margin-bottom:4px!important;
  }

  .modal.show {
    max-height:calc(100dvh - var(--bottom-nav-height-v71) - 20px - env(safe-area-inset-bottom))!important;
    margin-bottom:calc(var(--bottom-nav-height-v71) * .25)!important;
  }

  .modal.show .modal-body {
    padding-bottom:calc(24px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(var(--bottom-nav-height-v71) + 22px)!important;
  }

  .customer-popup-overlay {
    padding-bottom:var(--bottom-safe-total-v71)!important;
    align-items:center!important;
  }

  .customer-popup-card {
    max-height:calc(100dvh - var(--bottom-safe-total-v71) - 24px)!important;
  }

  #couponTransferModal.show, #profileEditModal.show, #transferModal.show, #discountCheckModal.show, #discountWalletModal.show {
    max-height:calc(100dvh - var(--bottom-safe-total-v71) - 16px)!important;
  }

  #couponModal.show {
    max-height:calc(100dvh - 8px)!important;
  }

  #couponModal .modal-body {
    padding-bottom:var(--bottom-safe-total-v71)!important;
  }

  #couponModal .modal-actions-center {
    position:sticky!important;
    bottom:calc(var(--bottom-nav-height-v71) + env(safe-area-inset-bottom) + 8px)!important;
    z-index:20!important;
    background:#fff!important;
    padding:9px 0 4px!important;
    box-shadow:0 -10px 18px rgba(15,23,42,.06)!important;
  }

  #couponModal .modal-actions-center .btn {
    min-height:44px!important;
  }

  .success-actions, .discount-wallet-actions, .cart-saved-row, .modal-actions-center, .profile-actions, .setting-action, .coupon-clean-actions, .discount-wallet-card:last-child, .history-card:last-child, .credit-history-card-v65:last-child {
    margin-bottom:10px!important;
  }

  .page.active > .btn:last-child, .card > .btn.full:last-child, .credit-code-card > .btn.full:last-child, .claim-box > .btn.full:last-child {
    margin-bottom:calc(var(--bottom-nav-height-v71) * .25)!important;
  }

  .coupon-clean-card:last-child, .product:nth-last-child(-n+2), .coupon:last-child, .cart-item:last-child {
    margin-bottom:14px!important;
  }
}

@media(max-width:390px) {
  :root {
    --bottom-nav-height-v71: 108px;
    --bottom-nav-gap-v71: 20px;
  }

  .floating-cart {
    bottom:calc(var(--bottom-nav-height-v71) + 14px + env(safe-area-inset-bottom))!important;
  }

  .cart-drawer {
    height:calc(100dvh - var(--bottom-nav-height-v71) - 10px - env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - var(--bottom-nav-height-v71) - 10px - env(safe-area-inset-bottom))!important;
  }
}

body.cart-open-v66 .bottom-nav, body.coupon-modal-open-v67 .bottom-nav, body.stable-modal-open-v70 .bottom-nav {
  transform:translateY(120%)!important;
  opacity:0!important;
  pointer-events:none!important;
}

@media(max-width:640px) {
  html,body {
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    -webkit-text-size-adjust:100%!important
  }

  body {
    font-size:10.5px!important;
    padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;
    background:#f6f7fb!important
  }

  button,input,textarea,select {
    font-size:11px!important
  }

  .app {
    width:100%!important;
    overflow-x:hidden!important
  }

  .header {
    position:sticky!important;
    top:0!important;
    border-radius:0 0 16px 16px!important
  }

  .mainbar {
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
    padding:7px 8px 9px!important
  }

  .header .logo {
    display:none!important
  }

  .search {
    height:34px!important;
    border-radius:12px!important;
    box-shadow:none!important
  }

  .search input {
    min-width:0!important;
    padding:0 9px!important;
    font-size:11px!important
  }

  .search button {
    height:28px!important;
    width:54px!important;
    border-radius:9px!important;
    font-size:10px!important
  }

  .container {
    display:block!important;
    width:100%!important;
    padding:7px!important;
    margin:0!important
  }

  .banner-row {
    margin-bottom:8px!important
  }

  .banner-main {
    height:auto!important;
    min-height:112px!important;
    max-height:132px!important;
    border-radius:14px!important;
    margin-bottom:8px!important;
    box-shadow:0 6px 16px rgba(31,41,55,.07)!important
  }

  .banner-fallback {
    font-size:17px!important;
    padding:13px!important
  }

  .shop-balance-v62 {
    margin-bottom:9px!important;
    padding:9px!important;
    border-radius:14px!important;
    gap:8px!important;
    box-shadow:0 5px 14px rgba(31,41,55,.06)!important
  }

  .shop-balance-icon-v62 {
    width:36px!important;
    height:36px!important;
    border-radius:12px!important;
    font-size:18px!important
  }

  .shop-balance-v62 small {
    font-size:9px!important
  }

  .shop-balance-v62 b {
    font-size:18px!important
  }

  .shop-balance-sub-v62 {
    font-size:10px!important
  }

  .shop-balance-actions-v62 {
    grid-template-columns:1fr 88px!important;
    gap:6px!important
  }

  .shop-cart-summary-v62 {
    min-height:32px!important;
    font-size:10px!important;
    padding:0 8px!important
  }

  .section-head {
    margin-bottom:7px!important;
    gap:7px!important
  }

  .section-head h2 {
    font-size:14px!important
  }

  .section-head .tools {
    gap:5px!important
  }

  .products {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important
  }

  .product {
    border-radius:12px!important;
    box-shadow:0 5px 13px rgba(31,41,55,.07)!important
  }

  .product:hover {
    transform:none!important
  }

  .product .body {
    padding:6px!important
  }

  .tag {
    top:6px!important;
    left:6px!important;
    font-size:9px!important;
    padding:2px 6px!important;
    border-radius:8px!important
  }

  .name {
    font-size:10px!important;
    height:29px!important;
    line-height:1.42!important
  }

  .condition {
    font-size:9px!important;
    height:24px!important;
    margin-top:3px!important
  }

  .price {
    margin:5px 0!important;
    gap:4px!important
  }

  .sale {
    font-size:13px!important
  }

  .full {
    font-size:9px!important
  }

  .qty {
    gap:5px!important
  }

  .qty-ctl button {
    width:23px!important;
    height:23px!important
  }

  .qty-ctl span {
    min-width:22px!important;
    font-size:10px!important
  }

  .btn {
    min-height:32px!important;
    padding:7px 8px!important;
    border-radius:10px!important;
    box-shadow:none!important
  }

  .btn.full {
    min-height:38px!important
  }

  .card,.side-card,.settings-card,.claim-box {
    border-radius:14px!important;
    padding:10px!important;
    margin-bottom:9px!important;
    box-shadow:0 5px 14px rgba(31,41,55,.06)!important
  }

  .field {
    margin-bottom:8px!important
  }

  .field label {
    font-size:10px!important
  }

  .field input,.field textarea,.field select {
    padding:9px!important;
    border-radius:10px!important
  }

  .history-tabs {
    gap:5px!important;
    padding:6px 0!important;
    margin-bottom:8px!important;
    top:0!important
  }

  .history-tab {
    padding:7px 9px!important;
    font-size:10px!important
  }

  .history-filter {
    gap:6px!important;
    margin:7px 0 9px!important
  }

  .history-filter input {
    padding:9px!important;
    border-radius:10px!important
  }

  .history-card,.discount-wallet-card,.coupon-transfer-item {
    border-radius:12px!important;
    padding:9px!important;
    margin-bottom:7px!important
  }

  .history-card h3 {
    font-size:12px!important;
    margin-bottom:5px!important
  }

  .coupon-clean-list {
    gap:7px!important
  }

  .coupon-clean-card {
    grid-template-columns:92px 1fr!important;
    min-height:108px!important;
    border-radius:13px!important;
    box-shadow:0 5px 14px rgba(31,41,55,.06)!important
  }

  .coupon-clean-body {
    padding:8px!important;
    gap:5px!important
  }

  .coupon-clean-title {
    font-size:11px!important;
    line-height:1.35!important
  }

  .coupon-clean-expiry {
    font-size:9px!important;
    padding:5px!important;
    border-radius:8px!important
  }

  .coupon-meta {
    font-size:9px!important;
    padding:6px!important
  }

  .modal {
    width:94vw!important;
    max-height:88vh!important;
    border-radius:18px!important
  }

  .modal-head {
    padding:11px 13px!important
  }

  .modal-head h3 {
    font-size:14px!important
  }

  .modal-body {
    padding:12px!important
  }

  .close {
    width:30px!important;
    height:30px!important;
    border-radius:9px!important
  }

  .coupon-modal-img {
    height:118px!important
  }

  .coupon-modal-title {
    font-size:14px!important
  }

  .coupon-modal-condition {
    max-height:150px!important;
    font-size:10px!important;
    padding:8px!important
  }

  .code-switch {
    gap:6px!important;
    margin-top:9px!important
  }

  .code-switch button {
    padding:7px!important;
    font-size:10px!important
  }

  .code-panel {
    min-height:160px!important
  }

  #qrPanel .qr-svg canvas,#qrPanel .qr-svg img {
    width:132px!important;
    height:132px!important
  }

  #barPanel .barcode svg {
    height:62px!important
  }

  #codePanel {
    font-size:18px!important;
    min-height:110px!important
  }

  .cart-drawer {
    width:100%!important;
    max-width:100vw!important;
    border-radius:0!important
  }

  .drawer-head {
    padding:11px!important
  }

  .drawer-body {
    padding:9px!important
  }

  .drawer-foot {
    padding:10px!important
  }

  .cart-item {
    grid-template-columns:48px 1fr auto!important;
    gap:7px!important;
    padding:7px!important;
    border-radius:12px!important
  }

  .cart-item img {
    width:48px!important;
    height:48px!important
  }

  .floating-cart {
    right:10px!important;
    bottom:calc(67px + env(safe-area-inset-bottom))!important;
    width:50px!important;
    height:50px!important;
    border-radius:16px!important
  }

  .floating-cart .cart-icon {
    font-size:22px!important
  }

  .floating-cart .cart-badge {
    min-width:20px!important;
    height:20px!important;
    font-size:9px!important
  }

  .bottom-nav {
    min-height:68px!important;
    padding:5px 4px calc(6px + env(safe-area-inset-bottom))!important;
    border-radius:16px 16px 0 0!important;
    gap:2px!important
  }

  .bottom-nav button {
    min-height:56px!important;
    padding:5px 0!important;
    border-radius:12px!important;
    gap:2px!important
  }

  .bottom-nav button span {
    height:22px!important;
    min-height:22px!important;
    font-size:20px!important;
    line-height:22px!important
  }

  .bottom-nav button em {
    font-size:9.3px!important;
    line-height:1.08!important;
    min-height:18px!important
  }

  .toast-container {
    top:8px!important;
    right:8px!important;
    width:calc(100vw - 16px)!important
  }

  .toast-item {
    font-size:10.5px!important;
    padding:9px 10px!important;
    border-radius:10px!important
  }
}

@media(max-width:640px) {
  .toast-container {
    top:calc(10px + env(safe-area-inset-top))!important;
    right:10px!important;
    left:auto!important;
    bottom:auto!important;
    width:min(260px,72vw)!important;
    max-width:72vw!important;
    display:grid!important;
    justify-items:end!important;
    gap:6px!important;
    z-index:980!important;
    pointer-events:none!important;
  }

  .toast-container .toast-item {
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    padding:8px 10px!important;
    border-radius:12px!important;
    font-size:10.5px!important;
    line-height:1.38!important;
    box-shadow:0 10px 28px rgba(15,23,42,.18)!important;
    opacity:0!important;
    transform:translate3d(14px,-6px,0)!important;
    pointer-events:none!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
  }

  .toast-container .toast-item.show {
    opacity:.96!important;
    transform:translate3d(0,0,0)!important;
  }

  .toast-container .toast-item.hide {
    opacity:0!important;
    transform:translate3d(14px,-6px,0)!important;
  }
}

@media(max-width:560px) {
  body {
    font-size:10.5px!important;
    padding-bottom:62px!important
  }

  .mainbar {
    padding:7px 8px 9px!important;
    gap:7px!important
  }

  .logo {
    font-size:15px!important
  }

  .logo-badge {
    width:32px!important;
    height:32px!important;
    border-radius:12px!important;
    font-size:19px!important
  }

  .search {
    height:34px!important;
    border-radius:11px!important
  }

  .search input {
    padding:0 8px!important;
    font-size:11px!important
  }

  .search button {
    height:28px!important;
    width:52px!important;
    font-size:10px!important
  }

  .container {
    padding:7px!important
  }

  .section-head {
    margin-bottom:7px!important
  }

  .section-head h2 {
    font-size:14px!important
  }

  .products {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important
  }

  .product {
    border-radius:13px!important
  }

  .product .body {
    padding:7px!important
  }

  .name {
    font-size:10.2px!important;
    height:31px!important
  }

  .condition {
    font-size:9px!important;
    height:25px!important
  }

  .sale {
    font-size:14px!important
  }

  .full {
    font-size:9.5px!important
  }

  .tag {
    font-size:9px!important;
    padding:2px 5px!important;
    top:6px!important;
    left:6px!important
  }

  .btn {
    font-size:10.3px!important;
    padding:7px 8px!important;
    border-radius:10px!important;
    min-height:34px!important
  }

  .btn.full {
    min-height:38px!important
  }

  .field {
    margin-bottom:8px!important
  }

  .field label {
    font-size:10.5px!important;
    margin-bottom:4px!important
  }

  .field input,.field textarea,.field select {
    font-size:11px!important;
    padding:9px!important;
    border-radius:10px!important
  }

  .card {
    padding:10px!important;
    border-radius:14px!important;
    margin-bottom:10px!important
  }

  .wallet-priority h3,.card h3 {
    font-size:14px!important;
    margin:0 0 8px!important
  }

  .bottom-nav button {
    padding:5px 1px!important;
    font-size:9px!important
  }

  .bottom-nav span {
    font-size:16px!important
  }

  .floating-cart {
    width:46px!important;
    height:46px!important;
    right:9px!important;
    bottom:calc(58px + env(safe-area-inset-bottom))!important;
    border-radius:15px!important;
    min-width:46px!important;
    padding:0!important
  }

  .floating-cart .cart-icon {
    font-size:20px!important
  }

  .floating-cart .cart-label {
    display:none!important
  }

  .floating-cart .cart-badge {
    font-size:8.5px!important;
    min-width:18px!important;
    height:18px!important;
    right:-5px!important;
    top:-5px!important
  }

  .modal {
    border-radius:18px!important
  }

  .modal-head {
    padding:11px 12px!important
  }

  .modal-body {
    padding:12px!important
  }

  .cart-drawer .drawer-head {
    padding:10px!important
  }

  .cart-drawer .drawer-body {
    padding:8px!important
  }

  .cart-drawer .drawer-foot {
    padding:9px!important
  }

  #slipOcrStatus {
    font-size:10.5px!important;
    line-height:1.55!important;
    padding:8px!important;
    border-radius:10px!important
  }
}

body:not(.page-home-v75) #floatingCart {
  display:none!important
}

body:not(.page-home-v75) .desktop-nav button[onclick*="openCart"], body:not(.page-home-v75) .side-menu button[onclick*="openCart"] {
  display:none!important
}

.history-card,.coupon-history-item,.discount-wallet-card,.credit-history-card-v65,.coupon-transfer-item {
  border:1px solid rgba(255,106,61,.12)!important;
  background:linear-gradient(180deg,#ffffff,#fffaf7)!important;
  border-radius:18px!important;
  box-shadow:0 10px 26px rgba(31,41,55,.08)!important;
  overflow:hidden;
  position:relative;
}

.history-card::before,.coupon-history-item::before,.discount-wallet-card::before,.credit-history-card-v65::before,.coupon-transfer-item::before {
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,var(--orange),var(--orange2));
}

.history-card {
  padding:14px 14px 14px 18px!important
}

.history-card h3 {
  font-size:15px!important;
  color:#111827!important;
  margin-bottom:8px!important
}

.history-card .row {
  background:rgba(255,255,255,.72);
  border-bottom:1px dashed rgba(255,106,61,.16)!important;
  border-radius:10px;
  padding:8px!important;
  margin-bottom:5px
}

.history-card .row span {
  color:#6b7280
}

.history-card .row b {
  color:#111827
}

.history-tabs {
  scrollbar-width:none
}

.history-tabs::-webkit-scrollbar {
  display:none
}

.history-tab {
  box-shadow:0 4px 12px rgba(31,41,55,.05)
}

.history-tabs-v154 {
  position:relative!important;
  top:auto!important;
  padding:4px 0 6px!important;
  margin-bottom:6px!important;
  overflow:visible!important;
}

.history-tabs-v154 .history-tab {
  padding:7px 12px!important;
  font-size:11px!important;
  min-height:32px!important;
  box-shadow:none!important;
}

#historyPanel_all .history-card {
  content-visibility:auto;
  contain-intrinsic-size:120px;
}

.menu-disabled-v6 {
  display:none!important
}

@media(max-width:980px) {
  body {
    font-size:10.2px!important
  }

  .container {
    padding:6px!important
  }

  .products {
    gap:6px!important
  }

  .product .body {
    padding:6px!important
  }

  .name {
    font-size:10px!important;
    height:30px!important
  }

  .condition {
    font-size:8.8px!important;
    height:24px!important
  }

  .sale {
    font-size:13.5px!important
  }

  .btn {
    font-size:10px!important;
    min-height:32px!important;
    padding:6px 7px!important
  }

  .card {
    padding:9px!important;
    border-radius:13px!important
  }

  .history-card {
    padding:10px 10px 10px 14px!important;
    border-radius:14px!important
  }

  .history-card h3 {
    font-size:12px!important
  }

  .history-card .row {
    padding:6px!important
  }

  .bottom-nav {
    min-height:62px!important
  }

  .bottom-nav button {
    min-height:52px!important
  }

  .bottom-nav button span {
    font-size:18px!important
  }

  .bottom-nav button em {
    font-size:8.8px!important
  }
}

.web-confirm-v7 {
  position:fixed;
  inset:0;
  z-index:5000;
  background:rgba(15,23,42,.42);
  display:grid;
  place-items:center;
  padding:18px;
  opacity:0;
  pointer-events:none;
  transition:.18s ease
}

.web-confirm-v7.show {
  opacity:1;
  pointer-events:auto
}

.web-confirm-card-v7 {
  width:min(92vw,360px);
  background:#fff;
  border-radius:22px;
  padding:20px;
  box-shadow:0 28px 80px rgba(15,23,42,.30);
  text-align:center;
  font-family:var(--app-font);
  transform:translateY(8px) scale(.96);
  transition:.18s ease
}

.web-confirm-v7.show .web-confirm-card-v7 {
  transform:translateY(0) scale(1)
}

.web-confirm-icon-v7 {
  width:52px;
  height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  margin:0 auto 10px;
  background:#fff4ef;
  color:var(--orange);
  font-size:26px;
  font-weight:900
}

.web-confirm-card-v7 h3 {
  margin:0 0 8px;
  font-size:18px
}

.web-confirm-card-v7 p {
  margin:0;
  color:#64748b;
  line-height:1.65;
  font-size:13px;
  white-space:pre-wrap
}

.web-confirm-actions-v7 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:16px
}

@media(max-width:980px) {
  body {
    padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;
  }

  .cart-drawer {
    top:0!important;
    right:0!important;
    bottom:calc(88px + env(safe-area-inset-bottom))!important;
    height:auto!important;
    max-height:none!important;
    width:100vw!important;
    max-width:100vw!important;
    border-radius:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }

  .cart-drawer.show {
    transform:translateX(0)!important;
  }

  .drawer-head {
    padding:11px 13px!important;
    min-height:52px!important;
    flex:0 0 auto!important;
  }

  .drawer-head h3, .drawer-head b {
    font-size:14px!important;
    font-weight:600!important;
  }

  .drawer-body {
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;
    padding:10px!important;
  }

  .drawer-foot {
    flex:0 0 auto!important;
    margin:0!important;
    padding:8px 12px 9px!important;
    border-top:1px solid #edf0f5!important;
    background:#fff!important;
    box-shadow:0 -10px 22px rgba(31,41,55,.06)!important;
  }

  .discount-box {
    margin:6px 0 7px!important;
    gap:6px!important;
  }

  .discount-box input {
    min-height:38px!important;
    padding:8px 10px!important;
    border-radius:11px!important;
    font-size:11px!important;
  }

  .discount-box .btn {
    min-height:38px!important;
    padding:0 10px!important;
    border-radius:11px!important;
    font-size:11px!important;
  }

  .summary {
    margin:5px 0 8px!important;
    padding:8px 10px!important;
    border-radius:13px!important;
  }

  .summary .row {
    padding:3px 0!important;
    font-size:11px!important;
    line-height:1.35!important;
  }

  .summary .total {
    font-size:17px!important;
  }

  .drawer-foot .btn.full {
    min-height:42px!important;
    border-radius:13px!important;
    font-size:12px!important;
    font-weight:600!important;
  }

  .cart-item {
    grid-template-columns:48px 1fr auto!important;
    gap:8px!important;
    padding:7px!important;
    border-radius:12px!important;
    margin-bottom:7px!important;
  }

  .cart-item img {
    width:48px!important;
    height:48px!important;
    border-radius:10px!important;
  }

  #couponModal {
    left:8px!important;
    right:8px!important;
    bottom:calc(92px + env(safe-area-inset-bottom))!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100dvh - 108px - env(safe-area-inset-bottom))!important;
    transform:translateY(14px) scale(.985)!important;
    border-radius:20px 20px 10px 10px!important;
    overflow:auto!important;
  }

  #couponModal.show {
    transform:translateY(0) scale(1)!important;
  }

  #couponModal .modal-head {
    padding:9px 12px!important;
    min-height:46px!important;
  }

  #couponModal .modal-head h3 {
    font-size:14px!important;
    font-weight:600!important;
  }

  #couponModal .close {
    width:32px!important;
    height:32px!important;
    border-radius:11px!important;
    font-size:17px!important;
    font-weight:600!important;
  }

  #couponModal .modal-body {
    padding:10px 12px 12px!important;
  }

  #couponModal .coupon-modal-top {
    grid-template-columns:92px 1fr!important;
    gap:9px!important;
    text-align:left!important;
    align-items:center!important;
  }

  #couponModal .coupon-modal-img, #couponModal .coupon-preview {
    width:92px!important;
    height:64px!important;
    border-radius:12px!important;
    object-fit:contain!important;
  }

  #couponModal .coupon-modal-title {
    font-size:14px!important;
    font-weight:600!important;
    margin:0 0 4px!important;
    line-height:1.28!important;
  }

  #couponModal .coupon-modal-expiry {
    padding:5px 8px!important;
    font-size:10px!important;
    font-weight:500!important;
    line-height:1.3!important;
  }

  #couponModal .code-switch {
    max-width:none!important;
    margin:9px auto 7px!important;
    gap:5px!important;
  }

  #couponModal .code-switch button {
    min-height:34px!important;
    padding:0 6px!important;
    border-radius:11px!important;
    font-size:10.5px!important;
    font-weight:500!important;
  }

  #couponModal .code-grid {
    max-width:none!important;
    margin-top:7px!important;
    gap:7px!important;
  }

  #couponModal .code-box {
    min-height:116px!important;
    padding:8px!important;
    border-radius:14px!important;
  }

  #couponModal .code-title {
    font-size:11px!important;
    margin-bottom:5px!important;
    font-weight:600!important;
  }

  #couponModal .qr-svg {
    min-height:112px!important;
  }

  #couponModal .qr-svg canvas, #couponModal .qr-svg img, #couponModal #qrBox canvas, #couponModal #qrBox img {
    width:112px!important;
    height:112px!important;
  }

  #couponModal .barcode {
    min-height:72px!important;
  }

  #couponModal .barcode svg {
    height:62px!important;
    max-width:260px!important;
  }

  #couponModal .plain-code {
    min-height:82px!important;
    font-size:17px!important;
    font-weight:600!important;
    padding:10px!important;
  }

  #couponModal .modal-actions-center {
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
    margin-top:9px!important;
  }

  #couponModal .modal-actions-center .btn {
    min-width:0!important;
    width:100%!important;
    min-height:38px!important;
    padding:0 7px!important;
    border-radius:12px!important;
    font-size:11px!important;
    font-weight:500!important;
    white-space:nowrap!important;
  }

  #couponModal .coupon-modal-condition {
    max-height:82px!important;
    margin-top:9px!important;
    padding:8px!important;
    border-radius:12px!important;
    font-size:10.5px!important;
    line-height:1.45!important;
  }

  #couponModal .coupon-modal-note {
    margin-top:7px!important;
    padding:7px 8px!important;
    font-size:10px!important;
    border-radius:10px!important;
  }

  #overlay.show {
    background:rgba(15,23,42,.42)!important;
  }

  .bottom-nav {
    min-height:86px!important;
    padding:6px 4px calc(8px + env(safe-area-inset-bottom))!important;
    border-radius:18px 18px 0 0!important;
  }
}

@media(max-width:380px) {
  #couponModal .coupon-modal-top {
    grid-template-columns:82px 1fr!important;
  }

  #couponModal .coupon-modal-img, #couponModal .coupon-preview {
    width:82px!important;
    height:58px!important;
  }

  #couponModal .qr-svg canvas, #couponModal .qr-svg img, #couponModal #qrBox canvas, #couponModal #qrBox img {
    width:104px!important;
    height:104px!important;
  }

  #couponModal .modal-actions-center .btn {
    font-size:10px!important;
  }

  .drawer-foot {
    padding-bottom:7px!important;
  }
}

@media(max-width:980px) {
  #couponModal {
    position:fixed!important;
    left:0!important;
    right:0!important;
    top:calc(58px + env(safe-area-inset-top))!important;
    bottom:calc(var(--bottom-nav-height-v71,104px) + env(safe-area-inset-bottom))!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    max-height:none!important;
    margin:0!important;
    transform:translateY(18px)!important;
    border-radius:26px 26px 0 0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    background:#fff!important;
    box-shadow:0 -14px 55px rgba(15,23,42,.24)!important;
  }

  #couponModal.show {
    transform:translateY(0)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  #couponModal .modal-head {
    flex:0 0 auto!important;
    padding:14px 18px!important;
    min-height:58px!important;
    background:#fff!important;
    border-bottom:1px solid #edf0f5!important;
  }

  #couponModal .modal-head h3 {
    font-size:20px!important;
    font-weight:700!important;
    letter-spacing:0!important;
  }

  #couponModal .close {
    width:46px!important;
    height:46px!important;
    border-radius:16px!important;
    font-size:22px!important;
    font-weight:700!important;
    background:#f5f6f8!important;
  }

  #couponModal .modal-body {
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;
    padding:14px 18px 12px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
    scroll-padding-bottom:120px!important;
  }

  #couponModal .coupon-modal-top {
    flex:0 0 auto!important;
    display:grid!important;
    grid-template-columns:150px 1fr!important;
    gap:14px!important;
    align-items:center!important;
    text-align:left!important;
    margin:0!important;
  }

  #couponModal .coupon-modal-img, #couponModal .coupon-preview {
    width:150px!important;
    height:104px!important;
    border-radius:16px!important;
    object-fit:contain!important;
    background:#fff!important;
  }

  #couponModal .coupon-modal-title {
    font-size:20px!important;
    font-weight:700!important;
    margin:0 0 8px!important;
    line-height:1.28!important;
  }

  #couponModal .coupon-modal-expiry {
    padding:8px 12px!important;
    border-radius:999px!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:1.35!important;
  }

  #couponModal .code-switch {
    flex:0 0 auto!important;
    width:100%!important;
    max-width:none!important;
    margin:2px 0 0!important;
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:8px!important;
    background:#fff!important;
    position:static!important;
  }

  #couponModal .code-switch button {
    min-height:46px!important;
    border-radius:16px!important;
    padding:0 8px!important;
    font-size:14px!important;
    font-weight:600!important;
  }

  #couponModal .code-grid {
    flex:1 1 auto!important;
    min-height:245px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    display:grid!important;
  }

  #couponModal .code-box {
    width:100%!important;
    min-height:245px!important;
    padding:14px!important;
    border-radius:20px!important;
    display:none!important;
    place-items:center!important;
  }

  #couponModal .code-box.active, #couponModal .code-panel.active, #couponModal #qrPanel.active, #couponModal #barPanel.active, #couponModal #codePanel.active {
    display:grid!important;
    place-items:center!important;
  }

  #couponModal .code-title {
    font-size:14px!important;
    font-weight:700!important;
    margin-bottom:10px!important;
  }

  #couponModal .qr-svg {
    min-height:205px!important;
    width:100%!important;
  }

  #couponModal .qr-svg canvas, #couponModal .qr-svg img, #couponModal #qrBox canvas, #couponModal #qrBox img {
    width:190px!important;
    height:190px!important;
  }

  #couponModal .barcode {
    min-height:130px!important;
    width:100%!important;
  }

  #couponModal .barcode svg {
    height:96px!important;
    max-width:100%!important;
  }

  #couponModal .plain-code {
    min-height:205px!important;
    font-size:24px!important;
    font-weight:700!important;
    padding:16px!important;
  }

  #couponModal .modal-actions-center {
    flex:0 0 auto!important;
    position:sticky!important;
    bottom:0!important;
    z-index:25!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    width:100%!important;
    margin:0!important;
    padding:10px 0 4px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.88),#fff 36%)!important;
    box-shadow:0 -12px 22px rgba(15,23,42,.06)!important;
  }

  #couponModal .modal-actions-center .btn {
    min-width:0!important;
    width:100%!important;
    min-height:52px!important;
    border-radius:18px!important;
    padding:0 10px!important;
    font-size:15px!important;
    font-weight:600!important;
    white-space:nowrap!important;
  }

  #couponModal .modal-actions-center .btn.green {
    grid-column:1/-1!important;
  }

  #couponModal .coupon-modal-condition {
    flex:0 0 auto!important;
    max-height:105px!important;
    overflow:auto!important;
    margin:0!important;
    padding:11px!important;
    border-radius:16px!important;
    font-size:12px!important;
    line-height:1.55!important;
  }

  #couponModal .coupon-modal-note {
    margin:0!important;
    padding:9px 10px!important;
    font-size:11px!important;
    border-radius:13px!important;
  }

  #overlay.show {
    background:rgba(15,23,42,.48)!important;
  }
}

@media(max-width:390px) {
  #couponModal {
    top:calc(50px + env(safe-area-inset-top))!important;
    bottom:calc(var(--bottom-nav-height-v71,104px) + env(safe-area-inset-bottom))!important;
  }

  #couponModal .modal-head {
    min-height:54px!important;
    padding:12px 15px!important;
  }

  #couponModal .modal-head h3 {
    font-size:18px!important;
  }

  #couponModal .coupon-modal-top {
    grid-template-columns:132px 1fr!important;
    gap:11px!important;
  }

  #couponModal .coupon-modal-img, #couponModal .coupon-preview {
    width:132px!important;
    height:92px!important;
  }

  #couponModal .coupon-modal-title {
    font-size:18px!important;
  }

  #couponModal .code-grid, #couponModal .code-box {
    min-height:220px!important;
  }

  #couponModal .qr-svg canvas, #couponModal .qr-svg img, #couponModal #qrBox canvas, #couponModal #qrBox img {
    width:172px!important;
    height:172px!important;
  }

  #couponModal .modal-actions-center .btn {
    min-height:48px!important;
    font-size:14px!important;
  }
}

@media(max-width:980px) {
  #couponModal .modal-actions-center {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:1fr!important;
    grid-auto-flow:unset!important;
    grid-auto-columns:auto!important;
    gap:6px!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    align-items:stretch!important;
    justify-content:stretch!important;
    flex-wrap:nowrap!important;
    margin:8px 0 0!important;
    padding:8px 0 4px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.94),#fff 42%)!important;
    box-shadow:0 -10px 22px rgba(15,23,42,.045)!important;
  }

  #couponModal .modal-actions-center > *, #couponModal .modal-actions-center .btn, #couponModal .modal-actions-center .btn.dark, #couponModal .modal-actions-center .btn.green, #couponModal .modal-actions-center .transfer-coupon-button, #couponModal .modal-actions-center #couponTransferButton {
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    min-height:38px!important;
    height:38px!important;
    padding:0 3px!important;
    border-radius:12px!important;
    font-size:clamp(8px,2.35vw,10.5px)!important;
    font-weight:700!important;
    letter-spacing:-.055em!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 1 auto!important;
  }

  #couponModal .modal-actions-center .btn.green {
    grid-column:auto!important;
    grid-row:auto!important;
    width:100%!important;
  }
}

@media(max-width:360px) {
  #couponModal .modal-actions-center {
    gap:4px!important;
  }

  #couponModal .modal-actions-center .btn, #couponModal .modal-actions-center .btn.dark, #couponModal .modal-actions-center .btn.green, #couponModal .modal-actions-center .transfer-coupon-button, #couponModal .modal-actions-center #couponTransferButton {
    height:36px!important;
    min-height:36px!important;
    border-radius:11px!important;
    font-size:clamp(7px,2.15vw,9px)!important;
    padding:0 2px!important;
  }
}

.use-confirm-overlay-v24 {
  position:fixed;
  inset:0;
  z-index:260!important;
  display:none;
  place-items:center;
  padding:16px;
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(5px);
}

.use-confirm-overlay-v24.show {
  display:grid!important;
}

.use-confirm-box-v24 {
  width:min(90vw,330px);
  background:#fff;
  border-radius:20px;
  box-shadow:0 24px 72px rgba(15,23,42,.28);
  padding:18px;
  text-align:center;
}

.use-confirm-icon-v24 {
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  margin:0 auto 10px;
  color:#fff;
  background:linear-gradient(135deg,var(--orange,#3187ee),var(--orange2,#5aa7ff));
  font-size:22px;
}

.use-confirm-box-v24 h3 {
  margin:0 0 7px;
  font-size:16px;
  font-weight:800;
  color:#111827;
}

.use-confirm-box-v24 p {
  margin:0;
  color:#64748b;
  font-size:12px;
  line-height:1.6;
}

.use-confirm-actions-v24 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:15px;
}

.use-confirm-actions-v24 .btn {
  width:100%;
  min-height:40px;
  border-radius:13px;
  font-size:12px;
}

.use-confirm-actions-v24 .later {
  background:#fff!important;
  color:#475569!important;
  border:1px solid #e5e7eb!important;
  box-shadow:none!important;
}

#productGrid .product.unavailable, #publicProductGrid .public-product.unavailable, .product.unavailable, .public-product.unavailable, [data-stock-status="soldout"], [data-availability="unavailable"] {
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

.member-code-v74 {
  border:1px solid #fed7aa!important;
  background:linear-gradient(135deg,#f8fafc 0%,#fff 58%,#fff3e8 100%)!important;
  border-radius:22px!important;
  padding:18px!important;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  gap:14px!important;
  align-items:center!important;
}

.member-code-v74::before {
  content:"🎁";
  width:64px;
  height:64px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  color:#fff;
  font-size:30px;
  box-shadow:0 16px 32px rgba(var(--v400-primary-rgb,49,135,238),.18);
}

.member-code-v74 h3 {
  margin:0!important;
  color:#9a3412!important;
  font-size:18px!important
}

.member-code-v74 p {
  margin:4px 0 10px!important;
  color:#64748b!important;
  font-weight:700!important
}

.member-code-v74 .claim-row {
  grid-template-columns:1fr auto!important;
  gap:10px!important
}

.member-code-v74 input {
  min-height:54px!important;
  border-radius:16px!important;
  border:1px solid #fed7aa!important;
  background:#fff!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  padding:0 18px!important;
  box-shadow:0 10px 24px rgba(var(--v400-primary-rgb,49,135,238),.06)!important;
}

.member-code-v74 .btn {
  min-height:54px!important;
  border-radius:16px!important;
  padding:0 22px!important
}

#memberPointCodeMessageV77 {
  grid-column:2/-1;
  display:none;
  margin-top:0;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed #fed7aa;
  background:#f8fafc;
  color:#9a3412;
  font-weight:800;
}

#memberPointCodeMessageV77.show {
  display:block
}

@media(max-width:980px) {
  .member-code-v74 {
    grid-template-columns:1fr!important
  }

  .member-code-v74::before {
    width:54px;
    height:54px;
    font-size:25px
  }

  .member-code-v74 .claim-row {
    grid-template-columns:1fr!important
  }

  #memberPointCodeMessageV77 {
    grid-column:1/-1
  }
}

.topup-tabs-v130 {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:0 0 14px
}

.topup-tab-v130 {
  border:1px solid #ffe0d4;
  background:#fff;
  color:#7c2d12;
  border-radius:16px;
  padding:14px 12px;
  text-align:left;
  font-weight:900;
  box-shadow:0 8px 22px rgba(31,41,55,.06);
  display:flex;
  align-items:center;
  gap:10px;
  min-height:64px
}

.topup-tab-v130 span {
  width:36px;
  height:36px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#fff4ef;
  color:var(--orange);
  font-size:18px;
  flex:0 0 auto
}

.topup-tab-v130 small {
  display:block;
  color:#777;
  font-size:11px;
  font-weight:700;
  margin-top:2px;
  line-height:1.35
}

.topup-tab-v130.active {
  background:linear-gradient(135deg,var(--orange),var(--orange2));
  border-color:transparent;
  color:#fff;
  box-shadow:0 14px 32px rgba(var(--v400-primary-rgb,49,135,238),.26)
}

.topup-tab-v130.active span {
  background:rgba(255,255,255,.18);
  color:#fff
}

.topup-tab-v130.active small {
  color:rgba(255,255,255,.85)
}

.topup-tab-v130:disabled {
  opacity:.48;
  cursor:not-allowed;
  filter:grayscale(.25)
}

.topup-modern-note-v130 {
  background:#f8fafc;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:16px;
  padding:10px 12px;
  margin-bottom:12px;
  line-height:1.65;
  font-weight:700
}

#bankTransferSection.topup-panel-v130,#creditCodeSection.topup-panel-v130 {
  animation:topupFadeV130 .18s ease
}

#wallet.topup-tabs-active-v143 #bankTransferSection:not(.topup-active-v143), #wallet.topup-tabs-active-v143 #creditCodeSection:not(.topup-active-v143) {
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  max-height:0!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  border:0!important
}

#wallet.topup-tabs-active-v143 #bankTransferSection.topup-active-v143, #wallet.topup-tabs-active-v143 #creditCodeSection.topup-active-v143 {
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  max-height:none!important;
  overflow:visible!important
}

@keyframes topupFadeV130 {
  from {
    opacity:.25;
    transform:translateY(4px)
  }

  to {
    opacity:1;
    transform:none
  }
}

@media(max-width:980px) {
  .topup-tabs-v130 {
    grid-template-columns:1fr;
    gap:8px
  }

  .topup-tab-v130 {
    min-height:58px;
    padding:12px
  }

  .credit-code-card {
    padding:20px!important
  }

  .bank-transfer-grid {
    gap:10px
  }
}



/* V937 — weak-network image stability. Never flash a pure-white image box while retrying. */
.image-retry-box-v937,
.img-placeholder-v60.image-retry-box-v937{
  background:linear-gradient(135deg,#eef6ff 0%,#f8fbff 48%,#edf7ff 100%)!important;
  background-size:180% 180%!important;
}
.image-retrying-v316{
  background:transparent!important;
}

/* V943 — stable non-white image shell while slow connections are fetching bytes. */
#productGrid>.product>.cover,
#publicProductGrid>.public-product>.public-product-cover,
.banner-main,
.public-banner-main,
.coupon-clean-cover{
  background:linear-gradient(135deg,#eef6ff 0%,#f8fbff 46%,#edf7ff 100%);
}
#productGrid img.image-stable-v60,
#publicProductGrid img,
.banner-main img,
.public-banner-main img{
  content-visibility:auto;
}
.image-memory-hit-v943{transition:none!important;animation:none!important;}
