/* Основные стили баннера */
.scc-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999999;
    max-width: 380px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
    animation: scc-slide-in 0.3s ease-out;
    border: 1px solid #e0e0e0;
}

@keyframes scc-slide-in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.scc-banner-content {
    color: #333333;
}

.scc-banner-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
}

.scc-banner-text {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #555555;
}

.scc-banner-text:last-of-type {
    margin-bottom: 24px;
}

/* Кнопки - наследуют стили темы */
.scc-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.scc-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    /* Наследование стилей темы */
    font-family: inherit;
}

/* Кнопка "Принять все" */
.scc-button-accept {
    background-color: var(--button-background, #4CAF50);
    color: var(--button-color, #ffffff);
    border: 1px solid var(--button-border, #4CAF50);
}

.scc-button-accept:hover {
    background-color: var(--button-hover-background, #45a049);
    color: var(--button-hover-color, #ffffff);
    transform: translateY(-1px);
}

/* Кнопка "Отклонить все" */
.scc-button-reject {
    background-color: var(--button-secondary-background, #f5f5f5);
    color: var(--button-secondary-color, #333333);
    border: 1px solid var(--button-secondary-border, #ddd);
}

.scc-button-reject:hover {
    background-color: var(--button-secondary-hover-background, #e0e0e0);
    color: var(--button-secondary-hover-color, #000000);
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .scc-cookie-banner {
        max-width: calc(100% - 40px);
        bottom: 10px;
        left: 10px;
        right: 10px;
        margin: 0 auto;
    }
    
    .scc-banner-buttons {
        flex-direction: column;
    }
    
    .scc-button {
        width: 100%;
    }
}

/* Анимация закрытия */
.scc-cookie-banner.hiding {
    animation: scc-slide-out 0.3s ease-in forwards;
}

@keyframes scc-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}