/* Cookie Consent Styles - All classes prefixed with 'cc-' to avoid conflicts */

/* Overlay */
.cc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    animation: ccFadeIn 0.3s;
}

.cc-overlay.cc-show {
    display: block;
}

/* Banner */
.cc-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: ccSlideUp 0.4s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.cc-banner.cc-show {
    display: block;
}

.cc-content {
    padding: 24px;
}

/* Header */
.cc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cc-icon {
    font-size: 28px;
    line-height: 1;
}

.cc-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Text */
.cc-text {
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 14px;
}

.cc-link {
    color: #667eea;
    text-decoration: none;
}

.cc-link:hover {
    text-decoration: underline;
}

/* Categories */
.cc-categories {
    margin: 20px 0;
}

.cc-category {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cc-category-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.cc-category-required {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

.cc-category-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Toggle Switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

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

.cc-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cc-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cc-toggle input:checked + .cc-toggle-slider {
    background-color: #667eea;
}

.cc-toggle input:checked + .cc-toggle-slider:before {
    transform: translateX(24px);
}

.cc-toggle input:disabled + .cc-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Customize Panel */
.cc-customize-panel {
    display: none;
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.cc-customize-panel.cc-show {
    display: block;
}

/* Actions */
.cc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.cc-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    font-family: inherit;
}

.cc-btn-primary {
    background: #667eea;
    color: white;
}

.cc-btn-primary:hover {
    background: #5568d3;
}

.cc-btn-secondary {
    background: #6c757d;
    color: white;
}

.cc-btn-secondary:hover {
    background: #5a6268;
}

/* Animations */
@keyframes ccFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ccSlideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .cc-banner {
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .cc-actions {
        flex-direction: column;
    }
    
    .cc-btn {
        width: 100%;
    }
}
