.cbz-overlay{position:fixed;inset:0;z-index:2147483000;display:none;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.6);font-family:inherit}
.cbz-overlay.cbz-open{display:flex}
.cbz-box{background:#fff;color:#1d2327;border-radius:14px;max-width:420px;width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:20px 20px 16px;box-shadow:0 12px 40px rgba(0,0,0,.35);text-align:center}
.cbz-box h3{margin:0 0 10px;font-size:20px;line-height:1.3}
.cbz-msg{margin:6px 0 12px;font-size:15px;line-height:1.5}
.cbz-overlay[data-state=error] .cbz-msg{color:#b32d2e;font-weight:600}
.cbz-preview{display:block;width:210px;max-width:70%;aspect-ratio:35/45;object-fit:cover;margin:0 auto 12px;border-radius:6px;border:1px solid #dcdcde;box-shadow:0 2px 10px rgba(0,0,0,.12)}
.cbz-preview[hidden],.cbz-checks[hidden],.cbz-spinner[hidden],.cbz-actions [hidden]{display:none}
.cbz-checks{list-style:none;margin:0 auto 14px;padding:0;display:inline-block;text-align:left;font-size:14px}
.cbz-checks li{padding-left:22px;position:relative;margin:3px 0}
.cbz-checks li::before{content:"\2713";position:absolute;left:0;color:#1a8f3c;font-weight:700}
.cbz-spinner{width:38px;height:38px;margin:10px auto;border:4px solid #e2e4e7;border-top-color:#111;border-radius:50%;animation:cbz-spin .8s linear infinite}
@keyframes cbz-spin{to{transform:rotate(360deg)}}
.cbz-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.cbz-btn{appearance:none;border:0;border-radius:8px;padding:12px 16px;font-size:15px;font-weight:600;cursor:pointer;background:#111;color:#fff}
.cbz-btn:hover{background:#333}
.cbz-btn-2{background:#fff;color:#111;border:2px solid #111}
.cbz-btn-2:hover{background:#f0f0f1}
.cbz-link{appearance:none;background:none;border:0;color:#646970;text-decoration:underline;cursor:pointer;font-size:14px;padding:4px}
.cbz-overlay[data-state=ok] .cbz-again{border-width:1px}
/* pole „Twoje zdjęcia” */
.cbz-um-hidden{display:none!important}
.cbz-panel{margin:0 0 30px}
.cbz-panel .cbz-help{margin:0 0 12px!important;font-size:14px;line-height:1.45;color:#666}
.cbz-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px}
.cbz-tile{position:relative;margin:0!important;padding:0;border-radius:8px;overflow:hidden;background:#f3f3f3;aspect-ratio:35/45;display:flex;flex-direction:column}
.cbz-tile .cbz-img{position:relative;flex:1;min-height:0}
.cbz-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cbz-tile[data-state=busy] img{opacity:.45}
.cbz-spin{display:none;position:absolute;left:50%;top:50%;width:30px;height:30px;margin:-15px 0 0 -15px;border:3px solid rgba(255,255,255,.7);border-top-color:#111;border-radius:50%;animation:cbz-spin .8s linear infinite}
.cbz-tile[data-state=busy] .cbz-spin{display:block}
.cbz-x{position:absolute;top:4px;right:4px;width:30px;height:30px;padding:0;border:0;border-radius:50%;background:rgba(0,0,0,.65);color:#fff;font-size:20px;line-height:30px;cursor:pointer}
.cbz-prof{outline:2px solid #111;outline-offset:-2px}
.cbz-prof img{display:none}
.cbz-prof[data-state=ok] img,.cbz-prof[data-state=busy] img[src]{display:block}
.cbz-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;font-size:12px;line-height:1.35;color:#888}
.cbz-prof[data-state=ok] .cbz-ph,.cbz-prof[data-state=busy] .cbz-ph{display:none}
.cbz-prof figcaption{position:absolute;left:0;right:0;bottom:0;padding:4px 6px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;text-align:center}
.cbz-prof[data-state=ok] figcaption{bottom:auto;top:0}
.cbz-mini{position:absolute;left:50%;bottom:6px;transform:translateX(-50%);padding:5px 12px;border:0;border-radius:14px;background:#fff;color:#111;font-size:13px;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer}
.cbz-mini[hidden]{display:none}
.cbz-add{align-items:center;justify-content:center;gap:4px;border:2px dashed #bbb;background:#fff;color:#333;font-size:14px;font-weight:600;text-align:center;cursor:pointer;padding:6px}
.cbz-add[hidden]{display:none}
.cbz-add .cbz-plus{font-size:34px;line-height:1;font-weight:400}
.cbz-add input,.cbz-prof-msg input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.cbz-panel .cbz-status{margin:8px 0 0!important;font-size:14px;color:#666;min-height:1em}
.cbz-panel .cbz-status.cbz-err,.cbz-panel .cbz-prof-msg p{color:#c74a4a;font-weight:600}
.cbz-prof-msg{margin-top:10px}
.cbz-prof-msg[hidden]{display:none}
.cbz-prof-msg p{margin:0 0 8px!important;font-size:14px;line-height:1.45}
.cbz-btn-sm{display:inline-block;position:relative;padding:10px 16px;font-size:14px}
