/* O'lcham jadvali oynasi (js/size-chart.js) + sahifalardagi «📏 O'lcham jadvali» havolalari.
   z-index: variant oynasidan (.pbv 120) yuqori — o'sha oyna ichidan ham ochiladi. */
.pbsc{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  padding:16px;background:rgba(28,26,24,.55)}
.pbsc[hidden]{display:none}
.pbsc__box{position:relative;width:100%;max-width:600px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
  overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fff;color:#1C1A18;
  border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.25);font-family:inherit;text-align:left;outline:none}
.pbsc__top{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;gap:12px;padding:16px 18px 12px;
  background:#fff;border-bottom:1px solid #EFE9E2}
.pbsc__hd{min-width:0}
.pbsc__title{font-size:19px;font-weight:800;letter-spacing:-.01em;line-height:1.2}
.pbsc__sub{margin-top:3px;font-size:13px;color:#8A8177;line-height:1.35}
.pbsc__sub[hidden]{display:none}
.pbsc__x{margin-left:auto;flex:none;width:38px;height:38px;border:0;border-radius:50%;background:#F4F1EC;
  color:#1C1A18;font-size:15px;cursor:pointer}
.pbsc__x:hover{background:#ECE6DF}
.pbsc__body{padding:14px 18px 20px;display:grid;gap:16px}

/* Bo'y + vazn → tavsiya */
.pbsc__find{background:#F7F3EF;border-radius:14px;padding:14px}
.pbsc__find[hidden]{display:none}
.pbsc__find-h{font-size:15px;font-weight:800;margin-bottom:10px}
.pbsc__inputs{display:flex;gap:10px;flex-wrap:wrap}
.pbsc__in{flex:1 1 140px;display:flex;align-items:center;gap:8px;min-width:0;background:#fff;border:1.5px solid #E2DBD3;
  border-radius:12px;padding:0 12px;cursor:text}
.pbsc__in[hidden]{display:none}
.pbsc__in:focus-within{border-color:#1C1A18}
.pbsc__in span{font-size:13.5px;color:#6E655C;white-space:nowrap}
/* 16px — iPhone maydonga bosganda sahifani kattalashtirmasin */
.pbsc__in input{flex:1;min-width:0;width:100%;border:0;outline:0;background:transparent;color:#1C1A18;
  font:inherit;font-size:16px;font-weight:700;padding:11px 0;text-align:right}
.pbsc__in em{font-style:normal;font-size:13.5px;color:#8A8177}
.pbsc__rec{margin-top:11px;min-height:20px;font-size:14px;color:#5C5650}
.pbsc__recv{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pbsc__recv span{font-weight:700;color:#1C1A18}
.pbsc__recv b{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:38px;padding:0 10px;
  border-radius:10px;background:#1C1A18;color:#fff;font-size:17px;font-weight:800}
.pbsc__pick{margin-left:auto;border:0;border-radius:10px;background:#E5142B;color:#fff;font:inherit;font-size:14.5px;
  font-weight:700;padding:10px 15px;cursor:pointer;min-height:40px}
.pbsc__pick:hover{background:#C70F24}
.pbsc__why{margin-top:7px;font-size:13px;line-height:1.45;color:#8A8177}
.pbsc__recv + .pbsc__why{margin-top:9px}
.pbsc__rec > .pbsc__why:first-child{margin-top:0}
.pbsc__why--warn{color:#B45309}

/* Jadval: qator = o'lcham */
.pbsc__tw{overflow-x:auto;border:1px solid #EFE9E2;border-radius:12px}
.pbsc__t{width:100%;border-collapse:collapse;font-size:14.5px;font-variant-numeric:tabular-nums}
.pbsc__t th,.pbsc__t td{padding:10px 8px;text-align:center;border-bottom:1px solid #F1ECE6;white-space:nowrap}
.pbsc__t thead th{background:#FBF9F6;font-size:12px;font-weight:700;color:#6E655C;line-height:1.25;white-space:normal;
  vertical-align:bottom}
.pbsc__t thead th b{color:#E5142B}
.pbsc__t thead th i{display:block;margin-top:2px;font-style:normal;font-weight:500;font-size:11px;color:#9A918A}
.pbsc__t tbody th{font-size:15px;font-weight:800}
.pbsc__t tbody tr:last-child th,.pbsc__t tbody tr:last-child td{border-bottom:0}
.pbsc__t tr.is-cur th::after{content:'';display:inline-block;width:6px;height:6px;margin-left:5px;border-radius:50%;
  background:#1C1A18;vertical-align:middle}
.pbsc__t tr.is-rec th,.pbsc__t tr.is-rec td{background:#FFF0F1}
.pbsc__t tr.is-rec th{color:#E5142B;box-shadow:inset 3px 0 0 #E5142B}
.pbsc__vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Qanday o'lchanadi */
.pbsc__how{display:flex;gap:16px;align-items:center}
.pbsc__how[hidden]{display:none}
.pbsc__svg{flex:none;width:168px;height:auto;display:block}
.pbsc__how-h{font-size:14px;font-weight:800;margin-bottom:8px}
.pbsc__how ul{list-style:none;margin:0;padding:0;display:grid;gap:7px;font-size:13.5px;line-height:1.4;color:#5C5650}
.pbsc__how li{display:flex;gap:8px;align-items:flex-start}
.pbsc__how li b{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-top:-1px;
  border-radius:50%;background:#E5142B;color:#fff;font-size:11px;font-weight:800}
.pbsc__how li strong{color:#1C1A18;font-weight:700}
.pbsc__note{margin:0;font-size:12.5px;line-height:1.45;color:#8A8177}
.pbsc__note[hidden]{display:none}

/* Telefon: pastdan chiqadigan varaq */
@media (max-width:560px){
  .pbsc{padding:0;align-items:flex-end}
  .pbsc__box{max-width:none;max-height:92vh;max-height:92dvh;border-radius:18px 18px 0 0;
    padding-bottom:env(safe-area-inset-bottom)}
  .pbsc__top{padding:14px 16px 10px}
  .pbsc__body{padding:12px 16px 18px;gap:14px}
  .pbsc__how{flex-direction:column;align-items:stretch;gap:10px}
  .pbsc__svg{width:190px;margin:0 auto}
  .pbsc__t{font-size:14px}
  .pbsc__t th,.pbsc__t td{padding:9px 5px}
  .pbsc__pick{margin-left:0;width:100%}
}

/* Vitrina (listing.html) — «O'lcham» sarlavhasi qatorida o'ngda */
.lsd__lbl--sc{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lsd__sclink{margin-left:auto;padding:2px 0;border:0;background:none;color:#1C1A18;font:inherit;font-size:13px;
  font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.lsd__sclink:hover{color:#E5142B}

/* Variant oynasi (variant-modal.js) ichidagi havola — «O'lcham» sarlavhasi yonida */
.pbvr__sc{margin-left:8px;padding:0;border:0;background:none;color:#1C1A18;font:inherit;font-size:13px;font-weight:600;
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;text-transform:none;letter-spacing:0}
.pbvr__sc:hover{color:#E5142B}
