/* Cookie Dialog Styles */
.CookieDialog {
    position: fixed;
    bottom: 16px;
    left: 16px;
    background: white;
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-width: 530px;
    margin: 0 auto;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.CookieDialog.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: auto;
}

.cookie-text {
    flex: 1;
    margin: 0;
}

.cookie-text p {
    margin: 0;
    color: var(--dark);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 400;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-accept-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-accept-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ТОЛЬКО для очень узких экранов - вертикальная компоновка */
@media (max-width: 400px) {
    .CookieDialog {
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
        padding: 12px 14px;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .cookie-accept-btn {
        align-self: stretch;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .cookie-text p {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* Для сверх-узких экранов */
@media (max-width: 320px) {
    .CookieDialog {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 10px 12px;
    }
    
    .cookie-text p {
        font-size: 10px;
    }
    
    .cookie-accept-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* Обеспечиваем читаемость минимального шрифта */
@media (max-width: 360px) {
    .cookie-text p {
        font-size: 9px;
        letter-spacing: 0.02em;
    }
}