/* VirtuCath cookie consent UI. Matches the site's design tokens
   (see :root in style.css). All elements are namespaced with .vc-cc-
   to avoid collisions. */

#vc-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: #ffffff;
    border-top: 1px solid var(--border, #E2E8F0);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.10);
    padding: 1rem 1.25rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main, #0F172A);
}

.vc-cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.vc-cc-banner-text {
    flex: 1 1 380px;
    min-width: 280px;
}

.vc-cc-banner-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.vc-cc-banner-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-muted, #475569);
}

.vc-cc-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vc-cc-btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.vc-cc-btn-primary {
    background: var(--primary, #2563EB);
    color: #ffffff;
}
.vc-cc-btn-primary:hover {
    background: var(--primary-dark, #1E40AF);
}

.vc-cc-btn-secondary {
    background: #ffffff;
    color: var(--text-main, #0F172A);
    border-color: var(--border, #E2E8F0);
}
.vc-cc-btn-secondary:hover {
    border-color: var(--text-muted, #475569);
}

/* Modal */
#vc-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 9991;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.vc-cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.vc-cc-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.30);
    color: var(--text-main, #0F172A);
}

.vc-cc-modal-card h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.35rem;
}

.vc-cc-modal-intro {
    margin: 0 0 1.25rem 0;
    color: var(--text-muted, #475569);
    font-size: 0.9rem;
    line-height: 1.5;
}

.vc-cc-cats {
    border-top: 1px solid var(--border, #E2E8F0);
}

.vc-cc-cat-row {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border, #E2E8F0);
}

.vc-cc-cat-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
}

.vc-cc-cat-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}
.vc-cc-cat-label input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.vc-cc-cat-title {
    font-size: 0.95rem;
}

.vc-cc-cat-desc {
    margin: 0.35rem 0 0 1.7rem;
    font-size: 0.825rem;
    line-height: 1.5;
    color: var(--text-muted, #475569);
}

.vc-cc-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .vc-cc-banner-inner {
        gap: 0.75rem;
    }
    .vc-cc-banner-actions {
        width: 100%;
        justify-content: stretch;
    }
    .vc-cc-banner-actions .vc-cc-btn {
        flex: 1 1 30%;
        text-align: center;
    }
    .vc-cc-modal-actions .vc-cc-btn {
        flex: 1 1 30%;
        text-align: center;
    }
}
