.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    background: #ffffff;
    color: #24344d;
    padding: 15px 18px;
    border-radius: 10px;
    box-shadow: 0 15px 45px rgba(0,0,0,.22);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid #e7ebf0;
}

.cookie-banner__text {
    max-width: 760px;
}

.cookie-banner__text b {
    font-size: 18px;
    font-weight: 800;
}

.cookie-banner__text p {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 20px;
}

.cookie-banner__text a{
    color: #1b2f45;
    text-decoration: underline;
}
.cookie-banner__text a:hover{
    color: #243b55;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cookie-modal__box {
    background: #ffffff;
    color: #24344d;
    max-width: 860px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

.cookie-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 10px 28px;
}

.cookie-modal__header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.cookie-modal__close {
    border: none;
    background: #eef2f6;
    color: #24344d;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    font-size: 26px;
    line-height: 36px;
    cursor: pointer;
}

.cookie-modal__intro {
    margin: 0;
    padding: 5px 28px 10px 28px;
    font-size: 15px;
    line-height: 22px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    background: #f4f7fa;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 14px 28px;
}

.cookie-option__content b {
    font-size: 16px;
    font-weight: 800;
}

.cookie-option__content p {
    margin: 8px 0 10px 0;
    font-size: 14px;
    line-height: 21px;
}

.cookie-option__content ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 21px;
}

.cookie-switch {
    position: relative;
    width: 54px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch span {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5df;
    transition: .25s;
    border-radius: 999px;
}

.cookie-switch span:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.cookie-switch input:checked + span {
    background-color: #1faf4b;
}

.cookie-switch input:checked + span:before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + span {
    opacity: .55;
    cursor: not-allowed;
}

.cookie-modal__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 20px 28px 26px 28px;
}

.cookie-btn-primary {
    background: #1b2f45;
    border: 1px solid #1b2f45;
    color: #fff;
    font-weight: 800;
    padding: 11px 24px;
    border-radius: 7px;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
    background: #243b55;
    border-color: #243b55;
    color: #fff;
}

.cookie-btn-secondary {
    background: #eef2f6;
    border: 1px solid #eef2f6;
    color: #243b55;
    font-weight: 800;
    padding: 11px 22px;
    border-radius: 7px;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
    background: #e1e8ef;
    border-color: #e1e8ef;
    color: #243b55;
}

.cookie-reject-link {
    margin-right: auto;
    color: #5d6b7c;
    font-size: 14px;
    text-decoration: underline;
}

.cookie-reject-link:hover {
    color: #243b55;
}

@media (max-width: 768px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner__actions .btn {
        width: 100%;
    }

    .cookie-modal {
        padding: 15px;
    }

    .cookie-modal__box {
        max-height: 92vh;
    }

    .cookie-modal__header {
        padding: 18px 20px 10px 20px;
    }

    .cookie-modal__intro {
        padding: 8px 20px 8px 20px;
    }

    .cookie-option {
        margin: 12px 20px;
        flex-direction: column;
    }

    .cookie-switch {
        align-self: flex-start;
    }

    .cookie-modal__actions {
        padding: 18px 20px 22px 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-reject-link {
        margin-right: 0;
        text-align: center;
        order: 3;
    }

    .cookie-modal__actions .btn {
        width: 100%;
    }
}