:root {
    --cookie-modal-sc: rgba(0, 0, 0, 0.2);
    --cookie-modal-tc: rgb(20, 20, 20);
    --cookie-slider-circle-bg: #FFF;
    --cookie-slider-bg: #141414;
    --cookie-slider-checked-bg: #009C86;
    --cookie-slider-checked-disabled-bg: #d6d6d6;
    --cookie-slider-hover-bg: #232323;
    --cookie-slider-checked-hover-bg: #05917d;
    --cookie-link: #05917d;
}

:root[data-bs-theme="dark"] {
    --cookie-modal-tc: #FFF;
}

#cookieConsentDialog .modal-content {
    box-shadow: 0 5px 10px var(--cookie-modal-sc);
    color: var(--cookie-modal-tc);
    font-size: 1.025rem;
}

#cookieConsentDialog .cookie-setting {
    padding: 0 1rem;
}

#cookieConsentDialog .cookie-setting-item {
    padding-left: 1rem;
}

#cookieConsentDialog .cookie-setting-item label {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    line-height: 1.5em;
    user-select: none;
}

#cookieConsentDialog .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

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

#cookieConsentDialog .checkboxSlider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--cookie-slider-bg);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

#cookieConsentDialog .checkboxSlider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--cookie-slider-circle-bg);
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

#cookieConsentDialog input:checked + .checkboxSlider {
    background-color: var(--cookie-slider-checked-bg);
}

#cookieConsentDialog input:checked:disabled + .checkboxSlider {
    background-color: var(--cookie-slider-checked-disabled-bg);
}

#cookieConsentDialog input:not(:disabled) + .checkboxSlider:hover {
    background-color: var(--cookie-slider-hover-bg);
}

#cookieConsentDialog input:checked:not(:disabled) + .checkboxSlider:hover {
    background-color: var(--cookie-slider-checked-hover-bg);
}

#cookieConsentDialog input:checked + .checkboxSlider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

#cookieConsentDialog .checkboxSlider.round {
    border-radius: 34px;
}

#cookieConsentDialog .checkboxSlider.round:before {
    border-radius: 50%;
}

#cookieConsentDialog .btn {
    border-radius: 0 !important;
    padding: 1rem 2rem;
    font-weight: 900;
}

#cookieConsentDialog .btn#coookieDialog_save_button {
    background-color: transparent;
    color: var(--cookie-modal-tc);
}

#cookieConsentDialog .btn#coookieDialog_save_button:hover {
    border-color: var(--btn-main-hover-bg);
}

#cookieConsentDialog a {
    color: var(--cookie-link);
}
