/* =========================================================
   VoiceAIAgent — Cookie Consent
   ========================================================= */

.cookie-consent {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 999999;
    display: none;
    justify-content: center;
    pointer-events: none;
    font-family: "Inter", "Manrope", Arial, sans-serif;
}

.cookie-consent.show {
    display: flex;
}

.cookie-consent__box {
    width: min(1080px, 100%);
    pointer-events: auto;
    position: relative;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 0%, rgba(214, 37, 100, 0.18), transparent 35%),
        radial-gradient(circle at 0% 100%, rgba(125, 75, 255, 0.14), transparent 35%),
        rgba(13, 13, 18, 0.96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.025);
    color: #fff;
    overflow: hidden;
}

.cookie-consent__box::before {
    content: "";
    position: absolute;
    top: -80px;
    right: 15%;
    width: 180px;
    height: 180px;
    background: rgba(214, 37, 100, 0.12);
    filter: blur(70px);
    pointer-events: none;
}

.cookie-consent__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-consent__icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(214, 37, 100, 0.22),
        rgba(125, 75, 255, 0.2)
    );
    border: 1px solid rgba(214, 37, 100, 0.3);
    color: #fff;
    font-size: 25px;
}

.cookie-consent__text {
    flex: 1;
}

.cookie-consent__title {
    margin: 0 0 7px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cookie-consent__description {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.65;
}

.cookie-consent__description a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.cookie-consent__btn {
    border: 0;
    outline: none;
    cursor: pointer;
    min-height: 43px;
    padding: 0 17px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn:active {
    transform: translateY(0);
}

.cookie-consent__btn--accept {
    color: #fff;
    background: linear-gradient(135deg, #d62564, #b91f58);
    box-shadow: 0 8px 25px rgba(214, 37, 100, 0.25);
}

.cookie-consent__btn--accept:hover {
    opacity: 0.92;
}

.cookie-consent__btn--reject {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent__btn--settings {
    color: rgba(255, 255, 255, 0.65);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent__btn--settings:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}


/* =========================================================
   Settings Modal
   ========================================================= */

.cookie-settings {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.cookie-settings.show {
    display: flex;
}

.cookie-settings__box {
    width: min(560px, 100%);
    max-height: min(700px, 90vh);
    overflow-y: auto;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(circle at 100% 0%, rgba(214, 37, 100, 0.14), transparent 35%),
        #111116;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.cookie-settings__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.cookie-settings__title {
    margin: 0 0 7px;
    font-size: 23px;
    line-height: 1.25;
}

.cookie-settings__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.6;
}

.cookie-settings__close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

.cookie-settings__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-settings__item-info {
    flex: 1;
}

.cookie-settings__item-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
}

.cookie-settings__item-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.55;
}

.cookie-settings__required {
    color: #d62564;
    font-size: 11px;
    font-weight: 700;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 27px;
    flex-shrink: 0;
}

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

.cookie-toggle__slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.14);
    transition: 0.25s ease;
}

.cookie-toggle__slider::before {
    content: "";
    position: absolute;
    width: 21px;
    height: 21px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    transition: 0.25s ease;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: #d62564;
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
    transform: translateX(21px);
}

.cookie-settings__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
}

.cookie-settings__save {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #d62564, #b91f58);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   Small Cookie Button
   Appears after consent if user wants to reopen settings
   ========================================================= */

.cookie-preferences-button {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999990;
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(15, 15, 20, 0.9);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-size: 18px;
    backdrop-filter: blur(12px);
}

.cookie-preferences-button.show {
    display: flex;
}

.cookie-preferences-button:hover {
    transform: translateY(-2px);
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 760px) {

    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-consent__box {
        padding: 18px;
        border-radius: 19px;
    }

    .cookie-consent__content {
        display: block;
    }

    .cookie-consent__icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        margin-bottom: 14px;
        font-size: 20px;
    }

    .cookie-consent__title {
        font-size: 16px;
    }

    .cookie-consent__description {
        font-size: 12px;
    }

    .cookie-consent__actions {
        margin-top: 17px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent__btn {
        width: 100%;
        padding: 0 10px;
        font-size: 12px;
    }

    .cookie-consent__btn--settings {
        grid-column: 1 / -1;
    }

    .cookie-settings {
        padding: 12px;
    }

    .cookie-settings__box {
        padding: 21px;
        border-radius: 20px;
    }

    .cookie-settings__title {
        font-size: 20px;
    }

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

    .cookie-settings__save {
        width: 100%;
    }

}