/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    z-index: 10000;
    transform: translateY(100%);
    opacity: 0;
    animation: slideInUp 0.3s ease-out forwards;
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__info {
    flex: 1;
    min-width: 300px;
}

.cookie-banner__title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.cookie-banner__text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.cookie-banner__text a {
    color: #4a9eff;
    text-decoration: none;
}

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

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-banner__button {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    white-space: nowrap;
}

.button--primary {
    background: #4a9eff;
    color: #ffffff;
}

.button--primary:hover {
    background: #3388ee;
}

.button--secondary {
    background: #333;
    color: #ffffff;
    border: 1px solid #555;
}

.button--secondary:hover {
    background: #444;
}

.button--outline {
    background: transparent;
    color: #4a9eff;
    border: 1px solid #4a9eff;
}

.button--outline:hover {
    background: #4a9eff;
    color: #ffffff;
}

/* Cookie Settings Panel - Минималистичный дизайн */
.cookie-settings-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-height: 60vh;
    overflow-y: auto;
}

.cookie-settings-panel.active {
    transform: translateY(-100%);
    opacity: 1;
    visibility: visible;
}

.cookie-settings-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #dee2e6;
    background: #ffffff;
}

.cookie-settings-panel__title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.cookie-settings-panel__close {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    border-radius: 2px;
}

.cookie-settings-panel__close:hover {
    background: #e9ecef;
    color: #495057;
}

.cookie-settings-panel__close svg {
    fill: currentColor;
}

.cookie-settings-panel__content {
    padding: 20px;
}

.cookie-settings-panel__description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 20px 0;
}

.cookie-category {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
}

.cookie-category:hover {
    border-color: #ced4da;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.cookie-category__main {
    flex: 1;
}

.cookie-category__title {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.cookie-category__status {
    color: #6c757d;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 2px;
    display: inline-block;
}

.cookie-category__count {
    color: #6c757d;
    font-size: 12px;
    display: block;
}

.cookie-category__description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Минималистичный Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    cursor: pointer;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ced4da;
    transition: background 0.2s ease;
    border-radius: 20px;
}

.cookie-toggle__slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    top: 2px;
    background: #ffffff;
    transition: transform 0.2s ease;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
    background: #4a9eff;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
    background: #4a9eff;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input:disabled + .cookie-toggle__slider:before {
    transform: translateX(20px);
}

.cookie-settings-panel__actions {
    padding: 12px 20px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: #ffffff;
}

.cookie-settings-panel__actions .button--primary,
.cookie-settings-panel__actions .button--secondary {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 80px;
    border-radius: 3px;
}

.cookie-settings-panel__actions .button--primary {
    background: #4a9eff;
    color: #ffffff;
    border: none;
}

.cookie-settings-panel__actions .button--primary:hover {
    background: #3388ee;
}

.cookie-settings-panel__actions .button--secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cookie-settings-panel__actions .button--secondary:hover {
    background: #e9ecef;
    color: #495057;
}

/* Cookie Settings Modal (сохраняем для совместимости) */
.cookie-settings {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings__title {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.cookie-settings__description {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.cookie-settings .cookie-category {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.cookie-settings .cookie-category__header {
    margin-bottom: 12px;
}

.cookie-settings .cookie-category__label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.cookie-settings .cookie-category__title {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
}

.cookie-settings .cookie-category__status {
    color: #6c757d;
    font-size: 12px;
    margin-left: auto;
}

.cookie-settings .cookie-category__description {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.cookie-settings__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-banner__button {
        flex: 1;
        min-width: auto;
    }
    
    .cookie-settings-panel__header {
        padding: 16px;
    }
    
    .cookie-settings-panel__content {
        padding: 16px;
    }
    
    .cookie-category {
        padding: 12px;
    }
    
    .cookie-category__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
    
    .cookie-settings-panel__actions {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .cookie-banner__title {
        font-size: 16px;
    }
    
    .cookie-banner__button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .cookie-settings-panel {
        max-height: 50vh;
    }
} 