/* Просмотр фото груза: окно поверх всего Core. */
.pv{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0f1216;color:#fff;overflow:hidden;outline:0;font-family:inherit}
.pv[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.pv::backdrop{background:#0f1216}
.pv button{appearance:none;border:0;margin:0;padding:0;min-height:0;min-width:0;background:none;box-shadow:none;color:inherit;font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pv button:focus-visible{outline:2px solid #8fb2ff;outline-offset:2px}
.pv svg{width:24px;height:24px;display:block}
.pv-top{display:flex;align-items:center;gap:10px;padding:8px 10px 8px 16px}
.pv-counter{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.pv-when{font-size:13px;color:#aab2bf;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pv-grow{flex:1}
.pv .pv-btn{width:44px;height:44px;border-radius:10px;flex:none}
.pv .pv-btn:hover{background:#262b33}
.pv-stage{position:relative;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;user-select:none;-webkit-user-select:none}
.pv-img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;display:block;will-change:transform;-webkit-user-drag:none}
.pv-img:not([src]){visibility:hidden}
.pv-miss{position:absolute;margin:0;color:#aab2bf;font-size:15px}
.pv .pv-nav{position:absolute;top:50%;width:52px;height:52px;margin-top:-26px;border-radius:50%;background:rgba(15,18,22,.62);border:1px solid rgba(255,255,255,.22)}
.pv .pv-nav:hover{background:rgba(52,59,70,.92)}
.pv .pv-nav svg{width:28px;height:28px}
.pv-prev{left:14px}
.pv-next{right:14px}
.pv-strip{display:flex;gap:6px;padding:8px 12px 2px;overflow-x:auto;scrollbar-width:none}
.pv-strip::-webkit-scrollbar{display:none}
.pv .pv-thumb-all{flex:none;width:44px;height:64px;border-radius:8px;background:#232830;color:#c9d1dd}
.pv .pv-thumb-all.is-on{background:#2f6fed;color:#fff}
.pv-thumb{position:relative;flex:none;width:80px;height:64px;border-radius:8px;overflow:hidden;background:#232830}
.pv .pv-pick{position:absolute;inset:0;width:100%;height:100%;background:center/cover no-repeat;opacity:.62}
.pv-thumb.is-current .pv-pick{opacity:1}
.pv-thumb.is-current{box-shadow:inset 0 0 0 2px #fff}
.pv .pv-tick{position:absolute;top:0;right:0;width:36px;height:36px;align-items:flex-start;justify-content:flex-end;padding:4px}
.pv .pv-tick svg{width:20px;height:20px;padding:3px;box-sizing:border-box;border-radius:50%;background:rgba(15,18,22,.6);border:1.5px solid #fff;stroke:transparent;stroke-width:4}
.pv-thumb.is-picked .pv-tick svg{background:#2f6fed;border-color:#2f6fed;stroke:#fff}
.pv-bar{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.pv .pv-act{width:56px;height:48px;border-radius:12px;background:#232830}
.pv .pv-act:hover{background:#303641}
.pv .pv-act:disabled{opacity:.35;cursor:default}
.pv .pv-main{background:#2f6fed}
.pv .pv-main:hover{background:#2560d4}
.pv-count{min-width:30px;height:30px;padding:0 8px;box-sizing:border-box;border-radius:15px;background:#2f6fed;color:#fff;font-size:15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.pv-count[hidden]{display:none}
.pv-toast{position:absolute;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,8px);max-width:calc(100vw - 32px);width:max-content;box-sizing:border-box;padding:10px 14px;border-radius:10px;background:#fff;color:#14181f;font-size:14px;line-height:1.3;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s}
.pv-toast.on{opacity:1;transform:translate(-50%,0)}
.pv-hidden{display:none}
@media (max-width:640px){
 .pv .pv-nav{width:42px;height:42px;margin-top:-21px}
 .pv .pv-nav svg{width:24px;height:24px}
 .pv-prev{left:6px}
 .pv-next{right:6px}
 .pv-thumb{width:68px;height:56px}
 .pv .pv-thumb-all{height:56px}
}
/* Вырезать часть фото */
.pv-crop{position:absolute;box-shadow:0 0 0 9999px rgba(0,0,0,.6);border:2px solid #fff;box-sizing:border-box;cursor:move;touch-action:none;z-index:2}
.pv-h{position:absolute;width:26px;height:26px;border:4px solid #2f6fed;box-sizing:border-box;background:transparent}
.pv-h-nw{left:-6px;top:-6px;border-right:0;border-bottom:0;cursor:nwse-resize}
.pv-h-ne{right:-6px;top:-6px;border-left:0;border-bottom:0;cursor:nesw-resize}
.pv-h-sw{left:-6px;bottom:-6px;border-right:0;border-top:0;cursor:nesw-resize}
.pv-h-se{right:-6px;bottom:-6px;border-left:0;border-top:0;cursor:nwse-resize}
.pv-cropbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
.pv-crophint{width:100%;text-align:center;font-size:13px;color:#aab2bf}
.pv-in{height:42px;border-radius:10px;border:1px solid #3a414c;background:#1b1f26;color:#fff;font:inherit;font-size:15px;padding:0 10px;box-sizing:border-box}
.pv-in-type{min-width:190px;font-weight:600}
.pv-in-num{width:200px}
.pv-cus{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600}
.pv-cus input{width:20px;height:20px}
.pv .pv-cbtn{height:42px;padding:0 16px;border-radius:10px;background:#232830;font-weight:600;font-size:15px}
.pv .pv-cbtn.is-main{background:#2f6fed}
.pv .pv-cbtn:disabled{opacity:.5}
@media (max-width:640px){.pv-in-type,.pv-in-num{flex:1 1 45%;min-width:0;width:auto}.pv .pv-cbtn{flex:1 1 30%;padding:0 8px}}
.pv [hidden]{display:none!important}
.pv select.pv-in,.pv input.pv-in{width:auto;flex:0 0 auto;margin:0}
.pv .pv-cus{color:#fff;margin:0}
@media (max-width:640px){.pv select.pv-in,.pv input.pv-in{flex:1 1 45%;min-width:0}}
.pv .pv-act.pv-danger{background:#3a2326;color:#ffb4a8}.pv .pv-act.pv-danger:hover{background:#5a2a2c}
/* 14.11.2026: просмотр фото — окном поверх карточки, а не на весь экран (на телефоне — по-прежнему весь экран) */
@media (min-width:900px){
.pv{inset:4vh 6vw;width:auto;height:auto;max-width:calc(100vw - 12vw);max-height:calc(100dvh - 8vh);border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.45)}
.pv::backdrop{background:rgba(15,18,22,.55)}
}
