/* === RKN Cookie Banner === */

.rknw-banner {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.rknw-banner.rknw-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.rknw-banner.rknw-bottom-left {
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    border-radius: 12px;
}

.rknw-banner.rknw-bottom-right {
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    border-radius: 12px;
}

.rknw-banner.rknw-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* === Темы === */
.rknw-dark {
    background: #1a1a2e;
    color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.rknw-light {
    background: #ffffff;
    color: #333333;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: 1px solid #e0e0e0;
}

.rknw-minimal {
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rknw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.rknw-content {
    flex: 1;
    min-width: 250px;
}

.rknw-text {
    margin: 0;
    font-size: 14px;
}

.rknw-text a {
    color: #4da6ff;
    text-decoration: underline;
}

.rknw-light .rknw-text a {
    color: #0066cc;
}

.rknw-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.rknw-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.4;
}

.rknw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

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

.rknw-btn-accept {
    background: #4CAF50;
    color: white;
}

.rknw-btn-accept:hover {
    background: #45a049;
}

.rknw-btn-necessary {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    opacity: 0.7;
}

.rknw-btn-necessary:hover {
    opacity: 1;
}

.rknw-btn-settings {
    background: #2196F3;
    color: white;
}

.rknw-btn-settings:hover {
    background: #1976D2;
}

/* === Панель настроек === */
.rknw-settings-panel {
    width: 100%;
    margin-top: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.rknw-light .rknw-settings-panel {
    background: #f5f5f5;
    border-color: #ddd;
}

.rknw-category {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
}

.rknw-light .rknw-category {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

.rknw-category-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.rknw-category-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.rknw-category-label input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rknw-category-title {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.rknw-category-desc {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

.rknw-btn-save {
    background: #FF9800;
    color: white;
    margin-top: 10px;
}

.rknw-btn-save:hover {
    background: #F57C00;
}

/* === Анимации === */
@keyframes rknw-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.rknw-banner.rknw-bottom {
    animation: rknw-slide-up 0.4s ease-out;
}

/* === Адаптив === */
@media (max-width: 768px) {
    .rknw-container {
        flex-direction: column;
        text-align: center;
    }

    .rknw-buttons {
        justify-content: center;
        width: 100%;
    }

    .rknw-banner.rknw-bottom-left,
    .rknw-banner.rknw-bottom-right {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .rknw-category-label {
        flex-direction: column;
        text-align: left;
    }

    .rknw-btn {
        width: 100%;
        justify-content: center;
    }
}

/* === Скрытие баннера === */
.rknw-banner.rknw-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}
