/* Cookie Banner styles (minimal, clean) */
.cb.hidden { 
    display: none;
    pointer-events: none;
}

.cb {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 16px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    /* Prevent interaction with background elements */
    pointer-events: auto;
}

.cb__card {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.cb__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.cb__title {
    font-size: 18px;
    font-weight: 700;
}

.cb__iconbtn {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
}

.cb__iconbtn:hover { 
    background: #f3f3f3; 
}

.cb__body {
    padding: 14px 16px;
    font-size: 14px;
    color: #222;
}

.cb__body p { 
    margin: 0 0 10px 0; 
}

.cb__links { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
}

.cb__links a { 
    color: #1B7544; 
    text-decoration: none; 
}

.cb__links a:hover { 
    text-decoration: underline; 
}

.cb__settings {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
    display: grid;
    gap: 12px;
}

.cb__setting {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.cb__muted {
    color: #666;
    font-size: 12px;
    margin-top: 3px;
}

/* Switch */
.cb__switch { 
    position: relative; 
    display: inline-block; 
    width: 44px; 
    height: 26px; 
}

.cb__switch input { 
    opacity: 0; 
    width: 0; 
    height: 0; 
}

.cb__slider {
    position: absolute; 
    cursor: pointer; 
    inset: 0;
    background-color: #ddd;
    border-radius: 999px;
    transition: .2s;
}

.cb__slider:before {
    position: absolute; 
    content: "";
    height: 20px; 
    width: 20px;
    left: 3px; 
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

.cb__switch input:checked + .cb__slider { 
    background-color: #1B7544; 
}

.cb__switch input:checked + .cb__slider:before { 
    transform: translateX(18px); 
}

.cb__switch input:disabled + .cb__slider { 
    background-color: #bbb; 
    cursor: not-allowed; 
}

/* Buttons */
.cb__footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 14px 16px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

.cb__btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cb__btn--ghost:hover { 
    background: #f6f6f6; 
}

.cb__btn--primary {
    background: #1B7544;
    color: #fff;
    border-color: #1B7544;
}

.cb__btn--primary:hover { 
    background: #155B35; 
}

/* Cookie settings link */
.cookie-settings-link {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.cookie-settings-link:hover {
    color: #1B7544;
    background: rgba(27, 117, 68, 0.05);
}

@media (max-width: 520px) {
    .cb { 
        place-items: center stretch; 
    }
    
    .cb__footer { 
        justify-content: stretch; 
    }
    
    .cb__btn { 
        flex: 1 1 auto; 
    }
    
    .cb__setting {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}