﻿
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background-color: rgb(14 64 87 / 94%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    border-top: solid 1px #2a708b;
}

#cookie-consent.visible {
    display: flex;
    animation: slideUp 0.3s ease-out;
    justify-content: center;
}



    #cookie-consent:not(.visible) {
        display: none; /* ← this is the missing rule! */
    }

@keyframes slideUp {
    from {
        bottom: -100%;
    }

    to {
        bottom: 0;
    }
}

#cookie-settings {
    display: none;
    margin-top: 15px;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
}

    .cookie-header h3 {
        margin: 0;
        /*font-size: 1.2rem;*/
        /*color: #333;*/
    }

.close-btn {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: #fff;
    padding: 0;
    line-height: 1;
}

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    
    border: solid 1px #2a708b;
    color: white !important;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    margin: 0 5px; /* Adjust margins if needed */
    cursor: pointer;
}

.accept-btn {
    background: #277f2a;
    color: white;
}

    .accept-btn:hover {
        background: #106d14;
    }

.settings-btn {
    background-color: #245d73;
    color: #333;
}

    .settings-btn:hover {
        background: #184a5d;
    }

.save-btn {
    background-color: #245d73;
    border: solid 1px #2a708b;
    color: white !important;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    margin: 0 5px; /* Adjust margins if needed */
    cursor: pointer;
}

    .save-btn:hover {
        background: #184a5d;
    }

.cookie-category {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1c5773;
}

    .cookie-category:last-child {
        border-bottom: none;
    }

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .category-header h5 {
        margin: 0 0 5px 0;
        font-size: 16px;
        color: #20c7d1;
    }

.always-active {
    color: #fff;
    /* font-style: italic; */
    font-size: 13px;
    font-weight: normal;
}

.category-description {
    /*color: #666;
    font-size: 0.9rem;*/
    margin: 5px 0 0 0;
    font-size: 13px;
}

/* Toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #215569;
    transition: .4s;
    border-radius: 24px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #1aacb4;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }



/* Style for disabled toggle switch */
input[type="checkbox"]:disabled + .slider {
    background-color: #1aacb4 !important;
   /* opacity: 0.7;*/
    cursor: not-allowed;
}

    input[type="checkbox"]:disabled + .slider:before {
        background-color: #f1f1f1;
    }