/* Tez Bazarlıq (stage 3) in the approved style E «Gündəlik»: phone first, green for actions, orange for discounts. */
:root{--green:#17703F;--green-dark:#0F5530;--green-soft:#EAF4EE;--orange:#E2650F;--orange-ink:#B8500C;--orange-soft:#FFF6EF;--ink:#1C1F1A;--muted:#4A5046;--line:#E7E9E4;--track:#CFD8CB;--danger:#9B1C1C;--danger-soft:#FDECEA;--radius:12px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#fff;color:var(--ink);font:400 16px/1.5 var(--font)}
a{color:var(--green)}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
[hidden]{display:none!important}
.tz-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line)}
.tz-back{width:44px;height:44px;margin-left:-10px;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.tz-title{flex:1;min-width:0;margin:0;font-size:19px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.tz-lang{height:40px;min-width:44px;padding:0 10px;border-radius:10px;border:1px solid #D5D9D2;background:#fff;font-weight:600;font-size:13px}
.tz-cart-button{height:44px;padding:0 12px;border-radius:12px;background:var(--green);color:#fff;display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;font-size:14px;white-space:nowrap}
.tz-main{max-width:640px;margin:0 auto;padding:16px 16px 120px;display:flex;flex-direction:column;gap:20px}
.tz-main h2{margin:0;font-size:19px;font-weight:800;line-height:1.25}
.tz-muted{margin:0;color:var(--muted)}
.tz-small{font-size:13px;line-height:1.45;color:var(--muted);margin:0}
.tz-notice{margin:0;padding:12px 14px;border-radius:var(--radius);border:1.5px solid var(--orange);background:var(--orange-soft);font-size:14px;line-height:1.45;color:#6B2E05}
.tz-ok{margin:0;padding:12px 14px;border-radius:var(--radius);background:var(--green-soft);color:var(--green-dark);font-size:14px}
.tz-error{margin:0;padding:12px 14px;border-radius:var(--radius);background:var(--danger-soft);color:var(--danger);font-size:14px}
.tz-search{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border:1.5px solid var(--ink);border-radius:var(--radius);color:var(--muted)}
.tz-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:400 16px var(--font);color:var(--ink)}
.tz-steps{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.tz-steps li{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;line-height:1.4}
.tz-steps li>span:first-child{width:28px;height:28px;border-radius:50%;background:var(--green);color:#fff;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.tz-cats{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.tz-cats a{display:flex;flex-direction:column;gap:6px;text-decoration:none;color:var(--ink)}
.tz-cats img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;display:block;background:#F3EDE8}
.tz-cats b{font-size:14px;line-height:1.25}
.tz-cats small{font-size:12.5px;color:var(--muted)}
.tz-cats a[aria-disabled=true]{opacity:.55;pointer-events:none}
.tz-tobacco{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:14px;background:#F2F4F0;font-size:13.5px;line-height:1.5;color:#2F352C}
.tz-tobacco b{font-size:15px;color:var(--ink)}
.tz-list{list-style:none;margin:0;padding:0}
.tz-row{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.tz-row img{width:64px;height:64px;object-fit:cover;border-radius:10px;background:#F3EDE8}
.tz-row-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.tz-row-copy b{font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tz-row-copy span{font-size:13px;color:var(--muted)}
.tz-row-foot{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.tz-price{font-size:17px;font-weight:800}
.tz-price.sale{color:var(--orange-ink)}
.tz-price s{font-size:13px;font-weight:400;color:var(--muted);margin-left:6px}
.tz-add{height:44px;padding:0 16px;border-radius:var(--radius);border:0;background:var(--green);color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.tz-add:disabled{background:#C9D2C5;color:#3F453B;cursor:not-allowed}
.tz-step{display:inline-flex;align-items:center;height:44px;border-radius:var(--radius);border:1.5px solid var(--green)}
.tz-step button{width:44px;height:44px;border:0;background:transparent;color:var(--green);font-size:20px;font-weight:700;cursor:pointer}
.tz-step span{min-width:52px;text-align:center;font-weight:700;font-size:15px}
.tz-weights{grid-column:2;display:flex;flex-wrap:wrap;gap:8px}
.tz-weights button{height:44px;min-width:72px;padding:0 12px;border-radius:var(--radius);border:1.5px solid var(--green);background:#fff;color:var(--green);font-weight:700;cursor:pointer}
.tz-weights form{display:flex;gap:8px;width:100%}
.tz-weights input{flex:1;min-width:0;height:44px;border:1.5px solid #C9CFC5;border-radius:var(--radius);padding:0 12px;font:400 16px var(--font)}
.tz-flag{grid-column:2;margin:0;padding:8px 10px;border-radius:10px;background:var(--orange-soft);color:#6B2E05;font-size:13px;line-height:1.4}
.tz-flag.gone{background:var(--danger-soft);color:var(--danger)}
.tz-link{background:none;border:0;padding:8px 0;min-height:44px;color:var(--green);font-weight:600;font-size:15px;text-align:left;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.tz-pay{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tz-pay label{height:56px;border-radius:var(--radius);border:1px solid #D5D9D2;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:700;cursor:pointer}
.tz-pay input{position:absolute;opacity:0;width:1px;height:1px}
.tz-pay label:has(input:checked){border:2px solid var(--green);background:var(--green-soft)}
.tz-pay label:has(input:focus-visible){outline:3px solid var(--orange);outline-offset:2px}
.tz-warn{padding:12px 14px;border-radius:var(--radius);background:#F2F4F0;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.45;color:#2F352C}
.tz-check{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600}
.tz-check input{width:22px;height:22px;accent-color:var(--green)}
.tz-rule{padding:14px 16px;border-radius:14px;background:var(--green-soft);display:flex;flex-direction:column;gap:6px}
.tz-rule h2{font-size:16px;color:var(--green-dark)}
.tz-rule p{margin:0;font-size:14px;line-height:1.5;color:#2C4A38}
.tz-track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.tz-track li{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;line-height:1.25;color:var(--muted)}
.tz-track li::before{content:"";height:6px;border-radius:3px;background:var(--track)}
.tz-track li.done{color:var(--ink);font-weight:700}
.tz-track li.done::before{background:var(--green)}
.tz-order-head{display:flex;flex-direction:column;gap:4px}
.tz-order-number{font-size:30px;font-weight:800;letter-spacing:1px}
.tz-sum{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:15px}
.tz-sum strong{font-size:22px;font-weight:800}
.tz-card{border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.tz-card a{text-decoration:none;color:var(--ink)}
.tz-bar{position:fixed;left:0;right:0;bottom:0;z-index:5;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.tz-bar>*{width:100%;max-width:608px;margin:0 auto}
.tz-primary{height:52px;border-radius:var(--radius);border:0;background:var(--green);color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;padding:0 16px}
.tz-primary:hover{background:var(--green-dark)}
.tz-primary:disabled,.tz-primary[aria-disabled=true]{background:#C9D2C5;color:#3F453B;cursor:not-allowed}
.tz-bar .tz-small{text-align:center}
.tz-danger{height:52px;border-radius:var(--radius);border:1.5px solid var(--danger);background:#fff;color:var(--danger);font-weight:700;font-size:16px;cursor:pointer;padding:0 16px}
.tz-secondary{height:52px;border-radius:var(--radius);border:1.5px solid var(--ink);background:#fff;color:var(--ink);font-weight:700;font-size:16px;cursor:pointer;padding:0 16px}
.tz-dialog{width:min(420px,calc(100% - 32px));border:0;border-radius:18px;padding:20px;box-shadow:0 12px 40px rgb(28 31 26 / .25);color:var(--ink)}
.tz-dialog::backdrop{background:rgb(28 31 26 / .45)}
.tz-dialog h2{margin:0 0 8px;font-size:19px;font-weight:800;line-height:1.3}
.tz-dialog p{margin:0 0 18px;color:var(--muted);font-size:15px;line-height:1.5}
.tz-dialog-actions{display:flex;flex-direction:column;gap:10px}
.tz-dialog .tz-danger{background:var(--danger);color:#fff}
/* Pick-up QR (stage 6) */
.tz-ready{display:flex;flex-direction:column;gap:10px;padding:16px;border-radius:16px;border:2px solid var(--green);background:var(--green-soft)}
.tz-ready h2{color:var(--green-dark)}
.tz-qr{align-self:center;width:min(260px,70vw);background:#fff;padding:8px;border-radius:12px}
.tz-qr svg{display:block;width:100%;height:auto}
.tz-arrival{display:flex;flex-direction:column;gap:8px}
/* Picker's screen (yigim.html, stage 4) */
.pk-list{display:flex;flex-direction:column;gap:10px}
.pk-order{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.pk-order>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.pk-order b{font-size:17px}
.pk-order .tz-add{display:inline-flex;align-items:center;text-decoration:none}
.pk-wait{color:var(--orange-ink)}
.pk-qty{font-size:16px!important;font-weight:800;color:var(--ink)!important}
.tz-row.pk-done{background:var(--green-soft);border-radius:12px;padding-left:8px;padding-right:8px}
.pk-removed{opacity:.7}
/* Picking checklist: tick, next line, progress */
.tz-list .tz-row.pk-row{grid-template-columns:48px 64px minmax(0,1fr);column-gap:12px;align-items:start}
.pk-row>.tz-flag,.pk-row>.tz-small,.pk-row>.tz-row-foot,.pk-row>.pk-panel{grid-column:2/-1}
.pk-check,.pk-check-space{width:48px;height:48px;border-radius:50%;flex-shrink:0}
.pk-check{border:2.5px solid var(--green);background:#fff;color:transparent;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.pk-check[aria-pressed=true],span.pk-check:not(.empty){background:var(--green);color:#fff}
.pk-check:disabled{border-color:#C9D2C5;background:#F2F4F0;cursor:not-allowed}
.pk-check.empty{border-color:#C9D2C5}
.tz-row.pk-done{background:none;padding-left:0;padding-right:0}
.pk-done .tz-row-copy,.pk-done img{opacity:.55}
.tz-row.pk-next{border:2px solid var(--orange);border-radius:14px;padding:10px;background:var(--orange-soft)}
.pk-next-tag{align-self:flex-start;font-size:12px!important;font-weight:800;color:#fff!important;background:var(--orange-ink);border-radius:999px;padding:2px 10px;margin-bottom:2px}
.pk-progress{display:flex;flex-direction:column;gap:6px}
.pk-progress-text{font-size:15px}
.pk-progress-text b{font-size:20px}
.pk-progress-track{height:10px;border-radius:5px;background:var(--track);overflow:hidden}
.pk-progress-track span{display:block;height:100%;background:var(--green);border-radius:5px}
.pk-picked h2{font-size:16px;color:var(--muted)}
/* Hand-over (stage 6) */
.pk-top{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.pk-scan{text-decoration:none;display:flex;align-items:center;justify-content:center}
.pk-camera{position:relative;width:100%;max-width:520px;align-self:center;aspect-ratio:1/1;border-radius:16px;overflow:hidden;background:#1C1F1A}
.pk-camera video{width:100%;height:100%;object-fit:cover;display:block}
.pk-frame{position:absolute;inset:18%;border:3px solid #fff;border-radius:14px;box-shadow:0 0 0 999px rgb(0 0 0 / .25)}
.pk-find{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;background:#F2F4F0}
.pk-pay{margin:0;font-size:18px}
.pk-refunds{display:flex;flex-direction:column;gap:8px}
.pk-history-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));align-items:end}
.pk-history header{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.pk-history header b{font-size:17px}
.pk-who,.pk-history-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14px}
.pk-who li span{color:var(--muted);margin-right:6px}
.pk-history-items li{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-top:1px solid var(--line)}
.pk-history-items li span:last-child{color:var(--green-dark);font-weight:600;text-align:right}
.pk-history-items li.gone{opacity:.55}
.pk-refunds h2{font-size:17px;color:#6B2E05}
.pk-refund{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #F6D3B8;flex-wrap:wrap}
.pk-sales{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pk-sales div{display:flex;flex-direction:column;gap:2px;padding:14px;border-radius:14px;border:1px solid var(--line)}
.pk-sales span{font-size:13px;color:var(--muted)}
.pk-sales b{font-size:22px;font-weight:800}
.pk-sales small{font-size:13px;color:var(--muted)}
@media (min-width:768px){.pk-sales{grid-template-columns:repeat(4,minmax(0,1fr))}}
.pk-panel{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:14px;background:#F2F4F0}
.pk-panel form{display:flex;flex-direction:column;gap:8px}
.pk-field{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:600}
.pk-field input{height:46px;border:1.5px solid #C9CFC5;border-radius:var(--radius);padding:0 12px;font:400 16px var(--font);background:#fff}
.pk-search{flex-direction:row!important}
.pk-search input{flex:1;min-width:0;height:44px;border:1.5px solid #C9CFC5;border-radius:var(--radius);padding:0 12px;font:400 16px var(--font)}
.pk-found{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px solid var(--line);font-size:14px}
.pk-ready{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px 12px;align-items:end}
.pk-ready .tz-primary{grid-column:1/-1}
.pk-bags{font-size:16px}
.pk-bags span{font-size:24px;font-weight:800;letter-spacing:1px}
.pk-task{display:flex;flex-direction:column;gap:10px}
.tz-q{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:14px;border:1.5px solid var(--orange);background:var(--orange-soft);grid-column:1/-1}
.tz-q p{margin:0;font-size:14px;line-height:1.45;color:#6B2E05}
.tz-q .tz-add,.tz-q .tz-secondary{width:100%}
/* Picker on tablets (iPad, Android tablets) and in landscape: use the width instead of a narrow column. */
@media (min-width:768px){
  .pk-page .tz-main{max-width:1100px;padding-left:24px;padding-right:24px}
  .pk-page .pk-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .pk-page .tz-list .tz-row.pk-row{grid-template-columns:56px 96px minmax(0,1fr) auto;align-items:start;column-gap:16px}
  .pk-page .pk-check,.pk-page .pk-check-space{width:56px;height:56px}
  .pk-page .tz-list .tz-row img{width:96px;height:96px}
  .pk-page .tz-list .tz-row.pk-row>.tz-row-foot{grid-column:4;grid-row:1;flex-direction:column;align-items:stretch;min-width:200px}
  .pk-page .tz-list .tz-row.pk-row>.tz-flag,.pk-page .tz-list .tz-row.pk-row>.tz-small{grid-column:3/5}
  .pk-page .tz-list .tz-row.pk-row>.pk-panel{grid-column:1/-1}
  .pk-page .pk-panel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .pk-page .pk-panel>.tz-link,.pk-page .pk-panel>ul,.pk-page .pk-panel>form[data-form=subs]{grid-column:1/-1}
  .pk-page .tz-bar>*{max-width:1052px}
  .pk-page .pk-ready{grid-template-columns:160px minmax(0,1fr) 260px;align-items:center}
  .pk-page .pk-ready .tz-primary{grid-column:auto}
}
@media (min-width:1200px){.pk-page .pk-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:700px){.tz-cats{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Tablets (iPad, Android) and wide screens: more room for sections and product lists. */
@media (min-width:768px){
  body:not(.pk-page) .tz-main{max-width:900px;padding-left:24px;padding-right:24px}
  body:not(.pk-page) .tz-bar>*{max-width:852px}
  .tz-cats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .tz-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
}
@media (min-width:1200px){body:not(.pk-page) .tz-main{max-width:1100px}.tz-cats{grid-template-columns:repeat(5,minmax(0,1fr))}.tz-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
