/* Kopija no css/style.css (sīkdatņu josla .cc-*, sk. jvs/cookie-consent.js), lai sākumlapa
   nevilktu līdzi visu style.css. Ja style.css cc- bloks mainās - atjauno šo failu. */
.cc-banner{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9000;
    box-sizing:border-box;
    padding:16px 20px;
    background:#fff;
    border-top:1px solid #E1E5EA;
    box-shadow:0 -4px 16px rgba(21,25,30,0.08);
    font-size:13px;
    line-height:19px;
    color:#15191E;
    text-align:left;
}
.cc-banner[hidden], .cc-modal[hidden]{display:none;}
.cc-banner-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:24px;
    max-width:1200px;
    margin:0 auto;
}
.cc-banner-text{flex:0 1 auto;min-width:0;max-width:720px;}
.cc-banner-text p{margin:0;}
.cc-title{
    margin:0 0 4px;
    font-size:15px;
    line-height:20px;
    font-weight:600;
    color:#15191E;
}
.cc-banner a, .cc-modal a{color:var(--brand-accent, #9A2F58);text-decoration:underline;}
.cc-banner a:hover, .cc-modal a:hover{color:#15191E;}
.cc-actions{
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:8px;
}

.cc-btn{
    -webkit-appearance:none;
    appearance:none;
    display:inline-block;
    box-sizing:border-box;
    width:auto;
    height:auto;
    min-width:0;
    margin:0;
    padding:9px 18px;
    border:1px solid transparent;
    border-radius:3px;
    background:none;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    line-height:20px;
    white-space:nowrap;
    text-align:center;
    cursor:pointer;
    transition:background-color .15s, border-color .15s, color .15s;
}
.cc-btn:focus-visible, .cc-close:focus-visible{outline:2px solid var(--brand-accent, #9A2F58);outline-offset:2px;}
.cc-btn-primary{background:var(--brand-accent, #9A2F58);border-color:var(--brand-accent, #9A2F58);color:#fff;}
.cc-btn-primary:hover{background:#15191E;border-color:#15191E;color:#fff;}
.cc-btn-secondary{background:#fff;border-color:#C9CED4;color:#15191E;}
.cc-btn-secondary:hover{background:#fff;border-color:#15191E;color:#15191E;}
.cc-btn-link{padding-left:10px;padding-right:10px;color:#15191E;text-decoration:underline;text-underline-offset:3px;}
.cc-btn-link:hover{background:none;color:var(--brand-accent, #9A2F58);}

/* Iestatījumu logs */
html.cc-modal-open, html.cc-modal-open body{overflow:hidden;}
.cc-modal{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    z-index:9100;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    box-sizing:border-box;
    font-size:13px;
    line-height:19px;
    color:#15191E;
    text-align:left;
}
.cc-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(21,25,30,0.45);}
.cc-dialog{
    position:relative;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:100%;
    max-width:560px;
    max-height:100%;
    background:#fff;
    border-radius:6px;
    box-shadow:0 12px 40px rgba(21,25,30,0.25);
    outline:none;
}
.cc-dialog-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:18px 20px 14px;
    border-bottom:1px solid #E1E5EA;
}
.cc-dialog-head .cc-title{margin:0;font-size:17px;line-height:22px;}
.cc-close{
    -webkit-appearance:none;
    appearance:none;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 32px;
    width:32px;
    height:32px;
    margin:-6px -8px -6px 0;
    padding:0;
    border:0;
    border-radius:3px;
    background:none;
    color:#5C5F62;
    cursor:pointer;
}
.cc-close:hover{background:#F1F1F2;color:#15191E;}
.cc-dialog-body{padding:16px 20px 4px;overflow-y:auto;}
.cc-intro{margin:0 0 4px;color:#44474A;}
.cc-category{padding:14px 0;border-top:1px solid #E1E5EA;}
.cc-intro + .cc-category{border-top:0;}
.cc-category-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}
.cc-category-title{font-size:14px;font-weight:600;color:#15191E;cursor:pointer;}
.cc-category-text{margin:4px 0 0;padding-right:60px;color:#44474A;}
.cc-always{font-size:12px;font-weight:600;color:#2E7D4F;white-space:nowrap;}
.cc-dialog-foot{
    display:flex;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:8px;
    padding:14px 20px 18px;
    border-top:1px solid #E1E5EA;
}

/* Slēdzis - īsts <input type="checkbox"> (klaviatūra, ekrāna lasītāji), tikai
   caurspīdīgs virs zīmētās sliedes. */
.cc-switch{position:relative;display:inline-block;flex:0 0 40px;width:40px;height:22px;}
.cc-switch input{
    -webkit-appearance:none;
    appearance:none;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    margin:0;
    opacity:0;
    cursor:pointer;
    z-index:1;
}
.cc-switch-track{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    border-radius:11px;
    background:#C9CED4;
    transition:background-color .15s;
}
.cc-switch-track:after{
    content:"";
    position:absolute;
    top:3px;
    left:3px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 2px rgba(21,25,30,0.25);
    transition:transform .15s;
}
.cc-switch input:checked + .cc-switch-track{background:var(--brand-accent, #9A2F58);}
.cc-switch input:checked + .cc-switch-track:after{transform:translateX(18px);}
.cc-switch input:focus-visible + .cc-switch-track{outline:2px solid var(--brand-accent, #9A2F58);outline-offset:2px;}

@media (max-width:900px){
    .cc-banner-inner{flex-direction:column;align-items:stretch;gap:12px;}
    .cc-banner-text{max-width:none;}
    .cc-actions{justify-content:flex-end;flex-wrap:wrap;}
}
@media (max-width:600px){
    .cc-banner{padding:14px 16px;}
    .cc-actions{flex-direction:column-reverse;align-items:stretch;}
    .cc-actions .cc-btn{width:100%;}
    .cc-modal{padding:0;align-items:flex-end;}
    .cc-dialog{max-width:none;border-radius:6px 6px 0 0;}
    .cc-dialog-foot{flex-direction:column-reverse;}
    .cc-dialog-foot .cc-btn{width:100%;}
    .cc-category-text{padding-right:0;}
}
@media (prefers-reduced-motion:reduce){
    .cc-btn, .cc-switch-track, .cc-switch-track:after{transition:none;}
}
