.cookie-consent[hidden],
.cookie-consent [hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 22px;
}

.cookie-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 18, 32, 0.48);
}

.cookie-consent__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 44px);
    padding: 27px 30px 24px;
    overflow-y: auto;
    border: 1px solid rgba(109, 76, 160, 0.24);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 60px rgba(27, 17, 43, 0.28);
    color: #4f4658;
}

.cookie-consent__brand {
    margin-bottom: 5px;
    color: #6d4ca0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.cookie-consent__dialog h2 {
    margin: 0 38px 12px 0;
    color: #34234f;
    font-size: 25px;
    line-height: 1.3;
}

.cookie-consent__dialog > p {
    margin: 0 0 11px;
    font-size: 15px;
    line-height: 1.65;
}

.cookie-consent__close {
    position: absolute;
    top: 14px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #ded7e8;
    border-radius: 50%;
    background: #ffffff;
    color: #49385f;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent__close:hover,
.cookie-consent__close:focus {
    border-color: #6d4ca0;
    background: #f8f4fc;
}

.cookie-consent__assurance {
    color: #5e4b75;
    font-size: 13px !important;
    font-weight: 600;
}

.cookie-consent__assurance span {
    color: #6d4ca0;
}

.cookie-consent__details {
    margin: 20px 0 4px;
    border-top: 1px solid #ece7f1;
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 17px 0;
    border-bottom: 1px solid #ece7f1;
}

.cookie-consent__category strong {
    display: block;
    margin-bottom: 5px;
    color: #3e2d54;
    font-size: 15px;
}

.cookie-consent__category p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.cookie-consent__switch {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 26px;
    margin: 0;
}

.cookie-consent__switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.cookie-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #c8c0d0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cookie-consent__switch span::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
    content: "";
    transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + span {
    background: #6d4ca0;
}

.cookie-consent__switch input:checked + span::after {
    transform: translateX(22px);
}

.cookie-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(109, 76, 160, 0.28);
    outline-offset: 3px;
}

.cookie-consent__switch--locked span {
    cursor: default;
    opacity: 0.72;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 21px;
}

.cookie-consent__choice,
.cookie-consent__customize {
    min-height: 44px;
    padding: 11px 15px;
    border-radius: 5px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cookie-consent__choice {
    border: 1px solid #6d4ca0;
    background: #6d4ca0;
    color: #ffffff;
}

.cookie-consent__choice:hover,
.cookie-consent__choice:focus {
    border-color: #563781;
    background: #563781;
    color: #ffffff;
}

.cookie-consent__customize {
    grid-column: 1 / -1;
    border: 1px solid #d9d1e2;
    background: #ffffff;
    color: #49385f;
}

.cookie-consent__customize:hover,
.cookie-consent__customize:focus {
    border-color: #6d4ca0;
    background: #f8f4fc;
}

.cookie-consent__choice:focus-visible,
.cookie-consent__customize:focus-visible,
.cookie-consent__close:focus-visible {
    outline: 3px solid rgba(109, 76, 160, 0.28);
    outline-offset: 2px;
}

.cookie-consent__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 17px;
    font-size: 13px;
}

.cookie-consent__links a {
    color: #5f4088;
    text-decoration: underline;
}

.cookie-settings-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus {
    color: #ffffff;
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 0;
    }

    .cookie-consent__dialog {
        width: 100%;
        max-height: 92vh;
        padding: 24px 19px 20px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 13px 13px 0 0;
    }

    .cookie-consent__dialog h2 {
        font-size: 22px;
    }

    .cookie-consent__actions {
        grid-template-columns: 1fr;
    }

    .cookie-consent__customize {
        grid-column: auto;
    }

    .cookie-consent__category {
        gap: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__switch span,
    .cookie-consent__switch span::after {
        transition: none;
    }
}
