/* Cookie Consent Popup - Fixed Centering */
.cookie-consent-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100000 !important;
    padding: 1rem;
    animation: ccFadeIn 0.3s ease;
}

.cookie-consent-overlay.active {
    display: flex !important;
}

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

.cookie-consent-modal {
    background: white;
    border-radius: 16px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: ccSlideUp 0.3s ease;
    margin: auto;
}

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

.cookie-consent-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
}

.cookie-icon {
    color: #e94560;
    flex-shrink: 0;
}

.cookie-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.cookie-title p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 2rem;
}

.cookie-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}

.cookie-tab {
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-tab:hover { color: #e94560; }
.cookie-tab.active { color: #e94560; border-bottom-color: #e94560; }

.cookie-tab-content { min-height: 250px; }
.cookie-tab-pane { display: none; }
.cookie-tab-pane.active { display: block; animation: ccFadeInContent 0.3s ease; }

@keyframes ccFadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookie-section { margin-bottom: 1.25rem; }
.cookie-section h3 { font-size: 1.125rem; margin-bottom: 0.75rem; color: #1a1a2e; }
.cookie-section p { color: #6b7280; line-height: 1.6; }

.cookie-list { list-style: none; padding: 0; }
.cookie-list li { padding: 0.75rem 0; border-bottom: 1px solid #e5e7eb; color: #1a1a2e; }
.cookie-list li:last-child { border-bottom: none; }

.cookie-links { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie-links a { color: #e94560; text-decoration: none; font-weight: 500; }
.cookie-links a:hover { text-decoration: underline; }

.cookie-category {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
}

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

.cookie-category-header h3 { margin: 0; color: #1a1a2e; }

.cookie-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-status.always-on { background: #e5e7eb; color: #1a1a2e; }

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

.cookie-toggle label {
    display: block;
    width: 48px;
    height: 28px;
    background: #d1d5db;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
    position: relative;
}

.cookie-toggle label::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

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

.cookie-details { margin-top: 1rem; }

.cookie-detail {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.cookie-detail strong { display: block; color: #1a1a2e; margin-bottom: 4px; }
.cookie-detail p { margin: 0 0 4px 0; font-size: 0.875rem; color: #6b7280; }
.cookie-provider { font-size: 0.75rem; color: #9ca3af; font-style: italic; }

.cookie-consent-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cookie-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9375rem;
}

.cookie-actions .btn-secondary { background: #4b5563; color: white; border: none; }
.cookie-actions .btn-secondary:hover { background: #374151; }

.cookie-actions .btn-outline { background: white; color: #e94560; border: 2px solid #e94560; }
.cookie-actions .btn-outline:hover { background: #e94560; color: white; }

.cookie-actions .btn-primary { background: #e94560; color: white; border: none; }
.cookie-actions .btn-primary:hover { background: #d63850; }

.cookie-footer-note { text-align: center; font-size: 0.875rem; color: #9ca3af; margin: 0; }

@media (max-width: 768px) {
    .cookie-consent-modal { margin: 0.5rem; max-height: 95vh; }
    .cookie-consent-header { flex-direction: column; text-align: center; padding: 1rem 1.25rem; }
    .cookie-consent-body { padding: 1rem 1.25rem; }
    .cookie-consent-footer { padding: 1rem 1.25rem; }
    .cookie-actions { flex-direction: column; }
    .cookie-actions .btn { width: 100%; }
}
