/* Стили для плашки с информацией о файлах cookie */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: none !important;
    filter: none !important;
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
  
}

.cookie-title {
    color: var(--color-text-main);
    margin: 0;
}

.cookie-text {
   
    letter-spacing: var(--letter-spacing-minus1);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.cookie-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 150px;
    
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 120px;
}

.cookie-btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: none !important;
    font-size: var(--font-size-14);
}

.cookie-btn-primary:hover {
    background: var(--color-hover-green);
    transform: translateY(-1px);
    box-shadow: none !important;
}

.cookie-btn-secondary,
.cookie-btn-decline {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border-light);
}

.cookie-btn-secondary:hover,
.cookie-btn-decline:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-main);
    border-color: var(--color-border-light);
}

.cookie-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: var(--color-text-secondary);
}

.cookie-close:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-main);
}

.cookie-close::before,
.cookie-close::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.cookie-close::after {
    transform: rotate(-45deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-banner {
        right: 16px;
        left: 16px;
        bottom: 16px;
        max-width: none;
        padding: 1.25rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        margin-top: 1.25rem;
    }
    
    .cookie-btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;

    }
}

@media (max-width: 480px) {
    .cookie-banner {
        right: 12px;
        left: 12px;
        bottom: 12px;
        padding: 1rem;
    }
    
    .cookie-title {
      
    }
    
    .cookie-text {

    }
    
    .cookie-btn {
        min-height: 40px;
     
    }
}

/* Анимация появления */
@keyframes cookieSlideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes cookieSlideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner.slide-in {
    animation: cookieSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cookie-banner.slide-out {
    animation: cookieSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
