/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex: 1;
}

.cookie-banner-icon {
    color: #2196F3;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-banner-message h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.cookie-banner-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    min-width: auto;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #2196F3;
    color: white;
}

.cookie-btn-primary:hover {
    background: #1976D2;
}

.cookie-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.cookie-btn-secondary:hover {
    background: #e0e0e0;
}

.cookie-btn-tertiary {
    background: transparent;
    color: #666;
    text-decoration: underline;
}

.cookie-btn-tertiary:hover {
    color: #333;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cookie-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 24px 24px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 16px;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.cookie-modal-close {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-description {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-category {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}

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

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-category-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-category-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.cookie-category-status.required {
    background: #e8f5e8;
    color: #2e7d32;
}

.cookie-category-status.optional {
    background: #f3f4f6;
    color: #6b7280;
}

.cookie-category-description {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* Toggle Switch Styles */
.cookie-toggle {
    position: relative;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.toggle-label {
    display: block;
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.toggle-label::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label {
    background: #2196F3;
}

.cookie-toggle input[type="checkbox"]:checked + .toggle-label::after {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .toggle-label {
    background: #2196F3;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 16px 24px 24px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-links {
    display: flex;
    gap: 16px;
}

.cookie-link {
    font-size: 13px;
    color: #2196F3;
    text-decoration: none;
}

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

.cookie-modal-actions {
    display: flex;
    gap: 12px;
}

/* Floating Cookie Settings Button */
.cookie-settings-floating {
    display: none !important; /* Hide the floating button for better UX */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

/* Footer Cookie Settings Link */
#footer-cookie-settings {
    color: rgba(255,255,255,.7) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-bottom: 1px dotted rgba(255,255,255,.3) !important;
    padding-bottom: 2px !important;
    transition: all 0.3s ease !important;
}

#footer-cookie-settings:hover {
    color: rgba(255,255,255,.9) !important;
    border-bottom-color: rgba(255,255,255,.6) !important;
    transform: translateY(-1px) !important;
}

#footer-cookie-settings svg {
    margin-right: 6px !important;
    vertical-align: middle !important;
    transition: transform 0.3s ease !important;
}

#footer-cookie-settings:hover svg {
    transform: rotate(45deg) !important;
}

.cookie-settings-floating:hover {
    background: #1976D2;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-content {
        max-height: 95vh;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .cookie-modal-actions {
        width: 100%;
    }
    
    .cookie-modal-actions .cookie-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 16px;
    }
    
    .cookie-banner-text {
        gap: 12px;
    }
    
    .cookie-banner-message h4 {
        font-size: 16px;
    }
    
    .cookie-banner-message p {
        font-size: 13px;
    }
    
    .cookie-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
} 