/* Tool pages (v3): /smart-advisor ("Pəncərə seçimi"), /sebet (cart, checkout, confirmation), /qiymet/redaktor chrome.
   Shared page chrome is prefixed tl-; the wizard (/qiymet) keeps its own wizard.css. */
.tl-main{background:var(--bg-2);min-height:70vh}
.tl-wrap{max-width:var(--wrap);margin:0 auto;padding:clamp(20px,3.5vw,40px) var(--gut) clamp(56px,7vw,96px)}
.tl-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-bottom:18px}
.tl-crumbs a{display:inline-flex;align-items:center;min-height:32px}
.tl-crumbs a:hover{color:var(--blue)}
.tl-crumbs [aria-current]{color:var(--ink);font-weight:600}
.tl-h1{font-size:clamp(30px,4vw,48px);font-weight:800;letter-spacing:-.03em;line-height:1.1}
.tl-h2{font-size:clamp(24px,3vw,34px);font-weight:800;letter-spacing:-.02em;line-height:1.15}
.tl-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.tl-head .w-lede{margin-top:10px}
.tl-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh);padding:clamp(20px,3.5vw,36px);min-width:0}
.tl-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:20px;align-items:start}
.tl-stack{display:flex;flex-direction:column;gap:14px;min-width:0}
.tl-acts{display:flex;flex-wrap:wrap;gap:10px}
.tl-ic{flex:none;width:64px;height:64px;border-radius:18px;background:var(--bg-blue);color:var(--blue);display:flex;align-items:center;justify-content:center}
.tl-ic--ok{background:#e8f5ee;color:var(--ok)}
.tl-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.tl-price{font-weight:800;color:var(--blue);letter-spacing:-.02em;white-space:nowrap}
.tl-note{display:flex;gap:10px;align-items:flex-start;font-size:14.5px;color:var(--mute);line-height:1.5}
.tl-note>span:first-child{display:flex;flex:none;color:var(--blue)}
.tl-info{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:14px;background:var(--bg-blue);font-size:15px;line-height:1.5;color:var(--ink)}
.tl-info>span:first-child{display:flex;flex:none;color:var(--blue)}

/* selectable option cards (radio / checkbox label > input.wl-sr + span) */
.tl-opt{display:block;min-width:0;cursor:pointer}
.tl-opt>span{position:relative;display:flex;height:100%;background:#fff;border:1.5px solid var(--line-2);border-radius:14px;color:var(--ink);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.tl-opt:hover>span{border-color:var(--blue-l)}
.tl-opt input:checked+span{border-color:var(--blue);background:var(--bg-blue);box-shadow:0 0 0 3px rgba(15,70,165,.12)}
.tl-opt input:focus-visible+span{outline:3px solid var(--blue-l);outline-offset:2px}
.tl-opt input:disabled+span{opacity:.45;cursor:not-allowed}

/* numbered steps (blue circles, like the home page) */
.tl-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;width:100%}
.tl-steps li{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;background:var(--bg-2);font-size:15px;font-weight:600;color:var(--ink);line-height:1.35}
.tl-steps li>span{flex:none;width:36px;height:36px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center}

/* fixed bottom bar on phones (the site .w-mbar is switched off on tool pages) */
.tl-mbar{display:none}

@media (min-width:1024px){.tl-sticky{position:sticky;top:96px}}
@media (max-width:1023px){.tl-grid{grid-template-columns:minmax(0,1fr)}}
@media (max-width:720px){
  .tl-wrap{padding-bottom:120px}
  .tl-card{border-radius:var(--r)}
  .tl-acts>.w-btn{flex:1 1 100%}
  .tl-mbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:55;align-items:center;gap:10px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(13,27,46,.08)}
  .tl-mbar-sum{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
  .tl-mbar-sum span{font-size:13px;color:var(--mute)}
  .tl-mbar-sum b{font-size:19px;font-weight:800;color:var(--blue);white-space:nowrap}
  .tl-mbar .w-btn{flex:none;padding:0 18px}
}

/* ---- cart / checkout / confirmation ------------------------------------------------------------- */
.tl-phases{list-style:none;margin:0 0 clamp(20px,3vw,28px);padding:0;display:flex;flex-wrap:wrap;gap:8px}
.tl-phases li{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 16px 0 8px;border-radius:999px;background:#fff;border:1px solid var(--line);font-size:15px;font-weight:600;color:var(--mute)}
.tl-phases li>span{width:28px;height:28px;border-radius:50%;background:var(--bg-2);color:var(--mute);font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}
.tl-phases li[aria-current]{border-color:var(--blue);color:var(--blue);background:var(--bg-blue)}
.tl-phases li[aria-current]>span{background:var(--blue);color:#fff}

.tl-empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px;padding:clamp(40px,6vw,72px) 24px}
.tl-empty p{max-width:30em;color:var(--mute)}
.tl-empty .tl-acts{justify-content:center;margin-top:6px}

.tl-done{max-width:760px;margin:0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.tl-done>p{color:var(--text)}
.tl-done>p b{color:var(--ink)}
.tl-receipt{width:100%;border:1px solid var(--line);border-radius:14px;overflow:hidden;font-size:15px}
.tl-receipt>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-bottom:1px solid var(--line)}
.tl-receipt>div:last-child{border-bottom:0;background:var(--bg-2);font-weight:700;color:var(--ink)}
.tl-receipt-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tl-receipt-txt b{color:var(--ink)}
.tl-receipt-txt span{font-size:13.5px;color:var(--mute);line-height:1.45}
.tl-ok{color:var(--ok);font-weight:700}

.tl-thumb{flex:none;display:flex;align-items:center;justify-content:center;background:var(--bg-blue);border-radius:12px}
.tl-thumb--sm{width:56px;height:56px;padding:6px}
.tl-thumb--lg{width:104px;height:104px;padding:12px}

.tl-item{display:grid;grid-template-columns:104px minmax(0,1fr);gap:18px;padding:18px}
.tl-item-body{display:flex;flex-direction:column;gap:12px;min-width:0}
.tl-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.tl-brand{font-size:13px;font-weight:800;letter-spacing:.06em;color:var(--blue)}
.tl-item-name{font-size:19px;font-weight:700;color:var(--ink);line-height:1.25}
.tl-item-desc{font-size:15px;color:var(--mute);margin-top:2px;line-height:1.45}
.tl-item-desc a{color:var(--blue);font-weight:700}
.tl-del{flex:none;width:44px;height:44px;border-radius:12px;border:1px solid var(--line-2);background:#fff;color:var(--mute);display:flex;align-items:center;justify-content:center;cursor:pointer}
.tl-del:hover{color:var(--err);border-color:var(--err)}
.tl-tags{display:flex;flex-wrap:wrap;gap:6px}
.tl-tags span{font-size:13.5px;padding:4px 10px;border-radius:999px;background:var(--bg-2);color:var(--text);font-weight:600}
.tl-item-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tl-qty{display:flex;align-items:center;height:48px;border:1.5px solid var(--line-2);border-radius:12px;overflow:hidden;background:#fff}
.tl-qty button{width:48px;height:100%;border:0;background:#fff;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.tl-qty button:hover:not(:disabled){color:var(--blue);background:var(--bg-blue)}
.tl-qty button:disabled{opacity:.4;cursor:not-allowed}
.tl-qty>span{min-width:44px;text-align:center;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums}
.tl-item-sum{text-align:right}
.tl-item-sum b{display:block;font-size:20px}
.tl-add{display:flex;align-items:center;justify-content:center;gap:8px;min-height:60px;border-radius:var(--r);border:1.5px dashed var(--line-2);background:#fff;color:var(--ink);font-weight:700}
.tl-add:hover{border-color:var(--blue);color:var(--blue)}

.tl-form{display:flex;flex-direction:column;gap:22px}
.tl-form-head{display:flex;align-items:center;gap:12px}
.tl-back{flex:none;width:48px;height:48px;border-radius:12px;border:1px solid var(--line-2);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.tl-back:hover{border-color:var(--blue);color:var(--blue)}
.tl-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}
.tl-form .w-input[data-err="true"]{border-color:var(--err)}
.tl-fs{margin:0;padding:0;border:0;min-width:0}
.tl-fs legend{padding:0;margin-bottom:10px;font-size:14.5px;font-weight:700;color:var(--ink)}
.tl-days{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 6px;margin:-4px -2px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tl-days::-webkit-scrollbar{display:none}
.tl-days .tl-opt{flex:none}
.tl-day{width:76px;height:76px;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.tl-day span{font-size:13px;color:var(--mute)}
.tl-day b{font-size:22px;font-weight:800;color:var(--ink)}
.tl-opt input:checked+.tl-day b{color:var(--blue)}
.tl-pays{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}
.tl-pay{align-items:center;gap:12px;min-height:64px;padding:8px 16px;text-align:left}
.tl-pay>span:first-child{display:flex;color:var(--blue)}
.tl-pay>span:last-child{display:flex;flex-direction:column;line-height:1.3}
.tl-pay b{font-size:15.5px;font-weight:700}
.tl-pay small{font-size:13px;color:var(--mute)}

.tl-sum{display:flex;flex-direction:column;gap:14px;padding:24px}
.tl-sum-title{font-size:19px;font-weight:800;color:var(--ink)}
.tl-sum-lines{display:flex;flex-direction:column;font-size:15.5px}
.tl-sum-lines>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.tl-sum-lines>div>span:first-child{color:var(--mute)}
.tl-sum-lines>div>span:last-child{font-weight:700;color:var(--ink)}
.tl-promo{display:flex;gap:8px}
.tl-promo .w-input{flex:1;min-width:0;height:48px;text-transform:uppercase}
.tl-promo .w-btn{flex:none}
.tl-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:4px}
.tl-total>span:first-child{font-weight:700;color:var(--ink)}
.tl-total .tl-price{font-size:30px}
.tl-total small{font-size:15px;color:var(--mute);font-weight:600}
.tl-sum .w-btn{width:100%}

@media (max-width:560px){
  .tl-item{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:14px}
  .tl-thumb--lg{width:72px;height:72px;padding:8px}
  .tl-item-name{font-size:17px}
  .tl-receipt>div{flex-wrap:wrap}
  .tl-receipt .tl-num{margin-left:70px}
}

/* ---- /qiymet/redaktor page chrome (the editor itself lives in configurator.css) ------------------ */
.tl-cfg-head{margin-bottom:clamp(20px,3vw,32px)}
.tl-cfg-head .w-lede{margin-top:10px}
.cfg-sizes [data-stepper] input,.cfg-sizes [data-stepper] span{font-family:var(--f)!important;font-weight:700!important}
.cfg-sizes [data-stepper]>label{font-weight:700!important;color:var(--ink)!important}
