:root {
    --cookie-WrpBgCOlor: rgba(0,0,0,.3);
    --cookie-bgColor: #ffff;
    --cookie-Color: #1F1F1F;
    --cookie-PrimaryColor: #0059B2;
    --cookie-White: #ffff;
    --cookie-SecondaryColor: #003366
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-color: var(--cookie-WrpBgCOlor);
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    z-index: 99999
}

.cookie-banner * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

@media(max-width: 840px) {
    .cookie-banner {
        padding:20px
    }
}

.cookie-banner__main {
    -webkit-transition: max-height .3s ease,opacity .3s ease;
    transition: max-height .3s ease,opacity .3s ease;
    overflow: hidden;
    max-height: -webkit-fit-content;
    max-height: -moz-fit-content;
    max-height: fit-content;
    opacity: 1
}

@media(max-width: 840px) {
    .cookie-banner__main {
        max-height:200px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #0059b2 rgba(0,0,0,0);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 10px
    }

    .cookie-banner__main::-webkit-scrollbar {
        width: 6px;
        height: 6px
    }

    .cookie-banner__main::-webkit-scrollbar-thumb {
        background-color: #0059b2;
        border-radius: 10px
    }

    .cookie-banner__main::-webkit-scrollbar-track {
        background: rgba(0,0,0,0)
    }

    .cookie-banner__main::-webkit-scrollbar-button {
        display: none
    }
}

.cookie-banner__main--hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none
}

.cookie-banner__wrp {
    background-color: var(--cookie-bgColor);
    color: var(--cookie-Color);
    max-width: 830px;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: left
}

@media(max-width: 840px) {
    .cookie-banner__wrp {
        padding:20px 14px
    }
}

@media(max-width: 400px) {
    .cookie-banner__wrp {
        text-align:left
    }
}

.cookie-banner h2 {
    font-size: 20px !important;
    line-height: 24px;
    font-weight: bold;
    margin: 0 0 20px 0
}

@media(max-width: 840px) {
    .cookie-banner h2 {
        margin:0 0 15px 0
    }
}

@media(max-width: 400px) {
    .cookie-banner h2 {
        font-size:16px !important;
        line-height: 20px;
        margin-bottom: 15px
    }
}

.cookie-banner p {
    margin-top: 0;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px
}

.cookie-banner__btn {
    background-color: var(--cookie-PrimaryColor);
    border: solid 1px var(--cookie-PrimaryColor);
    padding: 14px 0;
    width: 100%;
    max-width: 292px;
    color: var(--cookie-White);
    font-size: 20px;
    line-height: 20px;
    border-radius: 10px;
    -webkit-transition: .3s all ease;
    transition: .3s all ease;
    cursor: pointer
}

@media(max-width: 400px) {
    .cookie-banner__btn {
        max-width:none;
        font-size: 16px;
        line-height: 16px;
        padding: 10px
    }
}

.cookie-banner__btn:hover {
    background-color: rgba(0,0,0,0);
    border: solid 1px var(--cookie-PrimaryColor);
    color: var(--cookie-PrimaryColor)
}

.cookie-banner__btn--secondary {
    background-color: rgba(0,0,0,0);
    border: solid 1px var(--cookie-SecondaryColor);
    color: var(--cookie-SecondaryColor)
}

.cookie-banner__btn--secondary:hover {
    background-color: var(--cookie-SecondaryColor);
    color: var(--cookie-White)
}

.cookie-banner__footer {
    padding: 0 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 16px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-top: 30px
}

@media(max-width: 840px) {
    .cookie-banner__footer {
        -webkit-box-orient:vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        gap: 8px;
        margin-top: 15px
    }
}
