
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 520px;
    background: #fff;
    color: #222;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.20);
    z-index: 99999;
    display: none;
    font-family: Arial, sans-serif;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner-header,
.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.cookie-banner h4,
.cookie-modal h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.cookie-banner p,
.cookie-modal p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #555;
}

.cookie-banner-actions,
.cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.cookie-btn {
    border: 1px solid #ccc;
    padding: 11px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.cookie-btn-primary {
    background: #155eef;
    color: #fff;
    border-color: #155eef;
}

.cookie-btn-primary:hover {
    background: #104bc2;
}

.cookie-btn-secondary {
    background: #f2f2f2;
    color: #222;
}

.cookie-btn-outline {
    background: #fff;
    color: #222;
}

.cookie-policy-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: #155eef;
}

/* Preferences Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cookie-modal.is-visible {
    display: flex;
}

.cookie-modal-content {
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #222;
    border-radius: 12px;
    padding: 25px;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category strong {
    font-size: 15px;
}

.cookie-category p {
    margin: 5px 0 0;
    font-size: 13px;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 25px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-toggle-slider:before {
    content: "";
    position: absolute;
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: #155eef;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(21px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    background: #155eef;
    cursor: not-allowed;
}

/* Reopen Settings Button */
.cookie-settings-button {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 99990;
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    display: none;
}

.cookie-settings-button.is-visible {
    display: block;
}

/* Mobile */
@media (max-width: 576px) {
    .cookie-banner {
        left: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 18px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-modal-content {
        padding: 20px;
    }
}