/* K-Box — strona klienta (najpierw telefon). Korzysta z czcionki i podstaw z app.css. */
.p-body{background:var(--ground);min-height:100vh;display:flex;flex-direction:column}
.p-head{background:var(--red);color:#fff;padding:18px 20px 16px}
.p-head-in{max-width:520px;margin:0 auto}
.p-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.p-brand{font-size:24px;font-weight:800;letter-spacing:-.5px;color:#fff;text-decoration:none}
.p-brand:hover{color:#fff}
.p-top a.p-link,.p-top .p-step{color:#fff;font-size:14px;font-weight:600}
.p-progress{height:6px;background:rgba(255,255,255,.35);border-radius:999px;margin-top:14px;overflow:hidden}
.p-progress span{display:block;height:6px;background:#fff;border-radius:999px}
.p-hello{margin:16px 0 0;font-size:26px;font-weight:800}
.p-main{flex:1;width:100%;max-width:520px;margin:0 auto;padding:20px 16px 120px;box-sizing:border-box;display:flex;flex-direction:column;gap:14px}
.p-main h1{font-size:26px;font-weight:800;margin:0}
.p-lead{color:var(--muted);margin:-6px 0 4px;font-size:15px}
.p-test{background:var(--amber-soft);border-bottom:1px solid var(--amber-line);color:#6B3A00;font-size:13px;font-weight:600;text-align:center;padding:8px 16px}
.p-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px}
.p-opt{display:block;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;cursor:pointer;font:inherit;color:var(--ink);box-sizing:border-box}
.p-opt-img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;margin:0 0 12px}
@media (min-width:640px){.p-opt:has(.p-opt-img){display:grid;grid-template-columns:160px minmax(0,1fr);column-gap:14px;align-items:start}.p-opt:has(.p-opt-img)>:not(.p-opt-img):not(input){grid-column:2;min-width:0}.p-opt-img{grid-column:1;grid-row:1/span 4;width:160px;height:120px;aspect-ratio:auto;margin:0}}
.p-opt.off .p-opt-img{opacity:.55}
.p-opt:hover{border-color:#C9CBD2}
.p-opt.on,.p-opt:has(input:checked){border:2px solid var(--red);background:var(--red-faint);padding:15px}
.p-opt input[type=radio]{position:absolute;opacity:0;pointer-events:none}
.p-opt:has(input:focus-visible){outline:3px solid var(--red);outline-offset:2px}
.p-opt .t{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:800;font-size:20px}
.p-opt .d{display:block;color:var(--muted);font-size:14px;margin-top:4px;font-weight:400}
.p-opt.off{background:#FAFAFB;cursor:default}
.p-opts{display:flex;flex-direction:column;gap:10px}
.p-opts.two{flex-direction:row}.p-opts.two>*{flex:1}
.p-form{display:flex;flex-direction:column;gap:14px}
.p-form .field{height:48px;font-size:16px}
.p-form .lbl{font-size:14px;color:#3F4450}
.p-row{display:flex;gap:10px}.p-row>*{flex:1;min-width:0}
.p-foot{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:12px 16px calc(16px + env(safe-area-inset-bottom))}
.p-foot-in{max-width:520px;margin:0 auto;display:flex;gap:10px}
.p-foot .btn{min-height:52px;font-size:16px;font-weight:700;flex:1}
.p-foot .btn-red{flex:2}
.p-lines .l{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-soft);font-size:15px}
.p-lines .l span:first-child{color:#3F4450}.p-lines .l span:last-child{font-weight:600;white-space:nowrap}
.p-total{display:flex;justify-content:space-between;padding:14px 0 4px;font-size:19px;font-weight:800}
.p-note{font-size:14px;color:var(--muted)}
.code-field{letter-spacing:8px;font-size:24px!important;font-weight:700;text-align:center}
.p-testcode{background:var(--amber-soft);border:1px dashed #D98E1F;border-radius:12px;padding:12px 14px;font-size:14px;color:#6B3A00}
.p-testcode strong{font-size:20px;letter-spacing:4px;color:var(--ink)}
.p-gate{width:100%;min-height:72px;font-size:20px;border-radius:14px}
.p-gate[disabled]{background:#fff;color:var(--muted);border:1px solid var(--line);opacity:1}
.p-debt{background:var(--amber-soft);border:1px solid var(--amber-line);color:#5A3000;border-radius:16px;padding:16px}
.p-debt.blocked{background:var(--navy);border-color:var(--navy);color:#fff}
.p-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px;font-size:15px}
.p-facts .l{font-size:13px;color:var(--muted)}.p-facts .v{font-weight:700;margin-top:2px}
.p-menu{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
.p-menu > a,.p-menu > button,.p-menu > form > button{display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:0 16px;border:0;border-top:1px solid var(--line-soft);background:#fff;width:100%;font:600 16px "Archivo",sans-serif;color:var(--ink);text-decoration:none;cursor:pointer;text-align:left}
.p-menu > :first-child{border-top:0}
.p-menu .arrow{color:#9097A6}
.p-ok{width:72px;height:72px;border-radius:50%;background:var(--green-soft);margin:8px auto 0;display:flex;align-items:center;justify-content:center}
.p-center{text-align:center}
.p-legal{font-size:15px;line-height:1.6}
.p-legal h2{font-size:18px;margin:18px 0 6px}
.p-gateway{border:2px solid #2B3A55;border-radius:16px;background:#fff;padding:18px}
.p-gateway .amt{font-size:34px;font-weight:800;letter-spacing:-.5px}
@media (min-width:720px){
  .p-main{padding-bottom:40px}
  .p-foot{position:static;background:none;border:0;padding:4px 0 0}
  .p-foot-in{max-width:none}
}
.p-promo{background:var(--red-faint);border:1px solid #F3B6CB;color:var(--red-dark);border-radius:12px;padding:12px 14px;font-size:15px}
.p-stepper{display:flex;gap:8px;align-items:center}
.p-stepper .btn{min-width:52px;min-height:48px;font-size:22px;padding:0}
.p-stepper input{text-align:center;font-weight:700;font-size:18px}
.p-map{margin:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}
.p-map svg{display:block;width:100%;height:auto;max-height:70vh}
.p-map .ground{fill:#ECEDF1}
.p-map .other rect{fill:#fff;stroke:#C9CBD2;stroke-width:.12}
.p-map .other text{fill:#9097A6;font-weight:600}
.p-map .mine rect{fill:var(--red);stroke:var(--red-dark);stroke-width:.2}
.p-map .mine text{fill:#fff;font-weight:800}
.p-map .gate rect{fill:var(--navy)}
.p-map .gate text{fill:#fff;font-weight:700;letter-spacing:.05px}
.p-map text{font-family:"Archivo",sans-serif}
.p-map figcaption{margin-top:8px;text-align:center}
.p-sum{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;min-height:52px;padding:0 16px;font-weight:700;font-size:16px}
.p-sum::after{content:"›";color:#9097A6;transform:rotate(90deg)}
details[open] .p-sum::after{transform:rotate(-90deg)}
.p-sum::-webkit-details-marker{display:none}
.payu-field{min-height:52px;border:1px solid var(--line);border-radius:12px;padding:14px 14px;background:#fff;box-sizing:border-box}
.p-error{color:var(--red-text);font-weight:600;margin:0}
.p-autopay{display:grid;gap:10px;margin-top:16px}
.p-autopay a.p-opt{text-decoration:none;color:var(--ink)}
.p-autopay a.p-opt .t{font-size:18px}
.p-h2{font-size:18px;font-weight:800;margin:0}
.p-opt:has(input[type=radio]){position:relative}
.p-default-submit{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.p-consents{display:flex;flex-direction:column;gap:2px}
.p-consents .errorlist{margin:-4px 0 6px 30px}
.p-site{margin-top:24px;padding-top:16px;border-top:1px solid var(--line);font-size:13px;line-height:1.5;color:var(--muted)}
.p-site p{margin:0 0 8px}
.p-site a{color:inherit}
.p-site-links a{font-weight:600}
.p-brand{display:flex;align-items:center}
.p-brand-logo{display:block;height:24px;width:auto}

/* Wynajem na komputerze: szeroko, dwie kolumny — formularz po lewej, podsumowanie z przyciskiem po prawej */
@media (min-width:1024px){
  .p-wide .p-head-in,.p-wide .p-main{max-width:1120px}
  .p-wide .p-main{padding:28px 24px 48px}
  .p-wide form[data-checkout]{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:20px;align-items:start}
  .p-wide .p-col-main{display:flex;flex-direction:column;gap:14px;min-width:0}
  .p-wide .p-col-side{position:sticky;top:16px;display:flex;flex-direction:column;gap:14px;min-width:0}
  .p-wide .p-opts.sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .p-wide .p-opts.sizes .p-opt:has(.p-opt-img){display:block}
  .p-wide .p-opts.sizes .p-opt-img{width:100%;height:auto;aspect-ratio:4/3;margin:0 0 12px}
  .p-wide .p-opts.sizes .p-opt .t{flex-direction:column;align-items:flex-start;gap:2px}
  .p-wide .p-opts.sizes .p-opt.off .btn{white-space:normal;padding:8px 10px;font-size:14px;line-height:1.25;width:100%}
  .p-wide .p-site{max-width:none}
}

.p-promo-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:10px;margin-top:6px}
.p-promo-opt.on{border-color:var(--red,#E50048);background:#fff5f8}
.p-promo-opt.off{opacity:.6}
.p-promo-opt .btn-sm{min-height:34px;padding:4px 12px;font-size:14px;flex:0 0 auto}
.p-code summary{cursor:pointer;color:var(--muted);font-size:14px;text-decoration:underline;list-style:none;width:max-content}
.p-code summary::-webkit-details-marker{display:none}
.messages .p-errsum{margin:6px 0 0;padding-left:18px;list-style:disc}
.messages .p-errsum li{margin:4px 0;padding:0;background:none;border:0;display:list-item;font-weight:400}
.messages .p-errsum a{color:inherit;font-weight:600}
.p-consent-all{padding:12px 14px;border:1px solid var(--line,#e5e7eb);border-radius:10px;background:#fafafb;margin-bottom:6px}
/* iPhone: pole daty nie może wychodzić poza ekran (Safari nadaje mu własną minimalną szerokość) */
input[type=date].field{-webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;line-height:46px}
input[type=date].field::-webkit-date-and-time-value{text-align:left;margin:0}
.p-row>div{min-width:0}
/* miarka hasła */
.p-pw{margin-top:8px;font-size:14px;font-weight:600}
.p-pw-bar{height:6px;border-radius:3px;background:#E5E7EB;overflow:hidden;margin-bottom:6px}
.p-pw-bar i{display:block;height:100%;width:0;transition:width .2s,background .2s}
.p-pw.bad{color:#B42318}.p-pw.bad .p-pw-bar i{background:#D92D20}
.p-pw.ok{color:#067647}.p-pw.ok .p-pw-bar i{background:#17B26A}
/* równe odstępy: pola wyboru bez „pustej” wysokości 44 px przy jednej linii tekstu */
.p-form .check{min-height:0;padding:6px 0;align-items:flex-start;line-height:1.4}
.p-form .check input{margin-top:1px}
.p-consents{gap:6px}
.p-consents .check{padding:6px 0}
.p-consents .errorlist{margin:-2px 0 4px 30px}
.p-form .p-note{margin-top:6px}
