/* V756 — Unified Profile + History UI
   Purpose: one visual system for profile cards/buttons/tables and a compact history page. */
:root{
  --v756-primary:var(--orange,#3187ee);
  --v756-primary-2:var(--orange2,#5797ff);
  --v756-bg:#f5f8fc;
  --v756-surface:#fff;
  --v756-soft:#f7faff;
  --v756-line:#dbe6f3;
  --v756-text:#10233f;
  --v756-muted:#708198;
  --v756-danger:#ef4444;
  --v756-success:#16a34a;
  --v756-radius:16px;
  --v756-button-h:38px;
}

/* ---------- shared rhythm ---------- */
body.webshop-v759 #profile,
body.webshop-v759 #orders{
  min-height:0!important;
  margin:0!important;
  padding:0 0 6px!important;
}
body.webshop-v759 #profile .profile-mobile-page-v429,
body.webshop-v759 #orders{
  max-width:100%!important;
}
body.webshop-v759 #profile .btn,
body.webshop-v759 #profile button:not(.profile-admin-button-v709),
body.webshop-v759 #orders .btn,
body.webshop-v759 #orders button{
  min-height:var(--v756-button-h)!important;
  height:var(--v756-button-h)!important;
  border-radius:11px!important;
  font-weight:900!important;
  font-size:10px!important;
  line-height:1!important;
}
body.webshop-v759 #profile .settings-card,
body.webshop-v759 #orders .history-tabs,
body.webshop-v759 #orders .history-filter,
body.webshop-v759 #orders .history-card,
body.webshop-v759 #orders .coupon-history-item,
body.webshop-v759 #orders .credit-history-card-v65,
body.webshop-v759 #orders .discount-wallet-card,
body.webshop-v759 #orders .deposit-history-card-v404,
body.webshop-v759 #orders .coupon-transfer-item{
  border:1px solid var(--v756-line)!important;
  background:var(--v756-surface)!important;
  box-shadow:0 5px 14px rgba(38,77,128,.045)!important;
}

/* ---------- profile ---------- */
body.webshop-v759 #profile .profile-mobile-page-v429{
  display:grid!important;
  gap:8px!important;
  padding:0!important;
  min-height:0!important;
}
body.webshop-v759 #profile .profile-admin-access-v709{
  margin:0!important;
  padding:0!important;
}
body.webshop-v759 #profile .profile-admin-button-v709{
  min-height:64px!important;
  height:64px!important;
  padding:8px 10px!important;
  grid-template-columns:38px minmax(0,1fr) 56px!important;
  gap:9px!important;
  border-radius:17px!important;
  border:1px solid color-mix(in srgb,var(--v756-primary) 28%,#cbd8e8)!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--v756-primary) 36%,#14213a),color-mix(in srgb,var(--v756-primary-2) 30%,#22304c))!important;
  box-shadow:0 8px 20px rgba(24,57,106,.13)!important;
}
body.webshop-v759 #profile .profile-admin-button-v709 .profile-admin-icon-v709{
  width:38px!important;height:38px!important;min-width:38px!important;
  border-radius:12px!important;
}
body.webshop-v759 #profile .profile-admin-button-v709 b{font-size:13px!important;line-height:1.2!important}
body.webshop-v759 #profile .profile-admin-button-v709 small{font-size:8.5px!important;line-height:1.35!important;opacity:.8!important}
body.webshop-v759 #profile .profile-admin-button-v709 em{
  min-width:54px!important;height:34px!important;padding:0 7px!important;
  display:grid!important;place-items:center!important;
  border-radius:10px!important;background:#fff!important;color:#e34a38!important;
  font-size:9px!important;font-weight:900!important;
}

body.webshop-v759 #profile .profile-hero-card-v429{
  padding:8px!important;
  border-radius:18px!important;
  border:1px solid var(--v756-line)!important;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;
  box-shadow:0 7px 18px rgba(31,74,131,.065)!important;
  overflow:hidden!important;
  display:block!important;
}
body.webshop-v759 #profile .profile-hero-card-v429::before,
body.webshop-v759 #profile .profile-hero-card-v429::after{display:none!important}
body.webshop-v759 #profile .profile-hero-top-v429{
  margin:0 0 8px!important;
  padding:11px 12px!important;
  min-height:76px!important;
  display:flex!important;
  align-items:center!important;
  gap:11px!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,var(--v756-primary),color-mix(in srgb,var(--v756-primary-2) 88%,#6ba9ff))!important;
  color:#fff!important;
}
body.webshop-v759 #profile .profile-avatar-v429{
  width:44px!important;height:44px!important;min-width:44px!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.14)!important;
  color:#fff!important;
  border:1.5px solid rgba(255,255,255,.72)!important;
  box-shadow:none!important;
  font-size:22px!important;
}
body.webshop-v759 #profile .profile-hero-copy-v429 small{
  padding:3px 8px!important;
  background:#fff!important;color:var(--v756-primary)!important;
  border-radius:999px!important;font-size:8px!important;font-weight:900!important;
}
body.webshop-v759 #profile .profile-hero-copy-v429 h2{
  margin:4px 0 1px!important;color:#fff!important;font-size:18px!important;line-height:1.2!important;
}
body.webshop-v759 #profile .profile-hero-copy-v429 p{
  margin:0!important;color:rgba(255,255,255,.86)!important;font-size:8.5px!important;line-height:1.35!important;
}

body.webshop-v759 #profile .profile-account-table-v545,
body.webshop-v759 #profile .profile-account-table-v564{
  margin:0!important;
  border:1px solid var(--v756-line)!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
body.webshop-v759 #profile .profile-account-table-head-v545,
body.webshop-v759 #profile .profile-account-table-head-v564{
  min-height:42px!important;height:42px!important;padding:6px 8px!important;
  border-bottom:1px solid #e7eef7!important;
  background:#f8fbff!important;
  gap:8px!important;
}
body.webshop-v759 #profile .profile-account-table-icon-v545,
body.webshop-v759 #profile .profile-account-table-icon-v564{
  width:30px!important;height:30px!important;min-width:30px!important;border-radius:10px!important;
}
body.webshop-v759 #profile .profile-account-heading-v564 span{font-size:10.5px!important;line-height:1.2!important}
body.webshop-v759 #profile .profile-account-heading-v564 small{font-size:6.5px!important;letter-spacing:.12em!important}
body.webshop-v759 #profile .profile-account-table-head-v564>em{
  min-height:24px!important;padding:4px 8px!important;border-radius:999px!important;font-size:7.5px!important;
}
body.webshop-v759 #profile .profile-account-table-body-v545,
body.webshop-v759 #profile .profile-account-table-body-v564{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  padding:7px!important;
  background:#fff!important;
}
body.webshop-v759 #profile .profile-account-cell-v545,
body.webshop-v759 #profile .profile-account-cell-v564,
body.webshop-v759 #profile .profile-hero-card-v429 .profile-stat.profile-account-cell-v564{
  min-width:0!important;
  min-height:56px!important;height:auto!important;max-height:none!important;
  padding:7px 8px!important;
  border:1px solid #e1e9f4!important;
  border-radius:12px!important;
  background:#fbfdff!important;
  box-shadow:none!important;
  display:grid!important;
  grid-template-columns:31px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
}
body.webshop-v759 #profile .profile-account-cell-v564.identity{
  grid-column:1/-1!important;
  min-height:48px!important;
}
body.webshop-v759 #profile .profile-cell-icon-v564{
  width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;
  border-radius:10px!important;
}
body.webshop-v759 #profile .profile-cell-copy-v564 small{
  margin:0 0 2px!important;font-size:7px!important;line-height:1.2!important;color:var(--v756-muted)!important;
}
body.webshop-v759 #profile .profile-cell-copy-v564 b{
  margin:0!important;font-size:11px!important;line-height:1.25!important;color:var(--v756-text)!important;
  white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;
}
body.webshop-v759 #profile .profile-account-email-note-v545{
  margin:2px 0 0!important;font-size:6.5px!important;line-height:1.25!important;color:#8a98aa!important;
}
body.webshop-v759 #profile .profile-points-expiry-v445{
  margin-top:2px!important;font-size:6.5px!important;line-height:1.2!important;
}

body.webshop-v759 #profile .profile-coupon-summary-v454,
body.webshop-v759 #profile .profile-coupon-summary-v564,
body.webshop-v759 #profile .profile-coupon-summary-v565{
  margin:8px 0 0!important;
  padding:7px!important;
  border:1px solid var(--v756-line)!important;
  border-radius:15px!important;
  background:#f8fbff!important;
  box-shadow:none!important;
}
body.webshop-v759 #profile .profile-coupon-summary-head-v454,
body.webshop-v759 #profile .profile-coupon-summary-head-v564,
body.webshop-v759 #profile .profile-coupon-summary-head-v565{
  min-height:35px!important;padding:0 1px 6px!important;margin:0 0 6px!important;
  border-bottom:1px solid #e5edf7!important;
}
body.webshop-v759 #profile .profile-coupon-summary-title-v564>span,
body.webshop-v759 #profile .profile-coupon-summary-title-v565>span{
  width:29px!important;height:29px!important;min-width:29px!important;border-radius:9px!important;
}
body.webshop-v759 #profile .profile-coupon-summary-head-v454 h3{font-size:11px!important;line-height:1.2!important}
body.webshop-v759 #profile .profile-coupon-summary-head-v454 p{display:none!important}
body.webshop-v759 #profile .profile-coupon-summary-status-v455{
  min-height:24px!important;padding:4px 8px!important;font-size:7px!important;border-radius:999px!important;
}
body.webshop-v759 #profile .profile-coupon-stats-grid-v454,
body.webshop-v759 #profile .profile-coupon-stats-grid-v564,
body.webshop-v759 #profile .profile-coupon-stats-grid-v565{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:5px!important;
}
body.webshop-v759 #profile .profile-coupon-stat-v454,
body.webshop-v759 #profile .profile-coupon-stat-v564,
body.webshop-v759 #profile .profile-coupon-stat-v565{
  min-height:58px!important;height:58px!important;
  padding:5px 3px!important;border-radius:11px!important;box-shadow:none!important;
}
body.webshop-v759 #profile .profile-coupon-stat-icon-v564{width:22px!important;height:22px!important;min-width:22px!important;font-size:9px!important;border-radius:8px!important}
body.webshop-v759 #profile .profile-coupon-stat-copy-v564 small{font-size:6.5px!important;line-height:1.1!important}
body.webshop-v759 #profile .profile-coupon-stat-copy-v564 strong{font-size:12px!important;line-height:1!important}
body.webshop-v759 #profile .profile-coupon-stat-copy-v564 em{font-size:6px!important}
body.webshop-v759 #profile .profile-coupon-actions-v564{
  margin-top:6px!important;gap:6px!important;
}
body.webshop-v759 #profile .profile-coupon-actions-v564 button{
  width:100%!important;
  min-height:36px!important;height:36px!important;border-radius:10px!important;font-size:8.5px!important;
}

/* compact account tools: one unified row system */
body.webshop-v759 #profile .profile-tools-card-v429,
body.webshop-v759 #profile .profile-admin-buttons-card-v429,
body.webshop-v759 #profile .profile-logout-card-v429,
body.webshop-v759 #profile .profile-logout-card-v42{
  padding:8px!important;
  border-radius:16px!important;
  overflow:hidden!important;
}
body.webshop-v759 #profile .settings-head{
  min-height:36px!important;height:36px!important;
  margin:0 0 6px!important;padding:0 2px 6px!important;
  border-bottom:1px solid #e7eef7!important;
  font-size:11.5px!important;line-height:1!important;gap:7px!important;
}
body.webshop-v759 #profile .settings-head .icon{
  width:28px!important;height:28px!important;min-width:28px!important;border-radius:9px!important;font-size:12px!important;
}
body.webshop-v759 #profile .settings-list{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
}
body.webshop-v759 #profile .setting-row{
  min-width:0!important;
  min-height:64px!important;height:64px!important;max-height:64px!important;
  padding:7px!important;
  border:1px solid #e0e9f4!important;
  border-radius:13px!important;
  background:#fbfdff!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 84px!important;
  grid-template-rows:1fr!important;
  align-items:center!important;
  gap:7px!important;
  overflow:hidden!important;
}
body.webshop-v759 #profile .setting-row:last-child{border-bottom:1px solid #e0e9f4!important}
body.webshop-v759 #profile .setting-icon{
  width:34px!important;height:34px!important;min-width:34px!important;border-radius:11px!important;font-size:14px!important;
}
body.webshop-v759 #profile .setting-row>div:nth-child(2),
body.webshop-v759 #profile .setting-row>span:nth-child(2){
  grid-column:2!important;grid-row:1!important;min-width:0!important;
}
body.webshop-v759 #profile .setting-title{
  font-size:10px!important;line-height:1.25!important;color:var(--v756-text)!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.webshop-v759 #profile .setting-desc{
  margin-top:2px!important;font-size:7.5px!important;line-height:1.25!important;color:var(--v756-muted)!important;
  display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.webshop-v759 #profile .setting-action{
  grid-column:3!important;grid-row:1!important;
  width:84px!important;align-self:center!important;
}
body.webshop-v759 #profile .setting-action .btn,
body.webshop-v759 #profile .logout-profile-btn-v42{
  width:84px!important;min-width:84px!important;max-width:84px!important;
  height:36px!important;min-height:36px!important;
  padding:0 7px!important;border-radius:10px!important;font-size:9px!important;
}
body.webshop-v759 #profile .profile-logout-card-v429 .setting-row,
body.webshop-v759 #profile .profile-logout-card-v42 .setting-row{
  min-height:66px!important;height:66px!important;max-height:66px!important;background:#fff9fa!important;
}
body.webshop-v759 #profile .profile-logout-card-v429 .setting-action .btn,
body.webshop-v759 #profile .profile-logout-card-v42 .logout-profile-btn-v42{
  background:linear-gradient(135deg,#ef4444,#fb7185)!important;color:#fff!important;border-color:transparent!important;
}

/* LINE connection card follows the same visual scale */
body.webshop-v759 #profile #lineConnectCardV104{
  padding:8px!important;border-radius:16px!important;box-shadow:0 5px 14px rgba(38,77,128,.045)!important;
}
body.webshop-v759 #profile #lineConnectCardV104 .settings-head.line-connect-head-v490{margin:0 0 6px!important;height:auto!important;min-height:36px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-head-icon-v490{width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important;box-shadow:none!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-connect-head-copy-v490 b{font-size:11px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-connect-head-copy-v490 small{font-size:7.5px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-connect-shell-v490{gap:6px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-connect-main-v490{gap:6px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-connect-status-v490,
body.webshop-v759 #profile #lineConnectCardV104 .line-profile-box-v490{padding:8px!important;border-radius:12px!important;box-shadow:none!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-connect-status-v490{grid-template-columns:34px minmax(0,1fr)!important;gap:7px!important}
body.webshop-v759 #profile #lineConnectCardV104 [data-line-status-icon-v490]{width:34px!important;height:34px!important;border-radius:10px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-profile-box-v490 img,
body.webshop-v759 #profile #lineConnectCardV104 .line-profile-box-v490 .line-avatar-fallback-v490{width:38px!important;height:38px!important;min-width:38px!important;border-radius:11px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-status-name-v490,
body.webshop-v759 #profile #lineConnectCardV104 .line-profile-copy-v490 b{font-size:10px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-status-sub-v490,
body.webshop-v759 #profile #lineConnectCardV104 .line-note-v104,
body.webshop-v759 #profile #lineConnectCardV104 .line-profile-copy-v490 small{font-size:7.5px!important;line-height:1.3!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-action-v490{flex:0 0 84px!important;min-width:84px!important}
body.webshop-v759 #profile #lineConnectCardV104 .line-action-v490 .btn{width:84px!important;min-height:36px!important;height:36px!important;border-radius:10px!important;font-size:8.5px!important;box-shadow:none!important}

/* ---------- history ---------- */
body.webshop-v759 #orders>.section-head.history-page-head-v756{
  min-height:54px!important;
  margin:0 0 7px!important;
  padding:9px 10px!important;
  display:flex!important;align-items:center!important;
  border:1px solid var(--v756-line)!important;
  border-radius:15px!important;
  background:linear-gradient(135deg,#fff,#f5f9ff)!important;
  box-shadow:0 5px 14px rgba(38,77,128,.045)!important;
}
body.webshop-v759 #orders .history-page-head-v756 h2{margin:0!important;font-size:14px!important;line-height:1.25!important;color:var(--v756-text)!important}
body.webshop-v759 #orders .history-page-head-v756 p{margin:2px 0 0!important;font-size:8px!important;line-height:1.35!important;color:var(--v756-muted)!important}
body.webshop-v759 #orders .history-tabs-v431{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;
  margin:0 0 7px!important;
  padding:6px!important;
  border-radius:15px!important;
}
body.webshop-v759 #orders .history-tabs-v431 .history-tab{
  min-width:0!important;width:100%!important;
  height:40px!important;min-height:40px!important;
  padding:4px 6px!important;
  border-radius:10px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  background:#f7faff!important;border:1px solid #e2eaf5!important;color:#64758b!important;
  box-shadow:none!important;
}
body.webshop-v759 #orders .history-tabs-v431 .history-tab span{font-size:13px!important;width:17px!important;height:17px!important;display:grid!important;place-items:center!important}
body.webshop-v759 #orders .history-tabs-v431 .history-tab b{font-size:8.5px!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.webshop-v759 #orders .history-tabs-v431 .history-tab.active{
  color:#fff!important;background:linear-gradient(135deg,var(--v756-primary),var(--v756-primary-2))!important;border-color:transparent!important;
  box-shadow:0 5px 12px rgba(49,135,238,.17)!important;
}
body.webshop-v759 #orders .history-filter{
  display:grid!important;grid-template-columns:minmax(0,1fr) 72px!important;gap:6px!important;
  margin:0 0 7px!important;padding:6px!important;border-radius:14px!important;
}
body.webshop-v759 #orders .history-filter input{
  min-width:0!important;height:38px!important;min-height:38px!important;
  padding:0 10px!important;border:1px solid #dbe6f3!important;border-radius:10px!important;
  background:#f8fbff!important;color:var(--v756-text)!important;font-size:9px!important;outline:none!important;
}
body.webshop-v759 #orders .history-filter input:focus{border-color:color-mix(in srgb,var(--v756-primary) 55%,#dbe6f3)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--v756-primary) 10%,transparent)!important}
body.webshop-v759 #orders .history-filter button{width:72px!important;min-width:72px!important;background:#fff!important;color:var(--v756-primary)!important;border:1px solid color-mix(in srgb,var(--v756-primary) 28%,#dbe6f3)!important}
body.webshop-v759 #orders .history-panel{margin:0!important;padding:0!important;min-width:0!important;max-width:100%!important}
body.webshop-v759 #orders .fast-list,
body.webshop-v759 #orders .coupon-history-list,
body.webshop-v759 #orders .coupon-transfer-history,
body.webshop-v759 #orders .discount-wallet-list{
  display:grid!important;gap:6px!important;padding:0!important;margin:0!important;
}
body.webshop-v759 #orders .history-card,
body.webshop-v759 #orders .history-card-v430{
  position:relative!important;
  min-width:0!important;max-width:100%!important;
  padding:8px 9px!important;
  border-radius:13px!important;
  border-left:3px solid var(--history-accent,var(--v756-primary))!important;
  overflow:hidden!important;
}
body.webshop-v759 #orders .history-card-top-v430{margin:0 0 5px!important;gap:6px!important}
body.webshop-v759 #orders .history-category-v430{min-height:21px!important;padding:3px 7px!important;border-radius:999px!important;font-size:7px!important}
body.webshop-v759 #orders .history-card-top-v430 small{font-size:7px!important}
body.webshop-v759 #orders .history-card h3,
body.webshop-v759 #orders .history-card-v430 h3{margin:0 0 5px!important;font-size:10.5px!important;line-height:1.3!important;color:var(--v756-text)!important}
body.webshop-v759 #orders .history-card .row{
  min-height:26px!important;padding:4px 0!important;margin:0!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
  border-top:1px dashed #e7edf5!important;
  font-size:8px!important;
}
body.webshop-v759 #orders .history-card .row span{min-width:0!important;color:var(--v756-muted)!important;font-size:8px!important;line-height:1.25!important}
body.webshop-v759 #orders .history-card .row b{min-width:0!important;color:var(--v756-text)!important;font-size:8.5px!important;line-height:1.25!important;text-align:right!important;overflow-wrap:anywhere!important}
body.webshop-v759 #orders .history-detail-v430{
  margin:5px 0 0!important;padding:6px 7px!important;border-radius:9px!important;
  background:#f8fbff!important;color:#60738b!important;font-size:7.5px!important;line-height:1.45!important;
}
body.webshop-v759 #orders .history-card .notice{margin:5px 0!important;padding:6px 7px!important;border-radius:9px!important;font-size:7.5px!important;line-height:1.4!important}
body.webshop-v759 #orders .history-more-v756{
  width:100%!important;height:30px!important;min-height:30px!important;margin-top:6px!important;
  border:1px solid #d8e5f4!important;border-radius:9px!important;background:#f7fbff!important;
  color:var(--v756-primary)!important;font-size:8px!important;font-weight:900!important;
}
body.webshop-v759 #orders .history-collapsible-v756.collapsed-v756>.row:nth-of-type(n+3),
body.webshop-v759 #orders .history-collapsible-v756.collapsed-v756>.history-detail-v430,
body.webshop-v759 #orders .history-collapsible-v756.collapsed-v756>.notice,
body.webshop-v759 #orders .history-collapsible-v756.collapsed-v756>div[style*="margin-top"]{display:none!important}

body.webshop-v759 #orders .coupon-history-item,
body.webshop-v759 #orders .credit-history-card-v65,
body.webshop-v759 #orders .discount-wallet-card,
body.webshop-v759 #orders .deposit-history-card-v404,
body.webshop-v759 #orders .coupon-transfer-item{
  min-width:0!important;max-width:100%!important;
  margin:0!important;padding:8px 9px!important;border-radius:13px!important;
}
body.webshop-v759 #orders .coupon-history-item b,
body.webshop-v759 #orders .credit-history-card-v65 b{font-size:9.5px!important;line-height:1.3!important}
body.webshop-v759 #orders .coupon-history-item small,
body.webshop-v759 #orders .credit-history-card-v65 small{font-size:7.5px!important;line-height:1.35!important}
body.webshop-v759 #orders .coupon-history-code-v556{min-width:100px!important;max-width:45%!important;padding:5px 7px!important;border-radius:9px!important;background:#f8fbff!important}
body.webshop-v759 #orders .coupon-history-code-v556 span{font-size:8px!important;overflow-wrap:anywhere!important}
body.webshop-v759 #orders .empty{min-height:86px!important;padding:18px 10px!important;border-radius:13px!important;font-size:9px!important}

body.webshop-v759 #orders .history-pagination-v566{
  margin:7px 0 0!important;padding:6px!important;gap:6px!important;
  border:1px solid var(--v756-line)!important;border-radius:13px!important;background:#fff!important;
}
body.webshop-v759 #orders .history-pagination-v566>button{min-height:36px!important;height:36px!important;padding:0 9px!important;font-size:8.5px!important;border-radius:10px!important}
body.webshop-v759 #orders .history-page-info-v566>b{font-size:8.5px!important}
body.webshop-v759 #orders .history-page-info-v566>small{font-size:7px!important}

/* page-end spacing: enough for the fixed bottom nav, without the large floating blank area */
@media(max-width:980px){
  body.webshop-v759.v759-tight-bottom{
    padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom))!important;
  }
  body.webshop-v759 #profile,
  body.webshop-v759 #orders,
  body.webshop-v759 #profile .profile-mobile-page-v429,
  body.webshop-v759 #orders .history-panel,
  body.webshop-v759 #orders .fast-list{
    padding-bottom:4px!important;
    margin-bottom:0!important;
  }
  body.webshop-v759 #profile #lineConnectCardV104 .line-connect-shell-v490{flex-direction:column!important}
  body.webshop-v759 #profile #lineConnectCardV104 .line-connect-main-v490{grid-template-columns:1fr!important}
  body.webshop-v759 #profile #lineConnectCardV104 .line-action-v490{width:100%!important;min-width:0!important;flex:auto!important}
  body.webshop-v759 #profile #lineConnectCardV104 .line-action-v490 .btn{width:100%!important}
}

@media(min-width:700px){
  body.webshop-v759 #profile .profile-mobile-page-v429{gap:10px!important}
  body.webshop-v759 #profile .profile-tools-card-v429 .settings-list,
  body.webshop-v759 #profile .profile-admin-buttons-card-v429 .settings-list{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.webshop-v759 #profile .setting-row{height:70px!important;min-height:70px!important;max-height:70px!important;grid-template-columns:36px minmax(0,1fr) 90px!important}
  body.webshop-v759 #profile .setting-action{width:90px!important}
  body.webshop-v759 #profile .setting-action .btn{width:90px!important;min-width:90px!important;max-width:90px!important}
  body.webshop-v759 #orders .history-tabs-v431{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}


/* V757 — final profile/history polish on top of V756.
   Keeps V756 data/markup and fixes action overflow + bottom spacing. */
body.webshop-v759 #profile,
body.webshop-v759 #orders{overflow-x:hidden!important}
body.webshop-v759 #profile *,
body.webshop-v759 #orders *{box-sizing:border-box}

/* One row system for every profile tool. */
body.webshop-v759 #profile .setting-row,
body.webshop-v759 #profile button.setting-row{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
body.webshop-v759 #profile button.setting-row{
  appearance:none!important;
  -webkit-appearance:none!important;
  text-align:left!important;
  color:inherit!important;
  font-family:inherit!important;
  cursor:pointer!important;
}
body.webshop-v759 #profile .setting-row>div:nth-child(2),
body.webshop-v759 #profile .setting-row>span:nth-child(2){
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
}
body.webshop-v759 #profile .setting-action{
  min-width:0!important;
  max-width:100%!important;
  justify-self:end!important;
  overflow:hidden!important;
}
body.webshop-v759 #profile .setting-action .btn,
body.webshop-v759 #profile .logout-profile-btn-v42{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-sizing:border-box!important;
}

/* The logout row is itself a button; older global button rules used to make
   its nested action spill outside the card on narrow screens. */
body.webshop-v759 #profile button.logout-setting-row-v42{
  height:66px!important;
  min-height:66px!important;
  max-height:66px!important;
  padding:7px!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 84px!important;
  grid-template-rows:1fr!important;
  gap:7px!important;
  align-items:center!important;
  border:1px solid #f2d9de!important;
  border-radius:13px!important;
  background:linear-gradient(90deg,#fffafb,#fff6f7)!important;
}
body.webshop-v759 #profile button.logout-setting-row-v42>.setting-icon{grid-column:1!important;grid-row:1!important}
body.webshop-v759 #profile button.logout-setting-row-v42>span:nth-child(2){grid-column:2!important;grid-row:1!important}
body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action{
  grid-column:3!important;grid-row:1!important;
  width:84px!important;max-width:84px!important;
}
body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
  width:84px!important;min-width:0!important;max-width:84px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  padding:0 8px!important;
}

/* Keep page end close to the fixed bottom navigation. */
@media(max-width:980px){
  body.webshop-v759.v759-tight-bottom{
    padding-bottom:calc(68px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(68px + env(safe-area-inset-bottom))!important;
  }
  body.webshop-v759 #profile .profile-mobile-page-v429,
  body.webshop-v759 #profile .profile-logout-card-v429,
  body.webshop-v759 #orders .history-pagination-v566{
    margin-bottom:0!important;
  }
}

@media(max-width:430px){
  body.webshop-v759 #profile .setting-row,
  body.webshop-v759 #profile button.logout-setting-row-v42{
    grid-template-columns:32px minmax(0,1fr) 76px!important;
    gap:6px!important;
    padding:6px!important;
  }
  body.webshop-v759 #profile .setting-icon{width:32px!important;height:32px!important;min-width:32px!important}
  body.webshop-v759 #profile .setting-action,
  body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action{width:76px!important;max-width:76px!important}
  body.webshop-v759 #profile .setting-action .btn,
  body.webshop-v759 #profile .logout-profile-btn-v42,
  body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
    width:76px!important;min-width:0!important;max-width:76px!important;
    padding:0 5px!important;font-size:8.5px!important;
  }
  body.webshop-v759 #profile .setting-title{font-size:9.5px!important}
  body.webshop-v759 #profile .setting-desc{font-size:7px!important}
}

@media(max-width:350px){
  body.webshop-v759 #profile .setting-row,
  body.webshop-v759 #profile button.logout-setting-row-v42{
    grid-template-columns:30px minmax(0,1fr) 68px!important;
  }
  body.webshop-v759 #profile .setting-action,
  body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action,
  body.webshop-v759 #profile .setting-action .btn,
  body.webshop-v759 #profile .logout-profile-btn-v42,
  body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
    width:68px!important;max-width:68px!important;
  }
}


/* ======================================================================
   V759 FINAL PROFILE / HISTORY OVERRIDES
   Loaded last with a new URL so older cached CSS cannot win.
   ====================================================================== */
body.webshop-v759 #profile,
body.webshop-v759 #orders{font-family:"Noto Sans Thai",system-ui,sans-serif!important}

/* One shared card language across the customer account pages. */
body.webshop-v759 #profile .settings-card,
body.webshop-v759 #profile .profile-account-table-v564,
body.webshop-v759 #profile .profile-coupon-summary-v454,
body.webshop-v759 #orders .history-tabs-v431,
body.webshop-v759 #orders .history-filter,
body.webshop-v759 #orders .history-card,
body.webshop-v759 #orders .coupon-history-item,
body.webshop-v759 #orders .credit-history-card-v65,
body.webshop-v759 #orders .discount-wallet-card,
body.webshop-v759 #orders .deposit-history-card-v404,
body.webshop-v759 #orders .coupon-transfer-item{
  border:1px solid #dce7f4!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 4px 14px rgba(40,76,126,.045)!important;
}

/* Profile: denser, professional, and every action button is identical. */
body.webshop-v759 #profile .profile-mobile-page-v429{gap:7px!important;padding:6px 7px 0!important}
body.webshop-v759 #profile .profile-admin-button-v709{margin:0!important;border-radius:15px!important}
body.webshop-v759 #profile .profile-hero-card-v429{padding:7px!important;border-radius:16px!important}
body.webshop-v759 #profile .profile-hero-top-v429{min-height:70px!important;height:70px!important;padding:9px 11px!important;margin:0 0 7px!important;border-radius:13px!important}
body.webshop-v759 #profile .profile-avatar-v429{width:42px!important;height:42px!important;min-width:42px!important;border-radius:13px!important;font-size:20px!important}
body.webshop-v759 #profile .profile-hero-copy-v429 h2{font-size:17px!important;margin:3px 0 1px!important}
body.webshop-v759 #profile .profile-hero-copy-v429 p{font-size:8px!important}

body.webshop-v759 #profile .profile-account-table-body-v545,
body.webshop-v759 #profile .profile-account-table-body-v564{gap:5px!important;padding:6px!important}
body.webshop-v759 #profile .profile-account-cell-v545,
body.webshop-v759 #profile .profile-account-cell-v564,
body.webshop-v759 #profile .profile-hero-card-v429 .profile-stat.profile-account-cell-v564{
  min-height:52px!important;padding:6px 7px!important;border-radius:11px!important;background:#fbfdff!important
}
body.webshop-v759 #profile .profile-cell-icon-v564{width:29px!important;height:29px!important;min-width:29px!important}
body.webshop-v759 #profile .profile-cell-copy-v564 b{font-size:10.5px!important}

body.webshop-v759 #profile .profile-coupon-summary-v454{padding:6px!important;margin:7px 0 0!important}
body.webshop-v759 #profile .profile-coupon-stat-v454,
body.webshop-v759 #profile .profile-coupon-stat-v564,
body.webshop-v759 #profile .profile-coupon-stat-v565{min-height:54px!important;height:54px!important;border-radius:10px!important}

body.webshop-v759 #profile .profile-tools-card-v429,
body.webshop-v759 #profile .profile-admin-buttons-card-v429,
body.webshop-v759 #profile .profile-logout-card-v429,
body.webshop-v759 #profile #lineConnectCardV104{padding:7px!important;margin:0!important;border-radius:15px!important}
body.webshop-v759 #profile .settings-head{height:34px!important;min-height:34px!important;margin:0 0 5px!important;padding:0 2px 5px!important;font-size:11.5px!important}
body.webshop-v759 #profile .settings-head .icon{width:27px!important;height:27px!important;min-width:27px!important;border-radius:9px!important;font-size:13px!important}
body.webshop-v759 #profile .settings-list{display:grid!important;grid-template-columns:1fr!important;gap:5px!important}
body.webshop-v759 #profile .setting-row,
body.webshop-v759 #profile button.setting-row{
  width:100%!important;max-width:100%!important;min-width:0!important;
  min-height:58px!important;height:58px!important;max-height:58px!important;
  padding:6px 7px!important;margin:0!important;
  display:grid!important;grid-template-columns:32px minmax(0,1fr) 92px!important;grid-template-rows:1fr!important;
  gap:7px!important;align-items:center!important;overflow:hidden!important;
  border:1px solid #e0e9f4!important;border-radius:12px!important;background:#fbfdff!important;box-shadow:none!important
}
body.webshop-v759 #profile .setting-row>.setting-icon,
body.webshop-v759 #profile .setting-row>span.setting-icon{grid-column:1!important;grid-row:1!important;width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important;font-size:14px!important}
body.webshop-v759 #profile .setting-row>div:nth-child(2),
body.webshop-v759 #profile .setting-row>span:nth-child(2){grid-column:2!important;grid-row:1!important;min-width:0!important;overflow:hidden!important}
body.webshop-v759 #profile .setting-title{font-size:10px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.webshop-v759 #profile .setting-desc{font-size:7.2px!important;line-height:1.25!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.webshop-v759 #profile .setting-action,
body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action{
  grid-column:3!important;grid-row:1!important;width:92px!important;min-width:92px!important;max-width:92px!important;
  height:36px!important;margin:0!important;overflow:visible!important;justify-self:end!important;align-self:center!important
}
body.webshop-v759 #profile .setting-action .btn,
body.webshop-v759 #profile .profile-tool-btn-v543,
body.webshop-v759 #profile .logout-profile-btn-v42,
body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{
  width:92px!important;min-width:92px!important;max-width:92px!important;height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:0 7px!important;border-radius:10px!important;font-size:8.8px!important;line-height:1!important;
  display:flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;box-shadow:none!important
}
body.webshop-v759 #profile button.logout-setting-row-v42{
  grid-template-columns:32px minmax(0,1fr) 92px!important;min-height:58px!important;height:58px!important;max-height:58px!important;
  padding:6px 7px!important;border-radius:12px!important;overflow:hidden!important
}
body.webshop-v759 #profile .profile-logout-card-v429{overflow:hidden!important}

/* History header + controls use exactly the same density as Profile. */
body.webshop-v759 #orders{padding:6px 7px 0!important}
body.webshop-v759 #orders>.history-page-head-v758{
  min-height:54px!important;margin:0 0 6px!important;padding:8px 10px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;
  border:1px solid #dce7f4!important;border-radius:15px!important;background:linear-gradient(135deg,#fff,#f4f8ff)!important;
  box-shadow:0 4px 14px rgba(40,76,126,.045)!important
}
body.webshop-v759 #orders>.history-page-head-v758 h2{margin:0!important;font-size:14px!important;line-height:1.2!important;color:#10233f!important}
body.webshop-v759 #orders>.history-page-head-v758 p{margin:2px 0 0!important;font-size:7.5px!important;color:#74849a!important;line-height:1.3!important}
body.webshop-v759 #orders>.history-page-head-v758 .history-head-badge-v758{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:26px!important;padding:0 8px!important;border-radius:999px!important;background:#eaf3ff!important;color:#256fd4!important;font-size:7px!important;font-weight:900!important;white-space:nowrap!important}
body.webshop-v759 #orders .history-tabs-v431{margin-bottom:6px!important;padding:5px!important;gap:4px!important;border-radius:13px!important}
body.webshop-v759 #orders .history-tabs-v431 .history-tab{height:36px!important;min-height:36px!important;border-radius:9px!important;font-size:8px!important}
body.webshop-v759 #orders .history-filter{margin-bottom:6px!important;padding:5px!important;border-radius:13px!important;grid-template-columns:minmax(0,1fr) 70px!important}
body.webshop-v759 #orders .history-filter input,
body.webshop-v759 #orders .history-filter button{height:35px!important;min-height:35px!important;border-radius:9px!important}
body.webshop-v759 #orders .history-card,
body.webshop-v759 #orders .history-card-v430{padding:7px 8px!important;border-radius:12px!important;box-shadow:none!important}
body.webshop-v759 #orders .history-card h3,
body.webshop-v759 #orders .history-card-v430 h3{font-size:10px!important;margin-bottom:4px!important}
body.webshop-v759 #orders .history-card .row{min-height:24px!important;padding:3px 0!important}
body.webshop-v759 #orders .history-more-v758{width:100%!important;height:29px!important;min-height:29px!important;margin-top:5px!important;border:1px solid #d9e5f3!important;border-radius:8px!important;background:#f7fbff!important;color:#2a73d4!important;font-size:7.5px!important;font-weight:900!important}
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>.row:nth-of-type(n+3),
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>.history-detail-v430,
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>.notice,
body.webshop-v759 #orders .history-collapsible-v758.collapsed-v758>div[style*="margin-top"]{display:none!important}

/* Critical: neutralize the old 104px + 18px bottom reserve only on these pages. */
@media(max-width:980px){
  body.webshop-v759.v759-tight-bottom{
    --bottom-nav-height-v71:64px!important;
    --bottom-nav-gap-v71:0px!important;
    padding-bottom:calc(64px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(64px + env(safe-area-inset-bottom))!important;
  }
  body.webshop-v759.v759-tight-bottom .app,
  body.webshop-v759.v759-tight-bottom main,
  body.webshop-v759.v759-tight-bottom .container,
  body.webshop-v759 #profile.page.active,
  body.webshop-v759 #orders.page.active,
  body.webshop-v759 #profile.page.active .settings-page,
  body.webshop-v759 #orders.page.active .history-panel,
  body.webshop-v759 #orders.page.active .fast-list,
  body.webshop-v759 #orders.page.active .history-pagination-v566{
    padding-bottom:2px!important;margin-bottom:0!important
  }
  body.webshop-v759 #profile.page.active .profile-logout-card-v429{margin-bottom:2px!important}
}
@media(max-width:430px){
  body.webshop-v759 #profile .setting-row,
  body.webshop-v759 #profile button.setting-row,
  body.webshop-v759 #profile button.logout-setting-row-v42{grid-template-columns:30px minmax(0,1fr) 84px!important;gap:6px!important;padding:5px 6px!important}
  body.webshop-v759 #profile .setting-action,
  body.webshop-v759 #profile button.logout-setting-row-v42>.setting-action,
  body.webshop-v759 #profile .setting-action .btn,
  body.webshop-v759 #profile .profile-tool-btn-v543,
  body.webshop-v759 #profile .logout-profile-btn-v42,
  body.webshop-v759 #profile button.logout-setting-row-v42 .logout-profile-btn-v42{width:84px!important;min-width:84px!important;max-width:84px!important}
  body.webshop-v759 #profile .setting-row>.setting-icon,
  body.webshop-v759 #profile .setting-row>span.setting-icon{width:30px!important;height:30px!important;min-width:30px!important}
}


/* V759 hard bottom-gap lock: only Profile/History, keep the last card just above the fixed nav. */
@media(max-width:980px){
  body.webshop-v759.v759-tight-bottom{
    --bottom-nav-height-v71:68px!important;
    --bottom-nav-gap-v71:0px!important;
    --bottom-safe-total-v71:calc(68px + env(safe-area-inset-bottom))!important;
    padding-bottom:calc(68px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(68px + env(safe-area-inset-bottom))!important;
  }
  body.webshop-v759.v759-tight-bottom .app,
  body.webshop-v759.v759-tight-bottom main,
  body.webshop-v759.v759-tight-bottom .container,
  body.webshop-v759.v759-tight-bottom .page.active,
  body.webshop-v759.v759-tight-bottom #profile.page.active,
  body.webshop-v759.v759-tight-bottom #orders.page.active,
  body.webshop-v759.v759-tight-bottom #profile.page.active .profile-mobile-page-v429,
  body.webshop-v759.v759-tight-bottom #profile.page.active .settings-page,
  body.webshop-v759.v759-tight-bottom #orders.page.active .history-panel,
  body.webshop-v759.v759-tight-bottom #orders.page.active .fast-list,
  body.webshop-v759.v759-tight-bottom #orders.page.active .history-pagination-v566{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }
  body.webshop-v759.v759-tight-bottom #profile.page.active .profile-logout-card-v429,
  body.webshop-v759.v759-tight-bottom #profile.page.active .settings-card:last-child,
  body.webshop-v759.v759-tight-bottom #orders.page.active .history-card:last-child{
    margin-bottom:3px!important;
  }
}
