.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-window {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 90%;
    max-width: 700px;
    background: white;
    border-radius: 35px;
    padding: 3px;
    box-shadow: var(--shadow-soft), 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px dashed transparent;
    background: linear-gradient(white, white) padding-box,
    var(--gradient-purple) border-box;
}

.cookie-window.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-content {
    background: linear-gradient(135deg, #fff5e6 0%, #f3e8ff 100%);
    border-radius: 32px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.cookie-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--gradient-sunset);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.cookie-content::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200px;
    height: 200px;
    background: var(--gradient-purple);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}




.cookie-title {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -0.025em;
}

.cookie-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.cookie-text a {
    color: var(--color-purple);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.cookie-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cookie-text a:hover::after {
    transform: scaleX(1);
}

/* Кнопки */
.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cookie-btn {
    flex: 1;
    min-width: 1px;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cookie-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cookie-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cookie-btn-accept {
    background: var(--gradient-purple);
    color: white;
    box-shadow: var(--shadow-glow-purple);
}

.cookie-btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.5);
}



/* Анимация пульсации для иконки */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(251, 146, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
    }
}



/* Мобильная версия */
@media (max-width: 768px) {
    .cookie-window {
        width: 95%;
        bottom: 20px;
    }

    .cookie-content {
        padding: 20px;
    }



    .cookie-icon-wrapper svg {
        width: 35px;
        height: 35px;
    }

    .cookie-title {
        font-size: 24px;
    }

    .cookie-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

@media (max-width: 480px) {
    .cookie-window {
        bottom: 10px;
    }

    .cookie-content {
        padding: 15px;
    }



    .cookie-icon-wrapper svg {
        width: 30px;
        height: 30px;
    }

    .cookie-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .cookie-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}
