/* ==========================================================================
   Cookie consent modal (Consent Mode v2) — kotlybrt.pl
   Brand: #ff3e17 accent, Poppins. Self-contained, scoped to .shv-cc-*
   ========================================================================== */
:root{
  --shv-cc-accent:#ff3e17;
  --shv-cc-accent-dark:#a8250a;
  --shv-cc-ink:#240202;
  --shv-cc-muted:#5f5f5f;
  --shv-cc-green:#6ea343;
}
.shv-cc-overlay{position:fixed;inset:0;background:rgba(20,8,4,.55);z-index:99998;display:none;}
.shv-cc-overlay.is-open{display:block;}

.shv-cc-modal{
  position:fixed;z-index:99999;left:50%;bottom:24px;transform:translateX(-50%);
  width:calc(100% - 32px);max-width:600px;background:#fff;border-radius:16px;
  box-shadow:0 24px 70px rgba(0,0,0,.28);font-family:"Poppins",system-ui,sans-serif;
  color:var(--shv-cc-ink);display:none;overflow:hidden;
}
.shv-cc-modal.is-open{display:block;animation:shv-cc-in .25s ease;}
@keyframes shv-cc-in{from{opacity:0;transform:translateX(-50%) translateY(14px);}to{opacity:1;transform:translateX(-50%) translateY(0);}}

.shv-cc-body{padding:26px 26px 6px;}
.shv-cc-title{font-size:19px;font-weight:700;margin:0 0 10px;line-height:1.25;}
.shv-cc-text{font-size:14px;line-height:1.55;color:var(--shv-cc-muted);margin:0;}
.shv-cc-text a{color:var(--shv-cc-accent);text-decoration:underline;font-weight:600;}

.shv-cc-actions{display:flex;flex-wrap:wrap;gap:10px;padding:18px 26px 26px;}
.shv-cc-btn{
  flex:1 1 auto;min-width:132px;border:0;border-radius:11px;padding:12px 16px;
  font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;
}
.shv-cc-btn--accept{background:var(--shv-cc-accent);color:#fff;order:3;}
.shv-cc-btn--accept:hover{background:var(--shv-cc-accent-dark);}
.shv-cc-btn--reject{background:#FFF;color:var(--shv-cc-ink);opacity:.5;order:2;}
.shv-cc-btn--reject:hover{border-color:var(--shv-cc-ink);}
.shv-cc-btn--settings{background:#fff;color:var(--shv-cc-ink);opacity:.5;order:1;}
.shv-cc-btn--settings:hover{border-color:var(--shv-cc-ink);}

/* settings / categories */
.shv-cc-cats{padding:2px 26px 0;}
.shv-cc-cat{display:flex;gap:16px;align-items:flex-start;padding:15px 0;border-top:1px solid #f0efed;}
.shv-cc-cat:first-child{border-top:0;}
.shv-cc-cat-info{flex:1 1 auto;}
.shv-cc-cat-info h4{margin:0 0 3px;font-size:14.5px;font-weight:600;}
.shv-cc-cat-info p{margin:0;font-size:12.5px;line-height:1.45;color:var(--shv-cc-muted);}

.shv-cc-switch{position:relative;flex:0 0 auto;width:46px;height:26px;}
.shv-cc-switch input{opacity:0;width:0;height:0;position:absolute;}
.shv-cc-slider{position:absolute;inset:0;background:#cfcfcf;border-radius:26px;transition:.2s;cursor:pointer;}
.shv-cc-slider::before{content:"";position:absolute;height:20px;width:20px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.shv-cc-switch input:checked + .shv-cc-slider{background:var(--shv-cc-accent);}
.shv-cc-switch input:checked + .shv-cc-slider::before{transform:translateX(20px);}
.shv-cc-switch input:disabled + .shv-cc-slider{background:var(--shv-cc-green);opacity:.75;cursor:not-allowed;}

/* re-open button (withdraw/change consent anytime) */
.shv-cc-reopen{
  position:fixed;left:16px;bottom:16px;z-index:99997;width:46px;height:46px;border-radius:50%;
  border:0;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.20);cursor:pointer;font-size:22px;
  line-height:1;display:none;padding:0;
}
.shv-cc-reopen.is-visible{display:block;}
.shv-cc-reopen:hover{transform:scale(1.06);}

@media (max-width:480px){
  .shv-cc-modal{bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%;}
  .shv-cc-btn{flex-basis:100%;}
  .shv-cc-btn--accept{order:1;} .shv-cc-btn--reject{order:2;} .shv-cc-btn--settings{order:3;}
}
