.hidden {
  display: none;
}

.visible {
  display: block;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99998;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    color: black;
    padding: 25px;
    z-index: 99999;
    box-shadow:
       0px 0px 20px 0px rgba(192, 201, 226, 0.4);
    backdrop-filter: blur(8px);
}

.cookie-banner__content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cookie-banner__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.cookie-banner__text {
    font-size: 14px;
    line-height: 1.6;
    color: black;
}

.cookie-banner__text strong {
    display: block;
    margin-bottom: 6px;
    color: black;
    font-size: 15px;
    font-weight: 700;
}

.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    padding-top: 12px;

    border-top: 1px solid rgba(0,0,0,0.08);
}

.cookie-option:first-child {
    border-top: 0;
    padding-top: 0;
}

.cookie-option__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: black;
}

.cookie-option__desc {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.cookie-banner__buttons {
    display: flex;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    min-width: 140px;
}

.cookie-btn--primary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-btn--primary:hover {
    background: #e5e7eb;
    color: #111827;
    border: 1px solid #cbd5e1;
}

/* SWITCH */

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    min-width: 42px;
    height: 24px;
}

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

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;

    background: #d1d5db;

    transition: .25s ease;

    border-radius: 50px;
}

.slider:before {
    position: absolute;
    content: "";

    height: 18px;
    width: 18px;

    left: 3px;
    bottom: 3px;

    background: white;

    transition: .25s ease;

    border-radius: 50%;

    box-shadow:
        0 1px 4px rgba(0,0,0,.2);
}

.switch input:checked + .slider {
    background: rgb(0, 174, 239);
}

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

.switch input:disabled + .slider {
    opacity: .7;
    cursor: not-allowed;
}

.cookie-toggle {
    position: fixed;
    left: 20px;
    bottom: 20px;

    width: 48px;
    height: 48px;

    border-radius: 50%;
    border: 0;

    background: rgb(0, 174, 239);
    color: white;

    font-size: 24px;
    cursor: pointer;

    z-index: 99999;

    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.cookie-toggle:hover {
    transform: scale(1.05);
}

.cookie-banner__close {
    position: absolute;
    top: 15px;
    right: 15px;

    border: 0;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
    color: #666;
}

.cookie-banner__close:hover {
    color: #000;
}

@media (max-width: 768px) {

    .cookie-banner {
        padding: 20px;
    }

    .cookie-banner__content {
        gap: 20px;
    }

    .cookie-btn {
        width: 100%;
    }
}