﻿.overlay {
    position: fixed;
    background: #000;
    opacity: .3;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 9998
}

.consentmodalcentered {
    position: fixed;
    padding: 20px;
    z-index: 9999;
    bottom: 0;
    text-align: center;
    background-color: white;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 25px;
    padding-bottom: 50px;
    width: 100%;
}

    .consentmodalcentered p {
        line-height: 20px;
        font-size: 1rem;
        margin: .5rem 0;
    }

    .consentmodalcentered container {
        margin-bottom: 20px
    }

    .consentmodalcentered hr {
        color: #9e9e9e;
    }

#cookieconsent {
    font-size: 1rem;
}

.consentmodal p {
    font-size: 16px;
}

.consentmodal .btn {
    font-size: 16px;
}

.consentmodalcentered p {
    font-size: 16px;
}

.consentmodalcentered .btn {
    font-size: 16px;
}

@media (min-width: 992px) {
    .consentmodal p {
        font-size: 1rem;
    }

    .consentmodal .btn {
        font-size: 1rem;
    }

    .consentmodalcentered p {
        font-size: 1rem;
    }

    .consentmodalcentered .btn {
        font-size: 1rem;
    }
}

    .consentmodal {
        box-shadow: 0 0 1rem rgba(0,0,0,.15) !important;
        position: fixed;
        bottom: 0;
        right: 0;
        padding: 0.75rem;
        z-index: 9997;
        width: 100%;
        text-align: center;
        background-color: white;
    }

    .consentmodal__content {
        padding: .75rem;
    }

    .consentmodal__buttons {
        display: flex;
        flex-direction: column;
        justify-content: start;
        gap: 1rem;
    }

        .consentmodal__buttons button {
            box-shadow: 0 .2rem 0.6rem 0.1rem #00000025;
        }

    .consentmodal__slide-button {
        background: none;
        font-size: 2rem;
        border: 0;
    }

    .cookiesbutton {
        width: 320px;
        margin-top: 10px;
        border: none;
    }

        .cookiesbutton.active {
            background-color: #df5346;
            color: white;
        }


    .checkbox-wrapper {
        position: relative;
        width: 60px;
        height: 30px;
        background: #ddd;
        border-radius: 20px;
        display: flex;
        align-items: center;
        padding: 5px;
        cursor: pointer;
        margin: 0;
    }

    .slider {
        position: absolute;
        width: 25px;
        height: 25px;
        background: white;
        border-radius: 50%;
        transition: transform 0.3s ease-in-out;
        left: 3px;
    }

    input[type="checkbox"]:checked + .slider {
        transform: translateX(29px);
    }

    .checkbox-wrapper:has(input:checked) {
        background-color: #df5346; /* Red background when active */
    }

        .checkbox-wrapper:has(input:checked) ~ .inactiveText {
            display: none;
        }

    .checkbox-wrapper:has(input:not(:checked)) ~ .activeText {
        display: none;
    }

    /*if also disabled*/
    .checkbox-wrapper:has(input:checked):has(input:disabled) {
        background-color: #f9ddda
    }

    .checkbox-wrapper input[type="checkbox"] {
        display: none;
    }

    .smallertext {
        font-size: 12px !important;
        font-weight: normal;
        color: rgb(150, 150, 150);
        font-family: sans-serif;
        margin-top: 5px;
    }

    .close-btn {
        position: absolute;
        top: 10px; /* Adjust to align within banner padding */
        right: 10px; /* Adjust to align within banner padding */
        background: rgba(0, 0, 0, 0.05); /* Light grey background */
        border: none;
        width: 35px;
        height: 35px;
        font-size: 20px;
        cursor: pointer;
        border-radius: 5px;
        transition: background 0.2s ease-in-out;
    }

        .close-btn:hover {
            background: rgba(0, 0, 0, 0.15);
        }

    ul {
        /*same as p tag*/
        font-size: 1rem;
        margin-bottom: 1rem;
        color: #969696;
    }

    .cookieconsent__title {
        font-size: 1.2rem;
    }

    .cookie-item {
        display: grid;
        border: 0;
        margin-bottom: .5rem;
        grid-template-columns: 85px auto;
        grid-template-areas:
            "slider title"
            "text text";
    }

    .cookie-item__slider {
        display: flex;
        flex-direction: column;
        align-items: start;
        grid-area: slider;
    }

    .cookie-item__slider-text {
        text-align: start;
    }

    .cookie-item__title {
        grid-area: title;
        padding: .33rem 0;
        margin: 0;
        color: #df5346;
        font-size: 1rem;
    }

    .cookie-item__text {
        grid-area: text;
    }

    .cookie-chevron {
        grid-area: title;
        margin-top: .25rem;
        float: right;
        border: 0;
        background: 0;
        font-size: .8rem
    }

    #PrivacyContainer td {
        color: #969696;
    }

    #PrivacyContainer th {
        color: #969696;
    }

    .cookieconsent__title {
        font-weight: 400;
    }

    @media (min-width: 992px) {
        .consentmodal {
            border-top-left-radius: .5rem;
            width: 60%;
            padding: 3rem;
        }

        .consentmodalcentered {
            top: 50%;
            transform: translateY(-50%);
            bottom: unset;
            width: unset;
        }

        .consentmodal__buttons {
            flex-direction: row;
        }

        .consentmodal__slide-button {
            display: none;
        }

        .cookieconsent__title {
            font-size: 1.8rem;
        }

        .consentmodalcentered {
            margin-left: 80px;
            width: calc(100% - 80px);
            padding-top: 70px;
        }

        .cookie-item {
            margin-bottom: 1.5rem;
            column-gap: 1.5rem;
            grid-template-columns: 85px auto;
            grid-template-areas:
                "slider title"
                "slider text";
        }

        .cookie-item__slider {
            align-items: center;
        }

        .cookie-item__slider-text {
            text-align: center;
        }

        .smallertext {
            font-size: 14px !important;
        }

        .cookie-item__text {
            display: block !important;
        }

        .consentmodalcentered p {
            line-height: 20px;
            font-size: 1rem;
            margin-bottom: .15rem;
            margin-top: 0;
        }
    }

    .d-contents {
        display: contents;
    }