:root{--bg:#fff7f9;--panel:#fff1f4;--card:#fff;--ink:#171113;--muted:#755f64;--line:#f3c8d0;--accent:#d8798b;--accent2:#111012;--soft:#ffe8ee;--danger:#d83b56;--ok:#238a57;--warn:#ba7b1c;--shadow:0 18px 55px rgba(80,35,45,.10)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.eyebrow{font-weight:900;color:var(--accent);font-size:11px;letter-spacing:.12em;margin:0 0 6px;text-transform:uppercase}.muted{color:var(--muted);font-size:13px}.primary{background:var(--accent);color:#fff;border:0;border-radius:16px;padding:12px 18px;font-weight:900;box-shadow:0 10px 25px rgba(255,104,77,.25)}.secondary{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-weight:800;color:var(--ink)}.ghost{background:transparent;border:1px solid var(--line);border-radius:14px;padding:10px 14px;font-weight:800}.wide{width:100%}.icon-btn{border:0;background:#fff;border-radius:16px;padding:10px 14px;box-shadow:var(--shadow);font-weight:900}input,select{border:1px solid var(--line);border-radius:16px;background:#fff;padding:13px 15px;outline:none;width:100%}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(255,104,77,.12)}.toast{position:fixed;right:18px;bottom:18px;background:#191716;color:#fff;padding:12px 16px;border-radius:16px;z-index:99;box-shadow:var(--shadow)}
/* Online shop */.shop-shell{width:100%;min-height:100vh;padding:18px;max-width:1280px;margin:0 auto}.shop-hero{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#fff,#fff0e7);border:1px solid var(--line);border-radius:30px;padding:24px;box-shadow:var(--shadow);margin-bottom:18px}.shop-hero h1{margin:0;font-size:clamp(26px,4vw,48px);line-height:1}.soft-card,.promo-card{background:var(--panel);border:1px solid var(--line);border-radius:26px;padding:22px;box-shadow:var(--shadow)}.gate-card{max-width:920px;margin:24px auto}.two-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.two-grid input{margin-bottom:10px}.toolbar{display:flex;gap:10px;margin:18px 0}.chips{display:flex;gap:10px;overflow:auto;padding:8px 0 14px}.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 16px;font-weight:800;white-space:nowrap}.chip.active{background:var(--ink);color:#fff}.section-title{display:flex;justify-content:space-between;align-items:end;margin:16px 0 10px}.section-title h2{margin:0}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px}.shop-card,.pos-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:12px;box-shadow:0 12px 35px rgba(52,30,18,.07);transition:.18s}.shop-card:hover,.pos-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:var(--soft)}.shop-card h3,.pos-card h3{margin:10px 0 4px;font-size:16px}.price{font-weight:1000;font-size:18px}.stock-pill,.status-pill{display:inline-flex;background:#fff0c8;color:#7a4a00;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}.cart-drawer{position:fixed;right:0;top:0;width:min(430px,100%);height:100vh;background:#fff;z-index:50;box-shadow:-20px 0 60px rgba(0,0,0,.14);display:flex;flex-direction:column;padding:18px}.drawer-head{display:flex;justify-content:space-between;align-items:center}.cart-item,.ticket-line{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.qty-controls{display:flex;gap:8px;align-items:center}.qty-controls button{width:34px;height:34px;border-radius:12px;border:1px solid var(--line);background:#fff;font-weight:900}.cart-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:14px}.total-row{display:flex;justify-content:space-between;align-items:center;margin:10px 0}.total-row.big{font-size:22px;font-weight:1000}
/* Login */.login-page{display:grid;place-items:center;min-height:100vh}.login-card{width:min(420px,92vw);background:#fff;border:1px solid var(--line);border-radius:30px;padding:28px;box-shadow:var(--shadow)}.login-card label{font-weight:800;font-size:13px}.login-card input{margin:8px 0 14px}.brand-dot{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent),#ffb199);display:grid;place-items:center;color:#fff;font-weight:1000}.error{color:var(--danger);font-weight:800}.small-link{display:block;text-align:center;margin-top:14px;color:var(--accent);font-weight:900}
/* Dashboard */.dash-body{overflow:hidden}.pos-app{height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:#fffaf5;border-right:1px solid var(--line);padding:16px;overflow:auto}.brand{display:flex;gap:10px;align-items:center;margin-bottom:22px}.brand small{display:block;color:var(--muted);font-size:11px}.side-label{font-size:11px;color:var(--muted);letter-spacing:.16em;margin:20px 8px 8px}.nav{width:100%;border:0;background:transparent;border-radius:14px;padding:13px 12px;text-align:left;font-weight:900;margin:2px 0;color:var(--ink)}.nav.active{background:var(--accent2);color:#fff}.dash-main{overflow:auto}.dash-top{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.dash-top h1{margin:0;font-size:28px}.top-actions{display:flex;gap:10px;align-items:center}.clock{background:#fff7ef;border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-family:monospace}.tab-section{display:none!important;padding:18px}.tab-section.active{display:block!important}.pos-layout.active{display:grid!important;grid-template-columns:1fr 430px;padding:0;height:calc(100vh - 72px)}.pos-products{padding:18px;overflow:auto}.pos-search{display:flex;gap:8px}.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.pos-card{min-height:130px}.ticket{background:#fffaf5;border-left:1px solid var(--line);display:flex;flex-direction:column;padding:20px}.ticket h2{font-family:Georgia,serif;font-size:30px;margin:0}.ticket-head{display:flex;justify-content:space-between;align-items:center}.ticket-items{flex:1;overflow:auto;padding:14px 0}.empty-ticket{display:grid;place-items:center;text-align:center;color:var(--muted)}.ticket-footer{border-top:1px solid var(--line);padding-top:14px}.panel,.form-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:22px;box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.panel-head h2{margin:0;font-size:32px;font-family:Georgia,serif}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:auto;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;min-width:850px}th,td{padding:14px;border-bottom:1px solid var(--line);text-align:left}th{font-size:12px;color:var(--muted);text-transform:uppercase}.stock-actions{display:flex;gap:8px}.stock-actions button{padding:8px 10px;border-radius:10px}.card-list{display:grid;gap:12px}.order-card,.approval-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow);display:grid;gap:10px}.product-form{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.upload-box{grid-column:1/-1;border:1px dashed var(--line);border-radius:18px;padding:14px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.preview{width:90px;height:90px;object-fit:cover;border-radius:16px}.stats-grid,.summary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px;margin-bottom:16px}.stat,.summary-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow)}.stat strong,.summary-card strong{font-size:24px}.summary-card{cursor:pointer}.modal{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:80;display:grid;place-items:center;padding:20px}.modal-card{width:min(900px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:28px;padding:24px;position:relative}.close{position:absolute;right:14px;top:14px}.status-out{background:#ffe2e2;color:#a40000}.status-low{background:#fff0c8;color:#7a4a00}.status-in{background:#dff7e8;color:#0f6b3e}
@media(max-width:900px){.pos-app{grid-template-columns:1fr}.sidebar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;gap:6px;overflow:auto;border-top:1px solid var(--line);border-right:0;padding:8px}.brand,.side-label{display:none}.nav{min-width:110px;text-align:center}.dash-top{height:auto;padding:12px 14px}.pos-layout.active{grid-template-columns:1fr;height:auto;padding-bottom:90px}.ticket{position:fixed;left:8px;right:8px;bottom:72px;max-height:42vh;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);z-index:19}.product-form,.two-grid{grid-template-columns:1fr}.shop-shell{padding:10px}.shop-hero{border-radius:0;margin:-10px -10px 12px;padding:18px 14px}.toolbar,.panel-head,.pos-search{flex-direction:column}.shop-grid{grid-template-columns:repeat(2,1fr);gap:10px}.pos-grid{grid-template-columns:repeat(2,1fr)}.dash-body{overflow:auto}.dash-main{padding-bottom:82px}}@media(max-width:420px){.shop-grid,.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-card,.pos-card{padding:9px;border-radius:18px}.price{font-size:16px}.ticket{bottom:66px}.tab-section{padding:12px}.dash-top h1{font-size:22px}}

/* === RESTORED UI FINAL PATCH: keep original POS layout, improve cards only === */
.login-form{display:grid;gap:12px}.error{min-height:18px;color:#c4122f;font-size:13px;text-align:center}.empty-state{padding:22px;background:#fff;border:1px dashed var(--line);border-radius:18px}.premium-pos-card{display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:stretch;min-height:132px;padding:12px;background:linear-gradient(180deg,#fff,#fffaf6);border:1px solid #efd8cb;box-shadow:0 14px 32px rgba(60,35,20,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.premium-pos-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(60,35,20,.10);border-color:#ffc8b8}.pos-thumb-wrap{position:relative;min-height:108px;border-radius:18px;background:#fff2ea;overflow:hidden;display:grid;place-items:center}.pos-thumb{width:100%;height:100%;object-fit:cover;display:block}.pos-thumb-wrap .stock-pill{position:absolute;left:7px;bottom:7px;font-size:11px;box-shadow:0 8px 18px rgba(0,0,0,.08)}.pos-card-body{display:grid;align-content:space-between;min-width:0}.pos-card-body h3{margin:0 0 4px;font-size:17px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sku-mini{font-size:11px;color:var(--muted);max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-card .price{font-size:19px}.ticket-line{border-bottom:1px solid var(--line);padding:10px 0}.ticket-line:last-child{border-bottom:0}.qty-controls button{cursor:pointer}.nav,.primary,.secondary,.ghost,.chip,.pos-card{cursor:pointer}.primary:disabled,.secondary:disabled,.ghost:disabled{opacity:.55;cursor:not-allowed}.upload-box .secondary{position:relative}input[type=file]{font-family:inherit}.stock-actions button{white-space:nowrap}.modal.hidden,.hidden{display:none!important}@media(max-width:900px){.premium-pos-card{grid-template-columns:1fr;gap:8px}.pos-thumb-wrap{height:140px}.pos-card-body h3{white-space:normal}.sku-mini{display:none}}@media(max-width:430px){.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-pos-card{padding:9px;border-radius:18px}.pos-thumb-wrap{height:118px;border-radius:15px}.pos-card-body h3{font-size:14px}.pos-card .muted{font-size:11px}.pos-card .price{font-size:15px}.pos-thumb-wrap .stock-pill{font-size:10px}}

/* Button/functionality patch helpers */
.no-img{
  min-height:110px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#fff4ed,#ffe1d6);
  color:#ff5a45;
  font-weight:900;
  letter-spacing:.08em;
}
button:disabled{opacity:.55;cursor:not-allowed;}
.pos-card{cursor:pointer;}
.ticket-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid rgba(73,43,28,.12);}
.qty-mini{display:flex;align-items:center;gap:8px;}
.qty-mini button{min-width:34px;height:34px;border-radius:12px;border:1px solid rgba(73,43,28,.18);background:#fff;cursor:pointer;font-weight:800;}
.qty-mini .ghost{color:#ff5a45;}
.status-badge,.stock-pill{white-space:nowrap;}
.empty-state{padding:24px;}

/* =========================================================
   PREMIUM ONLINE SHOP UI PATCH
   To customize the background, put your image here:
   /assets/kiosk-bg.jpg
   ========================================================= */
:root{
  --brand-coral:#ff634f;
  --brand-coral-dark:#ef442f;
  --brand-cream:#fff7f1;
  --brand-ink:#171720;
  --brand-muted:#77707b;
  --brand-line:rgba(255, 129, 95, .22);
  --brand-glass:rgba(255,255,255,.82);
  --kiosk-bg-image:url("assets/kiosk-bg.jpg");
}
body:not(.dash-body):not(.login-page){
  min-height:100vh;
  color:var(--brand-ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(255,135,103,.28), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(255,205,170,.45), transparent 30%),
    linear-gradient(135deg,#fffaf6 0%,#fff0e8 42%,#fffdfb 100%);
  position:relative;
  overflow-x:hidden;
}
body:not(.dash-body):not(.login-page)::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image:var(--kiosk-bg-image);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:.22;
  filter:saturate(1.05) contrast(1.02);
}
body:not(.dash-body):not(.login-page)::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(255,250,246,.95),rgba(255,244,238,.84),rgba(255,255,255,.92));
  pointer-events:none;
}
.shop-shell{
  max-width:1440px;
  padding:24px clamp(14px,3vw,38px);
}
.shop-hero{
  min-height:230px;
  border:1px solid rgba(255,120,90,.22);
  border-radius:34px;
  padding:clamp(22px,4vw,46px);
  background:
    linear-gradient(112deg,rgba(255,255,255,.92),rgba(255,248,242,.76)),
    radial-gradient(circle at 92% 18%,rgba(255,112,88,.18),transparent 35%);
  backdrop-filter:blur(14px);
  box-shadow:0 28px 90px rgba(88,47,30,.13);
  overflow:hidden;
  position:relative;
}
.shop-hero::before{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-120px;
  width:380px;
  height:380px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(255,99,79,.18),rgba(255,202,169,.12));
}
.shop-hero::after{
  content:"Boutique Picks";
  position:absolute;
  right:clamp(18px,4vw,60px);
  bottom:28px;
  font-size:clamp(38px,7vw,92px);
  font-family:Georgia,serif;
  font-weight:900;
  color:rgba(255,99,79,.07);
  white-space:nowrap;
  pointer-events:none;
}
.shop-hero h1{
  max-width:760px;
  font-size:clamp(42px,6vw,78px);
  letter-spacing:-.07em;
  line-height:.92;
}
.shop-hero .muted{
  max-width:520px;
  font-size:15px;
}
.icon-btn#openCartBtn{
  position:relative;
  z-index:2;
  min-width:86px;
  height:56px;
  border-radius:22px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,120,90,.14);
  box-shadow:0 18px 44px rgba(65,33,18,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.gate-card{
  max-width:1050px;
  margin:28px auto;
  padding:clamp(20px,3vw,34px);
  border-radius:34px;
  background:linear-gradient(160deg,rgba(255,255,255,.88),rgba(255,250,246,.78));
  border:1px solid rgba(255,120,90,.22);
  backdrop-filter:blur(16px);
  box-shadow:0 30px 90px rgba(76,42,23,.12);
  position:relative;
  overflow:hidden;
}
.gate-card::before{
  content:"";
  position:absolute;
  inset:0 55% 0 0;
  background:
    radial-gradient(circle at 30% 22%,rgba(255,99,79,.13),transparent 28%),
    linear-gradient(160deg,rgba(255,239,229,.78),rgba(255,255,255,0));
  pointer-events:none;
}
.gate-card>p,.gate-card>h2,.gate-card>.two-grid,.gate-card>.error{position:relative;z-index:1}
.gate-card h2{
  font-size:clamp(26px,3vw,44px);
  letter-spacing:-.04em;
  margin:0 0 24px;
}
.two-grid{
  gap:clamp(16px,3vw,34px);
}
.two-grid>div{
  padding:18px;
  border:1px solid rgba(255,120,90,.16);
  background:rgba(255,255,255,.72);
  border-radius:26px;
  box-shadow:0 18px 45px rgba(70,36,18,.055);
}
.two-grid h3{
  margin:0 0 14px;
  font-size:18px;
}
input,select{
  min-height:54px;
  border-radius:18px;
  border:1px solid rgba(255,120,90,.24);
  background:rgba(255,255,255,.94);
  box-shadow:0 10px 24px rgba(70,36,18,.035);
}
.primary{
  min-height:54px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--brand-coral),var(--brand-coral-dark));
  box-shadow:0 18px 42px rgba(255,89,66,.28);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.primary:hover{transform:translateY(-1px);filter:saturate(1.05);box-shadow:0 22px 52px rgba(255,89,66,.34)}
.secondary,.ghost,.chip{
  min-height:46px;
  border-radius:18px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,120,90,.22);
}
.promo-card{
  min-height:150px;
  border-radius:30px;
  background:
    linear-gradient(130deg,rgba(255,255,255,.88),rgba(255,240,232,.76)),
    radial-gradient(circle at 86% 24%,rgba(255,99,79,.16),transparent 32%);
  backdrop-filter:blur(12px);
  border:1px solid rgba(255,120,90,.19);
}
.promo-card h2{font-size:clamp(26px,3.5vw,48px);letter-spacing:-.055em;line-height:.98;margin:.15em 0}
.toolbar{
  background:rgba(255,255,255,.76);
  border:1px solid rgba(255,120,90,.16);
  border-radius:26px;
  padding:10px;
  backdrop-filter:blur(12px);
  box-shadow:0 18px 50px rgba(80,42,22,.075);
}
.chips{scrollbar-width:none}.chips::-webkit-scrollbar{display:none}
.chip.active{
  background:linear-gradient(135deg,#222027,#111015);
  color:#fff;
  border-color:#111015;
}
.section-title{padding:8px 2px}.section-title h2{letter-spacing:-.035em}
.shop-grid{
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:18px;
}
.shop-card{
  border-radius:28px;
  padding:12px;
  background:rgba(255,255,255,.88);
  border:1px solid rgba(255,120,90,.16);
  box-shadow:0 18px 52px rgba(82,45,27,.09);
  backdrop-filter:blur(10px);
  overflow:hidden;
}
.shop-card:hover{transform:translateY(-5px);box-shadow:0 28px 70px rgba(82,45,27,.13)}
.product-img{
  border-radius:22px;
  aspect-ratio:1/1.08;
  background:linear-gradient(135deg,#fff2ea,#ffe0d4);
}
.shop-card h3{font-size:18px;letter-spacing:-.025em}.shop-card .muted{font-size:12.5px;line-height:1.35}.price{color:#1f1d25;font-size:21px}.stock-pill{background:#fff0c9;color:#7c4b00;border:1px solid rgba(186,123,28,.14)}
.cart-drawer{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(20px);
  border-left:1px solid rgba(255,120,90,.16);
}
.drawer-head h2{font-size:34px;letter-spacing:-.04em}.cart-item{border-bottom:1px solid rgba(255,120,90,.14)}
@media(max-width:900px){
  .shop-shell{padding:0 0 20px}.shop-hero{border-radius:0 0 30px 30px;margin:0 0 14px;min-height:190px}.gate-card{margin:14px 12px;border-radius:28px}.gate-card::before{inset:0}.two-grid>div{padding:14px}.promo-card,.toolbar,.section-title,.chips,.shop-grid{margin-left:12px;margin-right:12px}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-card{border-radius:22px;padding:9px}.product-img{border-radius:18px}.shop-card h3{font-size:15px}.shop-card .muted{font-size:11px}.price{font-size:17px}.primary{min-height:48px}.shop-hero h1{font-size:clamp(38px,12vw,58px)}
}
@media(max-width:430px){
  .shop-hero{padding:20px 14px 24px}.shop-hero h1{max-width:300px}.icon-btn#openCartBtn{min-width:72px;height:50px}.gate-card h2{font-size:25px}.toolbar{display:grid;grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stock-pill{font-size:10px;padding:5px 7px}.shop-card .primary{font-size:12px;padding:9px}
}

/* Pink single-toggle customer gate */
:root{
  --pink:#ff5f97;
  --pink2:#ff8db7;
  --pink-soft:#fff0f6;
  --pink-line:#ffd1e2;
}
.customer-gate-card{
  width:min(920px,calc(100% - 28px));
  margin:24px auto;
  background:rgba(255,255,255,.86);
  border:1px solid var(--pink-line);
  border-radius:22px;
  padding:14px 18px 16px;
  box-shadow:0 24px 70px rgba(255,95,151,.16);
  backdrop-filter:blur(18px);
  position:relative;
  overflow:hidden;
}
.customer-gate-card::before{
  content:"";
  position:absolute;
  inset:-35% auto auto -20%;
  width:55%;
  height:160%;
  background:radial-gradient(circle, rgba(255,141,183,.28), transparent 62%);
  pointer-events:none;
}
.customer-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  background:#fff7fa;
  border:1px solid var(--pink-line);
  border-radius:999px;
  padding:5px;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}
.customer-tab{
  border:0;
  background:transparent;
  border-radius:999px;
  padding:11px 14px;
  font-size:13px;
  font-weight:900;
  color:#7a6670;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  transition:.18s ease;
}
.customer-tab.active{
  color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--pink2));
  box-shadow:0 10px 22px rgba(255,95,151,.28);
}
.gate-form{
  display:none;
  position:relative;
  z-index:1;
  animation:fadeSlide .2s ease both;
}
.gate-form.active{display:block;}
@keyframes fadeSlide{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.gate-form-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0 13px;
}
.gate-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--pink2));
  box-shadow:0 10px 22px rgba(255,95,151,.25);
}
.gate-form-head h3{margin:0;font-size:15px;letter-spacing:-.02em;}
.gate-form-head p{margin:2px 0 0;color:#8a7a82;font-size:12px;}
.soft-input{
  height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--pink-line);
  background:rgba(255,255,255,.94);
  border-radius:999px;
  padding:0 14px;
  margin-bottom:10px;
  transition:.18s ease;
}
.soft-input:focus-within{
  border-color:var(--pink);
  box-shadow:0 0 0 4px rgba(255,95,151,.12);
}
.soft-input span{color:#b48c9d;font-size:13px;min-width:16px;text-align:center;}
.soft-input input{
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
  background:transparent!important;
  height:100%;
}
.pill-action{
  border-radius:999px!important;
  min-height:46px;
  background:linear-gradient(135deg,var(--pink),#ff4f8d)!important;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
}
.outline-pink{
  background:#fff!important;
  color:var(--pink)!important;
  border:1px solid var(--pink)!important;
  box-shadow:none!important;
}
.privacy-note{
  margin:11px 0 0;
  text-align:center;
  color:#9b8b92;
  font-size:11px;
  position:relative;
  z-index:1;
}
.center-error{text-align:center;margin:8px 0 0;}
@media(min-width:760px){
  .customer-gate-card{max-width:760px;padding:16px 22px 18px;}
}
@media(max-width:520px){
  .customer-gate-card{width:calc(100% - 18px);margin:12px auto;padding:12px;}
  .customer-tab{font-size:11px;padding:10px 8px;gap:5px;}
  .gate-form-head h3{font-size:14px;}
  .soft-input{height:44px;}
}

/* =========================================================
   ONLINE SHOP FINAL - Modern POS Shop Layout (no delivery)
   Replace assets/kiosk-bg.jpg anytime for a custom background.
   ========================================================= */
body.buyer-page{
  --pink:#ff4f86;
  --pink2:#ff7aa8;
  --orange:#ff7a3d;
  --ink:#17151d;
  --muted:#7d7480;
  --soft:#fff6f8;
  --card:#ffffff;
  --line:rgba(255,116,157,.18);
  min-height:100vh;
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color:var(--ink);
  background:
    linear-gradient(90deg,rgba(255,255,255,.94),rgba(255,244,248,.88)),
    url("assets/kiosk-bg.jpg") center/cover fixed no-repeat,
    radial-gradient(circle at top left,rgba(255,79,134,.18),transparent 36%),
    #fff8fa;
}
body.buyer-page *{box-sizing:border-box}
body.buyer-page .hidden{display:none!important}
.buyer-app{
  min-height:100vh;
  display:grid;
  grid-template-columns:86px minmax(0,1fr) 360px;
  gap:0;
  max-width:1480px;
  margin:0 auto;
  background:rgba(255,255,255,.58);
  backdrop-filter:blur(8px);
  box-shadow:0 30px 90px rgba(86,45,66,.08);
}
.buyer-rail{
  background:rgba(255,255,255,.88);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  padding:24px 14px;
  position:sticky;
  top:0;
  height:100vh;
}
.rail-logo{
  width:46px;height:46px;border-radius:17px;
  display:grid;place-items:center;
  font-weight:950;color:#fff;
  background:linear-gradient(135deg,var(--pink),var(--orange));
  box-shadow:0 15px 28px rgba(255,79,134,.28);
}
.rail-btn{
  width:48px;height:48px;border:0;border-radius:16px;background:#fff;
  display:grid;place-items:center;text-decoration:none;color:var(--ink);
  font-weight:900;position:relative;cursor:pointer;
  box-shadow:0 8px 22px rgba(40,20,30,.06);
}
.rail-btn.active{background:linear-gradient(135deg,var(--pink),var(--orange));color:#fff}
.rail-btn span{
  position:absolute;right:2px;top:2px;background:#111;color:#fff;border-radius:999px;
  min-width:20px;height:20px;font-size:11px;display:grid;place-items:center;padding:0 5px;
}
.buyer-main{padding:42px clamp(18px,3vw,42px);min-width:0;}
.buyer-topbar{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,360px);align-items:start;gap:22px;margin-bottom:28px;
}
.mini-label{font-size:11px;letter-spacing:.18em;color:var(--pink);font-weight:950;text-transform:uppercase;margin:0 0 8px}
.buyer-topbar h1,.buyer-gate-panel h1{font-size:clamp(34px,4vw,54px);line-height:.95;margin:0 0 10px;letter-spacing:-.055em;font-weight:950}
.soft-text{color:var(--muted);font-size:13px;line-height:1.45;margin:0}
.buyer-search-wrap{
  display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:0 16px;box-shadow:0 16px 35px rgba(50,20,35,.055);height:58px;
}
.buyer-search-wrap input{height:auto;min-height:0;border:0;box-shadow:none;background:transparent;outline:none;width:100%;font-size:14px}
.buyer-categories{display:flex;gap:12px;overflow-x:auto;padding:2px 0 20px;scrollbar-width:none}.buyer-categories::-webkit-scrollbar{display:none}
.buyer-chip{border:0;background:#fff;min-height:48px;padding:0 20px;border-radius:17px;font-weight:850;cursor:pointer;box-shadow:0 10px 24px rgba(50,20,35,.06);white-space:nowrap;border:1px solid var(--line)}
.buyer-chip.active{background:linear-gradient(135deg,var(--pink),var(--orange));color:#fff;box-shadow:0 18px 38px rgba(255,79,134,.28)}
.buyer-section-head{display:flex;align-items:end;justify-content:space-between;margin:10px 0 16px}
.buyer-section-head h2{margin:0;font-size:28px;letter-spacing:-.035em}
.buyer-product-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:20px;align-items:stretch}
.buyer-product-card{position:relative;background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:24px;padding:14px;box-shadow:0 18px 45px rgba(75,31,52,.08);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;overflow:hidden}
.buyer-product-card:hover{transform:translateY(-4px);box-shadow:0 26px 60px rgba(75,31,52,.13);border-color:rgba(255,79,134,.34)}
.quick-add{position:absolute;right:22px;top:22px;z-index:3;width:38px;height:38px;border:0;border-radius:14px;background:#fff;color:var(--pink);box-shadow:0 10px 25px rgba(0,0,0,.12);cursor:pointer}
.buyer-img-wrap{height:165px;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#fff0f5,#ffe6dd);display:grid;place-items:center;margin-bottom:14px}
.buyer-product-img{width:100%;height:100%;object-fit:cover;display:block}
.buyer-no-img{width:100%;height:100%;display:grid;place-items:center;font-weight:950;color:#fff;letter-spacing:.16em;background:linear-gradient(135deg,#ffc2d5,#ff7a3d)}
.buyer-card-body h3{font-size:18px;line-height:1.08;margin:0 0 8px;font-weight:950;letter-spacing:-.025em}
.buyer-card-foot{display:flex;justify-content:space-between;align-items:end;margin-top:14px;gap:10px}
.buyer-card-foot strong{font-size:22px;color:var(--pink);letter-spacing:-.035em}.buyer-card-foot span{font-size:12px;color:#8d6c25;background:#fff1be;padding:7px 9px;border-radius:999px;font-weight:850;white-space:nowrap}
.buyer-ticket-panel{background:rgba(255,255,255,.95);border-left:1px solid var(--line);padding:42px 24px;display:flex;flex-direction:column;height:100vh;position:sticky;top:0;box-shadow:-20px 0 60px rgba(63,27,44,.06);z-index:4}
.ticket-head-v2{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:24px}.ticket-head-v2 h2{font-size:30px;line-height:1;margin:0;font-weight:950;letter-spacing:-.04em}.ticket-clear{border:1px solid var(--line);background:#fff;border-radius:16px;padding:12px 16px;font-weight:850;cursor:pointer}
.ticket-items-v2{flex:1;overflow:auto;padding-right:4px}.buyer-ticket-item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid rgba(255,79,134,.14)}
.ticket-thumb{width:72px;height:72px;border-radius:15px;overflow:hidden;background:#fff0f5}.ticket-img{width:100%;height:100%;object-fit:cover}.ticket-info{min-width:0}.ticket-info strong{display:block;font-size:14px;line-height:1.15;margin-bottom:4px}.ticket-info p{margin:0 0 4px;color:var(--muted);font-size:12px}.ticket-info b{color:var(--pink)}
.ticket-qty{display:flex;align-items:center;gap:8px}.ticket-qty button{width:28px;height:28px;border:0;border-radius:10px;background:linear-gradient(135deg,var(--pink),var(--orange));color:#fff;font-weight:950;cursor:pointer}.ticket-qty span{font-weight:850;min-width:16px;text-align:center}
.empty-ticket{height:260px;display:grid;place-items:center;color:var(--muted);text-align:center;border:1px dashed var(--line);border-radius:22px;background:#fffafd}.ticket-summary-v2{border-top:1px solid var(--line);padding-top:20px}.summary-line{display:flex;justify-content:space-between;margin:0 0 10px;color:var(--muted)}.summary-line.total{font-size:22px;color:var(--ink);font-weight:950;margin-top:14px}.summary-line.total strong{color:var(--ink)}
.buyer-primary,.buyer-secondary{width:100%;min-height:54px;border-radius:17px;border:0;font-weight:950;cursor:pointer}.buyer-primary{background:linear-gradient(135deg,var(--pink),var(--orange));color:#fff;box-shadow:0 18px 42px rgba(255,79,134,.28)}.buyer-secondary{background:#fff;color:var(--pink);border:1px solid rgba(255,79,134,.35)}.mobile-close-cart{display:none;width:100%;min-height:46px;border:0;background:transparent;color:var(--muted);font-weight:850;margin-top:8px}
.floating-cart{display:none;position:fixed;right:18px;bottom:18px;z-index:15;border:0;border-radius:999px;background:linear-gradient(135deg,var(--pink),var(--orange));color:#fff;font-weight:950;padding:16px 20px;box-shadow:0 18px 44px rgba(255,79,134,.3)}
.buyer-gate-panel{min-height:calc(100vh - 84px);display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,520px);align-items:center;gap:36px}.gate-left{max-width:640px}.gate-card-v2{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:30px;padding:18px;box-shadow:0 28px 80px rgba(75,31,52,.13)}.pink-toggle{display:grid;grid-template-columns:1fr 1fr;background:#fff0f5;border:1px solid var(--line);border-radius:20px;padding:6px;margin-bottom:16px}.customer-tab{border:0;border-radius:15px;background:transparent;min-height:44px;font-weight:950;color:var(--muted);cursor:pointer}.customer-tab.active{background:#fff;color:var(--pink);box-shadow:0 12px 26px rgba(75,31,52,.08)}.gate-form-v2{display:none}.gate-form-v2.active{display:grid;gap:13px}.form-title-row{display:flex;gap:12px;align-items:center;margin:6px 0 4px}.round-icon{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:#fff1f6;color:var(--pink)}.form-title-row h3{margin:0;font-size:16px}.form-title-row p{margin:2px 0 0;font-size:12px;color:var(--muted)}.floating-input{display:grid;gap:6px}.floating-input span{font-size:12px;color:var(--muted);font-weight:850}.floating-input input{width:100%;min-height:52px;border:1px solid var(--line);border-radius:17px;background:#fff;padding:0 15px;outline:none}.gate-error{min-height:18px;text-align:center;color:#c4122f;font-size:13px;margin:8px 0 0}.buyer-empty{grid-column:1/-1;padding:28px;border:1px dashed var(--line);border-radius:22px;background:#fff;color:var(--muted)}
@media(max-width:1100px){.buyer-app{grid-template-columns:76px minmax(0,1fr)}.buyer-ticket-panel{position:fixed;right:0;top:0;bottom:0;width:min(390px,92vw);transform:translateX(105%);transition:transform .2s ease;z-index:20}.cart-open .buyer-ticket-panel{transform:translateX(0)}.floating-cart{display:block}.mobile-close-cart{display:block}.buyer-product-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}
@media(max-width:760px){.buyer-app{display:block}.buyer-rail{display:none}.buyer-main{padding:18px 14px 90px}.buyer-topbar{grid-template-columns:1fr}.buyer-topbar h1,.buyer-gate-panel h1{font-size:34px}.buyer-gate-panel{display:block;min-height:auto}.gate-left{margin:14px 0 22px}.buyer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.buyer-img-wrap{height:132px}.buyer-product-card{padding:10px;border-radius:20px}.buyer-card-body h3{font-size:15px}.buyer-card-foot strong{font-size:17px}.buyer-card-foot span{font-size:10px}.quick-add{right:16px;top:16px}.buyer-section-head h2{font-size:23px}.buyer-categories{padding-bottom:14px}.buyer-chip{min-height:42px;padding:0 14px;border-radius:15px}.floating-cart{display:block}.buyer-ticket-panel{padding:24px 18px}.ticket-head-v2 h2{font-size:25px}}

/* === Clean dashboard header: remove duplicate-looking title area === */
.dash-top{height:66px!important;background:#fffdfb!important;box-shadow:0 1px 0 rgba(79,45,25,.08)}
.dash-top .eyebrow{margin:0;color:#ff6b59;letter-spacing:.18em;font-weight:900;font-size:11px}
.top-subtitle{margin:4px 0 0;color:var(--muted);font-size:13px;font-weight:700}
.panel-head{margin-top:2px!important}
.panel-head h2{font-size:34px!important;line-height:1!important}
.panel-head .muted{margin:.45rem 0 0;max-width:620px}

/* === Orders / Pickup cards === */
.order-card-clean,.pickup-card{border-radius:24px!important;padding:18px!important;background:linear-gradient(180deg,#fff,#fffaf6)!important}
.order-topline{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.order-status-row{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.order-items-mini{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}
.order-items-mini span{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800}
.pickup-status{background:#dff7e8!important;color:#0f6b3e!important}

/* === Mobile sidebar polish === */
@media(max-width:900px){
  .dash-top{position:sticky;top:0;z-index:18}
  .sidebar{box-shadow:0 -12px 34px rgba(52,30,18,.08)}
  .nav{font-size:13px;white-space:nowrap}
  .panel-head h2{font-size:28px!important}
}

/* =========================================================
   FINAL ONLINE SHOP FIX: no left rail + collapsible cart
   ========================================================= */
body.buyer-page{
  background:
    radial-gradient(circle at 12% 8%, rgba(255,105,150,.14), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(255,140,90,.10), transparent 28%),
    linear-gradient(135deg,#fff8fb 0%,#fffaf6 52%,#ffffff 100%) !important;
}
.buyer-app{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(360px,410px) !important;
  min-height:100vh !important;
  width:100% !important;
}
.buyer-rail{display:none!important}
.buyer-main{padding:36px clamp(18px,3.5vw,56px) 42px!important;}
.buyer-topbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(280px,390px)!important;
  gap:24px!important;
  align-items:start!important;
  margin-bottom:26px!important;
}
.buyer-topbar h1{
  max-width:780px;
  word-break:normal;
}
.buyer-search-wrap{
  min-height:58px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,96,140,.18)!important;
  box-shadow:0 18px 42px rgba(255,96,140,.08)!important;
}
.category-scroll-row{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  margin:0 0 20px;
}
.buyer-categories{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  padding:8px 4px 16px!important;
  -webkit-overflow-scrolling:touch;
  mask-image:linear-gradient(90deg,transparent 0,#000 4%,#000 96%,transparent 100%);
}
.buyer-chip{scroll-snap-align:start; flex:0 0 auto;}
.cat-scroll-btn{
  width:44px;height:44px;border-radius:16px;border:1px solid rgba(255,96,140,.20);
  background:#fff;color:#ff4f86;font-size:26px;font-weight:900;cursor:pointer;
  box-shadow:0 14px 32px rgba(75,31,52,.08);
}
.cat-scroll-btn:hover{transform:translateY(-1px)}
.buyer-product-grid{
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr))!important;
  gap:20px!important;
  padding-bottom:24px!important;
}
.buyer-product-card{
  border-radius:28px!important;
  padding:14px!important;
  background:linear-gradient(180deg,#fff,#fff9fb)!important;
  border:1px solid rgba(255,96,140,.16)!important;
}
.buyer-img-wrap{
  height:190px!important;
  border-radius:22px!important;
  background:linear-gradient(135deg,#fff1f7,#ffece5)!important;
}
.quick-add{
  z-index:3;
  box-shadow:0 12px 28px rgba(255,79,134,.22)!important;
}

/* Desktop cart: clean fixed right ticket */
.buyer-ticket-panel{
  position:sticky!important;
  right:auto!important;
  top:0!important;
  transform:none!important;
  width:auto!important;
  height:100vh!important;
  padding:34px 24px!important;
  border-left:1px solid rgba(255,96,140,.16)!important;
  background:rgba(255,255,255,.94)!important;
  backdrop-filter:blur(18px);
  box-shadow:-24px 0 70px rgba(75,31,52,.06)!important;
}
.cart-sheet-handle,.cart-collapsed-bar{display:none!important}
.cart-expanded-content{display:flex;flex-direction:column;min-height:100%;}
.ticket-items-v2{flex:1;min-height:0;}
.ticket-thumb{border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#fff1f7,#ffece5)}
.ticket-img{width:100%;height:100%;object-fit:cover;display:block}
.ticket-summary-v2{margin-top:auto;}
.floating-cart{display:none!important}

@media(max-width:1100px){
  .buyer-app{display:block!important;min-height:100vh!important;}
  .buyer-main{padding:24px 18px 118px!important;}
  .buyer-topbar{grid-template-columns:1fr!important;gap:16px!important;}
  .category-scroll-row{grid-template-columns:36px minmax(0,1fr) 36px;gap:8px;}
  .cat-scroll-btn{width:36px;height:40px;border-radius:14px;font-size:22px;}
  .buyer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
  .buyer-img-wrap{height:150px!important;}

  /* Mobile collapsible cart bottom sheet */
  .buyer-ticket-panel{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    top:auto!important;
    bottom:12px!important;
    width:auto!important;
    height:82px!important;
    min-height:82px!important;
    padding:0!important;
    border:1px solid rgba(255,96,140,.22)!important;
    border-radius:28px!important;
    overflow:hidden!important;
    z-index:80!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:0 24px 70px rgba(75,31,52,.18)!important;
    transform:none!important;
    transition:height .24s ease,border-radius .24s ease,box-shadow .24s ease!important;
  }
  body.cart-open .buyer-ticket-panel,
  .buyer-ticket-panel.expanded{
    height:min(78vh,680px)!important;
    border-radius:28px!important;
  }
  .cart-sheet-handle{
    display:block!important;
    width:54px;height:5px;border:0;border-radius:999px;background:#f2bed0;
    margin:9px auto 0;cursor:pointer;padding:0;
  }
  .cart-collapsed-bar{
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:12px 18px 16px;
    cursor:pointer;
  }
  .cart-collapsed-bar strong{display:block;font-size:18px;color:#191923;}
  .collapsed-total{display:grid;gap:3px;text-align:right;}
  .collapsed-total span{font-weight:950;font-size:18px;color:#ff4f86;}
  .collapsed-total b{font-size:12px;color:#777;}
  .cart-expanded-content{display:none!important;height:calc(100% - 16px);padding:8px 18px 18px;}
  body.cart-open .cart-expanded-content,
  .buyer-ticket-panel.expanded .cart-expanded-content{display:flex!important;}
  body.cart-open .cart-collapsed-bar,
  .buyer-ticket-panel.expanded .cart-collapsed-bar{display:none!important;}
  .ticket-head-v2{padding-top:6px;}
  .ticket-items-v2{overflow:auto;max-height:none;}
  .buyer-ticket-item{grid-template-columns:62px minmax(0,1fr) auto!important;}
  .ticket-summary-v2{padding-top:12px;border-top:1px solid rgba(255,79,134,.14);}
  .mobile-close-cart{display:block!important;}
  .floating-cart{display:none!important;}
}
@media(max-width:520px){
  .buyer-main{padding:18px 12px 112px!important;}
  .buyer-topbar h1,.buyer-gate-panel h1{font-size:32px!important;line-height:1.02!important;}
  .buyer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .buyer-product-card{padding:9px!important;border-radius:22px!important;}
  .buyer-img-wrap{height:128px!important;border-radius:18px!important;}
  .buyer-card-body h3{font-size:15px!important;}
  .buyer-card-foot{display:grid!important;align-items:start!important;}
  .buyer-card-foot strong{font-size:18px!important;}
  .buyer-search-wrap{min-height:52px!important;border-radius:18px!important;}
  .buyer-chip{min-height:42px!important;padding:0 14px!important;border-radius:15px!important;}
  .category-scroll-row{margin-left:-2px;margin-right:-2px;}
}


/* =========================================================
   ONLINE SHOP ONLY: cart icon beside search + collapsible drawer
   Does not affect dashboard/admin POS pages.
   ========================================================= */
body.buyer-page.customer-gate-active .buyer-ticket-panel,
body.buyer-page.customer-gate-active .buyer-cart-icon-btn,
body.buyer-page.customer-gate-active .floating-cart{
  display:none!important;
}

body.buyer-page .buyer-app{
  display:block!important;
  min-height:100vh!important;
  width:100%!important;
}

body.buyer-page .buyer-main{
  width:100%!important;
  max-width:1440px!important;
  margin:0 auto!important;
}

body.buyer-page .buyer-topbar{
  grid-template-columns:minmax(260px,1fr) minmax(320px,520px)!important;
}

body.buyer-page .buyer-search-cart-row{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
}

body.buyer-page .buyer-search-cart-row .buyer-search-wrap{
  flex:1 1 auto!important;
  min-width:0!important;
}

body.buyer-page .buyer-cart-icon-btn{
  flex:0 0 auto!important;
  height:58px!important;
  min-width:76px!important;
  padding:0 18px!important;
  border-radius:22px!important;
  border:1px solid rgba(255,96,140,.22)!important;
  background:#fff!important;
  color:#191923!important;
  font-weight:950!important;
  cursor:pointer!important;
  box-shadow:0 18px 42px rgba(255,96,140,.10)!important;
}

body.buyer-page .buyer-cart-icon-btn span{
  display:inline-grid!important;
  place-items:center!important;
  min-width:24px!important;
  height:24px!important;
  border-radius:999px!important;
  margin-left:4px!important;
  background:linear-gradient(135deg,var(--pink),var(--orange))!important;
  color:#fff!important;
  font-size:12px!important;
}

body.buyer-page .buyer-ticket-panel{
  position:fixed!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:min(420px,92vw)!important;
  height:100vh!important;
  min-height:100vh!important;
  padding:34px 24px!important;
  border-radius:0!important;
  border-left:1px solid rgba(255,96,140,.16)!important;
  background:rgba(255,255,255,.98)!important;
  backdrop-filter:blur(18px)!important;
  box-shadow:-30px 0 80px rgba(75,31,52,.16)!important;
  z-index:90!important;
  transform:translateX(110%)!important;
  transition:transform .24s ease!important;
  overflow:auto!important;
}

body.buyer-page.cart-open .buyer-ticket-panel,
body.buyer-page .buyer-ticket-panel.expanded{
  transform:translateX(0)!important;
}

body.buyer-page .cart-sheet-handle,
body.buyer-page .cart-collapsed-bar{
  display:none!important;
}

body.buyer-page .cart-expanded-content{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  height:auto!important;
  padding:0!important;
}

body.buyer-page .mobile-close-cart{
  display:block!important;
}

body.buyer-page .floating-cart{
  display:none!important;
}

body.buyer-page .category-scroll-row{
  max-width:100%!important;
  overflow:hidden!important;
}

body.buyer-page .buyer-categories{
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  scrollbar-width:thin!important;
}

@media(max-width:760px){
  body.buyer-page .buyer-topbar{
    grid-template-columns:1fr!important;
  }
  body.buyer-page .buyer-search-cart-row{
    gap:8px!important;
  }
  body.buyer-page .buyer-cart-icon-btn{
    height:52px!important;
    min-width:66px!important;
    border-radius:18px!important;
    padding:0 12px!important;
  }
  body.buyer-page .buyer-ticket-panel{
    top:auto!important;
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    width:auto!important;
    height:min(78vh,680px)!important;
    min-height:auto!important;
    border-radius:28px!important;
    transform:translateY(calc(100% + 24px))!important;
    border:1px solid rgba(255,96,140,.22)!important;
    box-shadow:0 24px 70px rgba(75,31,52,.20)!important;
    padding:22px 18px!important;
  }
  body.buyer-page.cart-open .buyer-ticket-panel,
  body.buyer-page .buyer-ticket-panel.expanded{
    transform:translateY(0)!important;
  }
}

/* POS payment method selector */
.payment-field {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--muted, #776f77);
}
.payment-field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.payment-field select {
  width: 100%;
  border: 1px solid var(--line, #f2cfc7);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  font-weight: 900;
  outline: none;
}
.payment-field select:focus {
  border-color: var(--primary, #ff5b6e);
  box-shadow: 0 0 0 4px rgba(255, 91, 110, .12);
}


/* =========================================================
   Online shop: full-screen product photo viewer
   ========================================================= */
.quick-view{
  position:absolute;
  right:22px;
  top:66px;
  z-index:4;
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  color:#ff4f86;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size:16px;
}
.quick-view:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(0,0,0,.16)}
.image-viewer{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(15,10,12,.82);
  backdrop-filter:blur(10px);
  display:grid;
  place-items:center;
  padding:24px;
}
.image-viewer.hidden{display:none!important}
.image-viewer-open{overflow:hidden!important}
.image-viewer-card{
  width:min(980px,96vw);
  max-height:92vh;
  display:grid;
  gap:12px;
  justify-items:center;
}
.image-viewer-card img{
  max-width:100%;
  max-height:78vh;
  object-fit:contain;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.38);
}
.image-viewer-caption{
  width:min(760px,92vw);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.6);
  border-radius:18px;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
}
.image-viewer-caption strong{font-size:16px;color:#1d1d25}
.image-viewer-caption span{font-size:13px;color:#7b7078;text-align:right}
.image-viewer-close{
  position:fixed;
  right:22px;
  top:18px;
  width:48px;
  height:48px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 16px 42px rgba(0,0,0,.25);
  z-index:100000;
}
@media(max-width:760px){
  .quick-view{right:16px;top:60px;width:34px;height:34px;border-radius:12px;font-size:14px}
  .image-viewer{padding:16px}
  .image-viewer-card img{max-height:72vh;border-radius:18px}
  .image-viewer-caption{display:block;text-align:left;padding:12px 14px}
  .image-viewer-caption span{display:block;text-align:left;margin-top:4px}
  .image-viewer-close{right:14px;top:12px;width:44px;height:44px}
}

/* =========================================================
   FINAL ONLINE SHOP RESPONSIVE FIX
   - sticky/frozen search + category area
   - cart hidden until cart icon is clicked
   - orientation-based layout instead of width-only behavior
   - prevent page horizontal scrollbar
   ========================================================= */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}
body.buyer-page,
body.buyer-page * {
  box-sizing: border-box;
}
body.buyer-page .buyer-app,
body.buyer-page .buyer-main,
body.buyer-page .buyer-shop,
body.buyer-page .buyer-topbar,
body.buyer-page .category-scroll-row,
body.buyer-page .buyer-product-grid {
  max-width: 100% !important;
}
body.buyer-page .buyer-main {
  overflow-x: hidden !important;
}
body.buyer-page .buyer-shop {
  min-width: 0 !important;
}

/* Freeze the buyer header/search and category chips while browsing */
body.buyer-page:not(.customer-gate-active) .buyer-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  background: rgba(255, 250, 252, .94) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255, 96, 140, .12) !important;
}
body.buyer-page:not(.customer-gate-active) .category-scroll-row {
  position: sticky !important;
  top: var(--buyer-sticky-offset, 116px) !important;
  z-index: 39 !important;
  background: rgba(255, 250, 252, .96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  padding: 10px 0 8px !important;
  border-bottom: 1px solid rgba(255, 96, 140, .10) !important;
}
body.buyer-page .category-scroll-row {
  min-width: 0 !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
}
body.buyer-page .buyer-categories {
  min-width: 0 !important;
  max-width: 100% !important;
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
body.buyer-page .buyer-chip {
  flex: 0 0 auto !important;
}

/* Cart is fully hidden unless body has .cart-open */
body.buyer-page .buyer-ticket-panel {
  display: flex !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body.buyer-page.cart-open .buyer-ticket-panel {
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
}
body.buyer-page.customer-gate-active .buyer-ticket-panel,
body.buyer-page.customer-gate-active .buyer-cart-icon-btn {
  display: none !important;
}
body.buyer-page.cart-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(24, 18, 22, .22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
body.buyer-page.cart-open .buyer-ticket-panel {
  z-index: 90 !important;
}

/* Landscape = PC/iPad-style shopping layout */
@media (orientation: landscape) {
  body.buyer-page {
    --buyer-sticky-offset: 104px;
  }
  body.buyer-page .buyer-main {
    padding: 28px clamp(18px, 3vw, 46px) 36px !important;
  }
  body.buyer-page .buyer-topbar {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 560px) !important;
    align-items: start !important;
    gap: 24px !important;
  }
  body.buyer-page .buyer-topbar h1 {
    font-size: clamp(34px, 4.2vw, 58px) !important;
    line-height: .95 !important;
  }
  body.buyer-page .buyer-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 18px !important;
  }
  body.buyer-page .buyer-ticket-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(430px, 92vw) !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 34px 24px !important;
    border-radius: 0 !important;
    transform: translateX(110%) !important;
    transition: transform .24s ease, opacity .18s ease !important;
  }
  body.buyer-page.cart-open .buyer-ticket-panel {
    transform: translateX(0) !important;
  }
}

/* Portrait = phone/mobile mode */
@media (orientation: portrait) {
  body.buyer-page {
    --buyer-sticky-offset: 154px;
  }
  body.buyer-page .buyer-main {
    width: 100% !important;
    padding: 16px 12px 32px !important;
  }
  body.buyer-page .buyer-topbar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body.buyer-page .buyer-topbar h1 {
    font-size: clamp(30px, 10vw, 42px) !important;
    line-height: .98 !important;
  }
  body.buyer-page .buyer-search-cart-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 66px !important;
    gap: 8px !important;
  }
  body.buyer-page .buyer-cart-icon-btn {
    width: 66px !important;
    min-width: 66px !important;
    height: 52px !important;
    padding: 0 8px !important;
    border-radius: 18px !important;
  }
  body.buyer-page .category-scroll-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 6px !important;
  }
  body.buyer-page .cat-scroll-btn {
    width: 38px !important;
    height: 40px !important;
    border-radius: 14px !important;
  }
  body.buyer-page .buyer-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  body.buyer-page .buyer-img-wrap {
    height: clamp(118px, 34vw, 160px) !important;
  }
  body.buyer-page .buyer-product-card {
    padding: 9px !important;
  }
  body.buyer-page .buyer-ticket-panel {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    border-radius: 0 !important;
    padding: 22px 18px !important;
    transform: translateX(110%) !important;
    transition: transform .24s ease, opacity .18s ease !important;
    overflow-y: auto !important;
  }
  body.buyer-page.cart-open .buyer-ticket-panel {
    transform: translateX(0) !important;
  }
  body.buyer-page .mobile-close-cart {
    display: block !important;
  }
}

/* Extra-short landscape phones: keep it usable without horizontal scroll */
@media (orientation: landscape) and (max-height: 520px) {
  body.buyer-page { --buyer-sticky-offset: 88px; }
  body.buyer-page .buyer-main { padding: 14px 18px 22px !important; }
  body.buyer-page .buyer-topbar h1 { font-size: 30px !important; }
  body.buyer-page .buyer-topbar { grid-template-columns: minmax(220px, .85fr) minmax(260px, 1fr) !important; gap: 14px !important; }
  body.buyer-page .buyer-product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 12px !important; }
  body.buyer-page .buyer-img-wrap { height: 115px !important; }
}

/* =========================================================
   FINAL FIX: Buyer cart as a real modal (stable, no freezing)
   - Cart is completely hidden until cart icon is clicked
   - No bottom sheet / no half-visible cart
   - Works in portrait and landscape
   ========================================================= */
body.buyer-page {
  overflow-x: hidden !important;
}

body.buyer-page.customer-gate-active .cart-modal-backdrop,
body.buyer-page.customer-gate-active .buyer-ticket-panel,
body.buyer-page.customer-gate-active .buyer-cart-icon-btn {
  display: none !important;
}

body.buyer-page .cart-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 8998 !important;
  background: rgba(22, 18, 22, .38) !important;
  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .18s ease, visibility .18s ease !important;
}

body.buyer-page.cart-open .cart-modal-backdrop {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Kill older pseudo backdrop so clicks do not freeze the page */
body.buyer-page.cart-open::before {
  content: none !important;
  display: none !important;
}

body.buyer-page .buyer-ticket-panel {
  position: fixed !important;
  z-index: 8999 !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(520px, calc(100vw - 28px)) !important;
  height: auto !important;
  max-height: min(82dvh, 760px) !important;
  min-height: 0 !important;
  padding: 24px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(255, 96, 140, .22) !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 30px 90px rgba(50, 25, 35, .26) !important;
  transform: translate(-50%, -46%) scale(.96) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
  transition: transform .2s ease, opacity .2s ease, visibility .2s ease !important;
}

body.buyer-page.cart-open .buyer-ticket-panel {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.buyer-page.cart-modal-open {
  overflow: hidden !important;
}

body.buyer-page .cart-expanded-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(min(82dvh, 760px) - 48px) !important;
  padding: 0 !important;
}

body.buyer-page .cart-sheet-handle,
body.buyer-page .cart-collapsed-bar {
  display: none !important;
}

body.buyer-page .ticket-head-v2 {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
}

body.buyer-page .ticket-head-v2 h2 {
  font-size: clamp(26px, 4vw, 36px) !important;
  line-height: 1 !important;
  margin: 0 !important;
}

body.buyer-page .ticket-items-v2 {
  flex: 1 1 auto !important;
  min-height: 150px !important;
  max-height: 44dvh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
}

body.buyer-page .buyer-ticket-item {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255, 96, 140, .12) !important;
}

body.buyer-page .ticket-thumb {
  width: 68px !important;
  height: 68px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #ffe8f1, #ffe6de) !important;
}

body.buyer-page .ticket-img,
body.buyer-page .ticket-thumb .buyer-no-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.buyer-page .ticket-info {
  min-width: 0 !important;
}

body.buyer-page .ticket-info strong,
body.buyer-page .ticket-info p {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.buyer-page .ticket-qty {
  display: grid !important;
  grid-template-columns: 34px 28px 34px !important;
  align-items: center !important;
  gap: 6px !important;
}

body.buyer-page .ticket-qty button {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

body.buyer-page .ticket-summary-v2 {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 96, 140, .16) !important;
}

body.buyer-page .mobile-close-cart {
  display: block !important;
}

@media (max-width: 520px), (orientation: portrait) {
  body.buyer-page .buyer-ticket-panel {
    width: calc(100vw - 20px) !important;
    max-height: 86dvh !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }
  body.buyer-page .cart-expanded-content {
    max-height: calc(86dvh - 36px) !important;
  }
  body.buyer-page .ticket-items-v2 {
    max-height: 45dvh !important;
  }
  body.buyer-page .buyer-ticket-item {
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    gap: 10px !important;
  }
  body.buyer-page .ticket-thumb {
    width: 58px !important;
    height: 58px !important;
  }
}

/* =====================================================
   FINAL STABLE BUYER CART MODAL OVERRIDE
   Fixes frozen/blurred cart by using explicit z-index,
   pointer-events, and a centered modal box.
   ===================================================== */
body.buyer-page::before,
body.buyer-page.cart-open::before,
body.buyer-page.cart-modal-open::before{
  content:none !important;
  display:none !important;
}

body.buyer-page.cart-modal-open{
  overflow:hidden !important;
}

body.buyer-page.customer-gate-active #cartBackdrop,
body.buyer-page.customer-gate-active #cartDrawer,
body.buyer-page.customer-gate-active #openCartBtn{
  display:none !important;
}

body.buyer-page #cartBackdrop{
  display:none !important;
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  background:rgba(20,18,20,.42) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  z-index:9000 !important;
  pointer-events:auto !important;
}

body.buyer-page.cart-open #cartBackdrop{
  display:block !important;
}

body.buyer-page #cartDrawer{
  display:none !important;
  position:fixed !important;
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  width:min(460px, calc(100vw - 28px)) !important;
  max-width:460px !important;
  height:auto !important;
  max-height:min(82dvh, 720px) !important;
  min-height:0 !important;
  background:#fff !important;
  border:1px solid rgba(255,122,166,.20) !important;
  border-radius:28px !important;
  box-shadow:0 34px 90px rgba(35,20,28,.28) !important;
  padding:22px !important;
  overflow:auto !important;
  z-index:9001 !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

body.buyer-page.cart-open #cartDrawer{
  display:block !important;
}

body.buyer-page #cartDrawer .cart-expanded-content{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  min-height:0 !important;
  height:auto !important;
  padding:0 !important;
}

body.buyer-page #cartDrawer .cart-collapsed-bar,
body.buyer-page #cartDrawer .cart-sheet-handle{
  display:none !important;
}

body.buyer-page #cartDrawer .ticket-items-v2{
  max-height:40dvh !important;
  overflow:auto !important;
  padding-right:4px !important;
}

body.buyer-page #cartDrawer .ticket-summary-v2{
  position:static !important;
  margin-top:6px !important;
  padding-top:14px !important;
  border-top:1px solid rgba(255,122,166,.18) !important;
  background:#fff !important;
}

body.buyer-page #cartDrawer .mobile-close-cart{
  display:block !important;
  width:100% !important;
  min-height:46px !important;
  border:1px solid rgba(255,122,166,.26) !important;
  border-radius:16px !important;
  background:#fff !important;
  color:#7b6f76 !important;
  font-weight:900 !important;
  cursor:pointer !important;
  margin-top:10px !important;
}

body.buyer-page #cartDrawer .ticket-head-v2{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:14px !important;
}

body.buyer-page #cartDrawer .ticket-clear{
  flex:0 0 auto !important;
}

@media (orientation: landscape) and (min-width: 900px){
  body.buyer-page #cartDrawer{
    width:min(480px, 38vw) !important;
    max-height:78dvh !important;
  }
}

@media (orientation: portrait){
  body.buyer-page #cartDrawer{
    width:calc(100vw - 24px) !important;
    max-height:82dvh !important;
    border-radius:26px !important;
    padding:18px !important;
  }
}

/* =====================================================
   FINAL PATCH: lock page scroll while buyer cart modal is open
   ===================================================== */
html.cart-modal-open,
body.buyer-page.cart-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.buyer-page.cart-modal-open {
  touch-action: none !important;
}

body.buyer-page.cart-modal-open .buyer-ticket-panel,
body.buyer-page.cart-modal-open .buyer-ticket-panel * {
  touch-action: auto !important;
}

body.buyer-page .cart-modal-backdrop,
body.buyer-page #cartBackdrop {
  overscroll-behavior: none !important;
  touch-action: none !important;
}

body.buyer-page .buyer-ticket-panel {
  overscroll-behavior: contain !important;
}

body.buyer-page .cart-items,
body.buyer-page #cartItems,
body.buyer-page .cart-expanded-content {
  overscroll-behavior: contain !important;
}

/* =====================================================
   ABSOLUTE FINAL PATCH: Buyer gate + cart modal centering
   - Centers the cart modal perfectly on desktop/mobile
   - Removes ugly inner double scrollbars where possible
   - Keeps modal content usable on small phones
   - Centers the customer gate on portrait mobile with no dead bottom gap
   ===================================================== */
body.buyer-page {
  min-height: 100dvh !important;
  overflow-x: hidden !important;
}

body.buyer-page.customer-gate-active .buyer-app {
  min-height: 100dvh !important;
}

body.buyer-page.customer-gate-active .buyer-main {
  min-height: 100dvh !important;
  padding: clamp(14px, 4vw, 36px) !important;
  display: grid !important;
  place-items: center !important;
}

body.buyer-page.customer-gate-active .buyer-gate-panel {
  width: min(1080px, 100%) !important;
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(260px, .9fr) minmax(320px, 520px) !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(20px, 5vw, 54px) !important;
  margin: 0 auto !important;
}

body.buyer-page.customer-gate-active .gate-card-v2 {
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
}

body.buyer-page #cartBackdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 9998 !important;
  background: rgba(16, 14, 18, .46) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  display: none !important;
  pointer-events: auto !important;
}

body.buyer-page.cart-open #cartBackdrop {
  display: block !important;
}

body.buyer-page #cartDrawer {
  display: none !important;
  position: fixed !important;
  z-index: 9999 !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  width: min(500px, calc(100vw - 24px)) !important;
  max-width: 500px !important;
  height: auto !important;
  max-height: calc(100dvh - 32px) !important;
  min-height: 0 !important;
  padding: 22px !important;
  border-radius: 28px !important;
  background: #fff !important;
  border: 1px solid rgba(255, 122, 166, .24) !important;
  box-shadow: 0 30px 90px rgba(34, 20, 30, .32) !important;
  overflow: hidden !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.buyer-page.cart-open #cartDrawer {
  display: block !important;
}

body.buyer-page #cartDrawer .cart-expanded-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  height: auto !important;
  max-height: calc(100dvh - 76px) !important;
  overflow: hidden !important;
}

body.buyer-page #cartDrawer .ticket-head-v2 {
  flex: 0 0 auto !important;
}

body.buyer-page #cartDrawer #cartItems,
body.buyer-page #cartDrawer .ticket-items-v2 {
  flex: 1 1 auto !important;
  min-height: 120px !important;
  max-height: min(42dvh, 340px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
}

body.buyer-page #cartDrawer .ticket-summary-v2 {
  flex: 0 0 auto !important;
  position: static !important;
  background: #fff !important;
  padding-top: 14px !important;
  margin-top: 4px !important;
  border-top: 1px solid rgba(255, 122, 166, .18) !important;
}

body.buyer-page #cartDrawer .mobile-close-cart {
  display: block !important;
  width: 100% !important;
}

html.cart-modal-open,
body.buyer-page.cart-modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

body.buyer-page.cart-modal-open {
  overscroll-behavior: none !important;
}

@media (orientation: portrait) {
  body.buyer-page.customer-gate-active .buyer-main {
    padding: 16px !important;
    align-items: center !important;
  }

  body.buyer-page.customer-gate-active .buyer-gate-panel {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  body.buyer-page.customer-gate-active .gate-left {
    max-width: 520px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  body.buyer-page.customer-gate-active .gate-left h1 {
    font-size: clamp(30px, 10vw, 46px) !important;
    line-height: .96 !important;
    margin: 6px 0 8px !important;
  }

  body.buyer-page.customer-gate-active .gate-card-v2 {
    border-radius: 26px !important;
    padding: 14px !important;
  }

  body.buyer-page #cartDrawer {
    width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 28px) !important;
    padding: 18px !important;
    border-radius: 26px !important;
  }

  body.buyer-page #cartDrawer .cart-expanded-content {
    max-height: calc(100dvh - 64px) !important;
  }

  body.buyer-page #cartDrawer #cartItems,
  body.buyer-page #cartDrawer .ticket-items-v2 {
    max-height: min(38dvh, 310px) !important;
  }

  body.buyer-page #cartDrawer .ticket-head-v2 h2 {
    font-size: 30px !important;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.buyer-page #cartDrawer {
    max-height: calc(100dvh - 16px) !important;
    width: min(560px, calc(100vw - 40px)) !important;
    padding: 16px !important;
    border-radius: 22px !important;
  }

  body.buyer-page #cartDrawer .cart-expanded-content {
    max-height: calc(100dvh - 48px) !important;
  }

  body.buyer-page #cartDrawer #cartItems,
  body.buyer-page #cartDrawer .ticket-items-v2 {
    max-height: 28dvh !important;
  }
}

/* =====================================================
   FINAL CART MODAL FIT PATCH
   Keeps the buyer cart centered and fully visible.
   Removes the tall empty box / bottom-cut problem.
   ===================================================== */
html.cart-modal-open,
body.buyer-page.cart-modal-open{
  overflow:hidden !important;
  width:100% !important;
  max-width:100% !important;
}

body.buyer-page.cart-modal-open .buyer-app{
  overflow:hidden !important;
  max-height:100dvh !important;
}

body.buyer-page #cartBackdrop{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100dvh !important;
  z-index:99990 !important;
  background:rgba(15,14,18,.48) !important;
  backdrop-filter:blur(5px) !important;
  -webkit-backdrop-filter:blur(5px) !important;
  display:none !important;
}

body.buyer-page.cart-open #cartBackdrop{
  display:block !important;
}

body.buyer-page #cartDrawer{
  position:fixed !important;
  z-index:99999 !important;
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  display:none !important;
  width:min(500px,calc(100vw - 28px)) !important;
  max-width:500px !important;
  height:auto !important;
  max-height:min(640px,calc(100dvh - 34px)) !important;
  min-height:0 !important;
  padding:20px !important;
  border-radius:28px !important;
  background:#fff !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
  box-shadow:0 30px 90px rgba(28,20,24,.32) !important;
}

body.buyer-page.cart-open #cartDrawer{
  display:flex !important;
  flex-direction:column !important;
}

body.buyer-page #cartDrawer .cart-collapsed-bar,
body.buyer-page #cartDrawer .cart-sheet-handle{
  display:none !important;
}

body.buyer-page #cartDrawer .cart-expanded-content{
  display:grid !important;
  grid-template-rows:auto minmax(96px,1fr) auto !important;
  gap:14px !important;
  width:100% !important;
  max-height:calc(min(640px,100dvh - 34px) - 40px) !important;
  min-height:0 !important;
  overflow:hidden !important;
}

body.buyer-page #cartDrawer .ticket-head-v2{
  min-height:0 !important;
  margin:0 !important;
}

body.buyer-page #cartDrawer #cartItems,
body.buyer-page #cartDrawer .ticket-items-v2{
  min-height:96px !important;
  max-height:none !important;
  height:auto !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding-right:4px !important;
  border-radius:18px !important;
}

body.buyer-page #cartDrawer #cartItems:has(.empty-ticket),
body.buyer-page #cartDrawer .ticket-items-v2:has(.empty-ticket){
  min-height:120px !important;
  max-height:160px !important;
}

body.buyer-page #cartDrawer .empty-ticket{
  min-height:118px !important;
  height:auto !important;
  display:grid !important;
  place-items:center !important;
  padding:18px !important;
}

body.buyer-page #cartDrawer .ticket-summary-v2{
  margin:0 !important;
  padding-top:12px !important;
  background:#fff !important;
  position:static !important;
  min-height:0 !important;
}

body.buyer-page #cartDrawer .buyer-primary,
body.buyer-page #cartDrawer .mobile-close-cart{
  min-height:50px !important;
}

@media (max-width:640px), (orientation:portrait){
  body.buyer-page #cartDrawer{
    width:calc(100vw - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
    padding:16px !important;
    border-radius:24px !important;
  }
  body.buyer-page #cartDrawer .cart-expanded-content{
    max-height:calc(100dvh - 56px) !important;
    gap:12px !important;
  }
  body.buyer-page #cartDrawer .ticket-head-v2 h2{
    font-size:clamp(28px,8vw,36px) !important;
  }
  body.buyer-page #cartDrawer #cartItems,
  body.buyer-page #cartDrawer .ticket-items-v2{
    min-height:90px !important;
  }
  body.buyer-page #cartDrawer #cartItems:has(.empty-ticket),
  body.buyer-page #cartDrawer .ticket-items-v2:has(.empty-ticket){
    max-height:130px !important;
  }
}

@media (orientation:landscape) and (max-height:560px){
  body.buyer-page #cartDrawer{
    width:min(560px,calc(100vw - 32px)) !important;
    max-height:calc(100dvh - 18px) !important;
    padding:14px !important;
    border-radius:22px !important;
  }
  body.buyer-page #cartDrawer .cart-expanded-content{
    max-height:calc(100dvh - 46px) !important;
    grid-template-rows:auto minmax(70px,1fr) auto !important;
    gap:10px !important;
  }
  body.buyer-page #cartDrawer .ticket-head-v2 h2{font-size:28px !important;}
  body.buyer-page #cartDrawer .buyer-primary,
  body.buyer-page #cartDrawer .mobile-close-cart{min-height:44px !important;}
}

/* =========================================================
   ADMIN POS FINAL LAYOUT FIX
   - online-shop-style product cards
   - square product images
   - scrollable ticket items only
   - sale date + payment side-by-side
   - no horizontal page overflow
========================================================= */
.dash-body,
.pos-app,
.dash-main {
  max-width: 100vw;
  overflow-x: hidden !important;
}

.pos-layout.active {
  grid-template-columns: minmax(0, 1fr) 430px !important;
  height: calc(100vh - 72px) !important;
  overflow: hidden !important;
}

.pos-products {
  min-width: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 18px 18px 28px !important;
}

.pos-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 12px !important;
}

#posSearch {
  width: 100% !important;
  min-width: 0 !important;
}

#posCategories {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  max-width: 100% !important;
  padding: 8px 0 14px !important;
  margin-bottom: 12px !important;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

#posCategories .chip {
  flex: 0 0 auto !important;
  min-width: max-content !important;
}

.pos-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

.pos-card {
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255,255,255,.96) !important;
  border: 1px solid rgba(255, 171, 145, .48) !important;
  border-radius: 24px !important;
  padding: 12px !important;
  box-shadow: 0 16px 34px rgba(85, 45, 25, .08) !important;
  overflow: hidden !important;
}

.pos-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 50px rgba(85, 45, 25, .13) !important;
}

.pos-thumb-wrap {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 20px !important;
  background: #fff0f3 !important;
  overflow: hidden !important;
  position: relative !important;
}

.pos-thumb,
.pos-thumb-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.pos-card-body {
  display: block !important;
  padding: 12px 2px 2px !important;
  min-width: 0 !important;
}

.pos-card-body .eyebrow {
  margin: 0 0 6px !important;
  color: #ff5b79 !important;
  font-size: 11px !important;
  letter-spacing: .14em !important;
}

.pos-card-body h3 {
  margin: 0 0 8px !important;
  font-size: 18px !important;
  line-height: 1.12 !important;
  white-space: normal !important;
  overflow: visible !important;
}

.pos-card-body .muted {
  min-height: 38px !important;
  margin: 0 0 10px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.pos-card-body .total-row {
  margin: 0 !important;
}

.pos-card .price {
  font-size: 19px !important;
  font-weight: 1000 !important;
}

.ticket {
  height: calc(100vh - 72px) !important;
  max-height: calc(100vh - 72px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.ticket-head,
#ticketCustomer {
  flex: 0 0 auto !important;
}

.ticket-items {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px 4px 14px 0 !important;
  max-height: none !important;
}

.ticket-footer {
  flex: 0 0 auto !important;
  background: #fffaf5 !important;
  border-top: 1px solid var(--line) !important;
  padding-top: 14px !important;
}

.ticket-payment-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.payment-field {
  margin: 0 !important;
}

.payment-field input,
.payment-field select {
  width: 100% !important;
  min-width: 0 !important;
  height: 54px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}

#ticketSubtotal,
#ticketSubtotalHide {
  display: none !important;
}

.ticket-footer .total-row:not(.big) {
  display: none !important;
}

.ticket-footer .total-row.big {
  margin: 8px 0 12px !important;
}

#saveTicketBtn {
  width: 100% !important;
  min-height: 56px !important;
  position: relative !important;
  z-index: 1 !important;
}

.ticket-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

.ticket-item > div:first-child {
  min-width: 0 !important;
}

.qty-mini {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.qty-mini button {
  min-width: 36px !important;
  height: 36px !important;
}

@media (max-width: 1100px) {
  .pos-layout.active {
    grid-template-columns: minmax(0, 1fr) 380px !important;
  }
  .pos-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .pos-layout.active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
  }
  .pos-search {
    grid-template-columns: 1fr !important;
  }
  .pos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .ticket {
    height: auto !important;
    max-height: 52vh !important;
    overflow: hidden !important;
  }
  .ticket-payment-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Premium add-to-cart confirmation: centered popup, no page scroll reset, no full-page overlay */
.toast{
  position:fixed!important;
  left:50%!important;
  top:50%!important;
  transform:translate(-50%,-50%)!important;
  z-index:50000!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:min(360px,86vw)!important;
  max-width:520px!important;
  min-height:190px!important;
  background:rgba(28,22,28,.88)!important;
  color:#fff!important;
  border-radius:28px!important;
  padding:30px 28px!important;
  box-shadow:0 28px 80px rgba(0,0,0,.28)!important;
  text-align:center!important;
  backdrop-filter:blur(6px)!important;
  pointer-events:none!important;
}
.toast.hidden{display:none!important;}
.toast strong{
  display:block;
  font-size:clamp(17px,2vw,24px);
  font-weight:900;
  line-height:1.25;
  max-width:420px;
}
.toast-check{
  width:82px;
  height:82px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ff4f86,#ff7550);
  color:#fff;
  font-size:52px;
  font-weight:900;
  margin:0 auto 18px;
  box-shadow:0 22px 52px rgba(255,79,134,.35);
  animation:toastPop .18s ease-out both;
}
@keyframes toastPop{from{transform:scale(.72);opacity:.35}to{transform:scale(1);opacity:1}}

/* Product cards should not feel clickable except for explicit buttons */
.buyer-product-card{cursor:default!important;}
.buyer-product-card .quick-add,
.buyer-product-card .quick-view{cursor:pointer!important;}

/* Improved sub-renter overview + payout tracking */
.summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  width:100%;
}
.summary-card.subrenter-card,
.sub-overview-card{
  cursor:pointer;
  background:linear-gradient(180deg,#fff,#fff8f5);
  border:1px solid var(--line);
  border-radius:24px;
  padding:18px;
  box-shadow:0 14px 40px rgba(75,42,24,.08);
}
.summary-card.subrenter-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}
.sub-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.sub-card-head h3{margin:0;font-size:20px;line-height:1.1;}
.payout-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,104,77,.25);
  background:linear-gradient(135deg,#fff,#fff0e8);
  color:var(--accent);
  font-weight:1000;
  box-shadow:0 8px 22px rgba(255,104,77,.12);
}
.payout-icon:hover{background:var(--accent);color:#fff;}
.sub-money-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.sub-money-grid > div{
  background:#fff;
  border:1px solid rgba(234,216,204,.9);
  border-radius:18px;
  padding:12px;
}
.sub-money-grid span{
  display:block;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:4px;
}
.sub-money-grid b{font-size:18px;}
.due-amount{color:var(--accent2);}
.wide-summary-card{grid-column:1/-1;}
.modal-topline{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:16px;
}
.modal-metrics{margin:14px 0 20px;}
.payout-form{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.payout-form label{
  font-weight:900;
  color:var(--muted);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
@media(max-width:700px){
  .sub-money-grid{grid-template-columns:1fr;}
  .modal-topline{display:block;}
  .modal-topline .secondary{width:100%;margin-top:12px;}
}

/* Services + mode toggle upgrades */
.pos-mode-toggle,
.buyer-mode-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 4px;
}
.mode-btn,
.buyer-mode {
  border: 1px solid rgba(226, 82, 124, .18);
  background: rgba(255,255,255,.9);
  color: #8f2450;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.mode-btn.active,
.buyer-mode.active {
  background: linear-gradient(135deg, #ff6b9a, #ff9fba);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(255, 107, 154, .25);
}
.buyer-section-head {
  gap: 12px;
  flex-wrap: wrap;
}
.service-pos-card,
.buyer-service-card {
  border: 1px solid rgba(255, 107, 154, .16);
}
.parcel-fee-card {
  max-width: 720px;
  width: 100%;
}
.parcel-fee-card textarea,
.product-form textarea {
  min-height: 88px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, .12);
  padding: 12px 14px;
  font: inherit;
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: rgba(255, 240, 246, .75);
  padding: 12px 14px;
  border-radius: 16px;
  color: #7a2847;
  font-weight: 700;
}
.check-row input {
  width: 18px !important;
  height: 18px;
}
@media (max-width: 820px) {
  .buyer-mode-toggle { width: 100%; }
  .buyer-mode { flex: 1; text-align: center; }
}

/* Parcel handling form fix: manual outside seller + buyer, no squeezed controls */
.parcel-fee-card {
  max-width: 980px !important;
  width: min(100%, 980px) !important;
  overflow: visible !important;
}
.parcel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.parcel-fee-box {
  min-width: 150px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f6, #fff8f3);
  border: 1px solid rgba(255, 107, 154, .22);
  text-align: right;
}
.parcel-fee-box span {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9b6a79;
  font-weight: 800;
  margin-bottom: 4px;
}
.parcel-fee-box strong {
  font-size: 30px;
  line-height: 1;
  color: #171722;
}
.parcel-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field-label span {
  font-size: 12px;
  font-weight: 900;
  color: #423946;
}
.field-label em {
  color: #9b6a79;
  font-style: normal;
  font-weight: 700;
}
.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 154, .28);
  background: #fff;
  padding: 15px 16px;
  font: inherit;
  outline: none;
}
.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus {
  border-color: rgba(255, 82, 130, .72);
  box-shadow: 0 0 0 4px rgba(255, 82, 130, .10);
}
.parcel-notes-field {
  grid-column: 1 / -1;
}
.parcel-notes-field textarea {
  min-height: 92px;
  resize: vertical;
}
.parcel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.parcel-actions .primary {
  max-width: 260px;
}
@media (max-width: 760px) {
  .parcel-head {
    flex-direction: column;
  }
  .parcel-fee-box {
    width: 100%;
    text-align: left;
  }
  .parcel-form-grid {
    grid-template-columns: 1fr;
  }
  .parcel-actions .primary {
    max-width: none;
    width: 100%;
  }
}

/* =====================================================
   FINAL PATCH REQUEST: parcel layout + clean POS controls + sticky buyer top
   - Removes Hold/Resume buttons from Sell POS
   - Makes Parcel Fee form full-width and not squeezed
   - Keeps online shop top/search area sticky while scrolling products
   - Keeps horizontal category scrolling without page overflow
   ===================================================== */
#holdBtn,
#resumeBtn {
  display: none !important;
}

.pos-search {
  grid-template-columns: minmax(0, 1fr) !important;
}

#posGrid .parcel-fee-card {
  grid-column: 1 / -1 !important;
  width: min(100%, 1180px) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: clamp(20px, 2.6vw, 34px) !important;
}

#posGrid:has(.parcel-fee-card) {
  grid-template-columns: 1fr !important;
}

#posGrid .parcel-fee-card .parcel-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px !important;
  gap: 18px !important;
  align-items: start !important;
}

#posGrid .parcel-fee-card .parcel-fee-box {
  width: 100% !important;
  min-width: 0 !important;
  text-align: right !important;
}

#posGrid .parcel-fee-card .parcel-form-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

#posGrid .parcel-fee-card .parcel-notes-field {
  grid-column: 1 / -1 !important;
}

#posGrid .parcel-fee-card .parcel-actions {
  justify-content: flex-start !important;
}

#posGrid .parcel-fee-card .parcel-actions .primary {
  max-width: 280px !important;
  width: 100% !important;
}

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

body.buyer-page:not(.customer-gate-active) .buyer-main {
  overflow-x: hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 80 !important;
  background: rgba(255, 250, 252, .98) !important;
  box-shadow: 0 12px 28px rgba(46, 20, 31, .05) !important;
  border-bottom: 1px solid rgba(255, 96, 140, .12) !important;
}

body.buyer-page:not(.customer-gate-active) .category-scroll-row {
  position: sticky !important;
  top: var(--buyer-sticky-offset, 122px) !important;
  z-index: 79 !important;
  background: rgba(255, 250, 252, .98) !important;
  box-shadow: 0 10px 22px rgba(46, 20, 31, .04) !important;
  border-bottom: 1px solid rgba(255, 96, 140, .10) !important;
}

body.buyer-page .buyer-categories,
#posCategories {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

body.buyer-page .buyer-categories::-webkit-scrollbar,
#posCategories::-webkit-scrollbar {
  display: none !important;
}

body.buyer-page .buyer-chip,
#posCategories .chip {
  flex: 0 0 auto !important;
}

@media (orientation: landscape) {
  body.buyer-page {
    --buyer-sticky-offset: 132px !important;
  }
}

@media (orientation: portrait) {
  body.buyer-page {
    --buyer-sticky-offset: 174px !important;
  }
}

@media (max-width: 900px) {
  #posGrid .parcel-fee-card .parcel-head,
  #posGrid .parcel-fee-card .parcel-form-grid {
    grid-template-columns: 1fr !important;
  }
  #posGrid .parcel-fee-card .parcel-fee-box {
    text-align: left !important;
  }
  #posGrid .parcel-fee-card .parcel-actions .primary {
    max-width: none !important;
  }
}

/* === Parcel Handling section upgrade === */
.pos-mode-toggle [data-pos-mode="parcel"]{display:none!important}
.parcel-page-grid{display:grid;grid-template-columns:minmax(360px,520px) 1fr;gap:18px;align-items:start}
.parcel-handling-card{overflow:hidden}.parcel-title-row{display:grid;grid-template-columns:1fr minmax(190px,260px);gap:18px;align-items:start}.parcel-total-box{border:1px solid #ffd0dc;background:#fff4f8;border-radius:22px;padding:18px;text-align:right}.parcel-total-box span{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:900;color:#8a6371}.parcel-total-box strong{display:block;font-size:34px;line-height:1.1}.parcel-total-box small{display:block;color:var(--muted);font-weight:800}.parcel-form-grid.clean{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.parcel-form-grid.clean .parcel-notes-field{grid-column:1/-1}.parcel-money-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}.parcel-money-row span{background:#fff7fb;border:1px solid #ffd0dc;border-radius:14px;padding:10px}.parcel-log-card .order-card-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.order-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}@media(max-width:1000px){.parcel-page-grid{grid-template-columns:1fr}.parcel-title-row{grid-template-columns:1fr}.parcel-total-box{text-align:left}.parcel-form-grid.clean{grid-template-columns:1fr}.parcel-money-row{grid-template-columns:1fr}}

/* === Parcel handling list: compact card grid in scroll frame === */
.parcel-list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

.parcel-list-panel .panel-head {
  flex: 0 0 auto;
  align-items: start;
}

#parcelList.card-list {
  flex: 1 1 auto;
  min-height: 260px;
  max-height: calc(100vh - 310px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 8px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  align-content: start;
  border: 1px dashed #ffd0dc;
  border-radius: 22px;
  background: rgba(255, 247, 251, 0.55);
}

#parcelList .parcel-log-card {
  width: 100%;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(54, 32, 26, 0.08) !important;
  background: #fff !important;
}

#parcelList .parcel-log-card .order-card-head {
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

#parcelList .parcel-log-card .order-card-head strong {
  font-size: 15px;
  line-height: 1.15;
}

#parcelList .parcel-log-card .order-card-head p,
#parcelList .parcel-log-card p {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.35;
}

#parcelList .status-pill {
  font-size: 10px;
  padding: 6px 9px;
  white-space: nowrap;
}

#parcelList .parcel-money-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 10px 0;
}

#parcelList .parcel-money-row span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 12px;
}

#parcelList .parcel-money-row b {
  font-size: 14px;
}

#parcelList .order-actions {
  justify-content: stretch;
  margin-top: 10px;
}

#parcelList .order-actions .primary,
#parcelList .order-actions button {
  width: 100%;
  min-height: 42px;
  border-radius: 14px;
  font-size: 13px;
  padding: 10px 12px;
}

@media (max-width: 1000px) {
  .parcel-list-panel {
    max-height: none;
  }
  #parcelList.card-list {
    max-height: 480px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 560px) {
  #parcelList.card-list {
    max-height: 420px;
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FINAL PATCH: compact Parcel Handling + 3-column POS cards
   - Parcel form stays narrow on left
   - Parcel list uses the wider right side and fits 3 cards per row
   - Sell product grid targets 3 clean cards per row on desktop
========================================================= */
@media (min-width: 1180px) {
  .pos-layout.active {
    grid-template-columns: minmax(0, 1fr) 410px !important;
  }

  .pos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (min-width: 901px) and (max-width: 1179px) {
  .pos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1100px) {
  .parcel-page-grid {
    grid-template-columns: 420px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: stretch !important;
  }

  .parcel-handling-card {
    height: calc(100vh - 112px) !important;
    overflow-y: auto !important;
    padding: 22px !important;
  }

  .parcel-list-panel {
    height: calc(100vh - 112px) !important;
    max-height: calc(100vh - 112px) !important;
    padding: 22px !important;
  }

  .parcel-title-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .parcel-total-box {
    text-align: left !important;
    padding: 14px 16px !important;
  }

  .parcel-total-box strong {
    font-size: 28px !important;
  }

  .parcel-form-grid.clean {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .parcel-form-grid.clean input,
  .parcel-form-grid.clean select,
  .parcel-form-grid.clean textarea {
    height: 52px !important;
    border-radius: 16px !important;
  }

  #parcelList.card-list {
    max-height: calc(100vh - 285px) !important;
    min-height: 0 !important;
    grid-template-columns: repeat(3, minmax(170px, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  #parcelList .parcel-log-card {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  #parcelList .parcel-money-row span {
    padding: 7px 9px !important;
  }

  #parcelList .order-actions .primary,
  #parcelList .order-actions button {
    min-height: 38px !important;
    font-size: 12px !important;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .parcel-page-grid {
    grid-template-columns: 1fr !important;
  }

  #parcelList.card-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}


/* =========================================================
   FINAL FIX: Better parcel layout + search + less wasted space
   - Search bar added beside filter
   - Compact cards, 3 per row on desktop
   - Scroll frame uses space efficiently
   - POS product grid remains 3 per row on desktop
========================================================= */
.parcel-list-head {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr) !important;
  gap: 16px !important;
  align-items: end !important;
}

.parcel-list-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  align-items: center !important;
}

.parcel-list-tools input,
.parcel-list-tools select {
  width: 100% !important;
  height: 48px !important;
  border-radius: 16px !important;
  border: 1px solid #ffd0dc !important;
  padding: 0 14px !important;
  font: inherit !important;
  background: #fff !important;
  outline: none !important;
  box-sizing: border-box !important;
}

@media (min-width: 1100px) {
  .parcel-page-grid {
    grid-template-columns: 360px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .parcel-handling-card,
  .parcel-list-panel {
    height: calc(100vh - 108px) !important;
    max-height: calc(100vh - 108px) !important;
  }

  .parcel-handling-card {
    padding: 18px !important;
  }

  .parcel-handling-card h2 {
    font-size: clamp(26px, 2vw, 34px) !important;
    line-height: 0.98 !important;
    margin: 6px 0 10px !important;
  }

  .parcel-total-box {
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  .parcel-total-box strong {
    font-size: 25px !important;
  }

  .parcel-form-grid.clean {
    gap: 8px !important;
    margin: 12px 0 !important;
  }

  .parcel-form-grid.clean label span {
    font-size: 12px !important;
  }

  .parcel-form-grid.clean input,
  .parcel-form-grid.clean select {
    height: 46px !important;
    border-radius: 14px !important;
    padding: 0 12px !important;
  }

  .parcel-list-panel {
    padding: 18px !important;
  }

  .parcel-list-panel .panel-head h2 {
    font-size: clamp(26px, 2.2vw, 36px) !important;
    line-height: 0.98 !important;
    margin: 4px 0 8px !important;
  }

  #parcelList.card-list {
    max-height: calc(100vh - 245px) !important;
    min-height: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  #parcelList .parcel-log-card {
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  #parcelList .parcel-log-card .order-card-head {
    margin-bottom: 0 !important;
  }

  #parcelList .parcel-log-card .order-card-head strong {
    font-size: 14px !important;
    max-width: 125px !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #parcelList .parcel-log-card p {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin: 2px 0 !important;
  }

  #parcelList .parcel-money-row {
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    margin: 4px 0 !important;
  }

  #parcelList .parcel-money-row span {
    min-height: 32px !important;
    padding: 6px 9px !important;
    font-size: 11.5px !important;
  }

  #parcelList .parcel-money-row b {
    font-size: 13px !important;
  }

  #parcelList .order-actions {
    margin-top: auto !important;
  }

  #parcelList .order-actions .primary,
  #parcelList .order-actions button {
    min-height: 34px !important;
    padding: 8px 10px !important;
    font-size: 11.5px !important;
    border-radius: 12px !important;
  }
}

@media (min-width: 760px) and (max-width: 1099px) {
  .parcel-list-head {
    grid-template-columns: 1fr !important;
  }
  .parcel-list-tools {
    grid-template-columns: minmax(0, 1fr) 140px !important;
  }
  #parcelList.card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 759px) {
  .parcel-list-head,
  .parcel-list-tools {
    grid-template-columns: 1fr !important;
  }
  #parcelList.card-list {
    grid-template-columns: 1fr !important;
    max-height: 430px !important;
  }
}

/* =========================================================
   FINAL PARCEL UI CLEAN FIX
   Fixes clipping/overlap, reduces card height, adds stable 3-column scroll grid.
========================================================= */
.parcel-list-panel {
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.parcel-list-head {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.28fr) !important;
  gap: 18px !important;
  align-items: end !important;
  margin-bottom: 12px !important;
}

.parcel-list-head h2 {
  font-size: clamp(30px, 3vw, 46px) !important;
  line-height: .9 !important;
  margin: 4px 0 8px !important;
}

.parcel-list-head p {
  margin: 0 !important;
  max-width: 340px !important;
}

.parcel-list-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 155px !important;
  gap: 10px !important;
  align-items: center !important;
}

.parcel-list-tools input,
.parcel-list-tools select {
  height: 52px !important;
  border-radius: 18px !important;
  border: 1px solid #ffd0dc !important;
  background: #fff !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

#parcelList.card-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(185px, 1fr)) !important;
  align-items: start !important;
  align-content: start !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: calc(100vh - 250px) !important;
  min-height: 270px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  border: 1px dashed #ffd0dc !important;
  border-radius: 22px !important;
  background: rgba(255, 247, 251, 0.58) !important;
  box-sizing: border-box !important;
}

#parcelList .parcel-card-compact {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 13px !important;
  border: 1px solid #ffd0dc !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(54, 32, 26, .08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.parcel-card-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.parcel-seller-block {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.parcel-seller-block strong {
  font-size: 15px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 130px !important;
}

.parcel-seller-block small,
.parcel-meta-line {
  color: var(--muted) !important;
  font-size: 11.5px !important;
  line-height: 1.25 !important;
}

.parcel-meta-line b { color: var(--ink) !important; }

#parcelList .status-pill {
  flex: 0 0 auto !important;
  font-size: 10px !important;
  padding: 6px 9px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.parcel-mini-money {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  margin: 3px 0 !important;
}

.parcel-mini-money span {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 7px 9px !important;
  border: 1px solid #ffc4d3 !important;
  background: #fff7fb !important;
  border-radius: 12px !important;
  font-size: 11.5px !important;
  min-width: 0 !important;
}

.parcel-mini-money b {
  font-size: 13px !important;
  color: var(--ink) !important;
}

.parcel-card-actions {
  margin-top: 2px !important;
}

.parcel-card-actions button,
.parcel-card-actions .primary {
  width: 100% !important;
  min-height: 36px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  border-radius: 13px !important;
}

@media (max-width: 1180px) {
  .parcel-list-head {
    grid-template-columns: 1fr !important;
  }
  #parcelList.card-list {
    grid-template-columns: repeat(2, minmax(210px, 1fr)) !important;
    max-height: 460px !important;
  }
}

@media (max-width: 620px) {
  .parcel-list-tools {
    grid-template-columns: 1fr !important;
  }
  #parcelList.card-list {
    grid-template-columns: 1fr !important;
    max-height: 430px !important;
  }
}

/* =========================================================
   PARCEL CARDS FINAL CLEANUP
   Fixes clipping/overlap, bold buyer name, compact cards, and stable scroll frame.
========================================================= */
#parcelList.card-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(210px, 1fr)) !important;
  gap: 12px !important;
  align-items: start !important;
  align-content: start !important;
  grid-auto-flow: row !important;
  grid-auto-rows: auto !important;
  width: 100% !important;
  max-height: 430px !important;
  min-height: 360px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px dashed #ffd0dc !important;
  border-radius: 22px !important;
  background: rgba(255, 247, 251, 0.62) !important;
  scroll-behavior: smooth !important;
}

#parcelList .parcel-card-compact {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px !important;
  margin: 0 !important;
  border: 1px solid #ffd0dc !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(54, 32, 26, .08) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  transform: none !important;
}

#parcelList .parcel-card-top {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

#parcelList .parcel-seller-block {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#parcelList .parcel-seller-block strong {
  display: block !important;
  max-width: 145px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 15px !important;
  line-height: 1.05 !important;
}

#parcelList .parcel-seller-block small {
  display: block !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin-top: 4px !important;
}

#parcelList .parcel-seller-block small b {
  color: var(--ink) !important;
  font-weight: 900 !important;
}

.parcel-info-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 7px !important;
}

.parcel-info-grid span {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.12 !important;
}

.parcel-info-grid b {
  color: var(--ink) !important;
  font-weight: 900 !important;
  font-size: 11px !important;
}

#parcelList .parcel-mini-money {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
}

#parcelList .parcel-mini-money span {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 7px 8px !important;
  min-height: 42px !important;
  border: 1px solid #ffc4d3 !important;
  border-radius: 12px !important;
  background: #fff7fb !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
}

#parcelList .parcel-mini-money small {
  font-size: 10px !important;
  color: var(--muted) !important;
  line-height: 1 !important;
}

#parcelList .parcel-mini-money b {
  font-size: 13px !important;
  line-height: 1 !important;
  color: var(--ink) !important;
  white-space: nowrap !important;
}

#parcelList .parcel-card-actions {
  margin: 0 !important;
}

#parcelList .parcel-card-actions button,
#parcelList .parcel-card-actions .primary {
  width: 100% !important;
  min-height: 34px !important;
  padding: 7px 10px !important;
  border-radius: 13px !important;
  font-size: 12px !important;
  box-sizing: border-box !important;
}

#parcelList .status-pill {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  font-size: 10px !important;
  padding: 6px 9px !important;
}

@media (max-width: 1220px) {
  #parcelList.card-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    max-height: 440px !important;
  }
}

@media (max-width: 720px) {
  #parcelList.card-list {
    grid-template-columns: 1fr !important;
    max-height: 430px !important;
  }
}


/* =========================================================
   PARCEL CARD POLISH + DELETE ACTION
   - Buyer label is bold, buyer name stays normal
   - Delete button is available for correcting mistaken parcel logs
   - Cards remain compact and readable
========================================================= */
#parcelList .parcel-top-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
}

#parcelList .parcel-delete-btn {
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  border-radius: 999px !important;
  border: 1px solid #ffd0dc !important;
  background: #fff !important;
  color: #ff4f45 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#parcelList .parcel-delete-btn:hover {
  background: #fff1f4 !important;
  transform: translateY(-1px) !important;
}

#parcelList .parcel-seller-block small b {
  color: var(--ink) !important;
  font-weight: 900 !important;
}

#parcelList .parcel-seller-block small {
  font-weight: 500 !important;
}

#parcelList .parcel-card-compact {
  min-height: 0 !important;
}

@media (min-width: 1180px) {
  #parcelList.card-list {
    grid-template-columns: repeat(3, minmax(205px, 1fr)) !important;
  }
}

/* =========================================================
   PARCEL CARD OVERLAP FINAL FIX
   Fix: row overlap happened because the parcel cards were too compressed
   inside a short scroll frame. This gives each card stable height and spacing.
========================================================= */
#parcelList.card-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  align-content: start !important;
  grid-auto-flow: row !important;
  grid-auto-rows: minmax(210px, auto) !important;
  max-height: 500px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 14px !important;
}

#parcelList .parcel-card-compact {
  height: auto !important;
  min-height: 210px !important;
  max-height: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 14px !important;
  transform: none !important;
  position: relative !important;
  z-index: 1 !important;
}

#parcelList .parcel-card-compact * {
  box-sizing: border-box !important;
}

#parcelList .parcel-seller-block small b {
  font-weight: 900 !important;
}

#parcelList .parcel-seller-block small {
  font-weight: 500 !important;
}

#parcelList .parcel-info-grid,
#parcelList .parcel-mini-money,
#parcelList .parcel-card-actions {
  flex: 0 0 auto !important;
}

#parcelList .parcel-mini-money {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

#parcelList .parcel-card-actions .primary,
#parcelList .parcel-card-actions button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (min-width: 1200px) {
  #parcelList.card-list {
    grid-template-columns: repeat(3, minmax(230px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #parcelList.card-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #parcelList.card-list {
    grid-template-columns: 1fr !important;
    max-height: 540px !important;
  }
}

/* =========================================================
   PARCEL HANDLING — FINAL LIST VIEW
   Converts the cramped parcel grid into a clean, scrollable list.
========================================================= */
#parcelList.card-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: 520px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  border: 1px dashed rgba(255, 105, 135, .28) !important;
  border-radius: 24px !important;
  background: rgba(255,255,255,.54) !important;
  grid-template-columns: none !important;
  grid-auto-rows: auto !important;
}

#parcelList .parcel-list-row {
  width: 100% !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(210px, 1.4fr) minmax(250px, 1.1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 126, 156, .32) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 10px 26px rgba(55, 34, 28, .06) !important;
  box-sizing: border-box !important;
}

.parcel-row-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 6px !important;
}

.parcel-row-title strong {
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.parcel-row-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 14px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

.parcel-row-meta b {
  color: var(--ink) !important;
  font-weight: 900 !important;
}

.parcel-row-amounts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(74px, 1fr)) !important;
  gap: 8px !important;
}

.parcel-row-amounts span {
  min-width: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(255, 126, 156, .42) !important;
  border-radius: 12px !important;
  background: rgba(255, 246, 249, .82) !important;
}

.parcel-row-amounts small {
  display: block !important;
  margin-bottom: 2px !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.parcel-row-amounts b {
  display: block !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.parcel-row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.parcel-row-actions .primary {
  width: auto !important;
  min-width: 132px !important;
  height: 40px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
}

#parcelList .parcel-delete-btn {
  position: static !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
}

@media (max-width: 1050px) {
  #parcelList .parcel-list-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }
  .parcel-row-actions {
    justify-content: space-between !important;
  }
  .parcel-row-actions .primary {
    flex: 1 1 auto !important;
  }
}

@media (max-width: 560px) {
  #parcelList.card-list {
    max-height: 58vh !important;
    padding: 10px !important;
  }
  #parcelList .parcel-list-row {
    padding: 12px !important;
    gap: 10px !important;
  }
  .parcel-row-amounts {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  .parcel-row-amounts span {
    padding: 8px 7px !important;
  }
  .parcel-row-actions .primary {
    min-width: 0 !important;
  }
}

/* =========================================================
   PARCEL HANDLING — CLEAN REBUILD (FINAL OVERRIDE)
   Purpose: no overlap, no clipping, clean list view, stable scroll.
========================================================= */
#parcels .parcel-page-grid {
  display: grid !important;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

#parcels .parcel-list-panel {
  min-width: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  padding: 20px !important;
}

#parcels .parcel-list-head {
  display: grid !important;
  grid-template-columns: minmax(200px, .8fr) minmax(360px, 1.2fr) !important;
  gap: 16px !important;
  align-items: end !important;
  margin: 0 0 14px !important;
}

#parcels .parcel-list-head h2 {
  margin: 2px 0 8px !important;
  line-height: .95 !important;
  font-size: clamp(30px, 3vw, 44px) !important;
}

#parcels .parcel-list-head p {
  margin: 0 !important;
  max-width: 380px !important;
}

#parcels .parcel-list-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  align-items: center !important;
  min-width: 0 !important;
}

#parcels .parcel-list-tools input,
#parcels .parcel-list-tools select {
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  padding: 0 16px !important;
  border: 1px solid #ffd0dc !important;
  border-radius: 18px !important;
  background: #fff !important;
  font: inherit !important;
  outline: none !important;
  box-sizing: border-box !important;
}

#parcelList.parcel-clean-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: min(62vh, 620px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px dashed rgba(255, 105, 135, .30) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,.56) !important;
}

#parcelList .parcel-clean-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(220px, 1.25fr) minmax(260px, .95fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 14px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 126, 156, .36) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(54, 32, 26, .06) !important;
  overflow: visible !important;
}

#parcelList .parcel-clean-row * {
  box-sizing: border-box !important;
}

#parcelList .parcel-clean-info {
  min-width: 0 !important;
}

#parcelList .parcel-clean-title {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  margin-bottom: 8px !important;
}

#parcelList .parcel-clean-title strong {
  display: block !important;
  min-width: 0 !important;
  max-width: 220px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
}

#parcelList .parcel-clean-status {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 25px !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-transform: lowercase !important;
}

#parcelList .parcel-clean-status.is-unclaimed {
  background: #fff0c2 !important;
  color: #8a5c00 !important;
}

#parcelList .parcel-clean-status.is-claimed {
  background: #dcffe8 !important;
  color: #116b35 !important;
}

#parcelList .parcel-clean-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 16px !important;
  min-width: 0 !important;
}

#parcelList .parcel-clean-meta span {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  min-width: 0 !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

#parcelList .parcel-clean-meta b {
  color: var(--ink) !important;
  font-weight: 900 !important;
}

#parcelList .parcel-clean-meta em {
  color: var(--muted) !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

#parcelList .parcel-clean-amounts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(78px, 1fr)) !important;
  gap: 8px !important;
  min-width: 0 !important;
}

#parcelList .parcel-clean-amounts span {
  min-width: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(255, 126, 156, .45) !important;
  border-radius: 13px !important;
  background: #fff7fb !important;
}

#parcelList .parcel-clean-amounts small {
  display: block !important;
  margin-bottom: 3px !important;
  color: var(--muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

#parcelList .parcel-clean-amounts b {
  display: block !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

#parcelList .parcel-clean-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
}

#parcelList .parcel-clean-actions .primary {
  width: auto !important;
  min-width: 142px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  white-space: nowrap !important;
  font-size: 13px !important;
}

#parcelList .parcel-clean-delete {
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  border: 1px solid #ffd0dc !important;
  background: #fff !important;
  color: #ff4f45 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

#parcelList .parcel-clean-delete:hover {
  background: #fff0f4 !important;
}

@media (max-width: 1220px) {
  #parcels .parcel-page-grid {
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
  #parcelList.parcel-clean-list {
    max-height: 560px !important;
  }
}

@media (max-width: 980px) {
  #parcels .parcel-list-head {
    grid-template-columns: 1fr !important;
  }
  #parcelList .parcel-clean-row {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
  }
  #parcelList .parcel-clean-actions {
    justify-content: space-between !important;
  }
  #parcelList .parcel-clean-actions .primary {
    flex: 1 1 auto !important;
  }
}

@media (max-width: 620px) {
  #parcels .parcel-list-panel,
  #parcels .parcel-handling-card {
    padding: 14px !important;
    border-radius: 20px !important;
  }
  #parcels .parcel-list-head h2 {
    font-size: 32px !important;
  }
  #parcels .parcel-list-tools {
    grid-template-columns: 1fr !important;
  }
  #parcelList.parcel-clean-list {
    max-height: 58vh !important;
    padding: 10px !important;
  }
  #parcelList .parcel-clean-row {
    padding: 12px !important;
    gap: 10px !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  #parcelList .parcel-clean-amounts span {
    padding: 8px 7px !important;
  }
  #parcelList .parcel-clean-actions .primary {
    min-width: 0 !important;
    height: 40px !important;
  }
}

/* =========================================================
   FINAL PARCEL HANDLING REBUILD: list left + sticky log right
   Keeps theme, removes overlapping/card squeezing issues
========================================================= */
#parcels .parcel-page-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(340px,420px)!important;
  gap:18px!important;
  align-items:start!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
}
#parcels .parcel-list-panel{
  order:1!important;
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
#parcels .parcel-handling-card{
  order:2!important;
  position:sticky!important;
  top:86px!important;
  align-self:start!important;
  max-height:calc(100vh - 104px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
#parcels .parcel-title-row{
  display:block!important;
}
#parcels .parcel-total-box{
  margin-top:14px!important;
  text-align:left!important;
  padding:14px 16px!important;
  border-radius:18px!important;
}
#parcels .parcel-total-box strong{font-size:28px!important;}
#parcels .parcel-form-grid.clean{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:10px!important;
  margin:14px 0!important;
}
#parcels .parcel-form-grid.clean input,
#parcels .parcel-form-grid.clean select,
#parcels .parcel-form-grid.clean textarea{
  width:100%!important;
  box-sizing:border-box!important;
  min-width:0!important;
}
#parcels .parcel-list-head{
  display:grid!important;
  grid-template-columns:minmax(220px,0.75fr) minmax(320px,1fr)!important;
  gap:14px!important;
  align-items:end!important;
  margin-bottom:12px!important;
}
#parcels .parcel-list-head h2{
  font-size:clamp(30px,3vw,42px)!important;
  line-height:.95!important;
  margin:2px 0 8px!important;
}
#parcels .parcel-list-tools{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 150px!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
#parcels .parcel-list-tools input,
#parcels .parcel-list-tools select{
  height:50px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border-radius:18px!important;
}
#parcelList.parcel-clean-list{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  max-height:calc(100vh - 260px)!important;
  min-height:360px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:12px!important;
  border:1px dashed #ffd0dc!important;
  border-radius:22px!important;
  background:rgba(255,247,251,.58)!important;
  box-sizing:border-box!important;
}
#parcelList .parcel-clean-row{
  display:grid!important;
  grid-template-columns:minmax(210px,1.35fr) minmax(230px,.95fr) auto!important;
  gap:12px!important;
  align-items:center!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:14px!important;
  border:1px solid #ffd0dc!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(54,32,26,.07)!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
#parcelList .parcel-clean-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-bottom:6px!important;
  min-width:0!important;
}
#parcelList .parcel-clean-title strong{
  font-size:16px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:210px!important;
}
#parcelList .parcel-clean-status{
  flex:0 0 auto!important;
  font-size:10px!important;
  font-weight:900!important;
  padding:6px 9px!important;
  border-radius:999px!important;
  text-transform:lowercase!important;
}
#parcelList .parcel-clean-status.is-unclaimed{background:#fff0c7!important;color:#7d5200!important;}
#parcelList .parcel-clean-status.is-claimed{background:#dcfce7!important;color:#166534!important;}
#parcelList .parcel-clean-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px 14px!important;
  font-size:12px!important;
  color:var(--muted)!important;
}
#parcelList .parcel-clean-meta b{color:var(--ink)!important;}
#parcelList .parcel-clean-meta em{font-style:normal!important;}
#parcelList .parcel-clean-amounts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  min-width:0!important;
}
#parcelList .parcel-clean-amounts span{
  min-width:0!important;
  background:#fff7fb!important;
  border:1px solid #ffc4d3!important;
  border-radius:13px!important;
  padding:8px 10px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
}
#parcelList .parcel-clean-amounts small{
  color:var(--muted)!important;
  font-weight:800!important;
  font-size:10px!important;
}
#parcelList .parcel-clean-amounts b{
  font-size:14px!important;
  color:var(--ink)!important;
}
#parcelList .parcel-clean-actions{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  min-width:170px!important;
}
#parcelList .parcel-clean-actions .primary{
  min-height:42px!important;
  padding:10px 16px!important;
  border-radius:14px!important;
  white-space:nowrap!important;
}
#parcelList .parcel-clean-delete{
  width:38px!important;
  height:38px!important;
  border:1px solid #ffb6c5!important;
  border-radius:50%!important;
  background:#fff!important;
  color:#ff4f66!important;
  font-weight:900!important;
  font-size:18px!important;
  cursor:pointer!important;
  flex:0 0 auto!important;
}
#parcelList .empty-state{
  padding:28px!important;
  text-align:center!important;
}
@media(max-width:1180px){
  #parcels .parcel-page-grid{grid-template-columns:1fr!important;}
  #parcels .parcel-handling-card{position:relative!important;top:auto!important;max-height:none!important;order:1!important;}
  #parcels .parcel-list-panel{order:2!important;}
}
@media(max-width:760px){
  #parcels .parcel-list-head,
  #parcels .parcel-list-tools{grid-template-columns:1fr!important;}
  #parcelList.parcel-clean-list{max-height:62vh!important;min-height:320px!important;padding:10px!important;}
  #parcelList .parcel-clean-row{grid-template-columns:1fr!important;gap:10px!important;}
  #parcelList .parcel-clean-amounts{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  #parcelList .parcel-clean-actions{justify-content:stretch!important;min-width:0!important;}
  #parcelList .parcel-clean-actions .primary{flex:1!important;}
}
@media(max-width:430px){
  #parcelList .parcel-clean-amounts{grid-template-columns:1fr!important;}
}

/* =========================================================
   FINAL RESPONSIVE FIX — PARCEL HANDLING
   Stable across desktop/tablet/mobile. No clipped buttons.
   Desktop: parcel list left, log form sticky right.
   Narrow screens: stack safely.
========================================================= */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}

.dashboard-shell,
.main-area,
.tab-section,
#parcels {
  min-width: 0 !important;
  max-width: 100% !important;
}

#parcels .parcel-page-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 30vw, 430px) !important;
  gap: 18px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
}

#parcels .parcel-list-panel,
#parcels .parcel-handling-card {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#parcels .parcel-handling-card {
  position: sticky !important;
  top: 86px !important;
  max-height: calc(100dvh - 104px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  order: 2 !important;
}

#parcels .parcel-list-panel {
  order: 1 !important;
  overflow: hidden !important;
}

#parcels .parcel-list-head {
  display: grid !important;
  grid-template-columns: minmax(190px, .65fr) minmax(260px, 1fr) !important;
  gap: 14px !important;
  align-items: end !important;
}

#parcels .parcel-list-head h2 {
  font-size: clamp(28px, 2.6vw, 40px) !important;
  line-height: .95 !important;
  margin: 0 0 8px !important;
}

#parcels .parcel-list-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 145px !important;
  gap: 10px !important;
  min-width: 0 !important;
}

#parcels .parcel-list-tools input,
#parcels .parcel-list-tools select {
  min-width: 0 !important;
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

#parcelList.parcel-clean-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: calc(100dvh - 270px) !important;
  min-height: 380px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

#parcelList .parcel-clean-row {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 310px) auto !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 14px !important;
  border-radius: 18px !important;
}

#parcelList .parcel-clean-info,
#parcelList .parcel-clean-meta,
#parcelList .parcel-clean-title {
  min-width: 0 !important;
}

#parcelList .parcel-clean-title strong {
  min-width: 0 !important;
  max-width: 100% !important;
}

#parcelList .parcel-clean-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 14px !important;
}

#parcelList .parcel-clean-amounts {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#parcelList .parcel-clean-amounts span {
  min-width: 0 !important;
  padding: 8px 9px !important;
}

#parcelList .parcel-clean-actions {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

#parcelList .parcel-clean-actions .primary {
  min-width: 132px !important;
  width: auto !important;
  white-space: nowrap !important;
}

#parcelList .parcel-clean-delete {
  flex: 0 0 36px !important;
}

/* At normal laptop widths, keep the sticky form right, but stack each parcel row.
   This prevents button clipping in the narrower list column. */
@media (max-width: 1480px) {
  #parcelList .parcel-clean-row {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #parcelList .parcel-clean-actions {
    justify-content: stretch !important;
  }
  #parcelList .parcel-clean-actions .primary {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}

/* Tablet and small desktop: stack form above list for better readability. */
@media (max-width: 1100px), (orientation: portrait) {
  #parcels .parcel-page-grid {
    grid-template-columns: 1fr !important;
  }
  #parcels .parcel-handling-card {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    order: 1 !important;
  }
  #parcels .parcel-list-panel {
    order: 2 !important;
  }
  #parcelList.parcel-clean-list {
    max-height: 62dvh !important;
    min-height: 320px !important;
  }
}

/* Mobile: full width, no page horizontal scroll, compact list rows. */
@media (max-width: 680px) {
  #parcels .parcel-list-panel,
  #parcels .parcel-handling-card {
    padding: 14px !important;
    border-radius: 20px !important;
  }
  #parcels .parcel-list-head,
  #parcels .parcel-list-tools {
    grid-template-columns: 1fr !important;
  }
  #parcels .parcel-list-head h2 {
    font-size: 30px !important;
  }
  #parcelList.parcel-clean-list {
    padding: 10px !important;
    max-height: 60dvh !important;
  }
  #parcelList .parcel-clean-row {
    padding: 12px !important;
  }
  #parcelList .parcel-clean-title {
    flex-wrap: wrap !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 6px !important;
  }
  #parcelList .parcel-clean-amounts span {
    padding: 8px 7px !important;
  }
}

@media (max-width: 420px) {
  #parcelList .parcel-clean-amounts {
    grid-template-columns: 1fr !important;
  }
  #parcelList .parcel-clean-actions {
    flex-direction: row !important;
  }
}

/* =========================================================
   FINAL: Parcel UI matched with Sell UI
   Left = parcel list workspace, Right = sticky ticket-style Log Parcel.
   Overrides older parcel patches safely.
========================================================= */
#parcels {
  overflow: hidden !important;
}

.parcel-page-grid,
.parcel-wrapper {
  display: block !important;
}

.parcel-pos-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 390px !important;
  height: calc(100vh - 72px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--bg, #fff7f3) !important;
}

.parcel-main-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 22px 20px !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(120, 72, 58, .14) !important;
}

.parcel-main-head {
  display: grid !important;
  grid-template-columns: minmax(240px, .72fr) minmax(320px, 1fr) !important;
  gap: 16px !important;
  align-items: end !important;
  margin-bottom: 16px !important;
}

.parcel-main-head h2 {
  font-family: inherit !important;
  font-size: clamp(28px, 3vw, 42px) !important;
  line-height: .95 !important;
  margin: 4px 0 7px !important;
  letter-spacing: -0.04em !important;
}

.parcel-main-head .muted {
  max-width: 420px !important;
  margin: 0 !important;
}

.parcel-list-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}

.parcel-list-tools input,
.parcel-list-tools select {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  border-radius: 18px !important;
  border: 1px solid #ffd0dc !important;
  background: #fff !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

#parcelList.parcel-clean-list,
#parcelList.card-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  height: calc(100vh - 210px) !important;
  min-height: 340px !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px dashed #ffd0dc !important;
  border-radius: 24px !important;
  background: rgba(255, 247, 251, .65) !important;
}

#parcelList .parcel-clean-row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.3fr) minmax(255px, .9fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  min-height: 88px !important;
  height: auto !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid #ffd0dc !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 10px 26px rgba(54, 32, 26, .07) !important;
  overflow: visible !important;
}

#parcelList .parcel-clean-info {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

#parcelList .parcel-clean-title {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
}

#parcelList .parcel-clean-title strong {
  font-size: 16px !important;
  line-height: 1.1 !important;
  max-width: 190px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#parcelList .parcel-clean-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 26px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-transform: lowercase !important;
  white-space: nowrap !important;
}
#parcelList .parcel-clean-status.is-unclaimed { background:#fff0c7 !important; color:#7d5200 !important; }
#parcelList .parcel-clean-status.is-claimed { background:#dcfce7 !important; color:#166534 !important; }

#parcelList .parcel-clean-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px 14px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

#parcelList .parcel-clean-meta span {
  min-width: 0 !important;
  color: var(--muted, #75636b) !important;
}

#parcelList .parcel-clean-meta b {
  font-weight: 900 !important;
  color: var(--ink, #19181f) !important;
}

#parcelList .parcel-clean-meta em {
  font-style: normal !important;
}

#parcelList .parcel-clean-amounts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(72px, 1fr)) !important;
  gap: 8px !important;
  min-width: 0 !important;
}

#parcelList .parcel-clean-amounts span {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  min-height: 48px !important;
  padding: 8px 10px !important;
  border: 1px solid #ffc4d3 !important;
  border-radius: 14px !important;
  background: #fff7fb !important;
  box-sizing: border-box !important;
}

#parcelList .parcel-clean-amounts small {
  color: var(--muted, #75636b) !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

#parcelList .parcel-clean-amounts b {
  font-size: 14px !important;
  color: var(--ink, #19181f) !important;
  line-height: 1.05 !important;
}

#parcelList .parcel-clean-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 168px !important;
}

#parcelList .parcel-clean-actions .primary {
  width: auto !important;
  min-width: 128px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 15px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  box-shadow: 0 10px 18px rgba(255, 88, 79, .22) !important;
}

#parcelList .parcel-clean-delete {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 999px !important;
  border: 1px solid #ffc4d3 !important;
  background: #fff !important;
  color: #ff5a66 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

.parcel-ticket-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  background: #fffaf8 !important;
  padding: 22px 18px !important;
  overflow-y: auto !important;
}

.parcel-ticket-sticky {
  position: sticky !important;
  top: 18px !important;
  background: #fff !important;
  border: 1px solid #f1d6cc !important;
  border-radius: 28px !important;
  padding: 20px !important;
  box-shadow: 0 20px 55px rgba(54, 32, 26, .08) !important;
}

.parcel-ticket-sticky h2 {
  font-family: inherit !important;
  font-size: 34px !important;
  line-height: .95 !important;
  margin: 5px 0 10px !important;
  letter-spacing: -0.04em !important;
}

.parcel-total-box.compact,
.parcel-total-box {
  text-align: left !important;
  margin: 14px 0 !important;
  padding: 16px !important;
  border-radius: 20px !important;
  border: 1px solid #ffd0dc !important;
  background: #fff4f8 !important;
}

.parcel-total-box.compact strong,
.parcel-total-box strong {
  font-size: 32px !important;
  line-height: 1 !important;
}

.parcel-ticket-form {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 11px !important;
  margin: 14px 0 !important;
}

.parcel-ticket-form .field-label {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.parcel-ticket-form input,
.parcel-ticket-form select,
.parcel-ticket-form textarea {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  border-radius: 17px !important;
  box-sizing: border-box !important;
}

.parcel-ticket-sticky .primary.wide {
  width: 100% !important;
  height: 54px !important;
  border-radius: 18px !important;
}

@media (max-width: 1240px) {
  .parcel-pos-layout {
    grid-template-columns: minmax(0, 1fr) 350px !important;
  }
  #parcelList .parcel-clean-row {
    grid-template-columns: minmax(190px, 1fr) minmax(210px, .8fr) auto !important;
    gap: 10px !important;
  }
  #parcelList .parcel-clean-actions {
    min-width: 142px !important;
  }
  #parcelList .parcel-clean-actions .primary {
    min-width: 108px !important;
    padding: 0 12px !important;
  }
}

@media (max-width: 980px) {
  .parcel-pos-layout {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }
  .parcel-main-panel,
  .parcel-ticket-panel {
    border-right: 0 !important;
    overflow: visible !important;
  }
  .parcel-ticket-sticky {
    position: relative !important;
    top: auto !important;
  }
  .parcel-main-head {
    grid-template-columns: 1fr !important;
  }
  #parcelList.parcel-clean-list,
  #parcelList.card-list {
    height: auto !important;
    max-height: 560px !important;
  }
  #parcelList .parcel-clean-row {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #parcelList .parcel-clean-actions {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: stretch !important;
  }
  #parcelList .parcel-clean-actions .primary {
    flex: 1 !important;
  }
}

@media (max-width: 540px) {
  .parcel-main-panel,
  .parcel-ticket-panel {
    padding: 14px 12px !important;
  }
  .parcel-list-tools {
    grid-template-columns: 1fr !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: 1fr !important;
  }
  #parcelList .parcel-clean-title {
    flex-wrap: wrap !important;
  }
}

/* =========================================================
   ACTUAL FINAL PARCEL UI FIX — compact, responsive, no clipping
   Uses Sell-style workspace + sticky right ticket form.
   This block intentionally overrides all older parcel CSS.
========================================================= */
#parcels.tab-section.active{
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
}
#parcels .parcel-pos-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 390px!important;
  height:calc(100vh - 72px)!important;
  min-height:0!important;
  overflow:hidden!important;
  background:var(--bg,#fbf4ee)!important;
}
#parcels .parcel-main-panel{
  padding:18px!important;
  min-width:0!important;
  overflow:hidden!important;
  border-right:1px solid rgba(120,72,58,.14)!important;
}
#parcels .parcel-main-head{
  display:grid!important;
  grid-template-columns:minmax(180px,.55fr) minmax(260px,1fr)!important;
  gap:14px!important;
  align-items:end!important;
  margin:0 0 14px!important;
}
#parcels .parcel-main-head h2{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial!important;
  font-size:clamp(26px,2.6vw,38px)!important;
  line-height:1!important;
  letter-spacing:-.04em!important;
  margin:2px 0 6px!important;
}
#parcels .parcel-main-head .muted{
  margin:0!important;
  font-size:13px!important;
}
#parcels .parcel-list-tools{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 132px!important;
  gap:10px!important;
  min-width:0!important;
  width:100%!important;
}
#parcels .parcel-list-tools input,
#parcels .parcel-list-tools select{
  height:48px!important;
  border-radius:16px!important;
  width:100%!important;
  min-width:0!important;
  padding:0 14px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  border:1px solid #ffd0dc!important;
  font-size:14px!important;
}
#parcelList.parcel-clean-list{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  height:calc(100vh - 186px)!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:12px!important;
  border:1px dashed #ffd0dc!important;
  border-radius:22px!important;
  background:rgba(255,247,251,.62)!important;
  box-sizing:border-box!important;
}
#parcelList .parcel-clean-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 146px!important;
  grid-template-areas:
    "info actions"
    "amounts actions"!important;
  gap:10px 12px!important;
  align-items:center!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:14px!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid #ffd0dc!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 10px 24px rgba(54,32,26,.07)!important;
}
#parcelList .parcel-clean-info{grid-area:info!important;min-width:0!important;display:block!important;}
#parcelList .parcel-clean-title{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 6px!important;
  min-width:0!important;
}
#parcelList .parcel-clean-title strong{
  font-size:16px!important;
  line-height:1.1!important;
  max-width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#parcelList .parcel-clean-status{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  height:24px!important;
  padding:0 9px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:900!important;
  text-transform:lowercase!important;
}
#parcelList .parcel-clean-status.is-unclaimed{background:#fff0c7!important;color:#7d5200!important;}
#parcelList .parcel-clean-status.is-claimed{background:#dcfce7!important;color:#166534!important;}
#parcelList .parcel-clean-meta{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px 12px!important;
  font-size:12px!important;
  line-height:1.25!important;
  min-width:0!important;
}
#parcelList .parcel-clean-meta span{min-width:0!important;color:var(--muted,#75636b)!important;}
#parcelList .parcel-clean-meta b{font-weight:900!important;color:var(--ink,#19181f)!important;}
#parcelList .parcel-clean-meta em{font-style:normal!important;}
#parcelList .parcel-clean-amounts{
  grid-area:amounts!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  min-width:0!important;
}
#parcelList .parcel-clean-amounts span{
  min-width:0!important;
  min-height:42px!important;
  padding:7px 9px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  border:1px solid #ffc4d3!important;
  border-radius:13px!important;
  background:#fff7fb!important;
  box-sizing:border-box!important;
}
#parcelList .parcel-clean-amounts small{font-size:10px!important;line-height:1!important;color:var(--muted,#75636b)!important;}
#parcelList .parcel-clean-amounts b{font-size:13px!important;line-height:1.05!important;color:var(--ink,#19181f)!important;}
#parcelList .parcel-clean-actions{
  grid-area:actions!important;
  min-width:0!important;
  width:146px!important;
  display:grid!important;
  grid-template-columns:1fr 34px!important;
  gap:7px!important;
  align-items:center!important;
  justify-content:end!important;
}
#parcelList .parcel-clean-actions .primary{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 10px!important;
  border-radius:14px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  font-size:12px!important;
  box-shadow:0 10px 18px rgba(255,88,79,.22)!important;
}
#parcelList .parcel-clean-delete{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:999px!important;
  border:1px solid #ffc4d3!important;
  background:#fff!important;
  color:#ff5a66!important;
  display:inline-grid!important;
  place-items:center!important;
  font-size:18px!important;
  font-weight:900!important;
  line-height:1!important;
}
#parcels .parcel-ticket-panel{
  padding:18px!important;
  background:#fffaf8!important;
  min-width:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
#parcels .parcel-ticket-sticky{
  position:sticky!important;
  top:18px!important;
  background:#fff!important;
  border:1px solid #f1d6cc!important;
  border-radius:26px!important;
  padding:20px!important;
  box-shadow:0 20px 55px rgba(54,32,26,.08)!important;
}
#parcels .parcel-ticket-sticky h2{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial!important;
  font-size:32px!important;
  line-height:.98!important;
  margin:4px 0 9px!important;
  letter-spacing:-.04em!important;
}
#parcels .parcel-total-box{
  margin:14px 0!important;
  padding:15px!important;
  border-radius:18px!important;
  text-align:left!important;
}
#parcels .parcel-total-box strong{font-size:30px!important;line-height:1!important;}
#parcels .parcel-ticket-form{display:grid!important;gap:10px!important;margin:14px 0!important;}
#parcels .parcel-ticket-form .field-label{display:grid!important;gap:6px!important;}
#parcels .parcel-ticket-form input,
#parcels .parcel-ticket-form select,
#parcels .parcel-ticket-form textarea{height:50px!important;border-radius:16px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;}
#parcels .parcel-ticket-sticky .primary.wide{height:52px!important;border-radius:17px!important;}
@media(max-width:1320px){
  #parcels .parcel-pos-layout{grid-template-columns:minmax(0,1fr) 360px!important;}
  #parcelList .parcel-clean-row{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"info" "amounts" "actions"!important;}
  #parcelList .parcel-clean-actions{width:100%!important;grid-template-columns:1fr 38px!important;}
}
@media(max-width:980px),(orientation:portrait){
  #parcels .parcel-pos-layout{display:flex!important;flex-direction:column!important;height:auto!important;overflow:visible!important;}
  #parcels .parcel-main-panel{border-right:0!important;overflow:visible!important;}
  #parcels .parcel-ticket-panel{overflow:visible!important;}
  #parcels .parcel-ticket-sticky{position:relative!important;top:auto!important;}
  #parcelList.parcel-clean-list{height:auto!important;max-height:62vh!important;min-height:320px!important;}
}
@media(max-width:680px){
  #parcels .parcel-main-panel,#parcels .parcel-ticket-panel{padding:12px!important;}
  #parcels .parcel-main-head{grid-template-columns:1fr!important;}
  #parcels .parcel-list-tools{grid-template-columns:1fr!important;}
  #parcelList .parcel-clean-amounts{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:430px){
  #parcelList .parcel-clean-amounts{grid-template-columns:1fr!important;}
}

/* =========================================================
   NEXT LEVEL PARCEL SYSTEM — FINAL STABLE LAYOUT OVERRIDE
   Purpose: no overlap, no clipped buttons, ticket-style form,
   responsive desktop/tablet/mobile parcel handling workspace.
   ========================================================= */
#parcels.tab-section.active{
  display:block !important;
  padding:0 !important;
  overflow:hidden !important;
}

#parcels .parcel-pos-layout{
  display:grid !important;
  grid-template-columns:minmax(0, 1.7fr) 390px !important;
  gap:0 !important;
  height:calc(100vh - 74px) !important;
  min-height:560px !important;
  overflow:hidden !important;
  background:var(--paper,#fff7f2) !important;
}

#parcels .parcel-main-panel{
  min-width:0 !important;
  height:100% !important;
  overflow:hidden !important;
  padding:24px !important;
  display:flex !important;
  flex-direction:column !important;
  border-right:1px solid #f0d8cd !important;
}

#parcels .parcel-ticket-panel{
  min-width:0 !important;
  height:100% !important;
  overflow-y:auto !important;
  padding:20px !important;
  background:#fffaf7 !important;
}

#parcels .parcel-ticket-sticky{
  position:sticky !important;
  top:14px !important;
  height:auto !important;
  max-height:none !important;
  overflow:visible !important;
  background:#fff !important;
  border:1px solid #f2cfc3 !important;
  border-radius:28px !important;
  padding:22px !important;
  box-shadow:0 18px 45px rgba(115,60,40,.08) !important;
}

#parcels .parcel-main-head{
  flex:0 0 auto !important;
  display:grid !important;
  grid-template-columns:minmax(220px, .9fr) minmax(300px, 1.1fr) !important;
  align-items:end !important;
  gap:16px !important;
  margin:0 0 16px !important;
  padding:0 !important;
}

#parcels .parcel-main-head h2{
  font-family:inherit !important;
  font-size:clamp(30px,3.3vw,48px) !important;
  line-height:.95 !important;
  letter-spacing:-.045em !important;
  margin:4px 0 8px !important;
  max-width:360px !important;
}

#parcels .parcel-main-head .muted{
  max-width:360px !important;
  line-height:1.35 !important;
  margin:0 !important;
}

#parcels .parcel-list-tools{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 150px !important;
  gap:10px !important;
  width:100% !important;
  min-width:0 !important;
}

#parcels .parcel-list-tools input,
#parcels .parcel-list-tools select{
  width:100% !important;
  height:54px !important;
  border-radius:18px !important;
  border:1px solid #ffc4d2 !important;
  background:#fff !important;
  box-sizing:border-box !important;
  min-width:0 !important;
  padding:0 16px !important;
  font-size:14px !important;
}

#parcelList.parcel-clean-list,
#parcelList.card-list{
  flex:1 1 auto !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  display:block !important;
  padding:12px !important;
  margin:0 !important;
  border:1px dashed #ffc6d5 !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.55) !important;
  box-sizing:border-box !important;
}

#parcelList .parcel-clean-row{
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) minmax(250px,auto) minmax(150px,auto) !important;
  grid-template-areas:"info amounts actions" !important;
  align-items:center !important;
  gap:14px !important;
  width:100% !important;
  min-height:auto !important;
  height:auto !important;
  padding:14px !important;
  margin:0 0 12px !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  border:1px solid #ffb9c8 !important;
  border-radius:20px !important;
  background:#fff !important;
  box-shadow:0 10px 24px rgba(255,80,120,.06) !important;
}

#parcelList .parcel-clean-info{
  grid-area:info !important;
  min-width:0 !important;
  overflow:hidden !important;
}

#parcelList .parcel-clean-title{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 0 7px !important;
  min-width:0 !important;
}

#parcelList .parcel-clean-title strong{
  font-size:18px !important;
  line-height:1.05 !important;
  font-weight:950 !important;
  color:#17161d !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  min-width:0 !important;
}

#parcelList .parcel-clean-status{
  flex:0 0 auto !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  height:26px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  font-size:11px !important;
  font-weight:950 !important;
  text-transform:lowercase !important;
}
#parcelList .parcel-clean-status.is-unclaimed{background:#fff0c7!important;color:#7d5200!important;}
#parcelList .parcel-clean-status.is-claimed{background:#dcfce7!important;color:#166534!important;}

#parcelList .parcel-clean-meta{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px 14px !important;
  font-size:13px !important;
  line-height:1.25 !important;
  color:#65565d !important;
  min-width:0 !important;
}

#parcelList .parcel-clean-meta span{
  display:inline-flex !important;
  gap:4px !important;
  min-width:0 !important;
  max-width:100% !important;
}
#parcelList .parcel-clean-meta b{font-weight:950!important;color:#15141a!important;}
#parcelList .parcel-clean-meta em{
  font-style:normal!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:190px!important;
}

#parcelList .parcel-clean-amounts{
  grid-area:amounts !important;
  display:grid !important;
  grid-template-columns:repeat(3,76px) !important;
  gap:8px !important;
  align-items:center !important;
  justify-content:end !important;
  min-width:0 !important;
}

#parcelList .parcel-clean-amounts span{
  height:48px !important;
  padding:6px 8px !important;
  border-radius:13px !important;
  border:1px solid #ffb1c5 !important;
  background:#fff7fa !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  gap:2px !important;
  box-sizing:border-box !important;
  min-width:0 !important;
}
#parcelList .parcel-clean-amounts small{font-size:10px!important;line-height:1!important;color:#75636b!important;}
#parcelList .parcel-clean-amounts b{font-size:13px!important;line-height:1!important;color:#17161d!important;}

#parcelList .parcel-clean-actions{
  grid-area:actions !important;
  display:grid !important;
  grid-template-columns:minmax(110px,1fr) 36px !important;
  gap:8px !important;
  align-items:center !important;
  min-width:0 !important;
  justify-self:stretch !important;
}

#parcelList .parcel-clean-actions .primary{
  height:42px !important;
  min-width:0 !important;
  width:100% !important;
  padding:0 12px !important;
  border-radius:13px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  font-size:13px !important;
  box-shadow:0 10px 20px rgba(255,83,72,.16) !important;
}

#parcelList .parcel-clean-delete{
  width:36px !important;
  height:36px !important;
  border-radius:999px !important;
  border:1px solid #ffb1c5 !important;
  background:#fff !important;
  color:#ff4b62 !important;
  font-size:20px !important;
  line-height:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

#parcels .parcel-total-box{
  border:1px solid #ffbfd0 !important;
  background:#fff4f7 !important;
  border-radius:20px !important;
  padding:16px !important;
  margin:14px 0 !important;
}
#parcels .parcel-total-box span{font-size:11px!important;letter-spacing:.12em!important;text-transform:uppercase!important;font-weight:950!important;color:#8b5b70!important;}
#parcels .parcel-total-box strong{font-size:32px!important;line-height:1!important;color:#17161d!important;display:block!important;margin-top:4px!important;}
#parcels .parcel-total-box small{font-size:13px!important;font-weight:850!important;color:#6d5a62!important;}

#parcels .parcel-ticket-form{
  display:grid !important;
  gap:10px !important;
  margin:14px 0 !important;
}
#parcels .parcel-ticket-form .field-label{display:grid!important;gap:6px!important;}
#parcels .parcel-ticket-form input,
#parcels .parcel-ticket-form select,
#parcels .parcel-ticket-form textarea{
  height:52px !important;
  width:100% !important;
  min-width:0 !important;
  box-sizing:border-box !important;
  border-radius:16px !important;
  border:1px solid #ffc4d2 !important;
  padding:0 16px !important;
  font-size:15px !important;
}
#parcels .parcel-ticket-sticky .primary.wide{height:54px!important;border-radius:17px!important;width:100%!important;}

@media (max-width:1180px){
  #parcels .parcel-pos-layout{grid-template-columns:minmax(0,1fr) 350px!important;}
  #parcelList .parcel-clean-row{
    grid-template-columns:minmax(240px,1fr) minmax(230px,auto) !important;
    grid-template-areas:"info actions" "amounts amounts" !important;
  }
  #parcelList .parcel-clean-amounts{justify-content:start!important;grid-template-columns:repeat(3,minmax(70px,96px))!important;}
}

@media (max-width:900px){
  #parcels .parcel-pos-layout{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:visible!important;}
  #parcels .parcel-main-panel{height:auto!important;min-height:0!important;overflow:visible!important;border-right:0!important;padding:16px!important;}
  #parcels .parcel-ticket-panel{height:auto!important;overflow:visible!important;padding:16px!important;}
  #parcels .parcel-ticket-sticky{position:relative!important;top:auto!important;}
  #parcelList.parcel-clean-list{max-height:62vh!important;min-height:300px!important;flex:none!important;}
}

@media (max-width:640px){
  #parcels .parcel-main-head{grid-template-columns:1fr!important;gap:12px!important;}
  #parcels .parcel-main-head h2{font-size:34px!important;max-width:100%!important;}
  #parcels .parcel-list-tools{grid-template-columns:1fr!important;}
  #parcelList .parcel-clean-row{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"info" "amounts" "actions"!important;
    gap:10px!important;
  }
  #parcelList .parcel-clean-amounts{grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;}
  #parcelList .parcel-clean-actions{grid-template-columns:1fr 36px!important;width:100%!important;}
  #parcelList .parcel-clean-meta em{max-width:145px!important;}
}

/* =========================================================
   JARGON EXPERT PATCH: ONLINE SHOP TRUE FROZEN TOP
   Reason: prior sticky rules were being neutralized by nested layout/overflow.
   This uses fixed positioning for the online shop header + category rail only.
   Admin/dashboard pages are unaffected.
   ========================================================= */
body.buyer-page:not(.customer-gate-active) {
  overflow-x: hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-app,
body.buyer-page:not(.customer-gate-active) .buyer-main,
body.buyer-page:not(.customer-gate-active) .buyer-shop {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 5000 !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 560px) !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 26px clamp(18px, 3vw, 42px) 18px !important;
  margin: 0 !important;
  background: rgba(255, 250, 252, 0.985) !important;
  border-bottom: 1px solid rgba(255, 96, 140, 0.12) !important;
  box-shadow: 0 16px 36px rgba(63, 27, 44, 0.08) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-wrap {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.buyer-page:not(.customer-gate-active) .category-scroll-row {
  position: fixed !important;
  top: var(--buyer-fixed-topbar-h, 152px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 4999 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 14px clamp(18px, 3vw, 42px) !important;
  margin: 0 !important;
  background: rgba(255, 250, 252, 0.985) !important;
  border-bottom: 1px solid rgba(255, 96, 140, 0.1) !important;
  box-shadow: 0 12px 28px rgba(63, 27, 44, 0.055) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  overflow: hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-categories {
  display: flex !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  overscroll-behavior-x: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-categories::-webkit-scrollbar {
  display: none !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-chip {
  flex: 0 0 auto !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-section-head {
  margin-top: var(--buyer-fixed-stack-h, 244px) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-product-grid {
  overflow: visible !important;
}

@media (max-width: 760px), (orientation: portrait) {
  body.buyer-page:not(.customer-gate-active) {
    --buyer-fixed-topbar-h: 170px;
    --buyer-fixed-stack-h: 266px;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 18px 12px 14px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar h1 {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 0.98 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar .soft-text {
    font-size: 12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row {
    gap: 8px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap {
    min-height: 50px !important;
    border-radius: 18px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-cart-icon-btn {
    height: 50px !important;
    min-width: 64px !important;
    border-radius: 18px !important;
    padding: 0 10px !important;
  }
  body.buyer-page:not(.customer-gate-active) .category-scroll-row {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-chip {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 16px !important;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.buyer-page:not(.customer-gate-active) {
    --buyer-fixed-topbar-h: 112px;
    --buyer-fixed-stack-h: 196px;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar {
    grid-template-columns: minmax(260px, .85fr) minmax(320px, 1fr) !important;
    padding: 14px 18px 10px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar h1 {
    font-size: 30px !important;
  }
  body.buyer-page:not(.customer-gate-active) .category-scroll-row {
    padding: 8px 18px !important;
  }
}



/* =========================================================
   SURGICAL FIX PATCH — PRESERVE UI, FIX LAYOUT ONLY
   1) Online shop: true fixed header + category rail using JS-measured heights
   2) Parcel handling: stable left scroll + right sticky log form, no clipping
   ========================================================= */

/* Online shop fixed top stack */
body.buyer-page:not(.customer-gate-active) {
  overflow-x: hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-app,
body.buyer-page:not(.customer-gate-active) .buyer-main,
body.buyer-page:not(.customer-gate-active) .buyer-shop {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 6000 !important;
  margin: 0 !important;
  width: 100% !important;
  background: rgba(255,250,252,.985) !important;
  backdrop-filter: blur(18px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.1) !important;
  border-bottom: 1px solid rgba(255,96,140,.12) !important;
  box-shadow: 0 12px 28px rgba(63,27,44,.07) !important;
}
body.buyer-page:not(.customer-gate-active) .category-scroll-row {
  position: fixed !important;
  top: var(--buyer-fixed-topbar-h, 150px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 5999 !important;
  margin: 0 !important;
  width: 100% !important;
  background: rgba(255,250,252,.985) !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1) !important;
  border-bottom: 1px solid rgba(255,96,140,.10) !important;
  box-shadow: 0 10px 22px rgba(63,27,44,.045) !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head {
  margin-top: calc(var(--buyer-fixed-stack-h, 245px) + 18px) !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-categories {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-chip {
  flex: 0 0 auto !important;
}

/* Buyer cart modal should not create page scroll conflicts */
html.cart-modal-open,
body.cart-modal-open {
  overflow: hidden !important;
}
body.buyer-page.cart-open {
  overflow: hidden !important;
}

/* Admin Parcel Handling: stable POS-like architecture */
#parcels.tab-section.active {
  display: block !important;
  height: calc(100vh - 72px) !important;
  padding: 0 !important;
  overflow: hidden !important;
}
#parcels .parcel-pos-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: var(--bg) !important;
}
#parcels .parcel-main-panel {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 18px !important;
  border-right: 1px solid var(--line) !important;
}
#parcels .parcel-main-head {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(220px, .78fr) minmax(320px, 1fr) !important;
  gap: 14px !important;
  align-items: end !important;
  margin: 0 0 12px !important;
}
#parcels .parcel-main-head h2 {
  font-family: inherit !important;
  font-size: clamp(30px, 3.4vw, 44px) !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
  margin: 0 0 6px !important;
}
#parcels .parcel-main-head .muted {
  margin: 0 !important;
  max-width: 420px !important;
}
#parcels .parcel-list-tools {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}
#parcels .parcel-list-tools input,
#parcels .parcel-list-tools select {
  height: 52px !important;
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 18px !important;
}
#parcelList.parcel-clean-list,
#parcelList.card-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px !important;
  border: 1px dashed #ffd0dc !important;
  border-radius: 22px !important;
  background: rgba(255,247,251,.58) !important;
  align-content: stretch !important;
}
#parcelList .parcel-clean-row {
  width: 100% !important;
  min-width: 0 !important;
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  grid-template-areas: "info amounts actions" !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 1px solid rgba(255,126,156,.36) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(54,32,26,.055) !important;
}
#parcelList .parcel-clean-info {
  grid-area: info !important;
  min-width: 0 !important;
}
#parcelList .parcel-clean-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin-bottom: 6px !important;
}
#parcelList .parcel-clean-title strong {
  min-width: 0 !important;
  max-width: 210px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 16px !important;
  font-weight: 950 !important;
}
#parcelList .parcel-clean-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 12px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
#parcelList .parcel-clean-meta b {
  font-weight: 950 !important;
  color: var(--ink) !important;
}
#parcelList .parcel-clean-meta em {
  font-style: normal !important;
  color: var(--muted) !important;
}
#parcelList .parcel-clean-amounts {
  grid-area: amounts !important;
  display: grid !important;
  grid-template-columns: repeat(3, 76px) !important;
  gap: 7px !important;
  min-width: 0 !important;
}
#parcelList .parcel-clean-amounts span {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
  padding: 8px 9px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,126,156,.42) !important;
  background: rgba(255,246,249,.82) !important;
}
#parcelList .parcel-clean-amounts small {
  font-size: 10px !important;
  line-height: 1 !important;
  color: var(--muted) !important;
}
#parcelList .parcel-clean-amounts b {
  font-size: 13px !important;
  line-height: 1.05 !important;
}
#parcelList .parcel-clean-actions {
  grid-area: actions !important;
  display: grid !important;
  grid-template-columns: 104px 34px !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
}
#parcelList .parcel-clean-actions .primary {
  width: 104px !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 10px !important;
  border-radius: 14px !important;
  font-size: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
#parcelList .parcel-clean-actions .primary::after {
  content: "Claim" !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
#parcelList .parcel-clean-delete {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 999px !important;
}
#parcels .parcel-ticket-panel {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: #fffaf5 !important;
  border-left: 1px solid var(--line) !important;
  padding: 18px !important;
}
#parcels .parcel-ticket-sticky {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 26px !important;
  padding: 20px !important;
  box-shadow: var(--shadow) !important;
}
#parcels .parcel-ticket-form {
  display: grid !important;
  gap: 12px !important;
}

/* Parcel responsive behavior */
@media (max-width: 1180px) {
  #parcels .parcel-pos-layout {
    grid-template-columns: minmax(0, 1fr) 350px !important;
  }
  #parcelList .parcel-clean-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "info actions" "amounts amounts" !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: repeat(3, minmax(76px, 1fr)) !important;
  }
}
@media (max-width: 900px) {
  #parcels.tab-section.active {
    height: auto !important;
    overflow: visible !important;
  }
  #parcels .parcel-pos-layout {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }
  #parcels .parcel-main-panel,
  #parcels .parcel-ticket-panel {
    height: auto !important;
    overflow: visible !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }
  #parcelList.parcel-clean-list {
    max-height: 62vh !important;
    overflow-y: auto !important;
  }
}
@media (max-width: 640px) {
  #parcels .parcel-main-head,
  #parcels .parcel-list-tools {
    grid-template-columns: 1fr !important;
  }
  #parcelList .parcel-clean-row {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-areas: "info" "amounts" "actions" !important;
  }
  #parcelList .parcel-clean-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  #parcelList .parcel-clean-actions {
    grid-template-columns: 1fr 34px !important;
  }
  #parcelList .parcel-clean-actions .primary {
    width: 100% !important;
  }
}


/* =========================================================
   ONLINE SHOP TRUE FIXED TOP HEADER PATCH
   Keeps the welcome/search/cart area out of page scroll.
   Products/categories scroll underneath it.
   ========================================================= */

body.kiosk-page,
body.buyer-page,
body:has(.kiosk-hero),
body:has(#kioskSearch) {
  overflow-x: hidden !important;
}

/* Main buyer top area */
.kiosk-sticky,
.kiosk-top,
.buyer-top,
.buyer-hero,
.kiosk-hero-wrap {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2000 !important;
  background: rgba(255, 250, 248, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid #f7d9df !important;
  box-shadow: 0 12px 35px rgba(40, 20, 20, 0.04) !important;
}

/* If the existing markup uses .kiosk-sticky with hero + category inside */
.kiosk-sticky {
  padding-top: 22px !important;
  padding-bottom: 12px !important;
}

/* Keep the header content within screen width */
.kiosk-hero,
.buyer-hero-inner,
.kiosk-hero-inner {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding-left: clamp(16px, 3vw, 42px) !important;
  padding-right: clamp(16px, 3vw, 42px) !important;
  box-sizing: border-box !important;
}

/* Categories under the top hero should also remain frozen when inside kiosk-sticky */
.category-strip-wrap,
.kiosk-categories-wrap,
.buyer-category-wrap {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 3vw, 42px) !important;
  padding-right: clamp(16px, 3vw, 42px) !important;
  box-sizing: border-box !important;
}

/* The scrollable content starts below fixed header.
   JS will set --kiosk-fixed-top-height exactly; fallback is 235px. */
.kiosk-main,
.buyer-main,
.kiosk-content,
.products-shell,
#kioskProducts,
#productArea {
  padding-top: calc(var(--kiosk-fixed-top-height, 235px) + 18px) !important;
}

/* Prevent anchored content from hiding under the fixed header */
.kiosk-main *,
.buyer-main *,
.kiosk-content * {
  scroll-margin-top: calc(var(--kiosk-fixed-top-height, 235px) + 20px) !important;
}

/* Mobile/portrait adjustment */
@media (max-width: 768px), (orientation: portrait) {
  .kiosk-sticky {
    padding-top: 14px !important;
    padding-bottom: 10px !important;
  }

  .kiosk-hero,
  .buyer-hero-inner,
  .kiosk-hero-inner {
    display: block !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .kiosk-actions,
  .buyer-search-actions {
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 12px !important;
  }

  .category-strip-wrap,
  .kiosk-categories-wrap,
  .buyer-category-wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .kiosk-main,
  .buyer-main,
  .kiosk-content,
  .products-shell,
  #kioskProducts,
  #productArea {
    padding-top: calc(var(--kiosk-fixed-top-height, 255px) + 14px) !important;
  }
}



   Replaces huge blocking browser alerts with a compact toast.
   ========================================================= */
.app-toast,
#appToast {
  position: fixed !important;
  left: 50% !important;
  top: 22px !important;
  transform: translateX(-50%) translateY(-12px) !important;
  z-index: 99999 !important;
  max-width: min(420px, calc(100vw - 28px)) !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  background: rgba(35, 31, 35, 0.92) !important;
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.18) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .18s ease, transform .18s ease !important;
}

.app-toast.show,
#appToast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

.app-toast.error,
#appToast.error {
  background: rgba(190, 43, 58, 0.94) !important;
}

.app-toast.success,
#appToast.success {
  background: rgba(39, 132, 92, 0.94) !important;
}




#miniToast {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 2147483647 !important;
  background: #2d2528 !important;
  color: #fff !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  max-width: min(360px, calc(100vw - 24px)) !important;
  text-align: center !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.20) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity .16s ease, top .16s ease !important;
}
#miniToast.show {
  opacity: 1 !important;
  top: 24px !important;
}



   Replaces all huge centered notification overlays.
   ========================================================= */

#miniToast,
#appToast,
.center-toast,
.success-toast,
.toast,
.app-toast,
.feedback-toast {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 2147483647 !important;

  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: min(380px, calc(100vw - 28px)) !important;

  padding: 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.12) !important;

  background: rgba(42, 34, 38, 0.94) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  text-align: center !important;

  box-shadow: 0 12px 32px rgba(0,0,0,.20) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;

  opacity: 0 !important;
  pointer-events: none !important;
  display: block !important;
  transition: opacity .16s ease, top .16s ease !important;
}

#miniToast.show,
#appToast.show,
.center-toast.show,
.success-toast.show,
.toast.show,
.app-toast.show,
.feedback-toast.show,
.center-toast:not(.hidden),
.success-toast:not(.hidden),
.toast:not(.hidden),
.app-toast:not(.hidden),
.feedback-toast:not(.hidden) {
  opacity: 1 !important;
  top: 26px !important;
}

#miniToast.success,
#appToast.success,
.center-toast.success,
.success-toast.success,
.toast.success,
.app-toast.success,
.feedback-toast.success {
  background: rgba(39,132,92,.96) !important;
}

#miniToast.error,
#appToast.error,
.center-toast.error,
.success-toast.error,
.toast.error,
.app-toast.error,
.feedback-toast.error {
  background: rgba(190,43,58,.96) !important;
}

/* prevent old large modal-toast dimensions from surviving */
.center-toast *,
.success-toast *,
.toast *,
.app-toast *,
.feedback-toast * {
  max-width: 100% !important;
}


/* =========================================================
   FINAL TOAST FIX — SMALL, AUTO-HIDDEN, NON-BLOCKING
   ========================================================= */

#miniToast,
#appToast,
.app-toast,
.center-toast,
.success-toast,
.feedback-toast,
.toast-message,
.toast,
.notification-toast,
.alert-toast {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  z-index: 2147483647 !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: min(360px, calc(100vw - 28px)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding: 10px 14px !important;
  margin: 0 !important;

  display: block !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;

  background: rgba(32, 28, 32, .94) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.18) !important;

  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: opacity .16s ease, visibility .16s ease, top .16s ease !important;
}

#miniToast.show,
#appToast.show,
.app-toast.show,
.center-toast.show,
.success-toast.show,
.feedback-toast.show,
.toast-message.show,
.toast.show,
.notification-toast.show,
.alert-toast.show {
  opacity: 1 !important;
  visibility: visible !important;
  top: 24px !important;
}

#miniToast.success,
#appToast.success,
.app-toast.success,
.center-toast.success,
.success-toast.success,
.feedback-toast.success,
.toast.success {
  background: rgba(31, 129, 85, .96) !important;
}

#miniToast.error,
#appToast.error,
.app-toast.error,
.center-toast.error,
.success-toast.error,
.feedback-toast.error,
.toast.error {
  background: rgba(190, 43, 58, .96) !important;
}

/* If an old toast added a backdrop/blur overlay, kill it */
.toast-backdrop,
.notification-backdrop,
.alert-backdrop,
.center-toast-backdrop,
.toast-overlay {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Admin service list: online-shop style grid with delete control */
#servicesList.admin-services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.admin-service-card {
  cursor: default !important;
  min-height: 100% !important;
}
.admin-service-card:hover {
  transform: translateY(-2px) !important;
}
.admin-service-img {
  height: 165px !important;
}
.admin-service-img .preview,
.admin-service-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.admin-service-img .buyer-no-img,
.admin-service-img .service-placeholder,
.admin-service-img .no-img,
.admin-service-img > span {
  width: 100% !important;
  height: 100% !important;
  display: grid !important;
  place-items: center !important;
}
.admin-service-desc {
  min-height: 34px;
  line-height: 1.35;
}
.admin-delete-service {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,79,134,.28);
  background: rgba(255,255,255,.95);
  color: #ef4444;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(75,31,52,.12);
}
.admin-delete-service:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
@media (max-width: 760px) {
  #servicesList.admin-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .admin-service-img { height: 132px !important; }
}

/* Sales history filters and modal sales history */
.history-panel-head {
  gap: 18px;
  align-items: end;
}
.history-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  width: min(560px, 100%);
}
.history-filters select,
.modal-section-head select {
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid var(--line, #f4c9c0);
  background: #fff;
  padding: 0 16px;
  font-weight: 800;
  outline: none;
}
.history-total-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line, #f4c9c0);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 245, 242, .75);
}
.history-total-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-total-row span {
  font-size: 12px;
  color: var(--muted, #6f5d62);
  font-weight: 800;
}
.history-total-row b {
  font-size: 18px;
}
.compact-history-total {
  margin-bottom: 10px;
  border-radius: 18px;
}
.modal-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  margin-bottom: 12px;
}
.modal-section-head h3 {
  margin: 0;
}
.modal-section-head select {
  width: min(260px, 55vw);
}
@media (max-width: 760px) {
  .history-panel-head,
  .modal-section-head {
    align-items: stretch;
    flex-direction: column;
  }
  .history-filters {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .history-total-row {
    grid-template-columns: 1fr;
  }
  .modal-section-head select {
    width: 100%;
  }
}


/* === Sub-renter overview profile layout === */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
  margin-bottom:18px;
  align-items:stretch;
}
.stat{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  min-height:128px;
  padding:20px 16px;
}
.stat p,
.summary-card p{margin:0;}
.stat p{font-size:15px;font-weight:800;color:var(--ink);line-height:1.35;}
.stat strong{display:block;font-size:34px;line-height:1.05;letter-spacing:-.02em;word-break:break-word;}
.stat small{display:block;font-size:13px;line-height:1.35;color:var(--muted);}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:16px;
  width:100%;
}
.wide-summary-card{grid-column:1/-1;}
.sub-money-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
  gap:10px;
}
.sub-money-grid > div{
  min-width:0;
  background:#fff;
  border:1px solid rgba(234,216,204,.9);
  border-radius:18px;
  padding:12px;
}
.sub-money-grid span{
  display:block;
  margin-bottom:4px;
  font-size:11px;
  line-height:1.25;
  color:var(--muted);
}
.sub-money-grid b{
  display:block;
  font-size:24px;
  line-height:1.15;
  word-break:break-word;
}
.compact-select{
  max-width:260px;
}
.sub-detail-panel h3{
  margin-top:0;
}
.history-total-row{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
}
.history-total-row > div{min-width:0;}
@media (max-width: 700px){
  .stats-grid,.summary-grid,.history-total-row,.sub-money-grid{grid-template-columns:1fr;}
  .stat{min-height:auto;}
  .stat strong,.sub-money-grid b{font-size:28px;}
  .compact-select{max-width:100%;}
}


/* === Mobile fix for sub-renter overview === */
@media (max-width: 760px){
  html, body{
    max-width:100%;
    overflow-x:hidden;
  }
  .is-subrenter-view .dash-main,
  .is-subrenter-view .tab-section,
  .is-subrenter-view #overview{
    width:100%;
    max-width:100vw;
    overflow-x:hidden;
  }
  .is-subrenter-view #overview{
    padding:10px 8px 86px;
  }
  .is-subrenter-view #overview > .panel{
    padding:12px;
    border-radius:20px;
    box-shadow:0 12px 32px rgba(75,42,24,.08);
    overflow:hidden;
  }
  .is-subrenter-view #overview > .panel > h2{
    font-size:18px;
    line-height:1.2;
    margin:2px 0 12px;
  }
  .is-subrenter-view #subrenterSummary.summary-grid{
    display:block;
    width:100%;
    max-width:100%;
  }
  .is-subrenter-view #subrenterSummary .wide-summary-card,
  .is-subrenter-view #subrenterSummary .sub-overview-card,
  .is-subrenter-view #subrenterSummary .sub-detail-panel{
    width:100%;
    max-width:100%;
    min-width:0;
    grid-column:auto;
    margin:0 0 12px;
  }
  .is-subrenter-view #subrenterSummary .sub-overview-card{
    padding:12px;
    border-radius:18px;
  }
  .is-subrenter-view #subrenterSummary .sub-card-head{
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin-bottom:10px;
  }
  .is-subrenter-view #subrenterSummary .sub-card-head h3{
    font-size:16px;
  }
  .is-subrenter-view #subrenterSummary .status-pill{
    display:none;
  }
  .is-subrenter-view #subrenterSummary .eyebrow{
    font-size:9px;
    line-height:1.1;
    margin-bottom:4px;
  }
  .is-subrenter-view #subrenterSummary .sub-money-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .is-subrenter-view #subrenterSummary .sub-money-grid > div{
    padding:9px;
    border-radius:14px;
    min-width:0;
  }
  .is-subrenter-view #subrenterSummary .sub-money-grid span{
    font-size:9px;
    line-height:1.15;
    margin-bottom:4px;
    overflow-wrap:anywhere;
  }
  .is-subrenter-view #subrenterSummary .sub-money-grid b{
    font-size:17px;
    line-height:1.12;
  }
  .is-subrenter-view #subrenterSummary .sub-detail-panel{
    padding:12px;
    border-radius:18px;
  }
  .is-subrenter-view #subrenterSummary .modal-topline{
    display:block;
    margin-bottom:10px;
  }
  .is-subrenter-view #subrenterSummary .modal-topline h3,
  .is-subrenter-view #subrenterSummary .sub-detail-panel h3{
    font-size:18px;
    margin:0 0 4px;
  }
  .is-subrenter-view #subrenterSummary .modal-topline .muted{
    font-size:11px;
    margin:0 0 8px;
  }
  .is-subrenter-view #subrenterSummary .compact-select{
    width:100%;
    max-width:100%;
    padding:10px 12px;
    border-radius:14px;
  }
  .is-subrenter-view #subrenterSummary .history-total-row{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .is-subrenter-view #subrenterSummary .history-total-row > div{
    padding:9px;
    border-radius:14px;
  }
  .is-subrenter-view #subrenterSummary .table-wrap{
    max-width:100%;
    overflow:auto;
    border-radius:16px;
    box-shadow:none;
  }
  .is-subrenter-view #subrenterSummary table{
    min-width:560px;
  }
}
@media (max-width: 380px){
  .is-subrenter-view #subrenterSummary .sub-money-grid{
    grid-template-columns:1fr;
  }
}


/* === Fix mobile native month dropdown width === */
@media (max-width: 760px){
  .is-subrenter-view #subOverviewSalesMonth,
  .is-subrenter-view #subModalSalesMonth{
    width:160px !important;
    max-width:100% !important;
    min-width:0 !important;
    height:38px;
    padding:8px 34px 8px 10px;
    font-size:13px;
    line-height:1.1;
  }

  .is-subrenter-view #subrenterSummary .modal-topline{
    display:flex !important;
    align-items:flex-start;
    justify-content:space-between;
    gap:8px;
    width:100%;
    max-width:100%;
    overflow:visible;
  }

  .is-subrenter-view #subrenterSummary .modal-topline > div{
    min-width:0;
    flex:1 1 auto;
  }

  .is-subrenter-view #subrenterSummary .modal-topline select{
    flex:0 0 160px;
  }
}

@media (max-width: 340px){
  .is-subrenter-view #subOverviewSalesMonth,
  .is-subrenter-view #subModalSalesMonth{
    width:140px !important;
  }

  .is-subrenter-view #subrenterSummary .modal-topline select{
    flex-basis:140px;
  }
}


/* === Final polish: online shop price styling === */
body.buyer-page .buyer-card-foot{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:10px !important;
  margin-top:16px !important;
}
body.buyer-page .buyer-card-foot strong{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px;
  padding:10px 14px !important;
  border-radius:16px !important;
  background:linear-gradient(135deg,#fff0f5 0%, #ffe7dc 100%) !important;
  border:1px solid rgba(255,79,134,.18) !important;
  box-shadow:0 10px 24px rgba(255,79,134,.12) !important;
  color:#ff4f86 !important;
  font-size:22px !important;
  font-weight:1000 !important;
  letter-spacing:-.03em !important;
  line-height:1 !important;
}
body.buyer-page .buyer-card-foot span{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:34px;
  padding:8px 10px !important;
  border-radius:999px !important;
  background:#fff5cf !important;
  border:1px solid rgba(186,123,28,.14) !important;
  color:#8b6713 !important;
  font-size:11px !important;
  font-weight:900 !important;
  line-height:1 !important;
  white-space:nowrap !important;
}
@media (max-width: 520px){
  body.buyer-page .buyer-card-foot{
    grid-template-columns:1fr auto !important;
    display:grid !important;
    align-items:center !important;
  }
  body.buyer-page .buyer-card-foot strong{
    width:max-content;
    max-width:100%;
    min-height:36px;
    padding:8px 12px !important;
    font-size:18px !important;
    border-radius:14px !important;
  }
  body.buyer-page .buyer-card-foot span{
    min-height:30px;
    padding:7px 9px !important;
    font-size:10px !important;
  }
}


/* === Online shop fix: keep welcome/search + categories out of page scroll === */
body.buyer-page .buyer-app{
  height:100vh !important;
  min-height:100vh !important;
  overflow:hidden !important;
}
body.buyer-page .buyer-main{
  height:100vh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scroll-behavior:smooth;
  scrollbar-gutter:stable;
}
body.buyer-page #shopArea{
  display:flex !important;
  flex-direction:column !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar{
  position:sticky !important;
  top:0 !important;
  z-index:70 !important;
  background:rgba(255,250,252,.97) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  box-shadow:0 8px 24px rgba(75,31,52,.05) !important;
}
body.buyer-page:not(.customer-gate-active) .category-scroll-row{
  position:sticky !important;
  top:var(--buyer-sticky-offset, 116px) !important;
  z-index:69 !important;
  background:rgba(255,250,252,.98) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
  box-shadow:0 8px 20px rgba(75,31,52,.04) !important;
}
@media (orientation: landscape){
  body.buyer-page{ --buyer-sticky-offset: 132px; }
}
@media (orientation: portrait){
  body.buyer-page{ --buyer-sticky-offset: 162px; }
}
@media (max-width: 520px) and (orientation: portrait){
  body.buyer-page{ --buyer-sticky-offset: 174px; }
}


/* === Online shop follow-up: freeze section head + center card images === */
body.buyer-page .buyer-product-img,
body.buyer-page .product-img,
body.buyer-page .pos-thumb,
body.buyer-page .ticket-img{
  object-position:center center !important;
}
body.buyer-page .buyer-img-wrap,
body.buyer-page .product-img,
body.buyer-page .buyer-product-card{
  overflow:hidden;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  position:sticky !important;
  top:var(--buyer-section-offset, 196px) !important;
  z-index:68 !important;
  background:rgba(255,250,252,.98) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
  padding:14px 0 12px !important;
  margin:0 0 14px !important;
  border-bottom:1px solid rgba(255,96,140,.10) !important;
}
@media (orientation: landscape){
  body.buyer-page{
    --buyer-sticky-offset: 132px;
    --buyer-section-offset: 206px;
  }
}
@media (orientation: portrait){
  body.buyer-page{
    --buyer-sticky-offset: 162px;
    --buyer-section-offset: 236px;
  }
}
@media (max-width: 520px) and (orientation: portrait){
  body.buyer-page{
    --buyer-sticky-offset: 174px;
    --buyer-section-offset: 252px;
  }
  body.buyer-page .buyer-section-head{
    gap:10px !important;
    align-items:center !important;
  }
}


/* === FINAL MOBILE CLEAN FIX: compact sticky shopping controls === */
@media (max-width: 760px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding-top:0 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar{
    top:0 !important;
    display:block !important;
    padding:10px 10px 8px !important;
    margin:0 -2px !important;
    border-bottom:1px solid rgba(255,96,140,.12) !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar > div:first-child{
    display:none !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 58px !important;
    gap:8px !important;
    width:100% !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
    min-height:46px !important;
    height:46px !important;
    border-radius:16px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap input{
    height:44px !important;
    font-size:12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-cart-icon-btn{
    width:58px !important;
    min-width:58px !important;
    height:46px !important;
    border-radius:16px !important;
    padding:0 !important;
  }
  body.buyer-page:not(.customer-gate-active) .category-scroll-row{
    top:64px !important;
    padding:8px 0 !important;
    margin:0 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head{
    top:122px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:10px 0 10px !important;
    margin:0 0 12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head h2{
    font-size:22px !important;
    line-height:1.05 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle{
    width:100% !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
  }
  body.buyer-page:not(.customer-gate-active) #productCount{
    font-size:11px !important;
  }
}
@media (max-width: 390px){
  body.buyer-page:not(.customer-gate-active) .buyer-section-head{
    top:118px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-chip{
    min-height:38px !important;
    padding:0 12px !important;
    font-size:12px !important;
  }
}


/* === HARD FIX: only product list scrolls, top shopping controls stay fixed === */
body.buyer-page:not(.customer-gate-active),
body.buyer-page:not(.customer-gate-active) .buyer-app{
  height:100dvh !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-main{
  display:flex !important;
  flex-direction:column !important;
  height:100dvh !important;
  min-height:100dvh !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active) #shopArea{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:100% !important;
  display:grid !important;
  grid-template-rows:auto auto auto minmax(0,1fr) !important;
  align-content:start !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar,
body.buyer-page:not(.customer-gate-active) .category-scroll-row,
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar{
  z-index:auto !important;
  margin:0 !important;
  box-shadow:none !important;
}
body.buyer-page:not(.customer-gate-active) .category-scroll-row{
  z-index:auto !important;
  margin:0 !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  z-index:auto !important;
  margin:0 !important;
}
body.buyer-page:not(.customer-gate-active) #shopProducts{
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  align-content:start !important;
  padding:14px 4px 24px !important;
  scroll-behavior:smooth;
  overscroll-behavior:contain;
}
body.buyer-page:not(.customer-gate-active) #shopProducts::-webkit-scrollbar{
  width:10px;
}
body.buyer-page:not(.customer-gate-active) #shopProducts::-webkit-scrollbar-thumb{
  background:rgba(255,96,140,.22);
  border-radius:999px;
}
@media (max-width:760px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:8px 10px 10px !important;
  }
  body.buyer-page:not(.customer-gate-active) #shopProducts{
    padding:10px 2px 18px !important;
  }
}


/* === FINAL: Products/Services toggle beside cart === */
body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto 70px !important;
  align-items:center !important;
  gap:10px !important;
}
body.buyer-page .buyer-mode-toggle-top{
  display:inline-grid !important;
  grid-template-columns:1fr 1fr !important;
  min-width:210px !important;
  align-self:center !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  display:flex !important;
  align-items:end !important;
  justify-content:space-between !important;
  gap:12px !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head #productCount{
  margin-left:auto !important;
}
@media (max-width:760px){
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row{
    grid-template-columns:minmax(0,1fr) 52px 52px !important;
    gap:6px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{
    min-width:52px !important;
    width:52px !important;
    height:46px !important;
    overflow:hidden !important;
    border-radius:16px !important;
    display:flex !important;
    position:relative !important;
    padding:0 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode{
    min-width:52px !important;
    width:52px !important;
    height:46px !important;
    padding:0 !important;
    border-radius:16px !important;
    font-size:0 !important;
    display:none !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode.active{
    display:grid !important;
    place-items:center !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode.active::after{
    content:attr(data-short-label);
    font-size:16px !important;
    line-height:1 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-cart-icon-btn{
    width:52px !important;
    min-width:52px !important;
    height:46px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head{
    display:flex !important;
    align-items:end !important;
    justify-content:space-between !important;
    padding:10px 0 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head .mini-label{
    font-size:10px !important;
  }
  body.buyer-page:not(.customer-gate-active) #productCount{
    font-size:11px !important;
    white-space:nowrap !important;
  }
}


/* =========================================================
   FINAL REPAIR: Online shop top controls + normal product cards
   - Topbar and category rail stay fixed
   - Page/product cards scroll normally under them
   - Products/Services switch is beside the cart, with readable text
   - Product card photos are centered and full card details stay visible
   ========================================================= */
body.buyer-page:not(.customer-gate-active){
  overflow-x:hidden !important;
  overflow-y:auto !important;
  background:#fff7fb !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-app,
body.buyer-page:not(.customer-gate-active) .buyer-main,
body.buyer-page:not(.customer-gate-active) #shopArea{
  display:block !important;
  height:auto !important;
  min-height:100dvh !important;
  overflow:visible !important;
  max-width:100% !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-main{
  padding:0 clamp(14px,3vw,46px) 38px !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  z-index:9000 !important;
  display:grid !important;
  grid-template-columns:minmax(260px,1fr) minmax(420px,620px) !important;
  gap:18px !important;
  align-items:center !important;
  width:100% !important;
  margin:0 !important;
  padding:22px clamp(18px,3vw,46px) 16px !important;
  background:rgba(255,250,252,.985) !important;
  border-bottom:1px solid rgba(255,96,140,.12) !important;
  box-shadow:0 14px 32px rgba(63,27,44,.075) !important;
  backdrop-filter:blur(18px) saturate(1.08) !important;
  -webkit-backdrop-filter:blur(18px) saturate(1.08) !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto 64px !important;
  grid-template-areas:"search mode cart" !important;
  gap:10px !important;
  align-items:center !important;
  min-width:0 !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{grid-area:search !important;min-width:0 !important;}
body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{
  grid-area:mode !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  width:auto !important;
  min-width:0 !important;
  padding:4px !important;
  overflow:visible !important;
  border:1px solid rgba(255,96,140,.18) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 10px 22px rgba(75,31,52,.055) !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:96px !important;
  height:42px !important;
  padding:0 14px !important;
  border-radius:14px !important;
  font-size:13px !important;
  line-height:1 !important;
  font-weight:950 !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode::after{content:none !important;}
body.buyer-page:not(.customer-gate-active) .buyer-cart-icon-btn{
  grid-area:cart !important;
  width:64px !important;
  min-width:64px !important;
  height:52px !important;
  border-radius:18px !important;
  padding:0 !important;
}
body.buyer-page:not(.customer-gate-active) .category-scroll-row{
  position:fixed !important;
  top:var(--buyer-fixed-topbar-h,118px) !important;
  left:0 !important;
  right:0 !important;
  z-index:8999 !important;
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 44px !important;
  gap:10px !important;
  align-items:center !important;
  width:100% !important;
  margin:0 !important;
  padding:12px clamp(18px,3vw,46px) !important;
  background:rgba(255,250,252,.985) !important;
  border-bottom:1px solid rgba(255,96,140,.10) !important;
  box-shadow:0 12px 26px rgba(63,27,44,.05) !important;
  backdrop-filter:blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter:blur(16px) saturate(1.08) !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-categories{
  display:flex !important;
  gap:10px !important;
  min-width:0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  white-space:nowrap !important;
  scrollbar-width:none !important;
  -webkit-overflow-scrolling:touch !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-categories::-webkit-scrollbar{display:none !important;}
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  position:relative !important;
  top:auto !important;
  z-index:auto !important;
  margin:calc(var(--buyer-fixed-stack-h,190px) + 22px) 0 16px !important;
  display:flex !important;
  align-items:end !important;
  justify-content:space-between !important;
  gap:16px !important;
  padding:0 0 12px !important;
  border-bottom:1px solid rgba(255,96,140,.10) !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head .buyer-mode-toggle{display:none !important;}
body.buyer-page:not(.customer-gate-active) #shopProducts,
body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr)) !important;
  gap:18px !important;
  overflow:visible !important;
  height:auto !important;
  min-height:0 !important;
  padding:0 0 28px !important;
  align-items:stretch !important;
  align-content:start !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-product-card{
  display:flex !important;
  flex-direction:column !important;
  min-height:390px !important;
  height:auto !important;
  padding:14px !important;
  border-radius:28px !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-img-wrap{
  flex:0 0 190px !important;
  height:190px !important;
  width:100% !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border-radius:22px !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-product-img,
body.buyer-page:not(.customer-gate-active) .product-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-card-body{
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:column !important;
  min-height:0 !important;
  padding-top:12px !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-card-body h3{
  display:block !important;
  min-height:40px !important;
  overflow:visible !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-card-foot{
  margin-top:auto !important;
}
@media (max-width:760px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:0 10px 28px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar{
    display:block !important;
    padding:10px 10px 9px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar > div:first-child{display:none !important;}
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 58px !important;
    grid-template-areas:
      "search search"
      "mode cart" !important;
    gap:8px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
    height:42px !important;
    min-height:42px !important;
    border-radius:15px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap input{
    height:40px !important;
    font-size:11px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{
    width:100% !important;
    height:42px !important;
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:4px !important;
    padding:4px !important;
    border-radius:15px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode{
    min-width:0 !important;
    width:100% !important;
    height:34px !important;
    padding:0 8px !important;
    font-size:12px !important;
    border-radius:12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-cart-icon-btn{
    width:58px !important;
    min-width:58px !important;
    height:42px !important;
    border-radius:15px !important;
  }
  body.buyer-page:not(.customer-gate-active) .category-scroll-row{
    top:var(--buyer-fixed-topbar-h,104px) !important;
    grid-template-columns:34px minmax(0,1fr) 34px !important;
    gap:6px !important;
    padding:8px 10px !important;
  }
  body.buyer-page:not(.customer-gate-active) .cat-scroll-btn{
    width:34px !important;
    height:36px !important;
    border-radius:13px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-chip{
    min-height:36px !important;
    padding:0 12px !important;
    border-radius:14px !important;
    font-size:12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head{
    margin-top:calc(var(--buyer-fixed-stack-h,154px) + 12px) !important;
    align-items:end !important;
    padding-bottom:8px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head h2{
    font-size:20px !important;
    line-height:1.05 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head .mini-label{font-size:9px !important;}
  body.buyer-page:not(.customer-gate-active) #productCount{font-size:10px !important;white-space:nowrap !important;}
  body.buyer-page:not(.customer-gate-active) #shopProducts,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding-bottom:24px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-product-card{
    min-height:285px !important;
    padding:9px !important;
    border-radius:20px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-img-wrap{
    flex-basis:112px !important;
    height:112px !important;
    border-radius:16px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-body{
    padding-top:8px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-body h3{
    font-size:13px !important;
    line-height:1.12 !important;
    min-height:32px !important;
    margin-bottom:5px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-body .mini-label{
    font-size:9px !important;
    margin-bottom:5px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-body .soft-text{
    font-size:10px !important;
    line-height:1.25 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-foot{
    margin-top:auto !important;
    gap:5px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-foot strong{
    min-height:31px !important;
    padding:6px 10px !important;
    font-size:15px !important;
    border-radius:12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-card-foot span{
    min-height:26px !important;
    padding:5px 7px !important;
    font-size:9px !important;
  }
  body.buyer-page:not(.customer-gate-active) .quick-add,
  body.buyer-page:not(.customer-gate-active) .quick-view{
    width:30px !important;
    height:30px !important;
    border-radius:11px !important;
    right:10px !important;
  }
  body.buyer-page:not(.customer-gate-active) .quick-add{top:10px !important;}
  body.buyer-page:not(.customer-gate-active) .quick-view{top:45px !important;}
}
@media (min-width:761px) and (max-width:1100px){
  body.buyer-page:not(.customer-gate-active) #shopProducts,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}

/* =========================================================
   SENIOR FIX — REAL NON-SCROLLING ONLINE SHOP TOP AREA
   Principle: body/main/shopArea DO NOT SCROLL. Only #shopProducts scrolls.
   This overrides all earlier sticky/fixed experiments.
   ========================================================= */
html,
body.buyer-page{
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active){
  height:100dvh !important;
  max-height:100dvh !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-app{
  width:100% !important;
  height:100dvh !important;
  max-height:100dvh !important;
  min-height:0 !important;
  overflow:hidden !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-main{
  width:100% !important;
  height:100dvh !important;
  max-height:100dvh !important;
  min-height:0 !important;
  overflow:hidden !important;
  display:block !important;
}
body.buyer-page:not(.customer-gate-active) #shopArea{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-height:100% !important;
  overflow:hidden !important;
  display:grid !important;
  grid-template-rows:auto auto auto minmax(0, 1fr) !important;
  align-content:stretch !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar,
body.buyer-page:not(.customer-gate-active) .category-scroll-row,
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  position:static !important;
  top:auto !important;
  bottom:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  z-index:auto !important;
  flex:0 0 auto !important;
  min-height:0 !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-topbar{
  margin:0 !important;
  background:rgba(255,250,252,.98) !important;
  border-bottom:1px solid rgba(255,96,140,.12) !important;
  box-shadow:none !important;
}
body.buyer-page:not(.customer-gate-active) .category-scroll-row{
  margin:0 !important;
  background:rgba(255,250,252,.98) !important;
  border-bottom:1px solid rgba(255,96,140,.08) !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head{
  margin:0 !important;
  background:rgba(255,250,252,.98) !important;
  border-bottom:1px solid rgba(255,96,140,.10) !important;
}
body.buyer-page:not(.customer-gate-active) #shopProducts{
  min-height:0 !important;
  height:100% !important;
  max-height:100% !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)) !important;
  gap:18px !important;
  align-content:start !important;
  align-items:start !important;
  padding:16px 4px 28px !important;
  -webkit-overflow-scrolling:touch !important;
  overscroll-behavior:contain !important;
}
body.buyer-page:not(.customer-gate-active) #shopProducts .buyer-product-card{
  align-self:start !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-img-wrap,
body.buyer-page:not(.customer-gate-active) .buyer-product-img,
body.buyer-page:not(.customer-gate-active) .product-img{
  object-position:center center !important;
}
@media (max-width:760px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:0 !important;
  }
  body.buyer-page:not(.customer-gate-active) #shopArea{
    padding:8px 10px 10px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar{
    padding:8px 0 !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar > div:first-child{
    display:none !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 58px !important;
    grid-template-areas:
      "search search"
      "mode cart" !important;
    gap:8px !important;
    width:100% !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{grid-area:search !important;}
  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{grid-area:mode !important;}
  body.buyer-page:not(.customer-gate-active) .buyer-cart-icon-btn{grid-area:cart !important;}
  body.buyer-page:not(.customer-gate-active) .category-scroll-row{
    padding:8px 0 !important;
    grid-template-columns:34px minmax(0,1fr) 34px !important;
    gap:6px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head{
    padding:8px 0 !important;
    display:flex !important;
    align-items:end !important;
    justify-content:space-between !important;
    gap:8px !important;
  }
  body.buyer-page:not(.customer-gate-active) #shopProducts{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px !important;
    padding:10px 0 18px !important;
  }
}
@media (min-width:761px) and (max-width:1100px){
  body.buyer-page:not(.customer-gate-active) #shopProducts{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  }
}

/* === Clean category selector: replace horizontal category strip === */
body.buyer-page:not(.customer-gate-active) .category-scroll-row,
body.buyer-page:not(.customer-gate-active) .buyer-categories,
body.buyer-page:not(.customer-gate-active) .cat-scroll-btn{
  display:none !important;
}
body.buyer-page:not(.customer-gate-active) #shopArea{
  grid-template-rows:auto auto minmax(0,1fr) !important;
}
body.buyer-page:not(.customer-gate-active) .buyer-section-head-clean{
  position:relative !important;
  top:auto !important;
  z-index:30 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:end !important;
  gap:14px !important;
  padding:18px 0 14px !important;
  margin:0 !important;
  border-top:1px solid rgba(255,96,140,.10) !important;
  border-bottom:1px solid rgba(255,96,140,.10) !important;
  background:rgba(255,250,252,.96) !important;
  backdrop-filter:blur(12px) !important;
  -webkit-backdrop-filter:blur(12px) !important;
}
body.buyer-page .buyer-section-actions{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:0;
}
body.buyer-page .buyer-category-btn{
  min-width:210px;
  min-height:52px;
  border:1px solid rgba(255,96,140,.22);
  background:#fff;
  color:#191923;
  border-radius:18px;
  padding:8px 14px;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-areas:"label arrow" "value arrow";
  align-items:center;
  text-align:left;
  box-shadow:0 12px 28px rgba(75,31,52,.06);
  cursor:pointer;
}
body.buyer-page .buyer-category-btn span{
  grid-area:label;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  color:#ff4f86;
  text-transform:uppercase;
  line-height:1;
}
body.buyer-page .buyer-category-btn strong{
  grid-area:value;
  display:block;
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  line-height:1.2;
}
body.buyer-page .buyer-category-btn b{
  grid-area:arrow;
  color:#ff4f86;
  font-size:18px;
  padding-left:12px;
}
body.buyer-page .buyer-category-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:80;
  width:min(520px, calc(100vw - 72px));
  max-height:min(460px, 62vh);
  overflow:auto;
  background:#fff;
  border:1px solid rgba(255,96,140,.22);
  border-radius:22px;
  padding:12px;
  box-shadow:0 24px 70px rgba(75,31,52,.18);
}
body.buyer-page .buyer-category-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
body.buyer-page .buyer-category-option{
  min-height:44px;
  border:1px solid rgba(255,96,140,.14);
  background:#fffafc;
  border-radius:14px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  font-weight:900;
  color:#191923;
  cursor:pointer;
}
body.buyer-page .buyer-category-option.active{
  background:linear-gradient(135deg,#ff6f9e,#ff7a68);
  color:#fff;
  border-color:transparent;
  box-shadow:0 10px 24px rgba(255,79,134,.22);
}
body.buyer-page .buyer-category-option span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:760px){
  body.buyer-page:not(.customer-gate-active) #shopArea{
    grid-template-rows:auto auto minmax(0,1fr) !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-section-head-clean{
    grid-template-columns:1fr !important;
    align-items:start !important;
    gap:10px !important;
    padding:12px 0 10px !important;
  }
  body.buyer-page .buyer-section-actions{
    width:100%;
    justify-content:space-between;
  }
  body.buyer-page .buyer-category-btn{
    min-width:0;
    width:100%;
    min-height:46px;
    border-radius:16px;
  }
  body.buyer-page .buyer-category-btn strong{
    max-width:calc(100vw - 150px);
    font-size:14px;
  }
  body.buyer-page .buyer-category-menu{
    left:0;
    right:0;
    width:100%;
    max-height:48vh;
    border-radius:18px;
  }
  body.buyer-page .buyer-category-options{
    grid-template-columns:1fr;
  }
}


/* === FINAL POLISH: soften product-scroll bottom so cards do not look chopped === */
body.buyer-page:not(.customer-gate-active) #shopArea{
  position:relative !important;
  overflow:hidden !important;
  border-radius:0 0 22px 22px !important;
}
body.buyer-page:not(.customer-gate-active) #shopProducts,
body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
  padding-bottom:140px !important;
  scroll-padding-bottom:140px !important;
}
body.buyer-page:not(.customer-gate-active) #shopArea::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:76px;
  z-index:35;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(255,250,252,0), rgba(255,250,252,.96) 72%, #fffafc 100%);
}
body.buyer-page:not(.customer-gate-active) #shopProducts::-webkit-scrollbar-track{
  margin-bottom:82px;
}
@media(max-width:760px){
  body.buyer-page:not(.customer-gate-active) #shopProducts,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    padding-bottom:115px !important;
    scroll-padding-bottom:115px !important;
  }
  body.buyer-page:not(.customer-gate-active) #shopArea::after{
    height:58px;
  }
}

/* === Bottom edge refinement: make product-scroll cut meet the viewport bottom === */
body.buyer-page:not(.customer-gate-active) .buyer-main{
  padding-bottom:0 !important;
}
body.buyer-page:not(.customer-gate-active) #shopArea{
  height:100dvh !important;
  border-radius:0 !important;
}
body.buyer-page:not(.customer-gate-active) #shopProducts,
body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
  padding-bottom:24px !important;
  scroll-padding-bottom:24px !important;
}
body.buyer-page:not(.customer-gate-active) #shopArea::after{
  bottom:0 !important;
  height:42px !important;
  background:linear-gradient(to bottom, rgba(255,250,252,0), rgba(255,250,252,.96) 78%, #fffafc 100%) !important;
}
body.buyer-page:not(.customer-gate-active) #shopProducts::-webkit-scrollbar-track{
  margin-bottom:0 !important;
}
@media(max-width:760px){
  body.buyer-page:not(.customer-gate-active) #shopArea{
    height:100dvh !important;
    padding-bottom:0 !important;
  }
  body.buyer-page:not(.customer-gate-active) #shopProducts,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    padding-bottom:18px !important;
    scroll-padding-bottom:18px !important;
  }
  body.buyer-page:not(.customer-gate-active) #shopArea::after{
    height:34px !important;
  }
}


/* === FINAL FIX: online shop product photos centered and not awkwardly cropped === */
body.buyer-page .buyer-img-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:linear-gradient(135deg,#fff1f7,#ffece5) !important;
  overflow:hidden !important;
}

body.buyer-page .buyer-product-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:50% 50% !important;
  display:block !important;
}

/* On smaller cards, use a taller photo frame so the product does not look chopped. */
@media (max-width:760px){
  body.buyer-page .buyer-img-wrap{
    height:clamp(135px, 42vw, 175px) !important;
    border-radius:18px !important;
  }
}

/* On very narrow phones, keep the frame balanced and centered. */
@media (max-width:420px){
  body.buyer-page .buyer-img-wrap{
    height:138px !important;
  }
  body.buyer-page .buyer-product-img{
    object-position:50% 50% !important;
  }
}

/* Desktop cards: balanced crop with the subject centered in the frame. */
@media (min-width:761px){
  body.buyer-page .buyer-img-wrap{
    height:190px !important;
  }
  body.buyer-page .buyer-product-img{
    object-position:50% 50% !important;
  }
}


/* === FINAL TUNE: center product photo vertically inside the card frame ===
   Sides are kept the same. This only improves top/bottom positioning. */
body.buyer-page .buyer-img-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

body.buyer-page .buyer-product-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center center !important;
}

/* Mobile: give the photo frame enough height so top/bottom crop looks balanced. */
@media (max-width:760px){
  body.buyer-page .buyer-img-wrap{
    height:150px !important;
  }
}

@media (max-width:420px){
  body.buyer-page .buyer-img-wrap{
    height:146px !important;
  }
}

/* Desktop keeps the side framing, but centers vertically too. */
@media (min-width:761px){
  body.buyer-page .buyer-img-wrap{
    height:190px !important;
  }
}


/* === TRUE FINAL IMAGE FIX: show product photo centered, no ugly top/bottom crop ===
   This overrides all earlier buyer image rules at the very end of the CSS. */
body.buyer-page .buyer-img-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#fff7fa !important;
  overflow:hidden !important;
}

body.buyer-page .buyer-img-wrap img,
body.buyer-page img.buyer-product-img,
body.buyer-page .buyer-product-img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  display:block !important;
  background:#fff7fa !important;
}

/* Keep the frame clean and balanced on desktop. */
@media (min-width:761px){
  body.buyer-page .buyer-img-wrap{
    height:190px !important;
    padding:0 !important;
  }
}

/* Keep the frame clean and balanced on mobile. */
@media (max-width:760px){
  body.buyer-page .buyer-img-wrap{
    height:145px !important;
    padding:0 !important;
  }
}

@media (max-width:420px){
  body.buyer-page .buyer-img-wrap{
    height:140px !important;
  }
}


/* === OPTION 2: product focal-point images
   Uses cover for a premium shop-card look, but reads --img-x / --img-y per product.
   Default is center 62%, which keeps hand-held products lower/centered instead of awkwardly high. */
body.buyer-page .buyer-img-wrap{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#fff1f7,#ffece5) !important;
}

body.buyer-page .buyer-img-wrap img,
body.buyer-page img.buyer-product-img,
body.buyer-page .buyer-product-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:var(--img-x, 50%) var(--img-y, 62%) !important;
  display:block !important;
}

/* Desktop: keep the premium crop but focus slightly lower. */
@media (min-width:761px){
  body.buyer-page .buyer-img-wrap{
    height:190px !important;
  }
  body.buyer-page .buyer-product-img{
    object-position:var(--img-x, 50%) var(--img-y, 62%) !important;
  }
}

/* Mobile: slightly taller frame and same focal rule. */
@media (max-width:760px){
  body.buyer-page .buyer-img-wrap{
    height:145px !important;
  }
  body.buyer-page .buyer-product-img{
    object-position:var(--img-x, 50%) var(--img-y, 62%) !important;
  }
}

@media (max-width:420px){
  body.buyer-page .buyer-img-wrap{
    height:140px !important;
  }
}

/* Optional manual overrides:
   Open browser console and run:
   localStorage.setItem('product-focus:PRODUCT_ID', JSON.stringify({x:50,y:70}))
   then refresh. Use y 55-75 to move photo crop up/down. */


/* === DEDICATED ADD-TO-CART POPUP
   Independent from old toast styles, so it always appears. === */
#cartAddPopup{
  position:fixed !important;
  top:18px !important;
  right:18px !important;
  left:auto !important;
  bottom:auto !important;
  z-index:2147483647 !important;

  display:flex !important;
  align-items:center !important;
  gap:12px !important;

  min-width:220px !important;
  max-width:min(340px, calc(100vw - 28px)) !important;
  padding:12px 14px !important;
  border-radius:18px !important;

  background:rgba(255,255,255,.96) !important;
  color:#191923 !important;
  border:1px solid rgba(255,96,140,.22) !important;
  box-shadow:0 18px 48px rgba(75,31,52,.18) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;

  opacity:0 !important;
  visibility:hidden !important;
  transform:translateY(-12px) scale(.96) !important;
  pointer-events:none !important;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease !important;
}

#cartAddPopup.show{
  opacity:1 !important;
  visibility:visible !important;
  transform:translateY(0) scale(1) !important;
}

#cartAddPopup .cart-add-popup-icon{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  border-radius:999px !important;
  display:grid !important;
  place-items:center !important;
  background:linear-gradient(135deg,#ff5f97,#ff7550) !important;
  color:#fff !important;
  font-weight:1000 !important;
  font-size:22px !important;
  box-shadow:0 10px 24px rgba(255,79,134,.22) !important;
}

#cartAddPopup strong{
  display:block !important;
  font-size:14px !important;
  line-height:1.15 !important;
  font-weight:950 !important;
  color:#191923 !important;
}

#cartAddPopup span{
  display:block !important;
  margin-top:2px !important;
  font-size:12px !important;
  line-height:1.15 !important;
  font-weight:750 !important;
  color:#7b6d73 !important;
}

@media(max-width:760px){
  #cartAddPopup{
    top:12px !important;
    right:12px !important;
    min-width:190px !important;
    padding:10px 12px !important;
    border-radius:16px !important;
  }
}


/* === Admin order approval button reliability === */
button[data-action^="order-"]{
  position:relative !important;
  z-index:5 !important;
  pointer-events:auto !important;
}
button[data-action^="order-"]:disabled{
  opacity:.65 !important;
  cursor:wait !important;
}
.order-card,
.order-card *{
  pointer-events:auto;
}


/* === Pickup progress bar === */
.pickup-progress-wrap{
  margin-top: 6px;
}
.pickup-progress-bar{
  display:grid;
  grid-template-columns:auto minmax(24px,1fr) auto minmax(24px,1fr) auto minmax(24px,1fr) auto;
  align-items:center;
  gap:10px;
}
.pickup-step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  background:transparent;
  border:0;
  padding:0;
  min-width:92px;
  cursor:pointer;
}
.pickup-step-dot{
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-weight:1000;
  font-size:14px;
  background:#fff;
  border:2px solid var(--line);
  color:var(--muted);
  transition:.18s ease;
}
.pickup-step-label{
  font-size:13px;
  font-weight:900;
  color:var(--muted);
  text-align:center;
  line-height:1.1;
}
.pickup-progress-line{
  height:6px;
  border-radius:999px;
  background:#f2e4df;
}
.pickup-progress-line.done{
  background:linear-gradient(90deg,var(--accent2),var(--accent));
}
.pickup-step.done .pickup-step-dot{
  background:#fff3f7;
  border-color:#ff8aad;
  color:#ff5a8b;
}
.pickup-step.done .pickup-step-label{
  color:var(--ink);
}
.pickup-step.active .pickup-step-dot{
  background:linear-gradient(135deg,var(--accent2),var(--accent));
  border-color:transparent;
  color:#fff;
  box-shadow:0 10px 24px rgba(255,96,140,.22);
}
.pickup-step.active .pickup-step-label{
  color:var(--ink);
}
.pickup-step:hover .pickup-step-dot{
  transform:translateY(-1px);
}
@media (max-width: 900px){
  .pickup-progress-bar{
    grid-template-columns:1fr;
    gap:8px;
  }
  .pickup-progress-line{
    height:18px;
    width:6px;
    margin:0 auto;
  }
  .pickup-step{
    flex-direction:row;
    justify-content:flex-start;
    min-width:0;
  }
  .pickup-step-label{
    text-align:left;
  }
}


/* === Expert UI refresh: pickup progress === */
.pickup-card-pro{
  padding:22px !important;
  gap:14px !important;
  border-radius:28px !important;
  background:linear-gradient(180deg,#fff,#fffaf8) !important;
}
.pickup-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.pickup-code-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.pickup-code-row b{
  font-size:32px;
  font-family:Georgia,serif;
  line-height:1;
}
.pickup-buyer-line{margin:8px 0 0 !important;font-size:15px !important;}
.pickup-total{font-size:34px;line-height:1;font-weight:1000;white-space:nowrap;}
.pickup-items-mini{margin-top:2px;}
.pickup-items-mini span{background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:999px;font-weight:900;}
.pickup-progress-card{
  border:1px solid var(--line);
  background:#fff;
  border-radius:24px;
  padding:18px;
  box-shadow:0 10px 24px rgba(52,30,18,.05);
}
.pickup-progress-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.pickup-progress-kicker{
  margin:0 0 6px;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:11px;
  color:var(--muted);
  font-weight:900;
}
.pickup-progress-top h3{margin:0;font-size:22px;line-height:1.1;}
.pickup-progress-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff4ea;
  color:#8a5b34;
  font-weight:900;
  border:1px solid #f2d8c4;
}
.pickup-progress-badge.step-3{background:#eef9f2;color:#176742;border-color:#caecd4;}
.pickup-stepper{
  display:grid;
  grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr) 56px minmax(0,1fr);
  align-items:center;
  gap:12px;
}
.pickup-stepper-line{
  height:6px;
  border-radius:999px;
  background:#f1e5df;
}
.pickup-stepper-line.done{
  background:linear-gradient(90deg,#ff8aac,#ff6c5f);
}
.pickup-node{
  border:0;
  background:transparent;
  padding:0;
  display:flex;
  align-items:center;
  gap:12px;
  text-align:left;
  cursor:pointer;
}
.pickup-node-dot{
  width:50px;height:50px;border-radius:16px;display:grid;place-items:center;
  background:#fff7f2;border:1px solid #edd8ca;font-size:20px;flex:0 0 50px;
}
.pickup-node-text strong{display:block;font-size:15px;line-height:1.1;}
.pickup-node-text small{display:block;margin-top:4px;font-size:12px;color:var(--muted);font-weight:800;line-height:1.15;}
.pickup-node.done .pickup-node-dot{background:#fff1f5;border-color:#ffb0c6;color:#ff5c90;}
.pickup-node.active .pickup-node-dot{background:linear-gradient(135deg,var(--accent2),var(--accent));border-color:transparent;color:#fff;box-shadow:0 14px 30px rgba(255,96,140,.22);}
.pickup-node:hover .pickup-node-dot{transform:translateY(-1px);}
.pickup-cta-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.pickup-cta-row button{min-height:46px;border-radius:14px;padding:0 16px;font-weight:900;}
.pickup-cta-row .is-current{box-shadow:inset 0 0 0 2px rgba(25,23,34,.08);}
.danger-soft{background:#fff3f1 !important;border:1px solid #ffcfc8 !important;color:#c04632 !important;}
.danger-soft:hover{background:#ffeae6 !important;}
.bogus-pill{background:#fff0f0 !important;color:#b44242 !important;}
.bogus-grid-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.bogus-grid-meta > div{background:#fff8f6;border:1px solid #f2ddd7;border-radius:16px;padding:12px;}
.bogus-grid-meta span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);font-weight:900;margin-bottom:6px;}
.bogus-grid-meta strong{font-size:14px;line-height:1.25;display:block;}
@media (max-width: 980px){
  .pickup-card-head,.pickup-progress-top{flex-direction:column;align-items:flex-start;}
  .pickup-total{font-size:28px;}
  .pickup-stepper{grid-template-columns:1fr;gap:10px;}
  .pickup-stepper-line{height:18px;width:6px;margin:0 auto;}
  .bogus-grid-meta{grid-template-columns:1fr;}
}


/* === Loyal customers admin + buyer account history === */
.loyal-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:16px;
}
.loyal-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  box-shadow:var(--shadow);
}
.loyal-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.loyal-card h3{
  margin:0;
  font-size:24px;
  line-height:1.05;
}
.loyal-login-box,.loyal-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.loyal-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.loyal-login-box > div,.loyal-stats > div{
  background:#fff8f6;
  border:1px solid #f2ddd7;
  border-radius:16px;
  padding:12px;
  min-width:0;
}
.loyal-login-box span,.loyal-stats span{
  display:block;
  font-size:11px;
  font-weight:900;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:6px;
}
.loyal-login-box strong,.loyal-stats strong{
  display:block;
  font-size:16px;
  line-height:1.15;
  word-break:break-word;
}
.loyal-history h4{
  margin:12px 0 8px;
}
.loyal-order-row{
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  margin-top:8px;
  background:#fff;
}
.loyal-order-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}
.loyal-order-row small{
  display:block;
  color:var(--muted);
  margin-top:3px;
}
.loyal-order-row p{
  grid-column:1/-1;
  margin:2px 0 0;
  color:var(--muted);
  font-size:13px;
}
.copy-login-btn{
  white-space:nowrap;
}
.buyer-account-btn{
  min-height:54px;
  padding:0 16px;
  border:1px solid var(--pink-line);
  border-radius:18px;
  background:#fff;
  color:#8f1748;
  font-weight:950;
  box-shadow:0 12px 30px rgba(75,31,52,.06);
  white-space:nowrap;
}
.customer-orders-modal{
  position:fixed;
  inset:0;
  z-index:2147483000;
  background:rgba(24,18,22,.35);
  display:grid;
  place-items:center;
  padding:18px;
}
.customer-orders-card{
  width:min(720px,96vw);
  max-height:88vh;
  overflow:auto;
  background:#fff;
  border:1px solid var(--pink-line);
  border-radius:28px;
  padding:24px;
  position:relative;
  box-shadow:0 28px 90px rgba(75,31,52,.25);
}
.customer-orders-card h2{
  margin:0 0 8px;
  font-size:34px;
  line-height:1;
}
.customer-orders-list{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.customer-order-item{
  border:1px solid var(--pink-line);
  border-radius:18px;
  padding:14px;
  background:#fff9fb;
}
.customer-order-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.customer-order-item p{
  margin:6px 0;
  color:var(--muted);
  font-size:13px;
}
.customer-order-status,.customer-order-products{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.customer-order-status span,.customer-order-products span{
  background:#fff;
  border:1px solid var(--pink-line);
  border-radius:999px;
  padding:6px 9px;
  font-size:12px;
  font-weight:850;
}
@media(max-width:760px){
  .loyal-grid{grid-template-columns:1fr;}
  .loyal-card-head{flex-direction:column;}
  .loyal-login-box,.loyal-stats{grid-template-columns:1fr;}
  .buyer-account-btn{
    min-height:46px;
    font-size:12px;
    padding:0 10px;
  }
}

/* Orders: cancelled/bogus action */
.danger-soft{
  background:#fff3f1 !important;
  border:1px solid #ffcfc8 !important;
  color:#c04632 !important;
}
.danger-soft:hover{
  background:#ffeae6 !important;
}


/* === Online shop: compact My Orders button, hidden for new customers === */
body.buyer-page .buyer-account-btn.hidden{
  display:none !important;
}

body.buyer-page .buyer-account-btn{
  min-height:46px !important;
  height:46px !important;
  min-width:86px !important;
  width:auto !important;
  padding:0 12px !important;
  border-radius:16px !important;
  font-size:12px !important;
  line-height:1 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

@media(max-width:760px){
  body.buyer-page .buyer-search-cart-row{
    grid-template-columns:minmax(0,1fr) auto auto !important;
    align-items:center !important;
  }

  body.buyer-page .buyer-account-btn{
    min-width:44px !important;
    width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
    border-radius:15px !important;
    font-size:0 !important;
  }

  body.buyer-page .buyer-account-btn::before{
    content:"🧾";
    font-size:18px !important;
    line-height:1 !important;
  }
}


/* === Utang / Credit section === */
.credit-field.hidden{display:none!important;}
.credit-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
  gap:16px;
}
.credit-person-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  padding:18px;
  box-shadow:var(--shadow);
}
.credit-person-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:14px;
}
.credit-person-head h3{
  margin:0;
  font-size:26px;
  line-height:1.05;
}
.credit-balance-box{
  min-width:150px;
  text-align:right;
  background:#fff4f8;
  border:1px solid #ffd0dc;
  border-radius:18px;
  padding:12px;
}
.credit-balance-box span,
.credit-mini-stats span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:5px;
}
.credit-balance-box strong{
  display:block;
  font-size:24px;
  color:#1f6b4b;
}
.credit-mini-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-bottom:12px;
}
.credit-mini-stats > div{
  background:#fffaf7;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
}
.credit-mini-stats b{font-size:17px;}
.credit-records{display:grid;gap:8px;}
.credit-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}
.credit-row small{
  display:block;
  color:var(--muted);
  margin-top:3px;
}
.credit-row p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
}
.credit-row-actions{
  display:grid;
  justify-items:end;
  gap:8px;
}
.credit-row-actions b{color:#1f6b4b;}
.credit-row.is-paid{
  opacity:.7;
  background:#f7fff9;
}
@media(max-width:760px){
  .credit-list{grid-template-columns:1fr;}
  .credit-person-head{flex-direction:column;}
  .credit-balance-box{text-align:left;width:100%;}
  .credit-mini-stats{grid-template-columns:1fr;}
  .credit-row{grid-template-columns:1fr;}
  .credit-row-actions{justify-items:start;}
}



/* =========================================================
   Spreadsheet-inspired sections: SET UP, MASTERLIST, STOCK LOG,
   SALESEXPENSE, ASSET TRACKER
   ========================================================= */
.sheet-section .panel,
.sheet-section .form-card {
  border-radius: 22px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  box-shadow: 0 18px 40px rgba(148, 84, 116, 0.08);
}
.sheet-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.sheet-form-card {
  position: sticky;
  top: 18px;
}
.sheet-main-panel {
  min-width: 0;
}
.sheet-mini-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.sheet-mini-stats > div {
  background: linear-gradient(135deg, rgba(255, 241, 248, 0.96), rgba(255,255,255,0.94));
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 18px;
  padding: 14px;
}
.sheet-mini-stats span {
  display: block;
  color: #9f5b7a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sheet-mini-stats b {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  color: #441329;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 18px;
}
.setup-wide {
  grid-column: 1 / -1;
}
.setup-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}
.setup-list-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(236, 72, 153, 0.12);
  border-radius: 18px;
  padding: 14px;
  min-width: 0;
}
.setup-list-card h3 {
  margin: 0 0 10px;
  color: #4b1730;
}
.setup-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.setup-chip-list span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff1f7;
  color: #8b2455;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(236, 72, 153, .18);
}
.table-wrap table th {
  white-space: nowrap;
}
.table-wrap table td small {
  color: #9f5b7a;
}
@media (max-width: 980px) {
  .sheet-layout,
  .setup-grid,
  .setup-lists {
    grid-template-columns: 1fr;
  }
  .sheet-form-card {
    position: static;
  }
}

/* =========================================================
   MULTI-BRANCH / WHOLESALE / MAXIM DELIVERY UPDATE
   ========================================================= */
.branch-select{
  border:1px solid rgba(219,39,119,.22);background:#fff;border-radius:999px;padding:10px 14px;font-weight:800;color:#9d174d;box-shadow:0 10px 24px rgba(244,114,182,.12)
}
.branch-badge,.branch-buyer-badge{border:1px solid rgba(236,72,153,.25);background:linear-gradient(135deg,#fff,#fff1f7);color:#9d174d;border-radius:999px;padding:8px 12px;display:inline-flex;gap:8px;align-items:center;font-weight:800;box-shadow:0 12px 28px rgba(236,72,153,.14);cursor:pointer}
.branch-buyer-badge{margin-top:10px;border-radius:18px;align-items:flex-start;flex-direction:column;gap:2px;padding:10px 14px}
.branch-buyer-badge span{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#be185d}.branch-buyer-badge b{font-size:12px;color:#db2777}.branch-buyer-badge strong{font-size:15px;color:#831843}
.branch-modal{position:fixed;inset:0;background:rgba(30,12,24,.45);backdrop-filter:blur(10px);z-index:9999;display:grid;place-items:center;padding:18px}.branch-modal.hidden{display:none}.branch-modal-card{width:min(720px,100%);background:#fff;border-radius:30px;padding:26px;box-shadow:0 30px 80px rgba(157,23,77,.3);position:relative}.branch-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-top:18px}.branch-choice-card{text-align:left;border:1px solid rgba(236,72,153,.22);background:linear-gradient(145deg,#fff,#fff7fb);border-radius:24px;padding:20px;display:grid;gap:7px;cursor:pointer;transition:.18s ease;box-shadow:0 16px 34px rgba(244,114,182,.12)}.branch-choice-card:hover,.branch-choice-card.active{transform:translateY(-2px);border-color:#ec4899;box-shadow:0 22px 44px rgba(236,72,153,.2)}.branch-choice-card strong{font-size:22px;color:#831843}.branch-choice-card span{color:#9f1239}.branch-choice-card small{color:#be185d;font-weight:800}.branch-modal-open{overflow:hidden}.checkout-options{margin:10px 0 14px;padding:12px;border:1px solid rgba(236,72,153,.16);border-radius:18px;background:#fff7fb;display:grid;gap:8px}.checkout-options label{display:flex;align-items:center;gap:8px;font-weight:800;color:#831843}.delivery-fields{display:grid;gap:8px}.delivery-fields input{border:1px solid rgba(236,72,153,.2);border-radius:14px;padding:10px 12px}.branch-admin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:18px}.branch-admin-card{background:#fff7fb;border:1px solid rgba(236,72,153,.2);border-radius:20px;padding:16px;display:grid;gap:4px}.branch-admin-card strong{color:#831843}.branch-admin-card span{font-weight:900;color:#db2777}.branch-admin-card small{color:#9f1239}.branch-badge{font-size:12px;padding:6px 10px}
@media(max-width:720px){.branch-modal-card{padding:20px;border-radius:24px}.branch-choice-grid{grid-template-columns:1fr}.branch-buyer-badge{width:100%}}


/* =========================================================
   EMERGENCY FIX: Customer gate must not show shop behind it
   Reason: older kiosk patches used #shopArea { display:flex !important; },
   which overrode the generic .hidden utility.
   ========================================================= */
body.buyer-page #shopArea.hidden,
body.buyer-page.customer-gate-active #shopArea,
body.buyer-page.customer-gate-active .buyer-shop {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.buyer-page #buyerGate.hidden,
body.buyer-page:not(.customer-gate-active) #buyerGate,
body.buyer-page:not(.customer-gate-active) .buyer-gate-panel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.buyer-page.customer-gate-active #buyerGate {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.buyer-page.customer-gate-active .buyer-main {
  overflow-y: auto !important;
}

body.buyer-page.customer-gate-active .buyer-app {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

/* FINAL CLIENT FEATURE PATCH: outlets, remittance, returns, top reports */
.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.sheet-mini-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.sheet-mini-stats>div{background:rgba(255,255,255,.8);border:1px solid rgba(255,132,174,.25);border-radius:18px;padding:14px;box-shadow:0 10px 30px rgba(255,94,145,.08)}.sheet-mini-stats span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#8d7a86;font-weight:800}.sheet-mini-stats b{display:block;font-size:20px;margin-top:4px;color:#201c29}.mini-badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#fff0f6;color:#9b2457;font-size:12px;font-weight:800;border:1px solid #ffd1e1}.sheet-section .product-form select,.sheet-section .product-form input{min-width:0}.table-wrap small{color:#8d7a86}.top-actions .branch-select{max-width:190px}@media(max-width:980px){.report-grid,.sheet-mini-stats{grid-template-columns:1fr}.sheet-section{padding-bottom:90px}.top-actions .branch-select{max-width:130px}}

/* Branch / Outlet admin add form */
.branch-toggle-grid{display:grid;gap:8px;background:#fff7fb;border:1px solid rgba(236,72,153,.14);border-radius:16px;padding:10px}
.branch-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.branch-card-top .status-pill{font-size:11px;padding:5px 8px;white-space:nowrap}


/* =========================================================
   HOTFIX: Branch / Outlet admin form layout
   Prevents squeezed inputs/checkboxes in the Branches tab.
   ========================================================= */
#branches .sheet-layout {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(520px, 1fr);
  gap: 20px;
  align-items: start;
}
#branches .sheet-form-card {
  position: static;
  width: 100%;
  min-width: 0;
}
#branchOutletForm.product-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#branchOutletForm select,
#branchOutletForm input,
#branchOutletForm textarea,
#transferForm select,
#transferForm input {
  width: 100%;
  min-width: 0 !important;
  height: 54px;
  box-sizing: border-box;
}
#branchOutletForm textarea[name="address"] {
  grid-column: 1 / -1;
  min-height: 96px;
  height: 96px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid rgba(236,72,153,.18);
  padding: 14px 16px;
  font: inherit;
  outline: none;
  background: #fff;
}
#branchOutletForm .branch-toggle-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
#branchOutletForm .check-row {
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 14px;
  justify-content: flex-start;
  line-height: 1.2;
}
#branchOutletForm button {
  min-height: 58px;
}
#transferForm.product-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}
#transferForm button {
  min-height: 54px;
}
#branches .sheet-main-panel {
  grid-column: 1 / -1;
}
@media (max-width: 1180px) {
  #branches .sheet-layout {
    grid-template-columns: 1fr;
  }
  #branches .sheet-main-panel {
    grid-column: auto;
  }
}
@media (max-width: 720px) {
  #branchOutletForm.product-form,
  #transferForm.product-form,
  #branchOutletForm .branch-toggle-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HOTFIX: Expenses section layout + setup state
   ========================================================= */
#expenses .sheet-layout {
  display: grid;
  grid-template-columns: minmax(340px, 380px) minmax(520px, 1fr);
  gap: 20px;
  align-items: start;
}
#expenses .sheet-form-card { position: static; width: 100%; min-width: 0; }
#expenseForm.product-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#expenseForm input, #expenseForm select, #expenseForm button { width: 100%; min-width: 0 !important; height: 54px; box-sizing: border-box; }
#expenseForm input[name="remarks"] { grid-column: 1 / -1; }
#expenseForm button { min-height: 58px; }
#expenses .sheet-main-panel { min-width: 0; }
.expense-setup-state { border: 1px dashed rgba(236,72,153,.28); background: linear-gradient(145deg,#fffafc,#fff3f8); border-radius: 22px; padding: 18px; color: #6b2145; }
.expense-setup-state h3 { margin: 0 0 8px; font-size: 22px; color: #4b1730; }
.expense-setup-state ol { margin: 10px 0 0 18px; padding: 0; }
.expense-setup-state code { background: #fff; border: 1px solid rgba(236,72,153,.18); border-radius: 10px; padding: 2px 6px; font-weight: 700; }
@media (max-width: 1180px) { #expenses .sheet-layout { grid-template-columns: 1fr; } }
@media (max-width: 720px) { #expenseForm.product-form { grid-template-columns: 1fr; } }

/* =========================================================
   BIR Journal Books admin section
   ========================================================= */
.bir-panel { overflow: visible; }
.bir-main-head { align-items: flex-start; }
.bir-head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.bir-tabs { display: flex; gap: 8px; padding: 6px; background: #fff7fb; border: 1px solid rgba(236,72,153,.14); border-radius: 18px; margin: 8px 0 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.bir-tab { border: 0; background: transparent; border-radius: 13px; padding: 10px 14px; font-weight: 900; color: #7a3657; white-space: nowrap; cursor: pointer; }
.bir-tab.active { color: #fff; background: linear-gradient(135deg,#ff4f86,#ff6d45); box-shadow: 0 12px 28px rgba(244,82,118,.22); }
.bir-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, .7fr)) auto auto; gap: 10px; align-items: center; margin: 14px 0; }
.bir-toolbar input, .bir-toolbar select { min-width: 0; width: 100%; height: 46px; border: 1px solid rgba(236,72,153,.18); border-radius: 15px; padding: 0 12px; background: #fff; font: inherit; box-sizing: border-box; }
.bir-toolbar button { height: 46px; white-space: nowrap; }
.bir-totals { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; }
.bir-warning { border: 1px solid rgba(220,38,38,.18); background: #fff1f2; color: #991b1b; border-radius: 16px; padding: 12px 14px; margin: 10px 0; font-weight: 800; }
.bir-table-wrap { max-width: 100%; overflow: auto; }
.bir-table { min-width: 1080px; }
.bir-table th { font-size: 11px; }
.bir-table td { vertical-align: top; font-size: 13px; }
.bir-row-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.bir-row-actions button { padding: 7px 9px; border-radius: 10px; font-size: 12px; }
button.danger, .danger { background: #fff1f2; color: #b91c1c; border: 1px solid #fecdd3; }
.bir-entry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.bir-entry-form label { display: grid; gap: 6px; font-weight: 900; color: #6b2145; font-size: 12px; }
.bir-entry-form label span { text-transform: uppercase; letter-spacing: .04em; }
.bir-entry-form input, .bir-entry-form select, .bir-entry-form textarea { width: 100%; min-width: 0; border: 1px solid rgba(236,72,153,.18); border-radius: 15px; padding: 12px 14px; background: #fff; font: inherit; box-sizing: border-box; }
.bir-entry-form input, .bir-entry-form select { height: 48px; }
.bir-entry-form textarea { min-height: 82px; resize: vertical; }
.bir-entry-form .wide, .bir-modal-actions { grid-column: 1 / -1; }
.bir-modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.bir-empty-state { border: 1px dashed rgba(236,72,153,.25); border-radius: 18px; padding: 24px; text-align: center; color: #8d4567; background: #fff7fb; font-weight: 900; }
@media (max-width: 1180px) { .bir-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bir-head-actions { justify-content: flex-start; } }
@media (max-width: 760px) { .bir-main-head { flex-direction: column; } .bir-toolbar, .bir-entry-form { grid-template-columns: 1fr; } .bir-tabs { width: 100%; } .bir-head-actions, .bir-head-actions button { width: 100%; } .bir-modal-actions { justify-content: stretch; } .bir-modal-actions button { flex: 1; } }


/* =========================================================
   HOTFIX: Cleaner Product Masterlist table
   Removes SKU-heavy layout and keeps columns readable.
   ========================================================= */
#masterlist .panel {
  overflow: hidden;
}
#masterlist .panel-head {
  align-items: flex-start;
}
#masterlistSearch {
  max-width: 620px;
  width: min(100%, 620px);
}
#masterlistTable.table-wrap {
  overflow-x: auto;
  border-radius: 20px;
}
#masterlistTable .masterlist-table {
  min-width: 980px;
  table-layout: fixed;
}
#masterlistTable .masterlist-table th,
#masterlistTable .masterlist-table td {
  padding: 12px 10px;
  vertical-align: middle;
}
#masterlistTable .masterlist-table th:nth-child(1),
#masterlistTable .masterlist-table td:nth-child(1) { width: 42px; }
#masterlistTable .masterlist-table th:nth-child(2),
#masterlistTable .masterlist-table td:nth-child(2) { width: 100px; }
#masterlistTable .masterlist-table th:nth-child(3),
#masterlistTable .masterlist-table td:nth-child(3) { width: 280px; }
#masterlistTable .masterlist-table th:nth-child(4),
#masterlistTable .masterlist-table td:nth-child(4) { width: 130px; }
#masterlistTable .masterlist-table th:nth-child(5),
#masterlistTable .masterlist-table td:nth-child(5),
#masterlistTable .masterlist-table th:nth-child(6),
#masterlistTable .masterlist-table td:nth-child(6),
#masterlistTable .masterlist-table th:nth-child(7),
#masterlistTable .masterlist-table td:nth-child(7),
#masterlistTable .masterlist-table th:nth-child(8),
#masterlistTable .masterlist-table td:nth-child(8),
#masterlistTable .masterlist-table th:nth-child(9),
#masterlistTable .masterlist-table td:nth-child(9) { width: 88px; }
#masterlistTable .masterlist-table th:nth-child(10),
#masterlistTable .masterlist-table td:nth-child(10) { width: 120px; }
#masterlistTable .masterlist-table th:nth-child(11),
#masterlistTable .masterlist-table td:nth-child(11) { width: 130px; }
#masterlistTable .masterlist-item-cell b {
  display: block;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
#masterlistTable .masterlist-item-cell small {
  display: inline-block;
  margin-top: 5px;
  color: #9f5b7a;
  line-height: 1.25;
}
@media (max-width: 900px) {
  #masterlist .panel-head {
    gap: 10px;
  }
  #masterlistTable .masterlist-table {
    min-width: 900px;
  }
}


/* HOTFIX: Set Up page - remove manual customer login card */
#setup .setup-tenant-card {
  max-width: 720px;
}
#setup .setup-tenant-card .product-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) 160px;
  gap: 12px;
  align-items: stretch;
}
#setup .setup-tenant-card .product-form input,
#setup .setup-tenant-card .product-form button {
  width: 100%;
  min-width: 0 !important;
  height: 54px;
  box-sizing: border-box;
}
#setup .setup-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 820px) {
  #setup .setup-tenant-card {
    max-width: none;
  }
  #setup .setup-tenant-card .product-form {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DAILY TASK CENTER PATCH
   ========================================================= */
.daily-hero-panel{margin-bottom:16px}.daily-main-head{align-items:flex-start}.daily-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.daily-head-actions input{height:50px;border:1px solid rgba(236,72,153,.18);border-radius:18px;padding:0 14px;background:#fff}.daily-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.daily-tab{border:1px solid rgba(236,72,153,.18);background:#fff7fb;color:#8b2455;border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}.daily-tab.active{background:linear-gradient(135deg,#ff4f88,#ff7043);color:#fff;border-color:transparent;box-shadow:0 14px 28px rgba(255,94,145,.18)}.daily-pane{display:none}.daily-pane.active{display:block}.daily-two-col{grid-template-columns:minmax(320px,390px) minmax(0,1fr)}.daily-form{display:grid;grid-template-columns:1fr;gap:10px}.daily-form.daily-form-wide{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-form input,.daily-form select,.daily-form textarea{width:100%;min-width:0!important;box-sizing:border-box;height:52px;border:1px solid rgba(236,72,153,.18);border-radius:16px;padding:0 14px;background:#fff;font:inherit}.daily-form button{min-height:54px}.daily-expiry-card{margin-top:16px}.daily-alert-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.daily-alert-card{background:#fff;border:1px solid rgba(236,72,153,.14);border-radius:20px;padding:15px;box-shadow:0 14px 30px rgba(148,84,116,.07);display:grid;gap:6px}.daily-alert-card h3{margin:0;font-size:17px;color:#231b2b}.daily-alert-card p,.daily-alert-card small{margin:0;color:#7d6c76}.daily-alert-card strong{font-size:20px;color:#8b2455}.generated-message{width:100%;min-height:260px;border:1px solid rgba(236,72,153,.18);border-radius:20px;padding:18px;resize:vertical;font:inherit;line-height:1.55;background:#fffafc;box-sizing:border-box}.daily-section .table-wrap table{min-width:760px}.daily-section .sheet-mini-stats b{font-size:18px}@media(max-width:980px){.daily-two-col,.daily-form.daily-form-wide{grid-template-columns:1fr}.daily-main-head{display:block}.daily-head-actions{margin-top:12px}.daily-head-actions .branch-select,.daily-head-actions input{width:100%;max-width:none}.daily-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.daily-tab{white-space:nowrap}.daily-section .table-wrap table{min-width:680px}}


/* =========================================================
   HOTFIX: Admin-only Edit Product modal and inventory actions
   ========================================================= */
.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 210px;
}
.inventory-actions button {
  min-height: 42px;
  padding: 10px 12px;
  white-space: nowrap;
}
.edit-product-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.edit-product-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: #6b2145;
  font-size: 13px;
}
.edit-product-form label span {
  padding-left: 4px;
}
.edit-product-form input,
.edit-product-form select {
  width: 100%;
  min-width: 0;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(236,72,153,.18);
  background: #fff;
  padding: 0 14px;
  font: inherit;
  box-sizing: border-box;
  outline: none;
}
.edit-product-note {
  grid-column: 1 / -1;
  border: 1px dashed rgba(236,72,153,.24);
  background: #fff7fb;
  color: #7a294f;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
}
.edit-product-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
}
.edit-product-actions button {
  min-height: 54px;
  min-width: 150px;
}
@media (max-width: 720px) {
  .edit-product-form {
    grid-template-columns: 1fr;
  }
  .edit-product-actions {
    justify-content: stretch;
  }
  .edit-product-actions button {
    width: 100%;
  }
}

/* =========================================================
   HOTFIX: Set Up tenant/sub-renter form + rent details
   ========================================================= */
#setup .setup-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}
.setup-tenant-wide {
  width: 100%;
  max-width: 1060px;
}
.setup-tenant-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.setup-tenant-form input,
.setup-tenant-form select,
.setup-tenant-form button {
  width: 100%;
  min-width: 0 !important;
  height: 54px;
  box-sizing: border-box;
}
.setup-tenant-form .setup-form-wide {
  grid-column: span 2;
}
.setup-tenant-form button {
  min-height: 54px;
}
#setup .setup-note {
  margin-top: 12px;
  max-width: 680px;
}
.tenant-table {
  min-width: 980px;
}
.tenant-table th,
.tenant-table td {
  vertical-align: top;
}
@media (max-width: 1100px) {
  .setup-tenant-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .setup-tenant-form {
    grid-template-columns: 1fr;
  }
  .setup-tenant-form .setup-form-wide {
    grid-column: auto;
  }
}


/* =========================================================
   HOTFIX: Set Up page customer database cleanup
   Removes the cramped Customer Database table from Set Up.
   Customer login details stay under Loyal Customers.
   ========================================================= */
#setup .setup-lists {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}
#setup .setup-info-card {
  background: linear-gradient(135deg, #fff7fb, #fff);
  border: 1px solid rgba(236,72,153,.16);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(148,84,116,.06);
}
#setup .setup-info-card h3 {
  margin: 0 0 6px;
  color: #4b1730;
  font-size: 19px;
}
#setup .setup-info-card p {
  margin: 0;
  color: #7d6c76;
  line-height: 1.45;
}
#setup .setup-table-wrap {
  max-width: 100%;
}
#setup .tenant-table {
  min-width: 900px;
}
#setup .setup-list-card.setup-wide {
  min-width: 0;
}
@media (max-width: 900px) {
  #setup .setup-lists {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   2026 CLIENT UI REFRESH — MOBILE-APP INSPIRED BUYER PAGE
   ========================================================= */
body.buyer-page{
  --buyer-accent:#ff4d57;
  --buyer-accent-2:#ff6b72;
  --buyer-accent-soft:#fff0f1;
  --buyer-text:#1e1b23;
  --buyer-muted:#7f7a86;
  --buyer-line:#f0e6e8;
  --buyer-card:#ffffff;
  --buyer-shadow:0 20px 45px rgba(26, 16, 22, .08);
  --buyer-radius:26px;
  background:linear-gradient(180deg,#fff7f8 0%,#fff 28%,#fff 100%) !important;
  color:var(--buyer-text);
}
body.buyer-page .buyer-app.buyer-app-modern{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 370px !important;
  min-height:100vh;
  max-width:1440px;
  margin:0 auto;
  gap:0;
}
body.buyer-page .buyer-main{
  padding:24px 24px 36px !important;
}
body.buyer-page .mini-label{
  letter-spacing:.14em;
  font-weight:900;
  color:#a78d91;
  text-transform:uppercase;
  font-size:11px;
}
body.buyer-page .soft-text{color:var(--buyer-muted)}

/* Gate / onboarding */
body.buyer-page .buyer-gate-modern{
  min-height:calc(100vh - 48px);
  display:grid;
  grid-template-columns:minmax(320px,1.15fr) minmax(300px,.85fr);
  gap:28px;
  align-items:center;
}
body.buyer-page .gate-showcase{
  background:linear-gradient(135deg,#fff 0%,#fff6f7 100%);
  border:1px solid var(--buyer-line);
  border-radius:34px;
  padding:34px;
  box-shadow:var(--buyer-shadow);
}
body.buyer-page .gate-showcase h1,
body.buyer-page .buyer-topbar h1{
  margin:0 0 10px;
  font-size:clamp(34px,4vw,54px);
  line-height:.98;
  letter-spacing:-.05em;
}
body.buyer-page .gate-preview-grid{
  margin-top:24px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
body.buyer-page .preview-card{
  min-height:132px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--buyer-line);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 14px 24px rgba(32,22,28,.05);
}
body.buyer-page .preview-card.tall{grid-column:span 2;background:linear-gradient(135deg,#ff5a62 0%,#ff7278 100%);color:#fff}
body.buyer-page .preview-card span{font-size:34px}
body.buyer-page .preview-card small{font-size:12px;font-weight:800;opacity:.9}
body.buyer-page .gate-highlight-card{
  margin-top:18px;
  padding:18px 20px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--buyer-line);
}
body.buyer-page .gate-highlight-card strong{display:block;font-size:18px;margin-bottom:6px}
body.buyer-page .gate-highlight-card p{margin:0;color:var(--buyer-muted)}
body.buyer-page .gate-card-modern{
  padding:28px !important;
  border-radius:34px !important;
  background:#fff !important;
  border:1px solid var(--buyer-line) !important;
  box-shadow:var(--buyer-shadow) !important;
}
body.buyer-page .gate-card-top{display:flex;align-items:center;gap:14px;margin-bottom:16px}
body.buyer-page .round-icon{width:52px;height:52px;border-radius:18px;background:var(--buyer-accent-soft);color:var(--buyer-accent);font-size:22px}
body.buyer-page .gate-card-top h3{margin:0;font-size:24px;line-height:1.05}
body.buyer-page .floating-input{gap:8px}
body.buyer-page .floating-input span{font-size:12px;font-weight:800;color:#8e7e82}
body.buyer-page .floating-input input,
body.buyer-page .delivery-fields input{
  min-height:56px;
  border-radius:18px;
  border:1px solid var(--buyer-line);
  background:#fff;
  padding:0 16px;
  font-size:15px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
body.buyer-page .gate-foot-note{margin:12px 0 0;color:var(--buyer-muted);font-size:12px}
body.buyer-page .buyer-primary{
  min-height:58px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--buyer-accent) 0%,var(--buyer-accent-2) 100%) !important;
  color:#fff;
  font-weight:900;
  font-size:16px;
  box-shadow:0 16px 28px rgba(255,77,87,.24);
}

/* Main shopping area */
body.buyer-page .buyer-shop{display:grid;gap:20px}
body.buyer-page .buyer-topbar-modern{
  background:linear-gradient(135deg,#ff525c 0%,#ff6d73 100%);
  border-radius:34px;
  padding:26px;
  color:#fff;
  box-shadow:0 26px 60px rgba(255,93,104,.22);
  display:grid !important;
  gap:18px;
}
body.buyer-page .hero-top-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
body.buyer-page .hero-branding{max-width:660px}
body.buyer-page .hero-subtext{color:rgba(255,255,255,.84);max-width:560px}
body.buyer-page .hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
body.buyer-page .branch-buyer-badge{
  display:flex !important;
  align-items:flex-start;
  flex-direction:column;
  gap:4px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.12);
  border-radius:20px;
  padding:12px 14px;
  color:#fff;
  min-width:180px;
}
body.buyer-page .branch-buyer-badge span,
body.buyer-page .branch-buyer-badge b{font-size:11px;color:rgba(255,255,255,.84)}
body.buyer-page .branch-buyer-badge strong{font-size:14px}
body.buyer-page .buyer-cart-icon-btn,
body.buyer-page .buyer-account-btn,
body.buyer-page .buyer-category-btn{
  min-height:52px;
  border:none;
  border-radius:18px;
  background:#fff !important;
  color:var(--buyer-text) !important;
  box-shadow:0 12px 24px rgba(52,20,28,.12);
}
body.buyer-page .buyer-cart-icon-btn{
  min-width:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:900;
}
body.buyer-page .buyer-cart-icon-btn span{
  min-width:28px;height:28px;border-radius:999px;background:var(--buyer-accent-soft);display:grid;place-items:center;color:var(--buyer-accent)
}
body.buyer-page .hero-search-block{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:12px;align-items:center}
body.buyer-page .buyer-search-wrap{
  min-height:56px;
  border-radius:20px;
  background:#fff !important;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 12px 24px rgba(52,20,28,.12);
}
body.buyer-page .buyer-search-wrap span{font-size:18px;color:#b6aab0}
body.buyer-page .buyer-search-wrap input{border:none;outline:none;background:transparent;width:100%;font-size:15px}
body.buyer-page .buyer-mode-toggle-top{
  background:rgba(255,255,255,.14);
  padding:5px;
  border-radius:18px;
  display:grid;
  grid-template-columns:1fr 1fr;
}
body.buyer-page .buyer-mode{
  border:none;
  min-height:46px;
  border-radius:14px;
  padding:0 16px;
  background:transparent;
  color:rgba(255,255,255,.9);
  font-weight:800;
}
body.buyer-page .buyer-mode.active{background:#fff;color:var(--buyer-accent);box-shadow:0 8px 18px rgba(0,0,0,.12)}
body.buyer-page .buyer-category-btn{display:flex;align-items:center;gap:8px;padding:0 16px;font-weight:800}

/* Promo cards */
body.buyer-page .buyer-highlight-strip{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
body.buyer-page .highlight-card{
  border-radius:28px;
  padding:22px 24px;
  min-height:148px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-end;
  box-shadow:var(--buyer-shadow);
  border:1px solid var(--buyer-line);
}
body.buyer-page .highlight-card h3{margin:6px 0 8px;font-size:28px;line-height:1}
body.buyer-page .highlight-card p{margin:0;max-width:440px}
body.buyer-page .highlight-primary{background:linear-gradient(135deg,#2c1b21 0%,#5a2c34 100%);color:#fff;border-color:transparent}
body.buyer-page .highlight-primary .mini-label{color:rgba(255,255,255,.7)}
body.buyer-page .highlight-primary p{color:rgba(255,255,255,.75)}
body.buyer-page .highlight-primary button{border:none;background:var(--buyer-accent);color:#fff;border-radius:999px;padding:12px 16px;font-weight:900;align-self:center}
body.buyer-page .highlight-soft{background:linear-gradient(135deg,#fff 0%,#fff5f5 100%)}

/* Sections */
body.buyer-page .buyer-section-modern{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;padding:2px 4px 0;position:relative}
body.buyer-page .buyer-section-modern h2{margin:2px 0 0;font-size:30px;line-height:1.05;letter-spacing:-.03em}
body.buyer-page .category-scroll-row{position:relative}
body.buyer-page .buyer-categories-modern{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr));
  gap:14px;
}
body.buyer-page .buyer-category-option{
  position:relative;
  min-height:108px;
  border-radius:24px;
  padding:18px 12px 14px;
  border:1px solid var(--buyer-line);
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  box-shadow:0 10px 24px rgba(31,16,22,.05);
  font-weight:800;
  color:var(--buyer-text);
}
body.buyer-page .buyer-category-option::before{
  width:48px;height:48px;border-radius:18px;background:#fff3f4;display:grid;place-items:center;font-size:22px;content:"🛍️";
}
body.buyer-page .buyer-category-option span{font-size:13px;line-height:1.15;text-align:center}
body.buyer-page .buyer-category-option b{position:absolute;top:10px;right:12px;color:var(--buyer-accent)}
body.buyer-page .buyer-category-option.active{border-color:#ffd3d6;background:linear-gradient(180deg,#fff 0%,#fff5f6 100%);box-shadow:0 18px 30px rgba(255,77,87,.08)}
body.buyer-page .buyer-category-option[data-cat="All"]::before{content:"✨"}
body.buyer-page .buyer-category-option[data-cat="Footwear"]::before{content:"👟"}
body.buyer-page .buyer-category-option[data-cat="Bags"]::before{content:"👜"}
body.buyer-page .buyer-category-option[data-cat="Beauty"]::before{content:"💄"}
body.buyer-page .buyer-category-option[data-cat="Accessories"]::before{content:"🕶️"}
body.buyer-page .buyer-category-option[data-cat="Clothing"]::before{content:"👗"}
body.buyer-page .buyer-category-option[data-cat="Art Materials"]::before{content:"🎨"}
body.buyer-page .buyer-category-option[data-cat="School Supplies"]::before{content:"📝"}
body.buyer-page .buyer-category-option[data-cat="Toys"]::before{content:"🧸"}
body.buyer-page .buyer-category-option[data-cat="Gift Items"]::before{content:"🎁"}
body.buyer-page .buyer-category-option[data-cat="Home Decor"]::before{content:"🏠"}
body.buyer-page .buyer-category-option[data-cat="Perfumes"]::before{content:"🧴"}
body.buyer-page .buyer-category-option[data-cat="Skincare"]::before{content:"🫧"}
body.buyer-page .buyer-category-option[data-cat="Hair Accessories"]::before{content:"🎀"}
body.buyer-page .buyer-category-option[data-cat="Jewelry"]::before{content:"💍"}
body.buyer-page .buyer-category-option[data-cat="Flowers"]::before{content:"💐"}
body.buyer-page .buyer-category-option[data-cat="Stationery"]::before{content:"📚"}
body.buyer-page .buyer-category-option[data-cat="Others"]::before{content:"➕"}
body.buyer-page .buyer-category-option[data-cat="Photobooth Fee"]::before{content:"📸"}
body.buyer-page .buyer-category-option[data-cat="Camera Rental"]::before{content:"🎥"}
body.buyer-page .buyer-category-option[data-cat="Other Service"]::before{content:"🛠️"}

body.buyer-page .buyer-category-menu{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  z-index:30;
  width:min(360px,80vw);
  background:#fff;
  border:1px solid var(--buyer-line);
  border-radius:24px;
  box-shadow:0 24px 50px rgba(31,18,25,.12);
  padding:12px;
}
body.buyer-page .buyer-category-options{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
body.buyer-page #shopCategoriesMenu .buyer-category-option{min-height:84px;padding:12px}
body.buyer-page #shopCategoriesMenu .buyer-category-option::before{width:40px;height:40px;font-size:18px;border-radius:14px}

/* Products */
body.buyer-page .buyer-product-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:18px !important;
}
body.buyer-page .buyer-product-card{
  border-radius:28px !important;
  background:#fff !important;
  border:1px solid var(--buyer-line) !important;
  padding:12px !important;
  box-shadow:var(--buyer-shadow);
  position:relative;
}
body.buyer-page .buyer-img-wrap{
  height:206px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,#fff8f8 0%,#fff 100%) !important;
  overflow:hidden;
}
body.buyer-page .buyer-product-img,
body.buyer-page .ticket-img{width:100%;height:100%;object-fit:cover;object-position:var(--img-x,50%) var(--img-y,50%)}
body.buyer-page .buyer-no-img{background:linear-gradient(135deg,#ffefef 0%,#fff 100%);color:#ff6168;font-weight:900}
body.buyer-page .buyer-card-body{padding:14px 6px 6px}
body.buyer-page .buyer-card-body h3{margin:4px 0 8px;font-size:19px;line-height:1.08;letter-spacing:-.02em}
body.buyer-page .buyer-card-body .soft-text{font-size:12px;line-height:1.45;margin:4px 0}
body.buyer-page .buyer-card-foot{margin-top:10px;display:flex;justify-content:space-between;gap:10px;align-items:flex-end}
body.buyer-page .buyer-card-foot strong{font-size:22px;color:#18131a}
body.buyer-page .buyer-card-foot span{font-size:11px;color:var(--buyer-muted);text-align:right}
body.buyer-page .quick-add,
body.buyer-page .quick-view{
  width:42px;height:42px;border:none;border-radius:14px;display:grid;place-items:center;position:absolute;top:22px;z-index:4;box-shadow:0 8px 18px rgba(34,18,24,.12)
}
body.buyer-page .quick-add{right:22px;background:var(--buyer-accent);color:#fff}
body.buyer-page .quick-view{right:70px;background:#fff;color:#444}
body.buyer-page .buyer-empty{padding:28px;border-radius:24px;background:#fff;border:1px dashed var(--buyer-line)}

/* Cart */
body.buyer-page .buyer-ticket-panel{
  background:rgba(255,255,255,.96) !important;
  border-left:1px solid var(--buyer-line) !important;
  box-shadow:-24px 0 50px rgba(28,16,23,.08) !important;
  padding:20px 18px 20px !important;
}
body.buyer-page .cart-collapsed-bar,
body.buyer-page .cart-sheet-handle{display:none !important}
body.buyer-page .cart-expanded-content{display:flex !important;flex-direction:column;height:100%}
body.buyer-page .ticket-head-v2{padding:8px 4px 14px;border-bottom:1px solid var(--buyer-line)}
body.buyer-page .ticket-head-v2 h2{font-size:28px;line-height:1;margin-top:4px}
body.buyer-page .ticket-clear{border:none;background:#fff3f4;color:var(--buyer-accent);border-radius:14px;padding:10px 12px;font-weight:800}
body.buyer-page .ticket-items-v2{padding:16px 2px;display:flex;flex-direction:column;gap:12px;overflow:auto}
body.buyer-page .buyer-ticket-item{padding:10px;border:1px solid var(--buyer-line);border-radius:20px;background:#fff}
body.buyer-page .ticket-thumb{width:58px;height:58px;border-radius:16px;overflow:hidden;background:#fff4f4}
body.buyer-page .ticket-info strong{display:block;margin-bottom:4px}
body.buyer-page .ticket-info p{margin:0 0 4px;font-size:12px;color:var(--buyer-muted)}
body.buyer-page .ticket-info b{font-size:14px;color:#18131a}
body.buyer-page .ticket-qty button{border:none;background:#fff3f4;color:var(--buyer-accent);width:28px;height:28px;border-radius:10px;font-weight:900}
body.buyer-page .ticket-summary-v2{
  margin-top:auto;
  border:1px solid var(--buyer-line);
  border-radius:26px;
  padding:18px;
  background:linear-gradient(180deg,#fff 0%,#fff7f8 100%);
}
body.buyer-page .summary-line{display:flex;justify-content:space-between;gap:12px;padding:6px 0;color:var(--buyer-muted)}
body.buyer-page .summary-line strong{color:#151117}
body.buyer-page .summary-line.total{margin-top:6px;padding-top:12px;border-top:1px dashed #ead8da;font-size:18px;color:#161219}
body.buyer-page .checkout-options{display:grid;gap:10px;margin:14px 0}
body.buyer-page .checkout-options label{display:flex;gap:10px;align-items:center;font-size:14px;color:#3c3237}
body.buyer-page .checkout-options input[type="radio"]{accent-color:var(--buyer-accent)}
body.buyer-page .mobile-close-cart{display:none !important}

/* Responsive */
@media (max-width: 1260px){
  body.buyer-page .buyer-app.buyer-app-modern{grid-template-columns:minmax(0,1fr) 340px !important}
  body.buyer-page .buyer-highlight-strip{grid-template-columns:1fr}
}
@media (max-width: 1080px){
  body.buyer-page .buyer-app.buyer-app-modern{display:block !important}
  body.buyer-page .buyer-ticket-panel{
    position:fixed !important;
    inset:auto 16px 16px 16px !important;
    width:auto !important;
    height:auto !important;
    max-height:88vh;
    border-radius:28px;
    border:1px solid var(--buyer-line) !important;
    transform:translateY(110%);
    z-index:40 !important;
    padding:16px !important;
  }
  body.buyer-page .cart-collapsed-bar{display:flex !important}
  body.buyer-page .cart-sheet-handle{display:block !important}
  body.buyer-page .cart-expanded-content{display:none !important}
  body.buyer-page.cart-open .buyer-ticket-panel,
  body.buyer-page .buyer-ticket-panel.expanded{transform:translateY(0) !important}
  body.buyer-page.cart-open .cart-expanded-content,
  body.buyer-page .buyer-ticket-panel.expanded .cart-expanded-content{display:flex !important}
  body.buyer-page.cart-open .cart-collapsed-bar,
  body.buyer-page .buyer-ticket-panel.expanded .cart-collapsed-bar{display:none !important}
  body.buyer-page .mobile-close-cart{display:block !important}
}
@media (max-width: 920px){
  body.buyer-page .buyer-gate-modern{grid-template-columns:1fr}
  body.buyer-page .hero-top-row,
  body.buyer-page .hero-search-block,
  body.buyer-page .buyer-section-modern{grid-template-columns:1fr;display:grid;align-items:stretch}
  body.buyer-page .hero-actions{justify-content:flex-start}
  body.buyer-page .buyer-categories-modern{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width: 680px){
  body.buyer-page .buyer-main{padding:14px !important}
  body.buyer-page .gate-showcase,
  body.buyer-page .gate-card-modern,
  body.buyer-page .buyer-topbar-modern,
  body.buyer-page .highlight-card{padding:20px}
  body.buyer-page .gate-preview-grid{grid-template-columns:repeat(2,1fr)}
  body.buyer-page .buyer-topbar h1,
  body.buyer-page .gate-showcase h1{font-size:32px}
  body.buyer-page .hero-search-block{grid-template-columns:1fr}
  body.buyer-page .buyer-categories-modern{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  body.buyer-page .buyer-category-option{min-height:92px;padding:12px 8px}
  body.buyer-page .buyer-category-option::before{width:42px;height:42px;font-size:18px;border-radius:14px}
  body.buyer-page .buyer-product-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important}
  body.buyer-page .buyer-img-wrap{height:148px !important}
  body.buyer-page .buyer-card-body h3{font-size:16px}
  body.buyer-page .buyer-card-foot strong{font-size:18px}
  body.buyer-page .quick-view{right:58px}
  body.buyer-page .quick-add,
  body.buyer-page .quick-view{width:36px;height:36px;top:18px}
}


/* Compact delete button for accidental sales history entries */
.compact-danger-btn{
  padding:7px 10px!important;
  border-radius:12px!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap;
}

/* Safe patch: clearer item details, payout previews, and void-sale modal */
.item-detail-list{display:flex;flex-wrap:wrap;gap:8px}.item-detail-pill{display:inline-flex;flex-direction:column;gap:3px;border:1px solid rgba(151,93,111,.18);background:rgba(255,248,250,.9);border-radius:14px;padding:8px 10px;line-height:1.25}.item-detail-pill b{font-size:.9rem}.item-detail-pill small{font-size:.74rem;color:#7b6470}.void-sale-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:14px 0;padding:12px;border:1px solid rgba(151,93,111,.18);border-radius:18px;background:#fff8fb}.void-sale-preview div{display:flex;flex-direction:column;gap:4px}.void-sale-preview span{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#9b6a7b}.void-sale-preview b{font-size:.92rem;color:#33272d}.payout-form textarea{width:100%;resize:vertical;border:1px solid rgba(151,93,111,.28);border-radius:14px;padding:11px 12px;font:inherit;background:#fff}.modal-actions-row{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:10px}.danger-primary{background:#b42318!important;border-color:#b42318!important;color:#fff!important}.commission-stat strong{color:#8a2f52}.summary-card small{display:block;color:#8b6b78;margin-top:2px}.sub-money-grid div span{line-height:1.25}

/* Safe patch: online shop branch selector */
.buyer-branch-badge{
  border:1px solid rgba(236,72,153,.22);
  background:linear-gradient(135deg,#fff7fb,#ffffff);
  border-radius:18px;
  padding:10px 14px;
  min-width:160px;
  display:grid;
  gap:2px;
  text-align:left;
  color:#831843;
  box-shadow:0 14px 30px rgba(236,72,153,.10);
  cursor:pointer;
}
.buyer-branch-badge.hidden{display:none}
.buyer-branch-badge span,.buyer-branch-badge small{font-size:11px;font-weight:800;color:#be185d;text-transform:uppercase;letter-spacing:.04em}
.buyer-branch-badge strong{font-size:14px;line-height:1.1;color:#831843}
@media(max-width:760px){
  .buyer-search-cart-row{align-items:stretch}
  .buyer-branch-badge{width:100%;min-width:0}
}

/* =====================================================
   ONLINE SHOP TOP AREA EXPERT UI FIX — 2026-05-06
   Scope: upper online shop storefront only.
   Keeps all original IDs used by script.js.
   ===================================================== */
body.buyer-page:not(.customer-gate-active){
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 112, 158, .16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(255, 196, 214, .22), transparent 34%),
    linear-gradient(180deg, #fff7fb 0%, #fffdfd 54%, #fff8fb 100%) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-main{
  width:100% !important;
  max-width:1180px !important;
  padding:clamp(12px, 2.2vw, 24px) clamp(12px, 2.5vw, 32px) 32px !important;
  margin:0 auto !important;
  overflow-x:hidden !important;
}

body.buyer-page:not(.customer-gate-active) #shopArea{
  display:block !important;
  min-width:0 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
  position:sticky !important;
  top:0 !important;
  z-index:60 !important;
  display:block !important;
  grid-template-columns:none !important;
  margin:0 0 18px !important;
  padding:8px 0 10px !important;
  background:linear-gradient(180deg, rgba(255,248,251,.98), rgba(255,248,251,.88)) !important;
  border:0 !important;
  border-bottom:1px solid rgba(255, 94, 139, .10) !important;
  box-shadow:none !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  width:100% !important;
  padding:12px !important;
  border:1px solid rgba(255, 112, 158, .18) !important;
  border-radius:28px !important;
  background:linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,247,250,.94)) !important;
  box-shadow:0 20px 54px rgba(104, 44, 72, .10) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
  display:none !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) 62px !important;
  grid-template-areas:"search cart" !important;
  gap:10px !important;
  width:100% !important;
  align-items:center !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-premium,
body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
  grid-area:search !important;
  min-width:0 !important;
  width:100% !important;
  height:54px !important;
  min-height:54px !important;
  display:flex !important;
  align-items:center !important;
  gap:11px !important;
  padding:0 16px !important;
  border:1px solid rgba(255, 112, 158, .24) !important;
  border-radius:20px !important;
  background:#fff !important;
  box-shadow:0 12px 28px rgba(104, 44, 72, .07) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-wrap .search-icon,
body.buyer-page:not(.customer-gate-active) .buyer-search-wrap > span{
  flex:0 0 auto !important;
  display:grid !important;
  place-items:center !important;
  width:22px !important;
  height:22px !important;
  border-radius:999px !important;
  background:transparent !important;
  color:#a6909b !important;
  font-size:20px !important;
  line-height:1 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-wrap input{
  width:100% !important;
  min-width:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
  color:#2a2228 !important;
  font-size:14px !important;
  font-weight:650 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-wrap input::placeholder{
  color:#9e8e96 !important;
  font-weight:600 !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
  grid-area:cart !important;
  position:relative !important;
  width:62px !important;
  min-width:62px !important;
  height:54px !important;
  min-height:54px !important;
  padding:0 !important;
  border-radius:20px !important;
  border:1px solid rgba(255, 112, 158, .20) !important;
  background:linear-gradient(180deg, #ffffff, #fff8fb) !important;
  box-shadow:0 12px 28px rgba(104, 44, 72, .09) !important;
  display:grid !important;
  place-items:center !important;
  color:#2a2228 !important;
  overflow:visible !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn .cart-symbol{
  display:grid !important;
  place-items:center !important;
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:inherit !important;
  font-size:22px !important;
  line-height:1 !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn #cartCount{
  position:absolute !important;
  top:-7px !important;
  right:-7px !important;
  display:grid !important;
  place-items:center !important;
  min-width:25px !important;
  width:auto !important;
  height:25px !important;
  margin:0 !important;
  padding:0 7px !important;
  border:2px solid #fff !important;
  border-radius:999px !important;
  background:linear-gradient(135deg, #ff4f86, #ff7a68) !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:950 !important;
  box-shadow:0 10px 20px rgba(255, 79, 134, .24) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  width:100% !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
  flex:1 1 auto !important;
  width:auto !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:5px !important;
  padding:5px !important;
  border:1px solid rgba(255, 112, 158, .18) !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.78) !important;
  box-shadow:0 12px 28px rgba(104, 44, 72, .06) !important;
  overflow:visible !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode{
  display:grid !important;
  place-items:center !important;
  min-width:0 !important;
  width:auto !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 14px !important;
  border:0 !important;
  border-radius:16px !important;
  background:transparent !important;
  color:#7c6470 !important;
  font-size:13px !important;
  font-weight:950 !important;
  letter-spacing:.01em !important;
  text-transform:none !important;
  white-space:nowrap !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode::after{
  content:none !important;
  display:none !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode.active{
  display:grid !important;
  background:#fff !important;
  color:#ff4f86 !important;
  box-shadow:0 10px 22px rgba(104, 44, 72, .10) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-account-btn{
  flex:0 0 auto !important;
  min-height:54px !important;
  padding:0 14px !important;
  border-radius:18px !important;
  border:1px solid rgba(255, 112, 158, .18) !important;
  background:#fff !important;
  color:#ff4f86 !important;
  font-weight:950 !important;
  box-shadow:0 12px 28px rgba(104, 44, 72, .06) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-branch-card,
body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
  width:100% !important;
  min-width:0 !important;
  min-height:76px !important;
  display:grid !important;
  grid-template-columns:46px minmax(0,1fr) auto !important;
  align-items:center !important;
  gap:12px !important;
  padding:13px 14px !important;
  border:1px solid rgba(255, 112, 158, .20) !important;
  border-radius:24px !important;
  background:linear-gradient(135deg, #fff, #fff7fb) !important;
  box-shadow:0 14px 34px rgba(104, 44, 72, .07) !important;
  text-align:left !important;
  color:#2a2228 !important;
  cursor:pointer !important;
}

body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge.hidden{
  display:none !important;
}

body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
  display:grid !important;
  place-items:center !important;
  width:46px !important;
  height:46px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg, #fff1f6, #ffe9f0) !important;
  color:#ff4f86 !important;
  font-size:22px !important;
  font-weight:900 !important;
  line-height:1 !important;
}

body.buyer-page:not(.customer-gate-active) .branch-copy{
  min-width:0 !important;
  display:grid !important;
  gap:3px !important;
}

body.buyer-page:not(.customer-gate-active) .branch-copy span,
body.buyer-page:not(.customer-gate-active) .buyer-branch-card .branch-copy span{
  display:block !important;
  color:#ff4f86 !important;
  font-size:10px !important;
  font-weight:950 !important;
  letter-spacing:.16em !important;
  line-height:1 !important;
  text-transform:uppercase !important;
}

body.buyer-page:not(.customer-gate-active) .branch-copy strong,
body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
  display:block !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  color:#1f1b22 !important;
  font-size:20px !important;
  font-weight:950 !important;
  line-height:1.12 !important;
  letter-spacing:-.025em !important;
}

body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
  justify-self:end !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:38px !important;
  padding:0 13px !important;
  border:1px solid rgba(255, 112, 158, .22) !important;
  border-radius:15px !important;
  background:#fff !important;
  color:#ff4f86 !important;
  font-size:12px !important;
  font-weight:950 !important;
  letter-spacing:.01em !important;
  text-transform:none !important;
  white-space:nowrap !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
  position:relative !important;
  top:auto !important;
  z-index:30 !important;
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) !important;
  gap:10px !important;
  margin:0 0 14px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-title .mini-label{
  margin-bottom:5px !important;
  color:#c96786 !important;
  font-size:10px !important;
  letter-spacing:.17em !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-title h2{
  margin:0 !important;
  color:#1f1b22 !important;
  font-size:clamp(24px, 6vw, 34px) !important;
  line-height:1.02 !important;
  font-weight:950 !important;
  letter-spacing:-.045em !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) auto !important;
  align-items:center !important;
  gap:10px !important;
  min-width:0 !important;
  padding:10px !important;
  border:1px solid rgba(255, 112, 158, .16) !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.94) !important;
  box-shadow:0 14px 34px rgba(104, 44, 72, .07) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn{
  min-width:0 !important;
  width:100% !important;
  min-height:46px !important;
  height:46px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:9px !important;
  padding:0 12px !important;
  border:0 !important;
  border-radius:17px !important;
  background:#fff8fb !important;
  box-shadow:none !important;
  color:#1f1b22 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn::before{
  content:"▫" !important;
  display:grid !important;
  place-items:center !important;
  width:22px !important;
  height:22px !important;
  border-radius:8px !important;
  color:#ff4f86 !important;
  font-size:22px !important;
  line-height:1 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn span{
  color:#ff4f86 !important;
  font-size:11px !important;
  font-weight:950 !important;
  letter-spacing:.05em !important;
  text-transform:none !important;
  line-height:1 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn strong{
  max-width:none !important;
  color:#1f1b22 !important;
  font-size:14px !important;
  font-weight:950 !important;
  line-height:1 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn b{
  margin-left:auto !important;
  padding-left:8px !important;
  color:#ff4f86 !important;
  font-size:16px !important;
}

body.buyer-page:not(.customer-gate-active) .product-count-pill,
body.buyer-page:not(.customer-gate-active) #productCount{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:34px !important;
  padding:0 10px !important;
  border-radius:999px !important;
  background:#fff4f8 !important;
  color:#806a73 !important;
  font-size:12px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-head .buyer-category-menu{
  left:0 !important;
  right:0 !important;
  top:calc(100% + 8px) !important;
  width:100% !important;
  max-height:min(50vh, 420px) !important;
  border-radius:22px !important;
  border:1px solid rgba(255, 112, 158, .18) !important;
  background:#fff !important;
  box-shadow:0 24px 70px rgba(104, 44, 72, .18) !important;
}

body.buyer-page:not(.customer-gate-active) #shopProducts.buyer-product-grid{
  padding-top:0 !important;
}

@media (min-width: 761px){
  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    grid-template-columns:minmax(0, 1.1fr) minmax(320px, .9fr) !important;
    grid-template-areas:
      "welcome controls"
      "branch controls" !important;
    gap:14px 18px !important;
    padding:16px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    grid-area:welcome !important;
    display:block !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy h1{
    margin:0 0 6px !important;
    font-size:clamp(30px, 3.2vw, 44px) !important;
    line-height:.98 !important;
    letter-spacing:-.045em !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row{
    grid-area:controls !important;
    align-self:start !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:start !important;
  }
  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    grid-area:branch !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    grid-template-columns:minmax(0, 1fr) minmax(320px, 430px) !important;
    align-items:end !important;
    gap:18px !important;
    margin-bottom:18px !important;
  }
}

@media (max-width: 430px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:10px 10px 28px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    padding-top:6px !important;
    margin-bottom:14px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    border-radius:24px !important;
    padding:10px !important;
    gap:9px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-template-columns:minmax(0,1fr) 56px !important;
    gap:8px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-search-premium,
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
    height:50px !important;
    min-height:50px !important;
    border-radius:18px !important;
    padding:0 13px !important;
  }
  body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
    width:56px !important;
    min-width:56px !important;
    height:50px !important;
    min-height:50px !important;
    border-radius:18px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode{
    height:42px !important;
    min-height:42px !important;
    font-size:12px !important;
    padding:0 10px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-branch-card,
  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    min-height:70px !important;
    grid-template-columns:40px minmax(0,1fr) auto !important;
    border-radius:22px !important;
    gap:10px !important;
    padding:12px !important;
  }
  body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
    width:40px !important;
    height:40px !important;
    border-radius:15px !important;
    font-size:19px !important;
  }
  body.buyer-page:not(.customer-gate-active) .branch-copy strong,
  body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
    font-size:17px !important;
  }
  body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
    min-height:34px !important;
    padding:0 10px !important;
    font-size:11px !important;
  }
  body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
  body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
    border-radius:21px !important;
    padding:8px !important;
  }
}

/* =========================================================
   HOTFIX 2026-05-06: ONLINE SHOP UPPER SECTION POLISH
   Goal:
   - cleaner and more compact upper area
   - better desktop balance
   - better mobile stacking
   - preserve existing IDs/JS logic
   ========================================================= */
body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
  margin:0 0 16px !important;
  padding:6px 0 10px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
  gap:12px !important;
  padding:14px !important;
  border-radius:26px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .mini-label{
  margin:0 0 6px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy h1{
  margin:0 0 6px !important;
  color:#201a21 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .soft-text{
  margin:0 !important;
  color:#7c6a73 !important;
  max-width:52ch !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
  gap:12px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top,
body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge,
body.buyer-page:not(.customer-gate-active) .buyer-filter-bar{
  box-shadow:0 10px 24px rgba(104, 44, 72, .06) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
  gap:14px !important;
  margin:2px 0 16px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
  padding:8px !important;
  border-radius:22px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn{
  min-height:42px !important;
  height:42px !important;
  border-radius:15px !important;
}

body.buyer-page:not(.customer-gate-active) .product-count-pill,
body.buyer-page:not(.customer-gate-active) #productCount{
  min-height:42px !important;
  padding:0 14px !important;
  background:#fff7fa !important;
}

/* Desktop / tablet landscape */
@media (min-width: 900px){
  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    grid-template-columns:minmax(280px, 1.05fr) minmax(380px, 0.95fr) !important;
    grid-template-areas:
      "welcome controls"
      "branch mode" !important;
    gap:14px 18px !important;
    align-items:start !important;
    padding:16px 18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    grid-area:welcome !important;
    display:block !important;
    align-self:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy h1{
    font-size:clamp(24px, 2.6vw, 38px) !important;
    line-height:1.02 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-area:controls !important;
    grid-template-columns:minmax(0,1fr) 64px !important;
    align-self:start !important;
  }

  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    grid-area:branch !important;
    min-height:72px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    grid-area:mode !important;
    align-self:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
    min-height:72px !important;
    align-items:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode{
    height:50px !important;
    min-height:50px !important;
    font-size:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    grid-template-columns:minmax(0,1fr) minmax(320px, 420px) !important;
    align-items:end !important;
  }
}

/* Mobile */
@media (max-width: 899px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:12px 12px 28px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    position:sticky !important;
    top:0 !important;
    z-index:60 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    padding:12px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    display:none !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-template-columns:minmax(0,1fr) 54px !important;
    gap:8px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-search-premium,
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
    height:48px !important;
    min-height:48px !important;
    border-radius:17px !important;
    padding:0 13px !important;
  }

  body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
    width:54px !important;
    min-width:54px !important;
    height:48px !important;
    min-height:48px !important;
    border-radius:17px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
    width:100% !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode{
    height:42px !important;
    min-height:42px !important;
    font-size:12px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-branch-card,
  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    order:-1 !important;
    min-height:68px !important;
    grid-template-columns:40px minmax(0,1fr) auto !important;
    gap:10px !important;
    padding:11px 12px !important;
    border-radius:20px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
    width:40px !important;
    height:40px !important;
    border-radius:14px !important;
    font-size:18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-copy strong,
  body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
    font-size:17px !important;
  }

  body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
    min-height:32px !important;
    font-size:11px !important;
    padding:0 10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    margin:4px 0 14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-title h2{
    font-size:clamp(22px, 8vw, 30px) !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
  body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
}

/* Very small phones */
@media (max-width: 430px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:10px 10px 24px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    border-radius:22px !important;
    padding:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
  body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
    padding:7px !important;
    border-radius:20px !important;
  }

  body.buyer-page:not(.customer-gate-active) .product-count-pill,
  body.buyer-page:not(.customer-gate-active) #productCount{
    min-height:38px !important;
    padding:0 10px !important;
    font-size:11px !important;
  }
}

/* =========================================================
   HOTFIX v3 2026-05-06: COMPACT EXPERT BUYER HEADER
   User request: desktop top view is too huge, mobile too.
   Strategy: make the entire buyer top section intentionally compact
   without changing HTML IDs or JS logic.
   ========================================================= */

/* Global top section compacting */
body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
  margin:0 0 12px !important;
  padding:4px 0 8px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
  padding:10px 12px !important;
  gap:8px !important;
  border-radius:22px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .mini-label{
  font-size:10px !important;
  margin:0 0 4px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy h1{
  margin:0 0 4px !important;
  font-size:clamp(18px, 2.2vw, 28px) !important;
  line-height:1 !important;
  letter-spacing:-.04em !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .soft-text{
  font-size:13px !important;
  line-height:1.3 !important;
  color:#7f6e76 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
  gap:8px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-premium,
body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
  height:46px !important;
  min-height:46px !important;
  border-radius:17px !important;
  padding:0 14px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-wrap input{
  font-size:13px !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
  width:52px !important;
  min-width:52px !important;
  height:46px !important;
  min-height:46px !important;
  border-radius:17px !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn .cart-symbol{
  font-size:20px !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn #cartCount{
  min-width:22px !important;
  height:22px !important;
  font-size:11px !important;
  top:-6px !important;
  right:-6px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
  gap:8px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
  min-height:0 !important;
  padding:4px !important;
  border-radius:17px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode{
  height:38px !important;
  min-height:38px !important;
  border-radius:13px !important;
  font-size:12px !important;
  padding:0 10px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-branch-card,
body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
  min-height:58px !important;
  grid-template-columns:34px minmax(0,1fr) auto !important;
  gap:10px !important;
  padding:10px 12px !important;
  border-radius:18px !important;
}

body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
  width:34px !important;
  height:34px !important;
  font-size:15px !important;
  border-radius:12px !important;
}

body.buyer-page:not(.customer-gate-active) .branch-copy{
  gap:2px !important;
}

body.buyer-page:not(.customer-gate-active) .branch-copy span,
body.buyer-page:not(.customer-gate-active) .buyer-branch-card .branch-copy span{
  font-size:9px !important;
  letter-spacing:.14em !important;
}

body.buyer-page:not(.customer-gate-active) .branch-copy strong,
body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
  font-size:14px !important;
  line-height:1.1 !important;
}

body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
  min-height:30px !important;
  padding:0 9px !important;
  font-size:11px !important;
  border-radius:12px !important;
}

/* Section heading/filter made tighter too */
body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
  gap:10px !important;
  margin:0 0 12px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-title .mini-label{
  margin-bottom:4px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-title h2{
  font-size:clamp(22px, 3vw, 30px) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
  padding:6px !important;
  border-radius:18px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn{
  min-height:38px !important;
  height:38px !important;
  border-radius:13px !important;
  padding:0 10px !important;
  gap:7px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn::before{
  width:18px !important;
  height:18px !important;
  font-size:18px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn span{
  font-size:10px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn strong{
  font-size:13px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-filter-bar .buyer-category-btn b{
  font-size:14px !important;
}

body.buyer-page:not(.customer-gate-active) .product-count-pill,
body.buyer-page:not(.customer-gate-active) #productCount{
  min-height:38px !important;
  padding:0 12px !important;
  font-size:11px !important;
}

/* Desktop / laptop: compact 2x2 header grid */
@media (min-width: 900px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding-top:18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    display:grid !important;
    grid-template-columns:minmax(240px, 0.95fr) minmax(360px, 1.05fr) !important;
    grid-template-areas:
      "welcome controls"
      "branch mode" !important;
    align-items:center !important;
    gap:10px 14px !important;
    padding:12px 14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    grid-area:welcome !important;
    display:block !important;
    align-self:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-area:controls !important;
    grid-template-columns:minmax(0,1fr) 52px !important;
  }

  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    grid-area:branch !important;
    min-height:60px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    grid-area:mode !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    align-items:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
    width:100% !important;
    min-height:60px !important;
    align-items:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    grid-template-columns:minmax(0,1fr) minmax(290px, 380px) !important;
    align-items:end !important;
    gap:14px !important;
  }
}

/* Tablet / mobile: very compact stacked header */
@media (max-width: 899px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding-top:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    margin-bottom:10px !important;
    padding-top:2px !important;
    padding-bottom:6px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    display:none !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-template-columns:minmax(0,1fr) 50px !important;
    gap:7px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-search-premium,
  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap{
    height:44px !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:15px !important;
  }

  body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
    width:50px !important;
    min-width:50px !important;
    height:44px !important;
    min-height:44px !important;
    border-radius:15px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
    width:100% !important;
    min-height:0 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-branch-card,
  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    order:-1 !important;
    min-height:54px !important;
    grid-template-columns:32px minmax(0,1fr) auto !important;
    gap:8px !important;
    padding:9px 10px !important;
    border-radius:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
    width:32px !important;
    height:32px !important;
    border-radius:11px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-copy strong,
  body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
    font-size:13px !important;
  }

  body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
    min-height:28px !important;
    padding:0 8px !important;
    font-size:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    grid-template-columns:1fr !important;
    gap:8px !important;
    margin-bottom:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-title h2{
    font-size:clamp(20px, 8vw, 28px) !important;
  }
}

/* Very small phones */
@media (max-width: 430px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:8px 10px 20px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    padding:8px !important;
    border-radius:18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
  body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:6px !important;
  }

  body.buyer-page:not(.customer-gate-active) .product-count-pill,
  body.buyer-page:not(.customer-gate-active) #productCount{
    padding:0 9px !important;
  }
}

/* =========================================================
   FINAL STOREFRONT POLISH 2026-05-06
   Goal: make online shop feel like a polished shopping website.
   - compact premium top area
   - natural page scrolling (remove awkward inner product scroll look)
   - cleaner product cards, spacing, typography, badges and actions
   ========================================================= */

/* ---------- Layout / natural scrolling ---------- */
body.buyer-page{
  background:linear-gradient(180deg,#fffafb 0%,#fffdfd 100%) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-main{
  max-width:1320px !important;
  margin:0 auto !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-shop{
  overflow:visible !important;
}

body.buyer-page:not(.customer-gate-active) #shopProducts,
body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
  padding-right:0 !important;
  align-content:start !important;
}

body.buyer-page:not(.customer-gate-active) #shopProducts::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
}

/* ---------- Compact premium header ---------- */
body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
  margin:0 0 14px !important;
  padding:0 0 8px !important;
  background:transparent !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
  border:1px solid rgba(255,112,158,.16) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,248,251,.96)) !important;
  box-shadow:0 16px 42px rgba(104,44,72,.08) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy h1{
  color:#1c1720 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .soft-text{
  color:#85727c !important;
}

/* ---------- Catalog head ---------- */
body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
  align-items:end !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-title .mini-label{
  color:#cc6c89 !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-catalog-title h2{
  color:#1e1820 !important;
  letter-spacing:-.045em !important;
}

/* ---------- Product grid ---------- */
body.buyer-page:not(.customer-gate-active) #shopProducts.buyer-product-grid,
body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap:18px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-product-card,
body.buyer-page:not(.customer-gate-active) #shopProducts .buyer-product-card{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  min-width:0 !important;
  padding:12px !important;
  border-radius:24px !important;
  border:1px solid rgba(255,112,158,.13) !important;
  background:linear-gradient(180deg,#ffffff 0%, #fffbfd 100%) !important;
  box-shadow:0 12px 30px rgba(104,44,72,.08) !important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
  overflow:hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-product-card:hover{
  transform:translateY(-3px) !important;
  box-shadow:0 18px 38px rgba(104,44,72,.13) !important;
  border-color:rgba(255,79,134,.22) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-img-wrap{
  position:relative !important;
  width:100% !important;
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 0 12px !important;
  border-radius:18px !important;
  background:linear-gradient(135deg,#fff4f7,#fff0ea) !important;
  overflow:hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-product-img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-no-img{
  font-size:12px !important;
  letter-spacing:.16em !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-body{
  display:flex !important;
  flex-direction:column !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  padding:0 2px 2px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-body .mini-label{
  margin:0 0 8px !important;
  color:#9b7d88 !important;
  font-size:11px !important;
  font-weight:900 !important;
  letter-spacing:.16em !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-body h3{
  margin:0 0 8px !important;
  color:#1f1921 !important;
  font-size:20px !important;
  line-height:1.08 !important;
  letter-spacing:-.025em !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  min-height:2.2em !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-body .soft-text{
  margin:0 0 4px !important;
  color:#8a7780 !important;
  font-size:12px !important;
  line-height:1.45 !important;
  display:-webkit-box !important;
  -webkit-line-clamp:1 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-foot{
  margin-top:auto !important;
  padding-top:10px !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:10px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-foot strong{
  display:inline-flex !important;
  align-items:center !important;
  min-height:40px !important;
  padding:0 14px !important;
  border-radius:999px !important;
  background:linear-gradient(180deg,#fff2f6,#ffe8f0) !important;
  color:#ff4f86 !important;
  font-size:24px !important;
  font-weight:950 !important;
  line-height:1 !important;
  letter-spacing:-.03em !important;
  box-shadow:inset 0 0 0 1px rgba(255,79,134,.14) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-card-foot span{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:34px !important;
  padding:0 11px !important;
  border-radius:999px !important;
  background:#fff2c9 !important;
  color:#8a6920 !important;
  font-size:12px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  box-shadow:inset 0 0 0 1px rgba(196,155,40,.18) !important;
}

/* ---------- Action buttons ---------- */
body.buyer-page:not(.customer-gate-active) .quick-add,
body.buyer-page:not(.customer-gate-active) .quick-view{
  width:38px !important;
  height:38px !important;
  border-radius:14px !important;
  top:12px !important;
  border:1px solid rgba(255,112,158,.10) !important;
  box-shadow:0 8px 18px rgba(73,28,47,.10) !important;
}

body.buyer-page:not(.customer-gate-active) .quick-add{
  right:12px !important;
  background:linear-gradient(180deg,#ff5b8e,#ff4f86) !important;
  color:#fff !important;
}

body.buyer-page:not(.customer-gate-active) .quick-view{
  right:56px !important;
  background:#fff !important;
  color:#4b3a42 !important;
}

/* ---------- Mobile / tablet tuning ---------- */
@media (max-width: 1024px){
  body.buyer-page:not(.customer-gate-active) #shopProducts.buyer-product-grid,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-body h3{
    font-size:17px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-foot strong{
    font-size:19px !important;
    min-height:36px !important;
    padding:0 12px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-foot span{
    min-height:30px !important;
    font-size:11px !important;
  }
}

@media (max-width: 899px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    max-width:100% !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    margin-bottom:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) #shopProducts.buyer-product-grid,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    gap:12px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-product-card{
    padding:10px !important;
    border-radius:20px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-img-wrap{
    margin-bottom:10px !important;
    border-radius:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .quick-add,
  body.buyer-page:not(.customer-gate-active) .quick-view{
    width:34px !important;
    height:34px !important;
    border-radius:12px !important;
    top:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .quick-view{right:50px !important;}
}

@media (max-width: 560px){
  body.buyer-page:not(.customer-gate-active) #shopProducts.buyer-product-grid,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
    gap:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-product-card{
    padding:9px !important;
    border-radius:18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-body .mini-label{
    font-size:10px !important;
    margin-bottom:6px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-body h3{
    font-size:15px !important;
    min-height:2.25em !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-body .soft-text{
    font-size:11px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-foot{
    gap:8px !important;
    align-items:flex-end !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-foot strong{
    min-height:32px !important;
    padding:0 10px !important;
    font-size:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-card-foot span{
    min-height:26px !important;
    padding:0 8px !important;
    font-size:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .quick-add,
  body.buyer-page:not(.customer-gate-active) .quick-view{
    width:32px !important;
    height:32px !important;
    top:9px !important;
  }

  body.buyer-page:not(.customer-gate-active) .quick-view{
    right:45px !important;
  }
}

/* =========================================================
   FINAL PASS: Cart drawer + product detail clarity
   - cleaner cart modal
   - separated variant / size / color / SKU chips
   - keeps checkout/cart JavaScript behavior intact
   ========================================================= */

/* Product detail chips */
body.buyer-page:not(.customer-gate-active) .buyer-meta-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  margin:2px 0 8px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-meta-grid span{
  display:inline-flex !important;
  align-items:center !important;
  gap:4px !important;
  max-width:100% !important;
  min-height:24px !important;
  padding:0 8px !important;
  border-radius:999px !important;
  background:#fff6f9 !important;
  color:#6f5f67 !important;
  font-size:10.5px !important;
  font-weight:750 !important;
  line-height:1 !important;
  border:1px solid rgba(255,112,158,.12) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-meta-grid b{
  color:#ff4f86 !important;
  font-size:9px !important;
  font-weight:950 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-seller-line{
  margin-top:0 !important;
  font-size:11.5px !important;
  color:#8b7881 !important;
}

/* Cart modal shell */
body.buyer-page #cartDrawer.buyer-ticket-panel{
  background:linear-gradient(180deg,#fff 0%,#fff8fb 100%) !important;
  border-left:1px solid rgba(255,112,158,.18) !important;
  box-shadow:-24px 0 70px rgba(55,24,38,.18) !important;
}

body.buyer-page #cartDrawer .cart-expanded-content{
  min-height:100% !important;
  display:flex !important;
  flex-direction:column !important;
}

body.buyer-page #cartDrawer .ticket-head-v2{
  padding:4px 2px 14px !important;
  margin-bottom:12px !important;
  border-bottom:1px solid rgba(255,112,158,.14) !important;
}

body.buyer-page #cartDrawer .ticket-head-v2 .mini-label{
  color:#cc6c89 !important;
  font-size:10px !important;
}

body.buyer-page #cartDrawer .ticket-head-v2 h2{
  margin:2px 0 0 !important;
  color:#1e1820 !important;
  font-size:30px !important;
  line-height:1 !important;
  letter-spacing:-.045em !important;
}

body.buyer-page #cartDrawer .ticket-clear{
  min-height:38px !important;
  padding:0 13px !important;
  border:1px solid rgba(255,112,158,.18) !important;
  border-radius:14px !important;
  background:#fff5f8 !important;
  color:#ff4f86 !important;
  font-size:12px !important;
  font-weight:950 !important;
}

body.buyer-page #cartDrawer .ticket-items-v2{
  display:grid !important;
  gap:10px !important;
  align-content:start !important;
  flex:1 1 auto !important;
  overflow:auto !important;
  padding:2px 4px 10px 0 !important;
}

body.buyer-page #cartDrawer .buyer-ticket-item{
  display:grid !important;
  grid-template-columns:64px minmax(0,1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
  padding:10px !important;
  border:1px solid rgba(255,112,158,.13) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(104,44,72,.06) !important;
}

body.buyer-page #cartDrawer .ticket-thumb{
  width:64px !important;
  height:64px !important;
  border-radius:15px !important;
  overflow:hidden !important;
  background:linear-gradient(135deg,#fff4f8,#fff0ea) !important;
}

body.buyer-page #cartDrawer .ticket-info{
  min-width:0 !important;
}

body.buyer-page #cartDrawer .ticket-info strong{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  margin:0 0 4px !important;
  color:#1f1921 !important;
  font-size:14px !important;
  font-weight:950 !important;
  line-height:1.12 !important;
}

body.buyer-page #cartDrawer .ticket-seller{
  margin:0 0 6px !important;
  color:#87747d !important;
  font-size:11px !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

body.buyer-page #cartDrawer .ticket-meta-chips{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:4px !important;
  margin:0 0 6px !important;
}

body.buyer-page #cartDrawer .ticket-meta-chips span{
  min-height:20px !important;
  display:inline-flex !important;
  align-items:center !important;
  padding:0 7px !important;
  border-radius:999px !important;
  background:#fff6f9 !important;
  border:1px solid rgba(255,112,158,.10) !important;
  color:#7b6871 !important;
  font-size:10px !important;
  font-weight:800 !important;
}

body.buyer-page #cartDrawer .ticket-info b{
  color:#ff4f86 !important;
  font-size:14px !important;
  font-weight:950 !important;
}

body.buyer-page #cartDrawer .ticket-qty{
  display:grid !important;
  grid-template-columns:28px !important;
  justify-items:center !important;
  gap:5px !important;
}

body.buyer-page #cartDrawer .ticket-qty button{
  width:28px !important;
  height:28px !important;
  border:0 !important;
  border-radius:10px !important;
  background:#fff1f6 !important;
  color:#ff4f86 !important;
  font-size:16px !important;
  font-weight:950 !important;
}

body.buyer-page #cartDrawer .ticket-qty span{
  min-width:28px !important;
  min-height:24px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:9px !important;
  background:#1f1921 !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:950 !important;
}

body.buyer-page #cartDrawer .ticket-summary-v2{
  margin-top:auto !important;
  padding:14px 0 0 !important;
  border-top:1px solid rgba(255,112,158,.16) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.65),#fff8fb) !important;
}

body.buyer-page #cartDrawer .summary-line{
  display:flex !important;
  justify-content:space-between !important;
  gap:12px !important;
  margin:0 !important;
  padding:7px 0 !important;
  color:#806e77 !important;
  font-size:13px !important;
}

body.buyer-page #cartDrawer .summary-line strong{
  color:#201a21 !important;
}

body.buyer-page #cartDrawer .summary-line.total{
  margin-top:4px !important;
  padding-top:12px !important;
  border-top:1px dashed rgba(255,112,158,.26) !important;
  color:#201a21 !important;
  font-size:20px !important;
  font-weight:950 !important;
}

body.buyer-page #cartDrawer #checkoutBtn{
  margin-top:10px !important;
  min-height:50px !important;
  border-radius:16px !important;
  font-size:14px !important;
  font-weight:950 !important;
}

body.buyer-page #cartDrawer .mobile-close-cart{
  min-height:42px !important;
  border-radius:14px !important;
  color:#7e6a73 !important;
  font-weight:900 !important;
}

body.buyer-page #cartDrawer .empty-ticket{
  min-height:220px !important;
  border-radius:20px !important;
  background:#fff !important;
  border:1px dashed rgba(255,112,158,.28) !important;
  color:#8a7780 !important;
  font-weight:850 !important;
}

@media (max-width: 560px){
  body.buyer-page #cartDrawer.buyer-ticket-panel{
    padding:18px 14px !important;
  }

  body.buyer-page #cartDrawer .ticket-head-v2 h2{
    font-size:27px !important;
  }

  body.buyer-page #cartDrawer .buyer-ticket-item{
    grid-template-columns:58px minmax(0,1fr) 28px !important;
    padding:9px !important;
    border-radius:16px !important;
  }

  body.buyer-page #cartDrawer .ticket-thumb{
    width:58px !important;
    height:58px !important;
    border-radius:13px !important;
  }

  body.buyer-page #cartDrawer .ticket-info strong{
    font-size:13px !important;
  }

  body.buyer-page #cartDrawer .ticket-meta-chips span{
    font-size:9.5px !important;
    padding:0 6px !important;
  }
}

/* =========================================================
   CRITICAL FIX 2026-05-06: MOBILE SCROLL + MISSING MOBILE CONTROLS
   Fixes:
   1. Buyer storefront could not scroll on mobile because older patches
      created fixed/inner-scroll behavior conflicts.
   2. Mobile controls that appear on desktop were not consistently visible.
   This is intentionally placed at the very end to override older patches.
   ========================================================= */

html:not(.cart-modal-open),
body.buyer-page:not(.cart-modal-open),
body.buyer-page:not(.cart-open){
  height:auto !important;
  min-height:100% !important;
  max-height:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  position:static !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  width:auto !important;
  touch-action:auto !important;
  overscroll-behavior-y:auto !important;
}

body.buyer-page:not(.customer-gate-active):not(.cart-open) .buyer-app,
body.buyer-page:not(.customer-gate-active):not(.cart-open) .buyer-main,
body.buyer-page:not(.customer-gate-active):not(.cart-open) .buyer-shop,
body.buyer-page:not(.customer-gate-active):not(.cart-open) #shopArea,
body.buyer-page:not(.customer-gate-active):not(.cart-open) #shopProducts,
body.buyer-page:not(.customer-gate-active):not(.cart-open) .buyer-product-grid{
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow:visible !important;
  -webkit-overflow-scrolling:touch !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-main{
  padding-bottom:34px !important;
}

/* Keep buyer top controls available on mobile and desktop. */
body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium,
body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card,
body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row,
body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top,
body.buyer-page:not(.customer-gate-active) .buyer-filter-bar{
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
  display:block !important;
  position:sticky !important;
  top:0 !important;
  z-index:70 !important;
  background:rgba(255,250,252,.96) !important;
  backdrop-filter:blur(14px) !important;
  -webkit-backdrop-filter:blur(14px) !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card{
  display:grid !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
  display:grid !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-search-wrap,
body.buyer-page:not(.customer-gate-active) .buyer-search-premium{
  display:flex !important;
}

body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
  display:grid !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
  display:grid !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode{
  display:grid !important;
  place-items:center !important;
}

body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge:not(.hidden){
  display:grid !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
  display:grid !important;
}

/* Product action buttons must show on mobile too. */
body.buyer-page:not(.customer-gate-active) .buyer-product-card .quick-add,
body.buyer-page:not(.customer-gate-active) .buyer-product-card .quick-view{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  z-index:8 !important;
}

/* Desktop: compact top, no oversized hero. */
@media (min-width: 900px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding-top:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    margin-bottom:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    grid-template-columns:minmax(260px,.95fr) minmax(360px,1.05fr) !important;
    grid-template-areas:
      "welcome controls"
      "branch mode" !important;
    gap:10px 14px !important;
    padding:12px 14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{grid-area:welcome !important;display:block !important;}
  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row{grid-area:controls !important;}
  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{grid-area:branch !important;}
  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{grid-area:mode !important;}
}

/* Mobile: show all useful controls in a clean compact stack. */
@media (max-width: 899px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:8px 10px 30px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    margin-bottom:10px !important;
    padding:0 0 6px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:8px !important;
    border-radius:18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    display:none !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-template-columns:minmax(0,1fr) 48px !important;
    gap:7px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap,
  body.buyer-page:not(.customer-gate-active) .buyer-search-premium{
    height:42px !important;
    min-height:42px !important;
    border-radius:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
    width:48px !important;
    min-width:48px !important;
    height:42px !important;
    min-height:42px !important;
    border-radius:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    grid-template-columns:1fr !important;
    gap:7px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{
    min-height:0 !important;
    padding:4px !important;
    border-radius:15px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode{
    height:36px !important;
    min-height:36px !important;
    border-radius:12px !important;
    font-size:12px !important;
  }

  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge:not(.hidden){
    order:-1 !important;
    min-height:52px !important;
    grid-template-columns:32px minmax(0,1fr) auto !important;
    padding:8px 10px !important;
    border-radius:15px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    margin-bottom:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) #shopProducts.buyer-product-grid,
  body.buyer-page:not(.customer-gate-active) .buyer-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding-bottom:24px !important;
  }
}

/* =========================================================
   FINAL HOTFIX 2026-05-06
   Request:
   1) Fix buyer layout on desktop/mobile
   2) Keep upper part sticky while product list scrolls
   3) Prevent oversized desktop hero/header
   4) Keep clean product area alignment
   ========================================================= */

/* Natural page scroll + sticky header only */
body.buyer-page:not(.customer-gate-active){
  overflow-y:auto !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-app,
body.buyer-page:not(.customer-gate-active) .buyer-main,
body.buyer-page:not(.customer-gate-active) .buyer-shop,
body.buyer-page:not(.customer-gate-active) #shopArea{
  overflow:visible !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
  position:sticky !important;
  top:0 !important;
  z-index:120 !important;
  background:rgba(255,250,252,.97) !important;
  backdrop-filter:blur(16px) !important;
  -webkit-backdrop-filter:blur(16px) !important;
  border-bottom:1px solid rgba(255,112,158,.08) !important;
  box-shadow:none !important;
  margin:0 0 14px !important;
  padding:8px 0 10px !important;
}

body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
  margin:0 !important;
  border-radius:20px !important;
  border:1px solid rgba(255,112,158,.14) !important;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,251,.98)) !important;
  box-shadow:0 10px 28px rgba(104,44,72,.06) !important;
}

/* Keep catalog area in normal flow */
body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
  position:relative !important;
  top:auto !important;
  z-index:1 !important;
  margin:0 0 14px !important;
}

/* Desktop */
@media (min-width: 900px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    max-width:1320px !important;
    margin:0 auto !important;
    padding:16px 18px 34px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    display:grid !important;
    grid-template-columns:minmax(300px,1fr) minmax(420px,560px) !important;
    grid-template-areas:
      "welcome controls"
      "branch mode" !important;
    align-items:center !important;
    gap:10px 16px !important;
    padding:12px 14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    grid-area:welcome !important;
    display:block !important;
    min-width:0 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .mini-label{
    margin:0 0 4px !important;
    font-size:11px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy h1{
    margin:0 0 4px !important;
    font-size:clamp(22px,2.2vw,32px) !important;
    line-height:1 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy .soft-text{
    margin:0 !important;
    font-size:13px !important;
    line-height:1.35 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-area:controls !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 54px !important;
    gap:10px !important;
    align-items:center !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap,
  body.buyer-page:not(.customer-gate-active) .buyer-search-premium{
    height:46px !important;
    min-height:46px !important;
    border-radius:16px !important;
    padding:0 15px !important;
  }

  body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
    width:54px !important;
    min-width:54px !important;
    height:46px !important;
    min-height:46px !important;
    border-radius:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge{
    grid-area:branch !important;
    min-height:58px !important;
    grid-template-columns:34px minmax(0,1fr) auto !important;
    gap:10px !important;
    padding:10px 12px !important;
    border-radius:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
    width:34px !important;
    height:34px !important;
    border-radius:11px !important;
    font-size:15px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-copy strong,
  body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
    font-size:14px !important;
    line-height:1.1 !important;
  }

  body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
    min-height:30px !important;
    padding:0 10px !important;
    font-size:11px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    grid-area:mode !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:0 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode-toggle-top{
    width:100% !important;
    min-height:58px !important;
    padding:4px !important;
    border-radius:16px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-kiosk-header-card .buyer-mode{
    height:38px !important;
    min-height:38px !important;
    border-radius:12px !important;
    font-size:12px !important;
    font-weight:900 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(280px,350px) !important;
    gap:14px !important;
    align-items:end !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-title h2{
    font-size:clamp(24px,2.5vw,34px) !important;
    line-height:1.02 !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
  body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
    width:100% !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
    padding:6px !important;
    border-radius:18px !important;
  }
}

/* Mobile and tablet */
@media (max-width: 899px){
  body.buyer-page:not(.customer-gate-active) .buyer-main{
    padding:10px 10px 28px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium{
    margin-bottom:10px !important;
    padding:6px 0 8px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-topbar-premium > .buyer-kiosk-header-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:8px !important;
    border-radius:18px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-welcome-copy{
    display:none !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-toolbar-row,
  body.buyer-page:not(.customer-gate-active) .buyer-search-cart-row.buyer-toolbar-row{
    grid-template-columns:minmax(0,1fr) 48px !important;
    gap:7px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-search-wrap,
  body.buyer-page:not(.customer-gate-active) .buyer-search-premium{
    height:42px !important;
    min-height:42px !important;
    border-radius:14px !important;
    padding:0 12px !important;
  }

  body.buyer-page:not(.customer-gate-active) #openCartBtn.buyer-cart-icon-btn{
    width:48px !important;
    min-width:48px !important;
    height:42px !important;
    min-height:42px !important;
    border-radius:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) #branchBadge.buyer-branch-badge:not(.hidden){
    order:-1 !important;
    min-height:50px !important;
    grid-template-columns:30px minmax(0,1fr) auto !important;
    gap:8px !important;
    padding:8px 10px !important;
    border-radius:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-shop-icon{
    width:30px !important;
    height:30px !important;
    border-radius:10px !important;
    font-size:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .branch-copy strong,
  body.buyer-page:not(.customer-gate-active) #selectedBranchLabel{
    font-size:13px !important;
  }

  body.buyer-page:not(.customer-gate-active) #changeBranchBtn{
    min-height:28px !important;
    padding:0 8px !important;
    font-size:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-shop-control-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:7px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top{
    width:100% !important;
    padding:4px !important;
    border-radius:14px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-mode-toggle-top .buyer-mode{
    height:36px !important;
    min-height:36px !important;
    border-radius:11px !important;
    font-size:12px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-catalog-head.buyer-section-head-clean{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    margin-bottom:10px !important;
  }

  body.buyer-page:not(.customer-gate-active) .buyer-filter-bar,
  body.buyer-page:not(.customer-gate-active) .buyer-section-actions.buyer-filter-bar{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:6px !important;
    padding:6px !important;
    border-radius:16px !important;
  }
}


/* =========================================================
   CALE BOUTIQUE — UNIFIED THEME OVERRIDES
   Scope: login + dashboard/admin pages only
   ========================================================= */
:root{
  --stasia-bg: #fbf7ff;
  --stasia-surface: rgba(255,255,255,.92);
  --stasia-card: #ffffff;
  --stasia-lilac: #8f75df;
  --stasia-lilac-2: #cdbdff;
  --stasia-purple: #513096;
  --stasia-pink: #f36ba5;
  --stasia-pink-2: #ff97c5;
  --stasia-blush: #fff2fb;
  --stasia-ink: #2a213b;
  --stasia-muted: #7b718f;
  --stasia-line: rgba(143,117,223,.18);
  --stasia-line-strong: rgba(143,117,223,.34);
  --stasia-shadow: 0 16px 38px rgba(81,48,150,.12);
  --stasia-shadow-soft: 0 10px 24px rgba(81,48,150,.08);
}

body.login-page,
body.dash-body{
  background:
    radial-gradient(circle at top left, rgba(243,107,165,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(143,117,223,.12), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fbf7ff 50%, #fff7fc 100%) !important;
  color: var(--stasia-ink);
}

/* Login */
body.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}
body.login-page .login-card{
  width:min(460px, 100%);
  border:1px solid var(--stasia-line) !important;
  border-radius:32px !important;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(250,242,255,.95)) !important;
  box-shadow:var(--stasia-shadow) !important;
  padding:28px 24px !important;
  backdrop-filter: blur(12px);
}
body.login-page .stasia-login-brand{
  display:flex;
  justify-content:center;
  margin:0 0 14px;
}
body.login-page .stasia-login-brand img{
  width:min(260px, 78%);
  height:auto;
  object-fit:contain;
  filter: drop-shadow(0 8px 16px rgba(81,48,150,.14));
}
body.login-page .brand-dot{ display:none !important; }
body.login-page .eyebrow{ color:var(--stasia-lilac) !important; letter-spacing:.16em; }
body.login-page h1{ color:var(--stasia-purple) !important; }
body.login-page .muted{ color:var(--stasia-muted) !important; }
body.login-page .login-form label{ color:var(--stasia-purple); font-weight:800; }
body.login-page input{
  border:1px solid var(--stasia-line) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
body.login-page input:focus{
  outline:none;
  border-color:var(--stasia-lilac) !important;
  box-shadow: 0 0 0 4px rgba(143,117,223,.12);
}
body.login-page .small-link{ color:var(--stasia-purple) !important; }
body.login-page .small-link:hover{ color:var(--stasia-pink) !important; }

/* Buttons */
body.login-page .primary,
body.dash-body .primary{
  background:linear-gradient(135deg, var(--stasia-pink), var(--stasia-lilac)) !important;
  color:#fff !important;
  border:0 !important;
  box-shadow:0 14px 28px rgba(243,107,165,.24) !important;
}
body.login-page .primary:hover,
body.dash-body .primary:hover{ transform:translateY(-1px); }
body.dash-body .secondary,
body.dash-body .ghost,
body.dash-body button.secondary,
body.dash-body button.ghost{
  background:linear-gradient(180deg,#fff,#faf5ff) !important;
  color:var(--stasia-purple) !important;
  border:1px solid var(--stasia-line) !important;
  box-shadow:var(--stasia-shadow-soft) !important;
}

/* Dashboard shell */
body.dash-body .pos-app{
  background:transparent !important;
}
body.dash-body .sidebar{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,239,255,.96)) !important;
  border-right:1px solid var(--stasia-line) !important;
  box-shadow: 12px 0 32px rgba(81,48,150,.06);
}
body.dash-body .stasia-sidebar-brand{
  display:grid;
  grid-template-columns:82px 1fr;
  gap:12px;
  align-items:center;
  padding:14px 12px;
  border:1px solid var(--stasia-line);
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#fbf5ff);
  box-shadow:var(--stasia-shadow-soft);
  margin-bottom:10px;
}
body.dash-body .stasia-sidebar-logo{
  width:82px;
  height:82px;
  object-fit:contain;
  filter: drop-shadow(0 8px 14px rgba(81,48,150,.12));
}
body.dash-body .stasia-sidebar-brand strong{
  display:block;
  color:var(--stasia-purple);
  font-size:16px;
  line-height:1.1;
}
body.dash-body .stasia-sidebar-brand small{
  color:var(--stasia-muted);
}
body.dash-body .brand-dot{ display:none !important; }
body.dash-body .side-label{
  color:var(--stasia-lilac) !important;
  letter-spacing:.16em;
  font-weight:900;
}
body.dash-body .nav{
  border:1px solid transparent;
  border-radius:16px !important;
  color:var(--stasia-purple) !important;
  background:transparent !important;
}
body.dash-body .nav:hover{
  background:rgba(143,117,223,.08) !important;
  border-color:var(--stasia-line) !important;
}
body.dash-body .nav.active{
  background:linear-gradient(135deg, rgba(243,107,165,.16), rgba(143,117,223,.16)) !important;
  color:var(--stasia-purple) !important;
  border-color:var(--stasia-line-strong) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48), 0 10px 18px rgba(81,48,150,.08);
}
body.dash-body .dash-main{ background:transparent !important; }
body.dash-body .dash-top{
  border:1px solid var(--stasia-line) !important;
  border-radius:24px !important;
  background:rgba(255,255,255,.84) !important;
  box-shadow:var(--stasia-shadow-soft) !important;
  backdrop-filter: blur(14px);
}
body.dash-body #roleBadge,
body.dash-body .eyebrow{
  color:var(--stasia-lilac) !important;
}
body.dash-body #pageHint,
body.dash-body .top-subtitle,
body.dash-body .muted,
body.dash-body small{
  color:var(--stasia-muted) !important;
}
body.dash-body .clock,
body.dash-body .branch-select{
  border:1px solid var(--stasia-line) !important;
  border-radius:16px !important;
  background:#fff !important;
  color:var(--stasia-purple) !important;
  box-shadow:var(--stasia-shadow-soft);
}

/* Cards / panels / sections */
body.dash-body .tab-section,
body.dash-body .panel,
body.dash-body .form-card,
body.dash-body .ticket,
body.dash-body .sheet-form-card,
body.dash-body .sheet-main-panel,
body.dash-body .parcel-main-panel,
body.dash-body .parcel-ticket-panel,
body.dash-body .customer-orders-card,
body.dash-body .branch-modal-card,
body.dash-body .image-viewer-card,
body.dash-body .sub-detail-panel,
body.dash-body .stat,
body.dash-body .panel-head,
body.dash-body .summary-card,
body.dash-body .overview-card,
body.dash-body .tile,
body.dash-body .table-wrap,
body.dash-body .order-card,
body.dash-body .customer-order-card,
body.dash-body .parcel-card,
body.dash-body .history-card,
body.dash-body .buyer-ticket-item,
body.dash-body .card-list > *{
  border-color: var(--stasia-line) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,245,255,.96)) !important;
  box-shadow: var(--stasia-shadow-soft) !important;
}
body.dash-body .tab-section,
body.dash-body .panel,
body.dash-body .form-card,
body.dash-body .ticket,
body.dash-body .sheet-form-card,
body.dash-body .sheet-main-panel,
body.dash-body .parcel-main-panel,
body.dash-body .parcel-ticket-panel,
body.dash-body .table-wrap{
  border-radius:24px !important;
}
body.dash-body h1,
body.dash-body h2,
body.dash-body h3,
body.dash-body h4,
body.dash-body strong,
body.dash-body .price,
body.dash-body .total-row strong,
body.dash-body .total-row.big strong{
  color: var(--stasia-purple) !important;
}
body.dash-body p,
body.dash-body span,
body.dash-body td,
body.dash-body label,
body.dash-body input,
body.dash-body select,
body.dash-body textarea{
  color: var(--stasia-ink);
}

/* Forms */
body.dash-body input,
body.dash-body select,
body.dash-body textarea{
  border:1px solid var(--stasia-line) !important;
  border-radius:16px !important;
  background:#fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
body.dash-body input:focus,
body.dash-body select:focus,
body.dash-body textarea:focus{
  outline:none;
  border-color:var(--stasia-lilac) !important;
  box-shadow:0 0 0 4px rgba(143,117,223,.11);
}
body.dash-body .chip,
body.dash-body .mode-btn,
body.dash-body .buyer-mode,
body.dash-body .daily-tab,
body.dash-body .status-pill,
body.dash-body .status,
body.dash-body .pill,
body.dash-body .payment-pill,
body.dash-body .product-count-pill{
  border-color:var(--stasia-line) !important;
  color:var(--stasia-purple) !important;
  background:#fbf6ff !important;
}
body.dash-body .chip.active,
body.dash-body .mode-btn.active,
body.dash-body .daily-tab.active{
  color:#fff !important;
  background:linear-gradient(135deg, var(--stasia-pink), var(--stasia-lilac)) !important;
  border-color:transparent !important;
  box-shadow:0 12px 22px rgba(243,107,165,.18) !important;
}

/* POS and inventory cards */
body.dash-body .pos-card,
body.dash-body .buyer-product-card,
body.dash-body .admin-service-card,
body.dash-body .daily-alert-card,
body.dash-body .sheet-mini-stats > div,
body.dash-body .loyal-login-box > div,
body.dash-body .loyal-stats > div{
  border:1px solid var(--stasia-line) !important;
  border-radius:22px !important;
  background:linear-gradient(180deg, #fff, #fbf6ff) !important;
  box-shadow:var(--stasia-shadow-soft) !important;
}
body.dash-body .pos-thumb-wrap,
body.dash-body .buyer-img-wrap,
body.dash-body .ticket-thumb,
body.dash-body .parcel-thumb,
body.dash-body .preview{
  border-radius:18px !important;
  background:linear-gradient(180deg,#fff,#fbf6ff) !important;
}

/* Tables */
body.dash-body .table-wrap table,
body.dash-body table{
  border-collapse:separate !important;
  border-spacing:0;
  overflow:hidden;
  border-radius:18px;
}
body.dash-body .table-wrap th,
body.dash-body table th{
  background:#f6efff !important;
  color:var(--stasia-purple) !important;
}
body.dash-body .table-wrap td,
body.dash-body table td{
  border-color:var(--stasia-line) !important;
  background:rgba(255,255,255,.84) !important;
}
body.dash-body tr:nth-child(even) td{
  background:rgba(251,246,255,.92) !important;
}

/* Scrollbars */
body.dash-body *::-webkit-scrollbar,
body.login-page *::-webkit-scrollbar{ width:10px; height:10px; }
body.dash-body *::-webkit-scrollbar-thumb,
body.login-page *::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, var(--stasia-lilac), var(--stasia-pink));
  border-radius:999px;
}
body.dash-body *::-webkit-scrollbar-track,
body.login-page *::-webkit-scrollbar-track{ background:rgba(143,117,223,.08); }

@media (max-width: 980px){
  body.dash-body .stasia-sidebar-brand{
    grid-template-columns:60px 1fr;
    border-radius:20px;
  }
  body.dash-body .stasia-sidebar-logo{ width:60px; height:60px; }
}


/* Editable product category setup */
.setup-category-form{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(120px,180px) minmax(150px,190px);
  gap:12px;
  align-items:center;
}
.setup-category-form input,
.setup-category-form button{
  width:100%;
  min-width:0!important;
  height:54px;
  box-sizing:border-box;
}
.category-table{ min-width:520px; }
.category-icon-cell{ font-size:24px; text-align:center; }
@media(max-width:1180px){
  .setup-category-form{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px){
  .setup-category-form{ grid-template-columns:1fr; }
}

/* Category manager visibility fix */
.setup-category-notice{ margin-bottom:16px!important; border:1px solid var(--stasia-line, rgba(143,117,223,.18))!important; background:linear-gradient(135deg,#fff,#fbf3ff)!important; }
body.dash-body .nav[data-tab="setup"]{ font-weight:950!important; }

/* Branch / Outlet store photo update */
.branch-location-form textarea{ min-height:92px; resize:vertical; }
.branch-photo-box small{ width:100%; }
.branch-admin-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr)) !important;
  gap:14px !important;
}
.branch-admin-card-photo{
  padding:14px !important;
  display:grid !important;
  gap:10px !important;
  overflow:hidden;
}
.branch-admin-photo{
  width:100%;
  aspect-ratio:16/10;
  border-radius:18px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#fff2fb,#efe7ff);
  border:1px solid var(--stasia-line, rgba(143,117,223,.18));
  color:var(--stasia-purple, #513096);
  font-size:42px;
}
.branch-admin-photo img{ width:100%; height:100%; object-fit:cover; }
.branch-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.branch-card-top strong{ line-height:1.15; }


/* FIX14 — Branch/outlet membership polish */
.branch-city-group{display:grid;gap:12px;padding:14px;border:1px solid rgba(143,117,223,.18);border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(251,246,255,.94));box-shadow:0 10px 24px rgba(81,48,150,.08);}
.branch-city-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 2px;}
.branch-city-head h3{margin:0;color:#513096!important;}
.branch-city-head span{color:#8f75df;font-weight:900;font-size:13px;}
.branch-city-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;}
.setup-tenant-form select[name="branch_id"]{grid-column:span 2;min-width:260px;font-weight:900;color:#513096!important;}
@media(max-width:760px){.setup-tenant-form select[name="branch_id"]{grid-column:1/-1;min-width:0}.branch-city-grid{grid-template-columns:1fr}.branch-city-head{display:grid}}

/* FIX15: Main Branch duplicate warning and disabled save button */
.form-warning{
  margin: -2px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(243,107,165,.28);
  border-radius: 14px;
  background: #fff1fa;
  color: #9b245d !important;
  font-weight: 850;
  font-size: 13px;
}
button:disabled,
button.disabled{
  opacity:.48 !important;
  cursor:not-allowed !important;
  filter:grayscale(.25);
  box-shadow:none !important;
  transform:none !important;
}


/* =========================================================
   FIX16: BIR Journal Books layout + reliable controls
   ========================================================= */
body.dash-body #birjournals.bir-section{
  overflow: visible !important;
}
body.dash-body #birjournals .bir-panel{
  overflow: visible !important;
  padding: clamp(18px, 2vw, 26px) !important;
}
body.dash-body #birjournals .bir-main-head{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 18px !important;
  margin-bottom: 18px !important;
}
body.dash-body #birjournals .bir-main-head > div:first-child{
  min-width: 0 !important;
}
body.dash-body #birjournals .bir-main-head h2{
  margin: 4px 0 8px !important;
  line-height: 1.05 !important;
}
body.dash-body #birjournals .bir-main-head .muted{
  max-width: 760px !important;
  line-height: 1.45 !important;
}
body.dash-body #birjournals .bir-head-actions{
  width: min(240px, 100%) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-self: start !important;
  justify-self: end !important;
  padding-top: 4px !important;
}
body.dash-body #birjournals .bir-head-actions button{
  width: 100% !important;
  min-height: 52px !important;
  border-radius: 18px !important;
  white-space: normal !important;
  line-height: 1.15 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 5 !important;
}
body.dash-body #birjournals .bir-tabs{
  width: 100% !important;
  max-width: 780px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 8px 0 16px !important;
}
body.dash-body #birjournals .bir-tab{
  flex: 0 1 auto !important;
}
body.dash-body #birjournals .bir-toolbar{
  display: grid !important;
  grid-template-columns: minmax(240px, 1.6fr) repeat(5, minmax(140px, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  max-width: 100% !important;
  overflow: visible !important;
  margin: 14px 0 18px !important;
}
body.dash-body #birjournals .bir-toolbar input,
body.dash-body #birjournals .bir-toolbar select,
body.dash-body #birjournals .bir-toolbar button{
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  border-radius: 16px !important;
  box-sizing: border-box !important;
}
body.dash-body #birjournals #birExportCsvBtn,
body.dash-body #birjournals #birPrintBtn{
  min-width: 132px !important;
}
body.dash-body #birjournals .bir-totals{
  margin-top: 8px !important;
}
body.dash-body #birjournals .bir-table-wrap{
  max-width: 100% !important;
  overflow: auto !important;
}
body.dash-body .modal{
  z-index: 9999 !important;
}
body.dash-body .modal-card{
  border: 1px solid var(--stasia-line, rgba(143,117,223,.18)) !important;
  box-shadow: 0 28px 90px rgba(41,33,59,.28) !important;
}
body.dash-body .bir-entry-form .primary,
body.dash-body .bir-modal-actions .primary{
  pointer-events: auto !important;
}
@media (max-width: 1340px){
  body.dash-body #birjournals .bir-toolbar{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.dash-body #birjournals #birSearch{
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 940px){
  body.dash-body #birjournals .bir-main-head{
    grid-template-columns: 1fr !important;
  }
  body.dash-body #birjournals .bir-head-actions{
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-self: stretch !important;
  }
  body.dash-body #birjournals .bir-toolbar{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.dash-body #birjournals #birSearch{
    grid-column: 1 / -1 !important;
  }
}
@media (max-width: 620px){
  body.dash-body #birjournals .bir-head-actions,
  body.dash-body #birjournals .bir-toolbar{
    grid-template-columns: 1fr !important;
  }
  body.dash-body #birjournals #birSearch{
    grid-column: auto !important;
  }
  body.dash-body #birjournals .bir-tab{
    flex: 1 1 100% !important;
  }
}


/* FIX18: BIR Add Entry modal reliability */
body.dash-body .modal.bir-entry-modal-open .modal-card{
  width:min(880px,96vw) !important;
  max-height:calc(100vh - 36px) !important;
  overflow:auto !important;
}
body.dash-body .bir-entry-form{
  position:relative;
  z-index:2;
}
body.dash-body .bir-entry-form button{
  pointer-events:auto !important;
}

/* =========================================================
   DASHBOARD MOBILE PORTRAIT LAYOUT ONLY
   Keeps landscape/tablet layout untouched. Fixes cramped POS/ticket view
   on narrow upright phones.
   ========================================================= */
@media (max-width: 900px) and (orientation: portrait){
  body.dash-body{
    overflow:auto !important;
    min-height:100dvh !important;
    background:
      radial-gradient(circle at top left, rgba(243,107,165,.12), transparent 30%),
      linear-gradient(180deg,#fff,#fbf7ff 55%,#fff7fc) !important;
  }

  body.dash-body .pos-app{
    display:block !important;
    height:auto !important;
    min-height:100dvh !important;
    overflow:visible !important;
    padding-bottom:92px !important;
  }

  body.dash-body .dash-main{
    height:auto !important;
    min-height:100dvh !important;
    overflow:visible !important;
    padding:0 10px 96px !important;
  }

  body.dash-body .dash-top{
    position:sticky !important;
    top:0 !important;
    z-index:60 !important;
    height:auto !important;
    min-height:72px !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    align-items:start !important;
    padding:10px 12px !important;
    margin:0 -10px 10px !important;
    border-radius:0 0 22px 22px !important;
    border-left:0 !important;
    border-right:0 !important;
    background:rgba(255,255,255,.92) !important;
    backdrop-filter:blur(16px) !important;
  }

  body.dash-body .dash-top > div:first-child{
    display:grid !important;
    gap:2px !important;
    min-width:0 !important;
  }

  body.dash-body #roleBadge{
    margin:0 !important;
    font-size:10px !important;
    letter-spacing:.14em !important;
  }

  body.dash-body .top-subtitle,
  body.dash-body #pageHint{
    margin:0 !important;
    font-size:12px !important;
    line-height:1.25 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }

  body.dash-body .top-actions{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto auto !important;
    gap:8px !important;
    width:100% !important;
    align-items:center !important;
  }

  body.dash-body .top-actions .branch-select{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    height:44px !important;
    border-radius:16px !important;
    font-size:13px !important;
  }

  body.dash-body .clock{
    height:44px !important;
    min-width:70px !important;
    padding:6px 8px !important;
    display:grid !important;
    place-items:center !important;
    text-align:center !important;
    font-size:11px !important;
    line-height:1.05 !important;
  }

  body.dash-body .top-actions button.secondary{
    height:44px !important;
    min-width:70px !important;
    padding:0 10px !important;
    border-radius:16px !important;
    font-size:13px !important;
  }

  body.dash-body .tab-section{
    padding:10px 0 16px !important;
  }

  body.dash-body .pos-layout.active{
    display:flex !important;
    flex-direction:column !important;
    gap:12px !important;
    height:auto !important;
    min-height:0 !important;
    padding:0 0 96px !important;
    overflow:visible !important;
  }

  body.dash-body .pos-products{
    order:1 !important;
    overflow:visible !important;
    padding:0 !important;
    min-height:0 !important;
  }

  body.dash-body .pos-mode-toggle{
    display:flex !important;
    gap:8px !important;
    overflow-x:auto !important;
    padding:4px 2px 8px !important;
    margin:0 0 6px !important;
  }

  body.dash-body .mode-btn{
    flex:0 0 auto !important;
    min-height:42px !important;
    padding:0 18px !important;
    border-radius:999px !important;
  }

  body.dash-body .pos-search{
    display:grid !important;
    grid-template-columns:1fr 82px 82px !important;
    gap:8px !important;
    margin-bottom:10px !important;
  }

  body.dash-body .pos-search input{
    min-width:0 !important;
    height:48px !important;
    border-radius:18px !important;
    font-size:13px !important;
  }

  body.dash-body .pos-search button{
    height:48px !important;
    padding:0 8px !important;
    border-radius:16px !important;
    font-size:12px !important;
  }

  body.dash-body #posCategories.chips,
  body.dash-body .chips{
    display:flex !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
    overflow-x:auto !important;
    padding:2px 2px 10px !important;
    margin-bottom:8px !important;
    -webkit-overflow-scrolling:touch !important;
  }

  body.dash-body #posCategories .chip,
  body.dash-body .chips .chip{
    flex:0 0 auto !important;
    min-height:40px !important;
    padding:0 15px !important;
    border-radius:999px !important;
    white-space:nowrap !important;
    font-size:13px !important;
  }

  body.dash-body .pos-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    padding-bottom:8px !important;
  }

  body.dash-body .pos-card{
    min-width:0 !important;
    min-height:0 !important;
    padding:10px !important;
    border-radius:18px !important;
    display:grid !important;
    gap:8px !important;
  }

  body.dash-body .pos-thumb-wrap{
    height:94px !important;
    border-radius:16px !important;
    overflow:hidden !important;
  }

  body.dash-body .pos-thumb,
  body.dash-body .pos-thumb-wrap img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
    padding:6px !important;
  }

  body.dash-body .pos-card-body{
    display:grid !important;
    gap:4px !important;
    min-width:0 !important;
  }

  body.dash-body .pos-card-body .eyebrow{
    font-size:9px !important;
    letter-spacing:.08em !important;
    margin:0 !important;
  }

  body.dash-body .pos-card h3{
    font-size:13px !important;
    line-height:1.15 !important;
    min-height:30px !important;
    margin:0 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
  }

  body.dash-body .pos-card .muted{
    display:none !important;
  }

  body.dash-body .pos-card .total-row{
    display:grid !important;
    gap:4px !important;
    align-items:start !important;
  }

  body.dash-body .pos-card .price{
    font-size:16px !important;
  }

  body.dash-body .sku-mini,
  body.dash-body .stock-pill{
    font-size:10px !important;
    padding:4px 7px !important;
    border-radius:999px !important;
  }

  /* Portrait ticket is a normal page card, not a floating overlay. */
  body.dash-body .ticket{
    order:2 !important;
    position:static !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    z-index:auto !important;
    width:100% !important;
    max-height:none !important;
    min-height:0 !important;
    overflow:visible !important;
    border:1px solid var(--stasia-line, rgba(143,117,223,.18)) !important;
    border-radius:24px !important;
    box-shadow:var(--stasia-shadow-soft, 0 10px 24px rgba(81,48,150,.08)) !important;
    padding:14px !important;
    margin:4px 0 0 !important;
    background:linear-gradient(180deg,#fff,#fbf6ff) !important;
  }

  body.dash-body .ticket-head{
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    margin-bottom:6px !important;
  }

  body.dash-body .ticket h2{
    font-size:26px !important;
    line-height:1.1 !important;
  }

  body.dash-body #clearTicketBtn{
    min-height:38px !important;
    padding:0 14px !important;
    border-radius:14px !important;
  }

  body.dash-body #ticketCustomer{
    margin:0 0 8px !important;
    font-size:12px !important;
  }

  body.dash-body .ticket-items{
    flex:none !important;
    min-height:120px !important;
    max-height:260px !important;
    overflow:auto !important;
    padding:10px 0 !important;
    border-top:1px dashed rgba(143,117,223,.18) !important;
    border-bottom:1px dashed rgba(143,117,223,.18) !important;
  }

  body.dash-body .ticket-footer{
    padding-top:12px !important;
  }

  body.dash-body .ticket-payment-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  body.dash-body .payment-field{
    min-width:0 !important;
  }

  body.dash-body .payment-field input,
  body.dash-body .payment-field select{
    width:100% !important;
    height:48px !important;
    border-radius:16px !important;
  }

  body.dash-body .total-row.big{
    margin:12px 0 !important;
    padding:12px !important;
    border-radius:18px !important;
    background:#fff !important;
    border:1px solid var(--stasia-line, rgba(143,117,223,.18)) !important;
  }

  body.dash-body #saveTicketBtn{
    min-height:52px !important;
    border-radius:18px !important;
  }

  /* Bottom dashboard navigation in portrait only. */
  body.dash-body .sidebar{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    top:auto !important;
    z-index:90 !important;
    height:78px !important;
    width:100% !important;
    display:flex !important;
    align-items:stretch !important;
    gap:8px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px)) !important;
    border-top:1px solid var(--stasia-line, rgba(143,117,223,.18)) !important;
    border-right:0 !important;
    background:rgba(255,255,255,.94) !important;
    backdrop-filter:blur(18px) !important;
    box-shadow:0 -14px 38px rgba(81,48,150,.15) !important;
  }

  body.dash-body .sidebar .brand,
  body.dash-body .sidebar .side-label{
    display:none !important;
  }

  body.dash-body .sidebar .nav{
    flex:0 0 94px !important;
    width:94px !important;
    min-width:94px !important;
    height:58px !important;
    margin:0 !important;
    padding:7px 6px !important;
    display:grid !important;
    place-items:center !important;
    text-align:center !important;
    border-radius:18px !important;
    font-size:11px !important;
    line-height:1.15 !important;
    white-space:normal !important;
  }

  body.dash-body .sidebar .nav.active{
    background:linear-gradient(135deg, rgba(243,107,165,.18), rgba(143,117,223,.20)) !important;
    border:1px solid var(--stasia-line-strong, rgba(143,117,223,.34)) !important;
  }

  body.dash-body .panel-head,
  body.dash-body .history-panel-head,
  body.dash-body .parcel-main-head,
  body.dash-body .daily-main-head{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:start !important;
  }

  body.dash-body .panel-head h2{
    font-size:26px !important;
    line-height:1.1 !important;
  }

  body.dash-body .panel-head input,
  body.dash-body .panel-head select,
  body.dash-body .history-filters,
  body.dash-body .parcel-list-tools{
    width:100% !important;
    max-width:none !important;
  }

  body.dash-body .product-form,
  body.dash-body .two-grid,
  body.dash-body .sheet-layout,
  body.dash-body .daily-two-col,
  body.dash-body .parcel-pos-layout{
    grid-template-columns:1fr !important;
  }

  body.dash-body .table-wrap{
    max-width:100% !important;
    overflow:auto !important;
  }
}

@media (max-width: 380px) and (orientation: portrait){
  body.dash-body .pos-search{
    grid-template-columns:1fr !important;
  }
  body.dash-body .pos-search button{
    width:100% !important;
  }
  body.dash-body .pos-grid{
    grid-template-columns:1fr !important;
  }
  body.dash-body .pos-thumb-wrap{
    height:120px !important;
  }
}

/* FIX21: remove empty dashboard portrait clock pill and clean top controls */
@media (max-width: 900px) and (orientation: portrait){
  body.dash-body .dash-top .clock,
  body.dash-body .top-actions .clock,
  body.dash-body #clock{
    display:none !important;
  }
  body.dash-body .top-actions{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px !important;
  }
  body.dash-body .top-actions .branch-select{
    min-width:0 !important;
    width:100% !important;
  }
  body.dash-body .top-actions button.secondary{
    min-width:72px !important;
    width:auto !important;
    white-space:nowrap !important;
  }
}

/* =========================================================
   SYSTEM SETTINGS PAGE
   ========================================================= */
.settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(280px,1fr));
  gap:18px;
  align-items:start;
}
.system-settings-card,.account-settings-card{
  min-width:0;
}
.system-settings-form{
  display:grid;
  gap:14px;
  margin-top:14px;
}
.system-settings-form label{
  display:grid;
  gap:7px;
  color:var(--stasia-purple,#513096);
  font-weight:900;
}
.system-settings-form input{
  width:100%;
  min-height:52px;
}
.settings-logo-preview{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid var(--stasia-line,rgba(143,117,223,.18));
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fbf6ff);
}
.settings-logo-preview img{
  width:140px;
  height:140px;
  object-fit:contain;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--stasia-line,rgba(143,117,223,.18));
  box-shadow:var(--stasia-shadow-soft,0 10px 24px rgba(81,48,150,.08));
}
@media(max-width:900px){
  .settings-grid{ grid-template-columns:1fr; }
  .settings-logo-preview{ grid-template-columns:100px 1fr; }
  .settings-logo-preview img{ width:100px; height:100px; }
}
@media(max-width:520px){
  .settings-logo-preview{ grid-template-columns:1fr; justify-items:center; text-align:center; }
}

/* FIX23: Remove online shop product count pill below sort control */
body.buyer-page:not(.customer-gate-active) #productCount,
body.buyer-page:not(.customer-gate-active) .product-count-pill{
  display:none !important;
  width:0 !important;
  height:0 !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  opacity:0 !important;
  visibility:hidden !important;
}
body.buyer-page:not(.customer-gate-active) .cb-shop-mode-row{
  grid-template-columns:1fr !important;
  justify-items:center !important;
}
body.buyer-page:not(.customer-gate-active) .cb-shop-mode-row .cb-sort-control{
  justify-self:center !important;
}


/* Single-store mode: branch/outlet controls removed from the UI, kept only internally for stock database compatibility. */
#branchBadge,
#branchModal,
#adminBranchFilter,
#dailyBranchFilter,
#productBranchSelect,
#setupSubrenterBranchSelect,
#closingBranchSelect,
#expiryBranchSelect,
#stockCountBranchSelect,
#putupBranchSelect,
#remitBranchSelect,
#issueBranchSelect,
#reportBranchFilter,
[data-tab="branches"],
[data-tab="outlets"] {
  display: none !important;
}


/* Sub-renter management panel */
.subrenter-admin-layout{ align-items:start; }
.subrenter-admin-form{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.subrenter-admin-form .setup-form-wide{ grid-column:1 / -1; }
.subrenter-admin-table td{ vertical-align:top; }
.action-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.compact-action-btn,.compact-danger-btn{ min-height:34px; padding:7px 10px; border-radius:10px; font-size:12px; }
.sub-details-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; margin:14px 0 16px; }
.sub-details-grid>div{ padding:13px; border:1px solid rgba(126,87,194,.16); border-radius:16px; background:rgba(255,255,255,.72); }
.sub-details-grid span{ display:block; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:#7c6a9c; font-weight:800; margin-bottom:5px; }
.sub-details-grid b{ color:#32224d; overflow-wrap:anywhere; }
.sub-details-wide{ grid-column:1 / -1; }
.customer-orders-list{ display:grid; gap:12px; margin-top:14px; }
.customer-order-item{ padding:14px; border:1px solid rgba(126,87,194,.15); border-radius:18px; background:#fff; }
.customer-order-top{ display:flex; justify-content:space-between; gap:12px; align-items:center; }
.customer-order-status,.customer-order-products{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.customer-order-status span,.customer-order-products span{ padding:5px 8px; border-radius:999px; background:#f5edff; color:#5b35a8; font-size:12px; font-weight:800; }
@media(max-width:760px){ .action-row{ flex-direction:column; align-items:stretch; } }


/* =========================================================
   CALE BOUTIQUE THEME PATCH
   Brand colors from uploaded logo: blush pink, black, white.
   ========================================================= */
:root{
  --bg:#fff7f9;
  --panel:#fff1f4;
  --card:#ffffff;
  --ink:#171113;
  --muted:#755f64;
  --line:#f3c8d0;
  --accent:#d8798b;
  --accent2:#111012;
  --soft:#ffe8ee;
  --shadow:0 18px 55px rgba(80,35,45,.10);
}
body{background:linear-gradient(180deg,#fff7f9 0%,#ffffff 52%,#fff1f4 100%);}
.primary{background:linear-gradient(135deg,#111012,#d8798b);box-shadow:0 12px 28px rgba(17,16,18,.16);}
.secondary,.ghost,input,select{border-color:var(--line);}
.sidebar{background:#fff7f9;}
.nav.active{background:#111012;color:#fff;}
.brand-dot{background:linear-gradient(135deg,#111012,#f6bac4);}
.stasia-sidebar-logo,.stasia-login-brand img,.cb-brand-logo{border-radius:14px;}


/* =========================================================
   CALE BOUTIQUE FINAL ADMIN/LOGIN COLOR OVERRIDES
   Forces the older theme variables to the uploaded Cale palette.
   ========================================================= */
:root{
  --stasia-bg:#fff7f9;
  --stasia-surface:rgba(255,255,255,.94);
  --stasia-card:#ffffff;
  --stasia-lilac:#d8798b;
  --stasia-lilac-2:#f6bac4;
  --stasia-purple:#111012;
  --stasia-pink:#d8798b;
  --stasia-pink-2:#f6bac4;
  --stasia-blush:#fff1f4;
  --stasia-ink:#171113;
  --stasia-muted:#755f64;
  --stasia-line:rgba(246,186,196,.54);
  --stasia-line-strong:rgba(216,121,139,.48);
  --stasia-shadow:0 16px 38px rgba(80,35,45,.12);
  --stasia-shadow-soft:0 10px 24px rgba(80,35,45,.08);
}
body.login-page,body.dash-body{
  background:
    radial-gradient(circle at top left, rgba(246,186,196,.34), transparent 28%),
    radial-gradient(circle at top right, rgba(17,16,18,.06), transparent 24%),
    linear-gradient(180deg,#fff7f9 0%,#ffffff 52%,#fff1f4 100%) !important;
}
body.login-page .login-card,body.dash-body .panel,body.dash-body .form-card,body.dash-body .order-card,body.dash-body .approval-card,body.dash-body .table-wrap{
  border-color:var(--stasia-line) !important;
  box-shadow:var(--stasia-shadow-soft) !important;
}
body.login-page .primary,body.dash-body .primary{
  background:linear-gradient(135deg,#111012,#d8798b) !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(80,35,45,.18) !important;
}
body.dash-body .nav.active{background:#111012 !important;color:#fff !important;}
body.dash-body .sidebar{background:linear-gradient(180deg,#fff7f9,#ffffff) !important;}
body.dash-body .dash-top{border-bottom-color:var(--stasia-line) !important;}
body.login-page .secondary,body.dash-body .secondary,body.dash-body .ghost{
  background:#fff7f9 !important;
  color:#111012 !important;
  border-color:var(--stasia-line) !important;
}
body.login-page h1,body.dash-body h1,body.dash-body h2,body.dash-body h3,body.login-page .login-form label{color:#111012 !important;}
body.login-page .eyebrow,body.dash-body .eyebrow{color:#d8798b !important;}
body.login-page .stasia-login-brand img,body.dash-body .stasia-sidebar-logo{border-radius:16px;filter:drop-shadow(0 8px 16px rgba(80,35,45,.12));}

/* CALE UPDATE: Product sort dropdown removed from buyer view */
body.buyer-page .cb-shop-mode-row,
body.buyer-page .cb-sort-control,
body.buyer-page #sortPicker {
  display: none !important;
}


/* Product delete / recovery UI */
.danger-soft{border-color:rgba(225,29,72,.24)!important;color:#be123c!important;background:#fff1f2!important}
.compact-danger-btn,.compact-action-btn{min-height:34px!important;padding:0 10px!important;font-size:12px!important;border-radius:12px!important}
.action-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#deletedProductsTable table td,#deletedProductsTable table th{vertical-align:top}
#deletedProductsTable .primary{min-height:34px;padding:0 12px;border-radius:12px}
.stock-actions{gap:6px;flex-wrap:wrap}


/* =========================================================
   SUB-RENTER SELLER PROFILE + BADGES
   ========================================================= */
.badge-picker{
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(222,120,148,.25);
  border-radius:18px;
  background:#fff8fb;
}
.badge-option-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:8px;
}
.badge-option-grid label{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  padding:8px 10px;
  border:1px solid rgba(222,120,148,.18);
  border-radius:999px;
  background:#fff;
  font-size:12px;
  font-weight:850;
}
.seller-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:6px;
}
.seller-badge-chip{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 8px;
  border-radius:999px;
  color:#8b4057;
  background:#ffe9f0;
  font-size:11px;
  font-weight:900;
}
.muted-chip{ color:#7b6870; background:#f7edf2; }
.seller-mini-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:220px;
}
.seller-mini-cell img,
.seller-modal-heading img{
  width:44px;
  height:44px;
  border-radius:999px;
  object-fit:cover;
  background:#fff;
  box-shadow:0 8px 18px rgba(80,35,45,.10);
}
.seller-modal-heading{
  display:flex;
  align-items:center;
  gap:14px;
}
.seller-profile-form{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.seller-profile-photo-box{
  display:grid;
  gap:12px;
  justify-items:center;
  padding:18px;
  border:1px solid rgba(222,120,148,.22);
  border-radius:24px;
  background:#fff8fb;
}
.seller-profile-photo-box img{
  width:150px;
  height:150px;
  border-radius:999px;
  object-fit:cover;
  background:#fff;
  box-shadow:0 16px 35px rgba(80,35,45,.14);
}
.seller-profile-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.seller-profile-fields label{
  display:grid;
  gap:6px;
  color:#7a4558;
  font-weight:900;
}
.seller-profile-fields input,
.seller-profile-fields textarea{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid rgba(222,120,148,.25);
  border-radius:14px;
  background:#fff;
  font:inherit;
}
.seller-profile-wide{
  grid-column:1/-1;
}
@media(max-width:900px){
  .seller-profile-form{ grid-template-columns:1fr; }
  .seller-profile-fields{ grid-template-columns:1fr; }
}




/* =========================================================
   SELLER FOLLOWERS + BUYER FOLLOWED SELLERS
   ========================================================= */
.seller-strip-btn.follow{
  border:0 !important;
  color:#fff !important;
  background:linear-gradient(135deg,#d96f8f 0%,#5b3440 100%) !important;
}
.seller-strip-btn.follow.is-following{
  color:#8e415a !important;
  border:1px solid rgba(223,112,143,.28) !important;
  background:#fff !important;
}
.followed-sellers-panel{
  margin-top:18px;
  padding:16px;
  border:1px solid rgba(232,132,160,.22);
  border-radius:22px;
  background:linear-gradient(135deg,#fff,#fff7fa);
}
.followed-sellers-list{
  display:grid;
  gap:10px;
}
.followed-seller-card{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid rgba(232,132,160,.18);
  border-radius:18px;
  background:#fff;
}
.followed-seller-card img{
  width:48px;
  height:48px;
  border-radius:999px;
  object-fit:cover;
  background:#fff3f7;
}
.followed-seller-card strong{
  display:block;
  color:#1f1720;
  font-size:14px;
  font-weight:950;
}
.followed-seller-card span{
  display:block;
  color:#735866;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.followed-seller-card small{
  display:block;
  color:#c75f7e;
  font-size:11px;
  font-weight:900;
}
@media(max-width:640px){
  .followed-seller-card{
    grid-template-columns:44px minmax(0,1fr);
  }
  .followed-seller-card button{
    grid-column:1/-1;
    width:100%;
  }
}


/* =========================================================
   BADGE PICKER CLEAN UI FIX
   Replaces ugly default checkbox boxes with clean selectable chips.
   ========================================================= */
.badge-picker{
  padding:18px !important;
  border-radius:24px !important;
  background:linear-gradient(135deg,#fffafb 0%,#fff4f8 100%) !important;
}

.badge-picker > .eyebrow{
  margin:0 0 4px !important;
  color:#d76f8e !important;
  letter-spacing:.16em !important;
}

.badge-option-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
  align-items:flex-start !important;
  grid-template-columns:none !important;
}

.badge-option-grid label{
  position:relative !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:auto !important;
  min-width:0 !important;
  min-height:38px !important;
  padding:9px 14px 9px 12px !important;
  border:1px solid rgba(216,111,142,.24) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#51303b !important;
  font-size:12px !important;
  font-weight:900 !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:0 8px 18px rgba(107,61,80,.05) !important;
  transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}

/* Hide the real checkbox so browser default boxes will not ruin the layout */
.badge-option-grid label input[type="checkbox"]{
  position:absolute !important;
  opacity:0 !important;
  pointer-events:none !important;
  inline-size:1px !important;
  block-size:1px !important;
  width:1px !important;
  height:1px !important;
  min-width:1px !important;
  min-height:1px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

.badge-option-grid label::before{
  content:"" !important;
  width:16px !important;
  height:16px !important;
  flex:0 0 16px !important;
  border-radius:999px !important;
  border:2px solid rgba(216,111,142,.35) !important;
  background:#fff !important;
  box-shadow:inset 0 0 0 3px #fff !important;
}

.badge-option-grid label:hover{
  transform:translateY(-1px) !important;
  border-color:rgba(216,111,142,.55) !important;
  box-shadow:0 12px 24px rgba(107,61,80,.08) !important;
}

/* Modern browser checked state */
.badge-option-grid label:has(input[type="checkbox"]:checked){
  color:#fff !important;
  border-color:transparent !important;
  background:linear-gradient(135deg,#d96f8f 0%,#5b3440 100%) !important;
  box-shadow:0 12px 24px rgba(107,61,80,.16) !important;
}

.badge-option-grid label:has(input[type="checkbox"]:checked)::before{
  content:"✓" !important;
  display:grid !important;
  place-items:center !important;
  color:#d96f8f !important;
  font-size:11px !important;
  font-weight:950 !important;
  border-color:#fff !important;
  background:#fff !important;
  box-shadow:none !important;
}

.badge-picker input[name="custom_badges"]{
  margin-top:4px !important;
  min-height:44px !important;
  border-radius:16px !important;
  background:#fff !important;
  border:1px solid rgba(216,111,142,.24) !important;
  box-shadow:none !important;
}

@media(max-width:700px){
  .badge-picker{
    padding:14px !important;
  }
  .badge-option-grid{
    gap:8px !important;
  }
  .badge-option-grid label{
    min-height:36px !important;
    padding:8px 12px 8px 10px !important;
    font-size:11px !important;
  }
}


/* =========================================================
   SERVICES & BOOKINGS DASHBOARD UI
   ========================================================= */
.services-dashboard-section .sheet-layout,
.service-admin-layout{
  align-items:start;
}
.service-form{
  display:grid;
  gap:10px;
}
.service-form input,
.service-form select,
.service-form textarea{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:14px;
  background:#fff;
  font:inherit;
}
.service-switch-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:10px 12px;
  border:1px solid rgba(216,111,142,.18);
  border-radius:14px;
  background:#fff7fa;
  font-weight:900;
  color:#5d3444;
}
.service-switch-row input{
  width:auto!important;
  min-height:auto!important;
}
.service-image-tools{
  display:grid;
  gap:10px;
}
.service-admin-meta,
.booking-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.service-admin-meta span{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  background:#fff0f4;
  color:#8b4057;
  font-size:11px;
  font-weight:900;
}
.booking-filter-row{
  margin-bottom:14px;
}
.booking-filter-row select,
.booking-filter-row input{
  min-height:42px;
  padding:9px 12px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:14px;
}


/* =========================================================
   SELLER PROFILE APPROVAL UI
   ========================================================= */
.seller-profile-pending-notice{
  margin:0 0 16px;
  padding:14px 16px;
  border:1px solid rgba(216,111,142,.28);
  border-radius:18px;
  background:linear-gradient(135deg,#fff7fa,#fff);
  color:#6b3c4c;
  box-shadow:0 12px 24px rgba(107,61,80,.06);
}
.seller-profile-pending-notice b{
  color:#d76f8e;
}
.seller-profile-pending-notice span{
  display:block;
  margin-top:3px;
  color:#6d5962;
  font-size:13px;
}
.approval-group{
  display:grid;
  gap:14px;
  margin-bottom:22px;
}
.approval-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}
.seller-profile-approval-card{
  display:grid;
  gap:12px;
}
.profile-change-list{
  display:grid;
  gap:6px;
  margin:0;
  padding:12px 14px 12px 28px;
  border-radius:16px;
  background:#fff7fa;
  color:#5f3e4a;
  font-size:13px;
}
.profile-change-list li::marker{
  color:#d76f8e;
}
.seller-profile-pending-img{
  max-height:160px;
  object-fit:contain;
  border-radius:16px;
  background:#fff7fa;
}
.nav.hidden{
  display:none !important;
}

.field-help{
  display:block;
  margin-top:5px;
  color:#8b6e79;
  font-size:12px;
  font-weight:700;
}


/* =========================================================
   CALE BOUTIQUE SMOOTH TRANSITION EFFECTS
   Dashboard: tabs, cards, buttons, forms, sidebar, approvals
   ========================================================= */
:root{
  --cale-ease-soft:cubic-bezier(.22,.61,.36,1);
  --cale-ease-pop:cubic-bezier(.16,1,.3,1);
  --cale-speed-fast:160ms;
  --cale-speed:260ms;
  --cale-speed-slow:420ms;
}

.nav,
button,
input,
select,
textarea,
.panel,
.form-card,
.ticket,
.approval-card,
.buyer-product-card,
.admin-service-card,
.seller-profile-panel,
.badge-option-grid label,
.status-pill,
.compact-action-btn{
  transition:
    transform var(--cale-speed) var(--cale-ease-soft),
    box-shadow var(--cale-speed) var(--cale-ease-soft),
    background var(--cale-speed) var(--cale-ease-soft),
    border-color var(--cale-speed) var(--cale-ease-soft),
    color var(--cale-speed) var(--cale-ease-soft),
    opacity var(--cale-speed) var(--cale-ease-soft) !important;
}

.nav:hover{
  transform:translateX(3px);
}

.nav.active{
  animation:caleNavPop var(--cale-speed) var(--cale-ease-pop) both;
}

button:hover,
.compact-action-btn:hover,
.badge-option-grid label:hover{
  transform:translateY(-1px);
}

button:active,
.compact-action-btn:active,
.badge-option-grid label:active{
  transform:translateY(0) scale(.985);
}

input:focus,
select:focus,
textarea:focus{
  outline:none !important;
  border-color:rgba(216,111,142,.55) !important;
  box-shadow:0 0 0 4px rgba(216,111,142,.12) !important;
}

/* Tab transitions */
.tab-section{
  transition:opacity var(--cale-speed) var(--cale-ease-soft), transform var(--cale-speed) var(--cale-ease-soft) !important;
}

.tab-section.active{
  animation:caleTabIn 340ms var(--cale-ease-pop) both;
}

/* Panel/card entrance */
.panel,
.form-card,
.ticket,
.seller-profile-panel,
.approval-card,
.admin-service-card{
  animation:caleDashCardIn 380ms var(--cale-ease-pop) both;
}

.panel:hover,
.form-card:hover,
.approval-card:hover,
.admin-service-card:hover{
  box-shadow:0 20px 48px rgba(107,61,80,.10) !important;
}

/* Sidebar / top bar */
.sidebar{
  transition:box-shadow var(--cale-speed) var(--cale-ease-soft), transform var(--cale-speed) var(--cale-ease-soft) !important;
}

.dash-top{
  animation:caleTopBarIn 360ms var(--cale-ease-pop) both;
}

/* Badge picker selected feel */
.badge-option-grid label:has(input[type="checkbox"]:checked){
  animation:caleBadgeSelect 260ms var(--cale-ease-pop) both;
}

/* Modal in dashboard */
#modal:not(.hidden),
.modal:not(.hidden){
  animation:caleOverlayFade var(--cale-speed) var(--cale-ease-soft) both;
}

#modal:not(.hidden) .modal-card,
.modal:not(.hidden) .modal-card{
  animation:caleModalRise var(--cale-speed-slow) var(--cale-ease-pop) both;
}

/* Table rows */
tbody tr{
  transition:background var(--cale-speed) var(--cale-ease-soft), transform var(--cale-speed-fast) var(--cale-ease-soft) !important;
}

tbody tr:hover{
  background:rgba(255,235,242,.58) !important;
}

/* Smooth image previews */
.preview,
.image-preview,
.admin-service-img img,
.seller-profile-photo-box img{
  transition:transform var(--cale-speed-slow) var(--cale-ease-pop), filter var(--cale-speed) var(--cale-ease-soft), opacity var(--cale-speed) var(--cale-ease-soft) !important;
}

.preview:hover,
.image-preview:hover,
.seller-profile-photo-box img:hover{
  transform:scale(1.02);
}

@keyframes caleOverlayFade{
  from{ opacity:0; }
  to{ opacity:1; }
}

@keyframes caleModalRise{
  from{ opacity:0; transform:translateY(22px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

@keyframes caleTabIn{
  from{ opacity:0; transform:translateY(12px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes caleDashCardIn{
  from{ opacity:0; transform:translateY(14px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes caleNavPop{
  from{ transform:translateX(0) scale(.985); }
  to{ transform:translateX(0) scale(1); }
}

@keyframes caleTopBarIn{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:translateY(0); }
}

@keyframes caleBadgeSelect{
  0%{ transform:scale(.96); }
  60%{ transform:scale(1.04); }
  100%{ transform:scale(1); }
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    scroll-behavior:auto !important;
    transition-duration:.001ms !important;
  }
}


/* =========================================================
   TENANT FORM SIMPLIFIED RENT-DUE UI
   ========================================================= */
.simplified-tenant-form{
  align-items:start;
}
.inline-field{
  display:grid;
  gap:6px;
  color:#5d3444;
  font-weight:900;
}
.inline-field span{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#d76f8e;
}
.tenant-due-policy{
  display:grid;
  gap:5px;
  padding:14px 16px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:18px;
  background:linear-gradient(135deg,#fff7fa,#fff);
  color:#5d3444;
}
.tenant-due-policy b{
  color:#2a1820;
}
.tenant-due-policy span{
  color:#7d6070;
  font-size:13px;
  line-height:1.35;
}
.tenant-due-policy em{
  color:#c45f7a;
  font-style:normal;
  font-weight:900;
  font-size:13px;
}


/* =========================================================
   TENANT FORM SIMPLIFIED RENT-DUE UI FINAL
   ========================================================= */
.simplified-tenant-form{
  align-items:start;
}
.inline-field{
  display:grid;
  gap:6px;
  color:#5d3444;
  font-weight:900;
}
.inline-field span{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#d76f8e;
}
.tenant-due-policy{
  display:grid;
  gap:5px;
  padding:14px 16px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:18px;
  background:linear-gradient(135deg,#fff7fa,#fff);
  color:#5d3444;
}
.tenant-due-policy b{
  color:#2a1820;
}
.tenant-due-policy span{
  color:#7d6070;
  font-size:13px;
  line-height:1.35;
}
.tenant-due-policy em{
  color:#c45f7a;
  font-style:normal;
  font-weight:900;
  font-size:13px;
}


.subrenter-auto-login-note{
  display:grid;
  gap:5px;
  padding:14px 16px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:18px;
  background:linear-gradient(135deg,#fff7fa,#fff);
  color:#5d3444;
}
.subrenter-auto-login-note b{
  color:#2a1820;
}
.subrenter-auto-login-note span{
  color:#7d6070;
  font-size:13px;
}


/* =========================================================
   SELLER TYPE PICKER
   ========================================================= */
.seller-type-picker{
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:20px;
  background:linear-gradient(135deg,#fff7fa,#fff);
}
.seller-type-options{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px;
}
.seller-type-options label{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:10px 14px;
  border:1px solid rgba(216,111,142,.22);
  border-radius:999px;
  background:#fff;
  color:#2a1820;
  font-weight:900;
  cursor:pointer;
}
.seller-type-options input{
  width:18px;
  height:18px;
  accent-color:#c45f7a;
}
.seller-type-options label:has(input:checked){
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,#5b3440,#d96f8f);
  box-shadow:0 12px 26px rgba(107,61,80,.16);
}
.seller-type-hidden{
  display:none !important;
}


/* =========================================================
   COMPACT SELLER TYPE PICKER FIX
   ========================================================= */
.seller-type-picker{
  gap:6px !important;
  padding:10px 12px !important;
  border-radius:16px !important;
}
.seller-type-picker .muted{
  margin:0 !important;
  font-size:12px !important;
  line-height:1.25 !important;
}
.seller-type-options{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px !important;
}
.seller-type-options label{
  flex:0 0 auto !important;
  min-height:34px !important;
  width:auto !important;
  padding:7px 12px !important;
  gap:7px !important;
  border-radius:999px !important;
  font-size:13px !important;
  line-height:1 !important;
}
.seller-type-options input{
  width:14px !important;
  height:14px !important;
  flex:0 0 14px !important;
}
@media (max-width: 640px){
  .seller-type-options{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  .seller-type-options label{
    width:100% !important;
    justify-content:flex-start !important;
  }
}


/* =========================================================
   Shopee-style dashboard chat
   ========================================================= */
.nav-badge{
  display:inline-grid;
  place-items:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  margin-left:6px;
  border-radius:999px;
  background:#e15f84;
  color:#fff;
  font-size:10px;
  font-weight:1000;
}
.nav-badge.hidden{ display:none!important; }

.chat-admin-panel{
  min-height:calc(100vh - 120px);
}
.dashboard-chat-layout{
  display:grid;
  grid-template-columns:330px minmax(0,1fr);
  gap:14px;
  min-height:640px;
}
.dashboard-chat-list-wrap,
.dashboard-chat-thread{
  min-height:640px;
  border:1px solid var(--line);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.chat-search{
  width:calc(100% - 24px);
  margin:12px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 14px;
  font-weight:800;
}
.dashboard-chat-list{
  max-height:580px;
  overflow:auto;
  padding:0 10px 12px;
}
.dashboard-chat-row{
  width:100%;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border:0;
  border-radius:18px;
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.dashboard-chat-row:hover,
.dashboard-chat-row.active{
  background:#fff2f6;
}
.chat-avatar{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f4dbe4;
  color:#5c2e3d;
  font-weight:1000;
}
.chat-row-main{
  min-width:0;
  display:grid;
  gap:2px;
}
.chat-row-main strong,
.chat-row-main small,
.chat-row-main em{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-row-main strong{
  color:#201116;
}
.chat-row-main small{
  color:#866775;
  font-size:11px;
}
.chat-row-main em{
  color:#9c7c88;
  font-size:12px;
  font-style:normal;
}
.dashboard-chat-row > b{
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#e15f84;
  color:#fff;
  font-size:10px;
}
.dashboard-chat-thread{
  display:grid;
  grid-template-rows:auto 1fr auto auto;
}
.dashboard-chat-thread-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
}
.dashboard-chat-thread-head h3{
  margin:0;
  font-size:24px;
}
.dashboard-chat-messages{
  overflow:auto;
  padding:18px;
  display:grid;
  align-content:start;
  gap:10px;
  background:linear-gradient(180deg,#fff8fb,#fff);
}
.dashboard-chat-bubble-row{
  display:flex;
}
.dashboard-chat-bubble-row.mine{
  justify-content:flex-end;
}
.dashboard-chat-bubble-row.theirs{
  justify-content:flex-start;
}
.dashboard-chat-bubble{
  max-width:min(75%,520px);
  padding:11px 13px;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 22px rgba(80,35,45,.08);
}
.dashboard-chat-bubble-row.mine .dashboard-chat-bubble{
  background:linear-gradient(135deg,#5b3440,#d96f8f);
  color:#fff;
}
.dashboard-chat-bubble p{
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
}
.dashboard-chat-bubble small{
  display:block;
  margin-top:5px;
  opacity:.7;
  font-size:10px;
}
.dashboard-chat-preview{
  margin:0 14px 10px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.dashboard-chat-preview.hidden{ display:none!important; }
.dashboard-chat-preview img{
  width:58px;
  height:58px;
  border-radius:14px;
  object-fit:cover;
}
.dashboard-chat-compose{
  display:grid;
  grid-template-columns:1fr auto auto auto;
  gap:8px;
  padding:14px;
  border-top:1px solid var(--line);
  background:#fff;
}
.dashboard-chat-compose input{
  min-height:44px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:0 14px;
  font-weight:800;
}
.chat-image-btn{
  border:0;
  background:transparent;
  padding:0;
  border-radius:14px;
  overflow:hidden;
}
.chat-image-btn img{
  max-width:220px;
  max-height:260px;
  border-radius:14px;
  object-fit:cover;
}

@media (max-width:900px){
  .dashboard-chat-layout{
    grid-template-columns:1fr;
  }
  .dashboard-chat-list-wrap,
  .dashboard-chat-thread{
    min-height:auto;
  }
  .dashboard-chat-list{
    max-height:260px;
  }
}


/* Google Calendar service booking settings */
.calendar-settings-panel { margin-bottom: 18px; border: 1px solid rgba(120, 55, 80, .16); }
.calendar-status-card { border-radius: 16px; padding: 14px 16px; margin: 12px 0; background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.06); }
.calendar-status-card.calendar-ok { background: rgba(229, 255, 236, .72); border-color: rgba(40, 150, 80, .25); }
.calendar-status-card.calendar-warn { background: rgba(255, 244, 220, .82); border-color: rgba(200, 140, 40, .25); }
.calendar-actions-row, .calendar-select-wrap { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.calendar-select-wrap label { min-width: 280px; flex: 1; }
.calendar-select-wrap select { width: 100%; }


/* Cleaner service/rental form labels */
.service-form-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  width:100%;
}
.service-form-field > span{
  font-size:12px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#7a4557;
}
.service-form-field > small{
  font-size:11px;
  line-height:1.35;
  color:#9a6f7d;
  margin-top:-2px;
}
.service-form-field input,
.service-form-field select,
.service-form-field textarea{
  min-height:46px;
  border-radius:16px;
  border-color:rgba(216,111,142,.28);
  background:linear-gradient(180deg,#fff,#fff9fb);
}
.service-form-field textarea{
  min-height:86px;
  resize:vertical;
}
.service-form-field input::placeholder,
.service-form-field textarea::placeholder{
  color:#a98a94;
  font-weight:650;
}
.service-form-field.setup-form-wide{
  grid-column:1 / -1;
}
.service-form .primary#saveServiceBtn{
  min-height:48px;
  border-radius:16px;
}
@media (max-width:720px){
  .service-form-field.setup-form-wide{
    grid-column:auto;
  }
}

/* =========================================================
   Service/Rental duration picker: days + hours + minutes
   ========================================================= */
.service-form-field .time-selector{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:8px;
  align-items:end;
  width:100%;
  padding:10px;
  border:1px solid rgba(216,111,142,.20);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fff7fa);
}
.time-selector-part{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.time-selector-part > span{
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#9f6376;
}
.service-form-field .time-selector select{
  min-height:44px;
  width:100%;
  padding:8px 10px;
  border-radius:14px;
  background:#fff;
  font-weight:900;
  text-align:center;
}
.time-selector-summary{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:14px;
  background:#1f171b;
  color:#fff;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
@media(max-width:720px){
  .service-form-field .time-selector{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .time-selector-summary{
    grid-column:1 / -1;
  }
}

/* =========================================================
   Buyer catalog tabs + booking calendar modal cleanup
   2026-06-19: Products / Services / Rentals + polished calendar
   ========================================================= */
body.buyer-page .shop-mode-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border:1px solid rgba(154,72,100,.18);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  box-shadow:0 12px 30px rgba(70,24,42,.08);
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
}
body.buyer-page .shop-mode-toggle::-webkit-scrollbar{display:none}
body.buyer-page .shop-mode-toggle button{
  border:0;
  background:transparent;
  color:#8c5a6a;
  border-radius:999px;
  padding:10px 16px;
  min-width:86px;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
  transition:background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
body.buyer-page .shop-mode-toggle button.active,
body.buyer-page .shop-mode-toggle button[aria-selected="true"]{
  background:linear-gradient(135deg,#8e4a62,#cf6f90);
  color:#fff;
  box-shadow:0 10px 22px rgba(142,74,98,.24);
}
body.buyer-page .shop-mode-toggle button:hover{transform:translateY(-1px)}

body.buyer-page .catalog-head-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
@media(max-width:720px){
  body.buyer-page .catalog-head-actions{justify-content:flex-start;width:100%}
  body.buyer-page .shop-mode-toggle{width:100%;justify-content:space-between}
  body.buyer-page .shop-mode-toggle button{flex:1;min-width:0;padding:9px 8px;font-size:11px}
}

body.service-booking-open{overflow:hidden}
body.buyer-page .service-booking-modal{
  position:fixed;
  inset:0;
  z-index:10050;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
body.buyer-page .service-booking-modal.hidden{display:none!important}
body.buyer-page .service-booking-backdrop{
  position:absolute;
  inset:0;
  background:rgba(40,18,29,.58);
  backdrop-filter:blur(10px);
}
body.buyer-page .service-booking-card{
  position:relative;
  width:min(820px,96vw);
  max-height:92vh;
  overflow:hidden;
  border-radius:30px;
  background:linear-gradient(180deg,#fff,#fff8fb);
  border:1px solid rgba(219,116,145,.26);
  box-shadow:0 30px 90px rgba(52,18,34,.32);
}
body.buyer-page .service-booking-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#271820;
  font-size:22px;
  font-weight:900;
  box-shadow:0 12px 28px rgba(60,20,35,.14);
}
body.buyer-page .service-booking-content{
  max-height:92vh;
  overflow:auto;
  padding:28px 28px 30px;
  scrollbar-width:thin;
  scrollbar-color:#d98da5 #fff1f6;
}
body.buyer-page .service-booking-content::-webkit-scrollbar{width:8px}
body.buyer-page .service-booking-content::-webkit-scrollbar-track{background:#fff1f6;border-radius:20px}
body.buyer-page .service-booking-content::-webkit-scrollbar-thumb{background:#d98da5;border-radius:20px}

body.buyer-page .service-booking-head{
  display:grid;
  grid-template-columns:112px 1fr;
  gap:18px;
  align-items:center;
  padding-right:44px;
  margin-bottom:16px;
}
body.buyer-page .service-booking-thumb{
  width:112px;
  height:112px;
  border-radius:24px;
  background:linear-gradient(135deg,#fff0f6,#f5e9ff);
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(219,116,145,.18);
}
body.buyer-page .service-booking-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
body.buyer-page .service-booking-head h2{
  margin:4px 0 6px;
  font-size:clamp(24px,3vw,34px);
  line-height:1.05;
  color:#1d1519;
}
body.buyer-page .service-booking-head .soft-text{
  margin:0 0 10px;
  line-height:1.45;
}
body.buyer-page .booking-link-btn{
  display:block;
  text-align:center;
  margin:0 0 14px;
  padding:13px 15px;
  border-radius:18px;
  background:#1d1519;
  color:#fff;
  font-weight:950;
  text-decoration:none;
}

body.buyer-page .booking-calendar-panel{
  margin:16px 0 18px;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(180deg,#fff,#fff5f8);
  border:1px solid rgba(219,116,145,.22);
  box-shadow:0 14px 34px rgba(118,50,74,.08);
}
body.buyer-page .booking-calendar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
body.buyer-page .booking-calendar-head b{
  display:block;
  font-size:16px;
  color:#422534;
  margin-bottom:3px;
}
body.buyer-page .booking-calendar-head small{
  display:block;
  max-width:520px;
  color:#8f6877;
  font-size:11px;
  line-height:1.35;
}
body.buyer-page .booking-calendar-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
body.buyer-page .booking-calendar-controls .ghost{
  width:36px;
  height:34px;
  min-width:36px;
  padding:0;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#8e4a62;
  border:1px solid rgba(219,116,145,.24);
  box-shadow:none;
  font-size:18px;
}
body.buyer-page .booking-calendar-controls [data-calendar-label]{
  min-width:128px;
  text-align:center;
  color:#3a2630;
  font-size:12px;
  font-weight:950;
}
body.buyer-page .booking-calendar-legend{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 12px;
}
body.buyer-page .booking-calendar-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(219,116,145,.16);
  color:#6e4b59;
  font-size:11px;
  font-weight:900;
}
body.buyer-page .booking-calendar-legend i{
  width:10px;
  height:10px;
  display:inline-block;
  border-radius:50%;
  background:#e7f5e9;
  border:1px solid rgba(55,154,80,.25);
}
body.buyer-page .booking-calendar-legend i.pencil{background:#fff3cd;border-color:rgba(188,134,30,.38)}
body.buyer-page .booking-calendar-legend i.booked{background:#ffe1e8;border-color:rgba(197,67,98,.38)}
body.buyer-page .booking-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:6px;
}
body.buyer-page .booking-calendar-dow{
  text-align:center;
  color:#9b7180;
  font-size:10px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:4px 0;
}
body.buyer-page .booking-calendar-empty{
  min-height:44px;
}
body.buyer-page .booking-calendar-day{
  min-height:46px;
  border:1px solid rgba(219,116,145,.18);
  border-radius:14px;
  background:#fff;
  padding:6px 4px;
  display:grid;
  gap:3px;
  align-content:center;
  justify-items:center;
  color:#33232b;
  font-weight:900;
  box-shadow:0 8px 18px rgba(110,40,70,.05);
}
body.buyer-page .booking-calendar-day b{font-size:13px;line-height:1}
body.buyer-page .booking-calendar-day span{
  min-height:12px;
  display:flex;
  gap:3px;
  align-items:center;
  justify-content:center;
}
body.buyer-page .booking-calendar-day em{
  min-width:16px;
  height:16px;
  display:grid;
  place-items:center;
  border-radius:999px;
  font-style:normal;
  font-size:9px;
  font-weight:950;
}
body.buyer-page .booking-calendar-day em.booked{background:#8e2f4b;color:#fff}
body.buyer-page .booking-calendar-day em.pencil{background:#f3b53f;color:#3d2600}
body.buyer-page .booking-calendar-day.has-pencil{background:#fff8e7;border-color:rgba(218,163,53,.42)}
body.buyer-page .booking-calendar-day.has-booked{background:#fff0f4;border-color:rgba(197,67,98,.42)}
body.buyer-page .booking-calendar-day.selected{
  outline:3px solid rgba(207,111,144,.24);
  border-color:#bd5f7c;
  background:#fff1f6;
}
body.buyer-page .booking-calendar-day.past{
  opacity:.42;
  background:#f3f0f1;
  color:#999;
  cursor:not-allowed;
}
body.buyer-page .booking-calendar-note{
  grid-column:1 / -1;
  margin:6px 0 0;
  padding:10px 12px;
  border-radius:14px;
  background:#fff8e1;
  color:#7a5630;
  font-size:12px;
  line-height:1.35;
  border:1px solid rgba(200,150,60,.20);
}

body.buyer-page .service-booking-form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
body.buyer-page .service-booking-form label{
  display:grid;
  gap:7px;
  margin:0;
}
body.buyer-page .service-booking-form label > span{
  color:#7a4557;
  font-weight:950;
  font-size:13px;
}
body.buyer-page .service-booking-form small{
  color:#9d7785;
  font-size:11px;
  font-weight:850;
}
body.buyer-page .service-booking-form input,
body.buyer-page .service-booking-form textarea{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(219,116,145,.24);
  background:#fff;
  padding:13px 14px;
  font-weight:850;
}
body.buyer-page .service-booking-form textarea{
  min-height:84px;
  resize:vertical;
  line-height:1.4;
}
body.buyer-page .service-booking-form input::placeholder,
body.buyer-page .service-booking-form textarea::placeholder{
  color:#9b8089;
  font-weight:750;
}
body.buyer-page .service-booking-form .wide{grid-column:1 / -1}
body.buyer-page .service-booking-form button.primary.wide{
  min-height:52px;
  border-radius:18px;
  background:linear-gradient(135deg,#1f171b,#d46f91);
  box-shadow:0 18px 34px rgba(110,40,70,.16);
}

@media(max-width:760px){
  body.buyer-page .service-booking-modal{align-items:flex-end;padding:0}
  body.buyer-page .service-booking-card{
    width:100vw;
    max-height:94vh;
    border-radius:28px 28px 0 0;
  }
  body.buyer-page .service-booking-content{max-height:94vh;padding:22px 16px 28px}
  body.buyer-page .service-booking-head{
    grid-template-columns:72px 1fr;
    gap:12px;
    padding-right:42px;
  }
  body.buyer-page .service-booking-thumb{width:72px;height:72px;border-radius:18px}
  body.buyer-page .booking-calendar-head{display:grid;gap:10px}
  body.buyer-page .booking-calendar-controls{justify-content:space-between;width:100%}
  body.buyer-page .booking-calendar-controls [data-calendar-label]{flex:1}
  body.buyer-page .booking-calendar-grid{gap:4px}
  body.buyer-page .booking-calendar-day{min-height:40px;border-radius:11px;padding:4px 2px}
  body.buyer-page .booking-calendar-empty{min-height:40px}
  body.buyer-page .service-booking-form{grid-template-columns:1fr}
  body.buyer-page .service-booking-form .wide{grid-column:auto}
}

/* === 2026-06-19 Seller Dashboard: Products / Services / Rentals polish === */
.seller-type-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
.seller-type-options label{display:flex!important;align-items:center;gap:9px;padding:12px 12px;border:1px solid rgba(226,166,186,.35);border-radius:16px;background:#fff;font-weight:800;color:#46353d;cursor:pointer;min-height:48px}
.seller-type-options label:has(input:checked){border-color:#df6f98;background:#fff3f7;box-shadow:0 12px 24px rgba(210,90,130,.10);color:#c6517a}
.service-manager-hero{background:linear-gradient(135deg,#fff,#fff3f8)!important;border-color:rgba(226,166,186,.35)!important}
.calendar-settings-panel{border:1px solid rgba(226,166,186,.35)!important;background:#fffafc!important}
.admin-service-card .mini-label{text-transform:uppercase;letter-spacing:.04em;color:#d9628c!important;font-weight:900!important}
.services-bookings-section .booking-filter-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.services-bookings-section .booking-filter-row select,.services-bookings-section .booking-filter-row input{min-height:44px;border-radius:14px;border:1px solid rgba(0,0,0,.12);padding:0 14px;background:#fff}
@media(max-width:760px){.seller-type-options{grid-template-columns:1fr}.services-bookings-section .booking-filter-row{display:grid}.services-bookings-section .booking-filter-row select,.services-bookings-section .booking-filter-row input{width:100%}}
