#cookie-container {
    position: fixed;
    left: 50%;
    top: 50vh;
    transform: translate(-50%, -50%);
    z-index: 100;
    display: grid;
    max-width: 40vw;
    overflow-x: hidden;
    grid-template-columns:40vw 40vw;
    border-radius: 7px;
    box-shadow: 0 0 5px 7px rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .4s;
    scroll-behavior: smooth;
}

#cookie-container.active {
    opacity: 1;
}

.cookie-card {
    max-width: 40vw;
    padding: 1.2rem;
    background-color: #fff;
    text-align: center;
    box-shadow: 1px 3px 5px 1px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.cookie-card h3 {
    font-size: 21px;
    padding: 20px;
}

.cookie-card p {
    font-size: .8rem;
    text-align: justify;
    color: rgba(0, 0, 0, .8);
    padding-bottom: 20px;
    max-height: 35vh;
    overflow-y: auto;
    padding: .4rem;
}

.cookie-card p::-webkit-scrollbar {
    width: .6em;
}

.cookie-card p::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, .2);
    border-radius: 5px;
}

.cookie-card p::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .1);
    border-radius: 5px;
}

.cookie-card label {
    margin-bottom: .5rem;
}

.cookie-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.cookie-content > span {
    text-align: right;
    margin-right: 1em;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cookie-setting .cookie-header {
    display: flex;
    align-items: center;
}

.cookie-setting .cookie-contents {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;
}

.cookie-switch .cookie-contents .cookie-content {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.cookie-content span {
    font-size: 14px;
    /*   margin-right:10px; */
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

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

.cookie-rounded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 50px;
    transition: .2s ease-in-out;
}

.cookie-rounded::before {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    /*   margin:3px; */
    background-color: #fff;
    border-radius: 50%;
    left: 3px;
    bottom: 2.2px;
    transition: inherit;
}

#cookie-settings-back {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.cookie-switch input:checked+.cookie-rounded {
    background-color: #2196F3;
}

.cookie-switch input:focus+.rounded {
    box-shadow: 0 0 1px #2196F3;
}

.cookie-switch input:checked+.cookie-rounded:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.cookie-setting .cookie-actions {
    margin-top: 20px;
    padding-top: 10px;
    padding-right: 20px;
    background: #FAFBFB;
    display: flex;
    justify-content: flex-end;
}

@media screen and (max-width: 768px) {
    #cookie-container {
        max-width: 90vw;
        grid-template-columns: 90vw 90vw;
    }
    .cookie-card {
        max-width: 90vw;
    }
    .cookie-buttons {
        gap: 5px;
    }
}