﻿/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    background: var(--card-bg);
    color: var(--color-text);
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 12px;
        border-radius: 12px;
    }
    
    .cookie-container {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .cookie-icon {
        flex: 0 0 10%;
        max-width: 10%;
        text-align: center;
        font-size: 22px;
        color: #f1c40f;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5px;
    }
    
    .cookie-text {
        flex: 0 0 60%;
        max-width: 60%;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-size: 12px;
        line-height: 1.3;
        padding: 0 5px;
        word-break: break-word;
    }
    
    .cookie-button-container {
        flex: 0 0 30%;
        max-width: 30%;
        display: flex;
        justify-content: flex-start;
        padding: 0 5px;
    }
    
    .cookie-accept-btn {
        background: #27ae60;
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Segoe UI', Arial, sans-serif;
        white-space: nowrap;
        min-width: 60px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Десктопные устройства */
@media (min-width: 769px) {
    .cookie-banner {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 400px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .cookie-container {
        width: 100%;
        display: flex;
        align-items: center;
        //gap: 12px;
        flex-wrap: nowrap;
    }
    
    .cookie-icon {
        flex: 0 0 20%;
        max-width: 20%;
        text-align: center;
        font-size: 24px;
        color: #f1c40f;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5px;
    }
    
    .cookie-text {
        flex: 0 0 50%;
        max-width: 50%;
        font-family: 'Segoe UI', Arial, sans-serif;
        font-size: 13px;
        line-height: 1.4;
        padding: 0 5px;
        word-break: break-word;
    }
    
    .cookie-button-container {
        flex: 0 0 30%;
        max-width: 30%;
        display: flex;
        justify-content: flex-start;
        padding: 0 5px;
    }
    
    .cookie-accept-btn {
        background: #27ae60;
        color: white;
        border: none;
        padding: 9px 15px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Segoe UI', Arial, sans-serif;
        white-space: nowrap;
        min-width: 70px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Общие стили для кнопки */
.cookie-accept-btn:hover {
    background: #219653;
    transform: translateY(-2px);
}

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

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