/* Cookie consent banner and modal - RBX Tracker */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    border-top: 2px solid rgba(103, 126, 234, 0.3);
    padding: 1rem 1.5rem;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.cookie-consent-banner[aria-hidden="false"] {
    transform: translateY(0);
}
.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}
.cookie-consent-text {
    flex: 1;
    min-width: 260px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
}
.cookie-consent-link { color: #677eea; text-decoration: none; }
.cookie-consent-link:hover { text-decoration: underline; }
.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.cookie-consent-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.cookie-consent-accept { background: #677eea; color: #fff; }
.cookie-consent-accept:hover { background: #5a6fd6; }
.cookie-consent-reject { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.cookie-consent-reject:hover { background: rgba(255,255,255,0.25); }
.cookie-consent-settings { background: transparent; color: #677eea; border: 1px solid #677eea; }
.cookie-consent-settings:hover { background: rgba(103,126,234,0.2); }
.cookie-consent-save { background: #677eea; color: #fff; }
.cookie-consent-save:hover { background: #5a6fd6; }

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.cookie-consent-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}
.cookie-consent-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.cookie-consent-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 1px solid rgba(103,126,234,0.3);
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.cookie-consent-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cookie-consent-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}
.cookie-consent-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}
.cookie-consent-modal-close:hover { color: #fff; }
.cookie-consent-modal-body { padding: 1.25rem; }
.cookie-consent-modal-body > p { margin: 0 0 1rem; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.cookie-category {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}
.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.cookie-category-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
}
.cookie-category-label input[type="checkbox"] { cursor: pointer; }
.cookie-category-label input:disabled { cursor: not-allowed; opacity: 0.8; }
.cookie-category-badge { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.cookie-category-desc {
    margin: 0.5rem 0 0 1.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.cookie-consent-modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cookie-consent-modal-footer .cookie-consent-btn { flex: 1; min-width: 120px; }
@media (max-width: 480px) {
    .cookie-consent-inner { flex-direction: column; align-items: stretch; }
    .cookie-consent-actions { justify-content: flex-end; }
}
