/**
 * VelociTrust Public Styles - Modern Trust Center Design
 *
 * @package VelociTrust
 */

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Primary Colors */
    --vt-primary: #2563eb;
    --vt-primary-dark: #1d4ed8;
    --vt-primary-light: #3b82f6;
    --vt-primary-subtle: #eff6ff;
    
    /* Customizable Button Colors */
    --vt-btn-bg: #2563eb;
    --vt-btn-text: #ffffff;
    
    /* Customizable Card Accent Color */
    --vt-card-accent: #2563eb;
    
    /* Link colors */
    --vt-link: #3b82f6;
    --vt-link-hover: #2563eb;

    /* Page surfaces — driven by DesignTokens; these are the baseline. */
    --vt-page-bg: #f9fafb;
    --vt-surface: #ffffff;
    --vt-surface-alt: #f3f4f6;
    --vt-border: #e5e7eb;
    --vt-border-strong: #d1d5db;

    /* Text */
    --vt-text: #1f2937;
    --vt-text-muted: #6b7280;
    --vt-text-subtle: #9ca3af;
    --vt-heading: #111827;

    /* Hero band */
    --vt-hero-from: #0f172a;
    --vt-hero-via: #1e3a5f;
    --vt-hero-to: #1e40af;
    --vt-hero-text: #ffffff;

    /* Accent Colors */
    --vt-success: #059669;
    --vt-success-light: #10b981;
    --vt-success-bg: #ecfdf5;
    --vt-warning: #d97706;
    --vt-warning-light: #f59e0b;
    --vt-warning-bg: #fffbeb;
    --vt-danger: #dc2626;
    --vt-danger-bg: #fef2f2;
    
    /* Neutral Colors */
    --vt-gray-50: #f9fafb;
    --vt-gray-100: #f3f4f6;
    --vt-gray-200: #e5e7eb;
    --vt-gray-300: #d1d5db;
    --vt-gray-400: #9ca3af;
    --vt-gray-500: #6b7280;
    --vt-gray-600: #4b5563;
    --vt-gray-700: #374151;
    --vt-gray-800: #1f2937;
    --vt-gray-900: #111827;
    
    /* Typography */
    --vt-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --vt-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --vt-font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Monaco, Consolas, monospace;
    --vt-font-size-base: 16px;
    --vt-heading-weight: 700;
    
    /* Spacing */
    --vt-space-1: 0.25rem;
    --vt-space-2: 0.5rem;
    --vt-space-3: 0.75rem;
    --vt-space-4: 1rem;
    --vt-space-5: 1.25rem;
    --vt-space-6: 1.5rem;
    --vt-space-8: 2rem;
    --vt-space-10: 2.5rem;
    --vt-space-12: 3rem;
    --vt-space-16: 4rem;
    --vt-space-20: 5rem;
    --vt-space-24: 6rem;

    /* Layout — the canvas constrains content to --vt-container-max with
       --vt-gutter either side. Both are driven by DesignTokens. */
    --vt-container-max: 1280px;
    --vt-gutter: 24px;
    
    /* Border Radius */
    --vt-radius-sm: 0.375rem;
    --vt-radius-md: 0.5rem;
    --vt-radius-lg: 0.75rem;
    --vt-radius-xl: 1rem;
    --vt-radius-2xl: 1.5rem;
    --vt-radius-full: 9999px;
    
    /* Shadows */
    --vt-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --vt-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --vt-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --vt-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --vt-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --vt-shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --vt-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --vt-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --vt-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
.velocitrust-trust-center {
    font-family: var(--vt-font-sans);
    color: var(--vt-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.velocitrust-trust-center *,
.velocitrust-trust-center *::before,
.velocitrust-trust-center *::after {
    box-sizing: border-box;
}

.velocitrust-trust-center img {
    max-width: 100%;
    height: auto;
}

/* Ensure all SVGs have explicit dimensions */
.velocitrust-trust-center svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Specific icon sizes - override the base */
.velocitrust-trust-center .shield-icon {
    width: 1.25rem !important;
    height: 1.25rem !important;
}

.velocitrust-trust-center .empty-state-icon svg {
    width: 2.5rem !important;
    height: 2.5rem !important;
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
}

.velocitrust-trust-center .compliance-badge-item .badge-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
}

.velocitrust-trust-center .doc-type-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
}

.velocitrust-trust-center .velocitrust-btn svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    max-width: 1.125rem !important;
    max-height: 1.125rem !important;
}

.velocitrust-trust-center .success-checkmark {
    width: 5rem !important;
    height: 5rem !important;
    max-width: 5rem !important;
    max-height: 5rem !important;
}

.velocitrust-trust-center .modal-header-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
}

.velocitrust-trust-center .footer-security-notice svg {
    width: 1.125rem !important;
    height: 1.125rem !important;
    max-width: 1.125rem !important;
    max-height: 1.125rem !important;
}

/* Container */
.velocitrust-container {
    width: 100%;
    max-width: var(--vt-container-max);
    margin: 0 auto;
    padding: 0 var(--vt-gutter);
}

@media (max-width: 640px) {
    .velocitrust-container {
        padding: 0 var(--vt-space-4);
    }
}

/* ============================================
   Hero Section
   ============================================ */
.velocitrust-hero {
    position: relative;
    background: linear-gradient(135deg, var(--vt-hero-from) 0%, var(--vt-hero-via) 50%, var(--vt-hero-to) 100%);
    color: var(--vt-hero-text);
    overflow: hidden;
    padding: var(--vt-space-16) 0 var(--vt-space-12);
}

/* Size variants, set per template by the velocitrust/hero block. Audit-heavy
   templates want density; sales-led ones want room. */
.velocitrust-hero--compact {
    padding: var(--vt-space-12) 0 var(--vt-space-10);
}

.velocitrust-hero--tall {
    padding: var(--vt-space-24) 0 var(--vt-space-20);
}

.velocitrust-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
}

/* Animated grid pattern */
.velocitrust-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.velocitrust-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Trust Badge */
.velocitrust-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--vt-space-2) var(--vt-space-4);
    border-radius: var(--vt-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--vt-space-6);
}

.velocitrust-trust-badge .shield-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #22c55e;
}

/* Logo */
.velocitrust-logo {
    max-height: 64px;
    margin-bottom: var(--vt-space-6);
    filter: brightness(0) invert(1);
}

/* Hero Title */
.velocitrust-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 var(--vt-space-4) 0;
    background: linear-gradient(to right, var(--vt-hero-text), color-mix(in srgb, var(--vt-hero-text) 82%, var(--vt-hero-to)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Subtitle */
.velocitrust-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--vt-space-8);
    line-height: 1.7;
}

/* Compliance Badges */
.velocitrust-compliance-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--vt-space-4);
    margin-top: var(--vt-space-8);
}

.compliance-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--vt-space-2);
}

.compliance-badge-item .badge-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--vt-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--vt-shadow-lg);
    flex-shrink: 0;
}

.compliance-badge-item .badge-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.compliance-badge-item .badge-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    text-align: center;
    white-space: nowrap;
}

/* ============================================
   Stats Bar
   ============================================ */
.velocitrust-stats-bar {
    background: var(--vt-surface);
    border-bottom: 1px solid var(--vt-border);
    padding: var(--vt-space-6) 0;
}

.velocitrust-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--vt-space-10);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--vt-primary);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--vt-text-subtle);
    margin-top: var(--vt-space-1);
}

.stat-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--vt-border);
}

@media (max-width: 640px) {
    .velocitrust-stats {
        gap: var(--vt-space-6);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-divider {
        height: 2rem;
    }
}

/* ============================================
   Session Access Banner
   ============================================ */
.velocitrust-session-banner {
    background: linear-gradient(135deg, var(--vt-success-bg) 0%, #d1fae5 100%);
    border-bottom: 1px solid #a7f3d0;
    padding: var(--vt-space-4) 0;
}

.session-banner-content {
    display: flex;
    align-items: center;
    gap: var(--vt-space-4);
}

.session-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--vt-success);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.session-banner-icon svg {
    width: 24px !important;
    height: 24px !important;
}

.session-banner-text h3 {
    margin: 0 0 var(--vt-space-1) 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #065f46;
}

.session-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #047857;
}

@media (max-width: 640px) {
    .session-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .session-banner-text h3 {
        font-size: 1rem;
    }
}

/* ============================================
   Approved Documents Banner
   ============================================ */
.velocitrust-approved-banner {
    background: linear-gradient(135deg, var(--vt-primary-subtle) 0%, color-mix(in srgb, var(--vt-primary) 16%, var(--vt-surface)) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--vt-primary) 42%, var(--vt-surface));
    padding: var(--vt-space-6) 0;
}

.approved-banner-content {
    max-width: 720px;
    margin: 0 auto;
}

.approved-banner-header {
    display: flex;
    align-items: center;
    gap: var(--vt-space-4);
    margin-bottom: var(--vt-space-5);
}

.approved-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--vt-success);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.approved-banner-icon svg {
    width: 24px !important;
    height: 24px !important;
}

.approved-banner-text h2 {
    margin: 0 0 var(--vt-space-1) 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vt-primary-dark);
}

.approved-banner-text p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vt-primary-light);
}

.approved-documents-list {
    display: flex;
    flex-direction: column;
    gap: var(--vt-space-3);
}

.approved-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vt-space-4);
    background: var(--vt-surface);
    border: 1px solid color-mix(in srgb, var(--vt-primary) 28%, var(--vt-surface));
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-4);
    transition: box-shadow 0.2s ease;
}

.approved-document-item:hover {
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.approved-doc-info {
    display: flex;
    align-items: center;
    gap: var(--vt-space-3);
    min-width: 0;
    flex: 1;
}

.approved-doc-info > svg {
    color: var(--vt-primary);
    flex-shrink: 0;
}

.approved-doc-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.approved-doc-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--vt-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.approved-doc-meta {
    font-size: 0.75rem;
    color: var(--vt-text-subtle);
}

.velocitrust-btn-sm {
    padding: 6px 14px;
    font-size: 0.8125rem;
    gap: 6px;
    white-space: nowrap;
}

.approved-download-btn {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .approved-banner-header {
        flex-direction: column;
        text-align: center;
    }

    .approved-document-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--vt-space-3);
    }

    .approved-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Category Navigation
   ============================================ */
.velocitrust-category-nav {
    background: var(--vt-surface);
    border-bottom: 1px solid var(--vt-border);
    padding: var(--vt-space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.velocitrust-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--vt-space-4);
}

.filter-title {
    display: flex;
    align-items: center;
    gap: var(--vt-space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--vt-text-muted);
    margin: 0;
}

.filter-title svg {
    width: 1.125rem;
    height: 1.125rem;
}

.velocitrust-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-2);
}

.velocitrust-category-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    padding: var(--vt-space-2) var(--vt-space-4);
    background: var(--vt-page-bg);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-full);
    color: var(--vt-gray-700);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--vt-transition);
    white-space: nowrap;
}

.velocitrust-category-btn:hover {
    background: var(--vt-surface);
    border-color: var(--vt-btn-bg);
    color: var(--vt-btn-bg);
    box-shadow: var(--vt-shadow-sm);
}

.velocitrust-category-btn.active {
    background: var(--vt-btn-bg);
    border-color: var(--vt-btn-bg);
    color: var(--vt-btn-text);
    box-shadow: var(--vt-shadow-md);
}

.velocitrust-category-btn .category-icon-svg {
    width: 1rem;
    height: 1rem;
}

.category-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--vt-radius-full);
    flex-shrink: 0;
}

.category-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.125rem 0.5rem;
    border-radius: var(--vt-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.velocitrust-category-btn.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .velocitrust-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--vt-space-2);
        margin: 0 calc(var(--vt-space-4) * -1);
        padding-left: var(--vt-space-4);
        padding-right: var(--vt-space-4);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .velocitrust-categories::-webkit-scrollbar {
        display: none;
    }
}

/* ============================================
   Main Content Area
   ============================================ */
.velocitrust-main {
    background: var(--vt-page-bg);
    padding: var(--vt-space-10) 0 var(--vt-space-16);
    min-height: 60vh;
}

/* ============================================
   Empty State
   ============================================ */
.velocitrust-empty-state {
    text-align: center;
    padding: var(--vt-space-16) var(--vt-space-4);
}

.empty-state-icon {
    width: 5rem;
    height: 5rem;
    background: var(--vt-gray-100);
    border-radius: var(--vt-radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--vt-space-6);
}

.empty-state-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--vt-gray-400);
}

.velocitrust-empty-state h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vt-text);
    margin: 0 0 var(--vt-space-3) 0;
}

.velocitrust-empty-state p {
    color: var(--vt-text-subtle);
    margin: 0;
}

/* ============================================
   Documents Grid
   ============================================ */
.velocitrust-documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--vt-space-6);
}

@media (max-width: 640px) {
    .velocitrust-documents-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Document Card
   ============================================ */
.velocitrust-document-card {
    background: var(--vt-surface);
    border-radius: var(--vt-radius-xl);
    box-shadow: var(--vt-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--vt-transition);
    border: 1px solid var(--vt-gray-100);
}

.velocitrust-document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--vt-shadow-xl);
    border-color: var(--vt-border);
}

/* Card Type Bar */
.document-type-bar {
    height: 4px;
}

/* Card Header */
.document-card-header {
    padding: var(--vt-space-5);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--vt-space-4);
}

.document-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: var(--vt-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-type-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.document-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-2);
}

.document-framework-badge {
    background: linear-gradient(135deg, color-mix(in srgb, var(--vt-primary) 16%, var(--vt-surface)) 0%, color-mix(in srgb, var(--vt-primary) 12%, var(--vt-surface)) 100%);
    color: #3730a3;
    padding: var(--vt-space-1) var(--vt-space-3);
    border-radius: var(--vt-radius-md);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.document-access-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-1);
    padding: var(--vt-space-1) var(--vt-space-3);
    border-radius: var(--vt-radius-md);
    font-size: 0.75rem;
    font-weight: 600;
}

.document-access-badge svg {
    width: 0.875rem;
    height: 0.875rem;
}

.document-access-badge.public {
    background: var(--vt-success-bg);
    color: var(--vt-success);
}

.document-access-badge.restricted {
    background: var(--vt-warning-bg);
    color: var(--vt-warning);
}

/* Card Body */
.document-card-body {
    padding: var(--vt-space-3) var(--vt-space-5) 0;
    flex: 1;
}

.document-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vt-heading);
    margin: 0 0 var(--vt-space-2) 0;
    line-height: 1.4;
}

.document-description {
    font-size: 0.875rem;
    color: var(--vt-text-subtle);
    margin: 0;
    line-height: 1.6;
}

/* Card Meta */
.document-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--vt-space-4);
    padding: var(--vt-space-4) var(--vt-space-5);
    border-top: 1px solid var(--vt-gray-100);
    margin-top: var(--vt-space-4);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    font-size: 0.8125rem;
}

.meta-item.category {
    font-weight: 500;
}

.meta-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: var(--vt-radius-full);
}

.meta-item.date {
    color: var(--vt-text-subtle);
}

.meta-item.date svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Card Footer */
.document-card-footer {
    padding: var(--vt-space-4) var(--vt-space-5) var(--vt-space-5);
}

/* ============================================
   Buttons
   ============================================ */
.velocitrust-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vt-space-2);
    padding: var(--vt-space-3) var(--vt-space-5);
    border-radius: var(--vt-radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--vt-transition);
    white-space: nowrap;
}

.velocitrust-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.velocitrust-btn-block {
    width: 100%;
}

.velocitrust-btn-primary {
    background: var(--vt-btn-bg);
    color: var(--vt-btn-text);
    box-shadow: var(--vt-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.1);
}

.velocitrust-btn-primary:hover {
    background: var(--vt-btn-bg);
    color: var(--vt-btn-text);
    box-shadow: var(--vt-shadow-md), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.velocitrust-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: var(--vt-shadow-sm), inset 0 1px 0 rgba(255,255,255,0.1);
}

.velocitrust-btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: var(--vt-shadow-md), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-1px);
    color: white;
}

.velocitrust-btn-outline {
    background: var(--vt-surface);
    color: var(--vt-gray-700);
    border: 1.5px solid var(--vt-border-strong);
}

.velocitrust-btn-outline:hover {
    border-color: var(--vt-btn-bg);
    color: var(--vt-btn-bg);
    background: var(--vt-primary-subtle);
}

.velocitrust-btn-ghost {
    background: transparent;
    color: var(--vt-text-muted);
}

.velocitrust-btn-ghost:hover {
    background: var(--vt-gray-100);
    color: var(--vt-text);
}

/* ============================================
   Footer
   ============================================ */
.velocitrust-footer {
    background: var(--vt-surface);
    border-top: 1px solid var(--vt-border);
    padding: var(--vt-space-8) 0;
}

.velocitrust-footer-content {
    text-align: center;
}

.footer-security-notice {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    background: var(--vt-success-bg);
    color: var(--vt-success);
    padding: var(--vt-space-2) var(--vt-space-4);
    border-radius: var(--vt-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--vt-space-4);
}

.footer-security-notice svg {
    width: 1.125rem;
    height: 1.125rem;
}

.footer-copyright {
    color: var(--vt-text-subtle);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Modal
   ============================================ */
.velocitrust-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--vt-space-6);
}

.velocitrust-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.velocitrust-modal-dialog {
    position: relative;
    background: var(--vt-surface);
    border-radius: var(--vt-radius-2xl);
    box-shadow: var(--vt-shadow-2xl);
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.2s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.velocitrust-modal *,
.velocitrust-modal *::before,
.velocitrust-modal *::after {
    box-sizing: border-box;
}

.velocitrust-modal-header {
    display: flex;
    align-items: flex-start;
    gap: var(--vt-space-4);
    padding: var(--vt-space-5) var(--vt-space-6);
    border-bottom: 1px solid var(--vt-gray-100);
}

.modal-header-icon {
    width: 3rem;
    height: 3rem;
    background: var(--vt-btn-bg);
    border-radius: var(--vt-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-header-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--vt-btn-text);
}

.modal-header-text {
    flex: 1;
}

.modal-header-text h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--vt-space-1) 0;
    color: var(--vt-heading);
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--vt-text-subtle);
    margin: 0;
}

.velocitrust-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--vt-space-2);
    border-radius: var(--vt-radius-md);
    color: var(--vt-gray-400);
    transition: all var(--vt-transition-fast);
}

.velocitrust-modal-close:hover {
    background: var(--vt-gray-100);
    color: var(--vt-text-muted);
}

.velocitrust-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.velocitrust-modal-dialog > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.velocitrust-modal-body {
    padding: var(--vt-space-5) var(--vt-space-6);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.velocitrust-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--vt-space-3);
    padding: var(--vt-space-4) var(--vt-space-6);
    border-top: 1px solid var(--vt-gray-100);
    background: var(--vt-page-bg);
    border-radius: 0 0 var(--vt-radius-2xl) var(--vt-radius-2xl);
    flex-shrink: 0;
}

/* Request Document Info */
.request-document-info {
    display: flex;
    align-items: center;
    gap: var(--vt-space-3);
    background: var(--vt-page-bg);
    padding: var(--vt-space-3) var(--vt-space-4);
    border-radius: var(--vt-radius-lg);
    margin-bottom: var(--vt-space-5);
}

.request-document-info svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--vt-gray-400);
    flex-shrink: 0;
}

#request-document-name {
    font-weight: 600;
    color: var(--vt-text);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--vt-space-4);
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Groups */
.velocitrust-form-group {
    margin-bottom: var(--vt-space-4);
}

.velocitrust-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vt-gray-700);
    margin-bottom: var(--vt-space-2);
}

.velocitrust-form-group .required {
    color: var(--vt-danger);
}

.velocitrust-form-group input[type="text"],
.velocitrust-form-group input[type="email"],
.velocitrust-form-group textarea {
    width: 100%;
    padding: var(--vt-space-3);
    border: 1.5px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--vt-transition-fast);
    background: var(--vt-surface);
}

.velocitrust-form-group input::placeholder,
.velocitrust-form-group textarea::placeholder {
    color: var(--vt-gray-400);
}

.velocitrust-form-group input:focus,
.velocitrust-form-group textarea:focus {
    outline: none;
    border-color: var(--vt-primary);
    box-shadow: 0 0 0 3px var(--vt-primary-subtle);
}

/* NDA Section */
.nda-section {
    margin-top: var(--vt-space-4);
}

.nda-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-4);
}

.nda-header {
    display: flex;
    align-items: center;
    gap: var(--vt-space-2);
    margin-bottom: var(--vt-space-3);
}

.nda-header svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #b45309;
}

.nda-header h4 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #92400e;
}

.nda-text {
    font-size: 0.8125rem;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: var(--vt-space-4);
    max-height: 100px;
    overflow-y: auto;
}

.nda-checkbox {
    display: flex;
    align-items: center;
    gap: var(--vt-space-3);
    cursor: pointer;
}

.nda-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--vt-primary);
}

.nda-checkbox .checkbox-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #92400e;
}

/* Success Modal */
.velocitrust-modal-success {
    max-width: 400px;
    text-align: center;
}

.velocitrust-modal-success .velocitrust-modal-body {
    padding: var(--vt-space-10) var(--vt-space-10) var(--vt-space-6);
}

.velocitrust-modal-success .velocitrust-modal-footer {
    justify-content: center;
}

.success-animation {
    margin-bottom: var(--vt-space-6);
}

.success-checkmark {
    width: 5rem;
    height: 5rem;
    color: var(--vt-success);
    animation: successPop 0.4s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.velocitrust-modal-success h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vt-heading);
    margin: 0 0 var(--vt-space-3) 0;
}

.velocitrust-modal-success p {
    color: var(--vt-text-subtle);
    margin: 0 0 var(--vt-space-6) 0;
    line-height: 1.6;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .velocitrust-hero {
        padding: var(--vt-space-10) 0 var(--vt-space-8);
    }
    
    .velocitrust-trust-badge {
        font-size: 0.75rem;
    }
    
    .velocitrust-hero-subtitle {
        font-size: 1rem;
    }
    
    .velocitrust-compliance-badges {
        gap: var(--vt-space-3);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
    
    .compliance-badge-item {
        width: 100%;
        min-width: 0;
    }
    
    .compliance-badge-item .badge-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .compliance-badge-item .badge-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .compliance-badge-item .badge-name {
        font-size: 0.65rem;
        max-width: 100%;
        line-height: 1.3;
        white-space: normal;
        word-break: break-word;
    }
    
    .velocitrust-main {
        padding: var(--vt-space-6) 0 var(--vt-space-10);
    }
    
    .velocitrust-modal-dialog {
        max-height: 95vh;
    }
    
    /* Document card mobile improvements */
    .document-card-header {
        padding: var(--vt-space-4);
        flex-wrap: wrap;
    }
    
    .document-card-body {
        padding: 0 var(--vt-space-4);
    }
    
    .document-card-meta {
        padding: var(--vt-space-3) var(--vt-space-4);
        gap: var(--vt-space-3);
    }
    
    .document-card-footer {
        padding: var(--vt-space-3) var(--vt-space-4) var(--vt-space-4);
    }
    
    .document-title {
        font-size: 1rem;
    }
    
    /* Bigger touch targets for buttons */
    .velocitrust-btn {
        padding: var(--vt-space-3) var(--vt-space-4);
        min-height: 44px;
    }
    
    /* Footer mobile */
    .footer-security-notice {
        font-size: 0.8125rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .velocitrust-compliance-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--vt-space-4);
    }
    
    .compliance-badge-item .badge-name {
        font-size: 0.7rem;
        max-width: 100%;
    }
    
    .compliance-badge-item .badge-icon {
        width: 3rem;
        height: 3rem;
    }
    
    .compliance-badge-item .badge-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .velocitrust-stats {
        flex-direction: column;
        gap: var(--vt-space-4);
    }
    
    .stat-divider {
        width: 3rem;
        height: 1px;
    }
    
    /* Hero section mobile */
    .velocitrust-hero {
        padding: var(--vt-space-8) 0 var(--vt-space-6);
    }
    
    .velocitrust-hero-title {
        font-size: 1.75rem;
    }
    
    .velocitrust-hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: var(--vt-space-6);
    }
    
    /* Filter header mobile */
    .velocitrust-filter-header {
        margin-bottom: var(--vt-space-3);
    }
    
    .filter-title {
        font-size: 0.8125rem;
    }
    
    /* Modal adjustments for small screens */
    .velocitrust-modal {
        padding: var(--vt-space-3);
    }
    
    .velocitrust-modal-dialog {
        border-radius: var(--vt-radius-xl);
    }
    
    .modal-body {
        padding: var(--vt-space-4);
    }
    
    .modal-footer {
        padding: var(--vt-space-3) var(--vt-space-4);
    }
}

/* ============================================
   Dark Mode Support (if enabled)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .velocitrust-trust-center.dark-mode {
        --vt-page-bg: #18181b;
        --vt-surface: #27272a;
        --vt-surface-alt: #1f1f23;
        --vt-border: #3f3f46;
        --vt-border-strong: #52525b;
        --vt-text: #f4f4f5;
        --vt-text-muted: #d4d4d8;
        --vt-text-subtle: #a1a1aa;
        --vt-heading: #fafafa;

        /* The grey ramp is still referenced directly in a few places. */
        --vt-gray-50: #18181b;
        --vt-gray-100: #27272a;
        --vt-gray-200: #3f3f46;
        --vt-gray-300: #52525b;
        --vt-gray-400: #71717a;
        --vt-gray-500: #a1a1aa;
        --vt-gray-600: #d4d4d8;
        --vt-gray-700: #e4e4e7;
        --vt-gray-800: #f4f4f5;
        --vt-gray-900: #fafafa;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .velocitrust-category-nav,
    .velocitrust-modal,
    .velocitrust-btn {
        display: none !important;
    }
    
    .velocitrust-hero {
        background: var(--vt-hero-via) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .velocitrust-document-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   Animation Utilities
   ============================================ */
.velocitrust-document-card {
    animation: cardFadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.velocitrust-documents-grid .velocitrust-document-card:nth-child(1) { animation-delay: 0.05s; }
.velocitrust-documents-grid .velocitrust-document-card:nth-child(2) { animation-delay: 0.1s; }
.velocitrust-documents-grid .velocitrust-document-card:nth-child(3) { animation-delay: 0.15s; }
.velocitrust-documents-grid .velocitrust-document-card:nth-child(4) { animation-delay: 0.2s; }
.velocitrust-documents-grid .velocitrust-document-card:nth-child(5) { animation-delay: 0.25s; }
.velocitrust-documents-grid .velocitrust-document-card:nth-child(6) { animation-delay: 0.3s; }

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

/* ============================================
   Shortcode Styles
   ============================================ */
.velocitrust-documents-shortcode {
    font-family: var(--vt-font-sans);
    color: var(--vt-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: var(--vt-space-4);
}

.velocitrust-documents-shortcode *,
.velocitrust-documents-shortcode *::before,
.velocitrust-documents-shortcode *::after {
    box-sizing: border-box;
}

/* Card Style — wraps the velocitrust-documents-grid which uses existing card CSS */
.velocitrust-documents-shortcode.velocitrust-style-card {
    padding: var(--vt-space-4);
}

/* SVG sizing inside shortcode mirrors .velocitrust-trust-center rules */
.velocitrust-documents-shortcode svg {
    width: 1.25rem;
    height: 1.25rem;
    max-width: 1.25rem;
    max-height: 1.25rem;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}
.velocitrust-documents-shortcode .doc-type-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
}

/* document-icon-wrap inside list/grid items */
.velocitrust-style-list .document-icon-wrap,
.velocitrust-style-grid .document-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: var(--vt-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* document-card-meta reuse inside shortcode list/grid */
.velocitrust-documents-shortcode .document-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-3);
    font-size: 0.75rem;
    color: var(--vt-text-subtle);
}

/* List Style */
.velocitrust-documents-shortcode.velocitrust-style-list {
    display: flex;
    flex-direction: column;
    gap: var(--vt-space-4);
}

.velocitrust-style-list .velocitrust-document-item {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--vt-space-4);
    transition: all var(--vt-transition);
    box-shadow: var(--vt-shadow-sm);
}

.velocitrust-style-list .velocitrust-document-item:hover {
    border-color: var(--vt-primary-light);
    box-shadow: var(--vt-shadow-md);
    transform: translateY(-2px);
}

.velocitrust-style-list .velocitrust-document-item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vt-text);
    flex: 1;
}

.velocitrust-style-list .velocitrust-document-description {
    margin: var(--vt-space-2) 0 0 0;
    font-size: 0.875rem;
    color: var(--vt-text-subtle);
    flex: 2;
}

/* Grid Style */
.velocitrust-documents-shortcode.velocitrust-style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--vt-space-6);
}

/* Filter navs and the search bar span all columns: they are toolbar rows above
   the cards, not cells in the grid. Left to itself the search bar took one cell
   and stretched to the height of the tallest card next to it. */
.velocitrust-documents-shortcode.velocitrust-style-grid > .velocitrust-category-nav,
.velocitrust-documents-shortcode.velocitrust-style-grid > .velocitrust-product-nav,
.velocitrust-documents-shortcode.velocitrust-style-grid > .velocitrust-doc-search-bar {
    grid-column: 1 / -1;
}

/* Category colour bar: down the side of a list row, across the top of a card. */
.velocitrust-document-item.has-type-bar {
    --vt-doc-accent: var(--vt-primary);
}

.velocitrust-style-list .velocitrust-document-item.has-type-bar {
    border-left: 4px solid var(--vt-doc-accent);
}

.velocitrust-style-grid .velocitrust-document-item.has-type-bar {
    border-top: 4px solid var(--vt-doc-accent);
}

/* Full-width filter: break out of the content column to fill the viewport */
.velocitrust-fullwidth-filter > .velocitrust-category-nav,
.velocitrust-fullwidth-filter > .velocitrust-product-nav {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: calc(50vw - 50% + var(--vt-space-6));
    padding-right: calc(50vw - 50% + var(--vt-space-6));
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vt-border);
    box-sizing: border-box;
}

.velocitrust-style-grid .velocitrust-document-item {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-6);
    display: flex;
    flex-direction: column;
    gap: var(--vt-space-3);
    transition: all var(--vt-transition);
    box-shadow: var(--vt-shadow-sm);
}

.velocitrust-style-grid .velocitrust-document-item:hover {
    border-color: var(--vt-primary-light);
    box-shadow: var(--vt-shadow-lg);
    transform: translateY(-4px);
}

.velocitrust-style-grid .velocitrust-document-item h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vt-text);
}

.velocitrust-style-grid .velocitrust-document-description {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vt-text-subtle);
    line-height: 1.5;
    flex: 1;
}

/* Buttons */
.velocitrust-documents-shortcode .velocitrust-download-btn,
.velocitrust-documents-shortcode .velocitrust-request-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--vt-space-2);
    padding: var(--vt-space-2) var(--vt-space-4);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--vt-radius-md);
    cursor: pointer;
    transition: all var(--vt-transition);
    text-decoration: none;
    white-space: nowrap;
}

.velocitrust-documents-shortcode .velocitrust-download-btn {
    background: var(--vt-btn-bg);
    color: var(--vt-btn-text);
    border: none;
}

.velocitrust-documents-shortcode .velocitrust-download-btn:hover {
    background: var(--vt-btn-bg);
    color: var(--vt-btn-text);
    text-decoration: none;
    filter: brightness(1.1);
}

.velocitrust-documents-shortcode .velocitrust-request-btn {
    background: var(--vt-surface);
    color: var(--vt-btn-bg);
    border: 1px solid var(--vt-btn-bg);
}

.velocitrust-documents-shortcode .velocitrust-request-btn:hover {
    background: var(--vt-primary-subtle);
    border-color: var(--vt-btn-bg);
    filter: brightness(0.95);
}

/* No documents message */
.velocitrust-documents-shortcode .velocitrust-no-documents {
    text-align: center;
    padding: var(--vt-space-8);
    color: var(--vt-text-subtle);
    font-style: italic;
}

/* Debug panel styling */
.velocitrust-documents-shortcode .velocitrust-debug {
    font-size: 0.75rem;
    font-family: var(--vt-font-mono);
    overflow-x: auto;
}

.velocitrust-documents-shortcode .velocitrust-debug pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Document item structure */
.velocitrust-document-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--vt-space-4);
}

.velocitrust-document-content {
    flex: 1;
    min-width: 0;
}

.velocitrust-document-action {
    flex-shrink: 0;
}

/* Product badges in documents shortcode */
.velocitrust-document-products {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-1);
    margin-top: var(--vt-space-2);
}

.velocitrust-doc-product-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--vt-radius-md);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.velocitrust-doc-product-badge-all {
    background-color: var(--vt-gray-100) !important;
    color: var(--vt-text-muted) !important;
    border-color: var(--vt-border) !important;
}

/* Grid style adjustments for product badges */
.velocitrust-style-grid .velocitrust-document-item {
    flex-direction: column;
}

.velocitrust-style-grid .velocitrust-document-action {
    width: 100%;
    margin-top: auto;
}

.velocitrust-style-grid .velocitrust-download-btn,
.velocitrust-style-grid .velocitrust-request-btn {
    width: 100%;
}

/* When the request btn sits inside a split layout, let flex handle the width */
.velocitrust-style-grid .document-card-actions-split .velocitrust-request-btn,
.velocitrust-style-list .document-card-actions-split .velocitrust-request-btn {
    width: auto;
    flex: 1;
}

/* Explicit column counts — the documents block's `grid_columns` attribute.
   Written as classes rather than an inline grid-template-columns so the
   breakpoints below can still collapse them on narrow screens. */
.velocitrust-documents-shortcode.velocitrust-style-grid.velocitrust-documents-columns-1,
.velocitrust-documents-grid.velocitrust-documents-columns-1 {
    grid-template-columns: minmax(0, 1fr);
}
.velocitrust-documents-shortcode.velocitrust-style-grid.velocitrust-documents-columns-2,
.velocitrust-documents-grid.velocitrust-documents-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.velocitrust-documents-shortcode.velocitrust-style-grid.velocitrust-documents-columns-3,
.velocitrust-documents-grid.velocitrust-documents-columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.velocitrust-documents-shortcode.velocitrust-style-grid.velocitrust-documents-columns-4,
.velocitrust-documents-grid.velocitrust-documents-columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .velocitrust-documents-shortcode.velocitrust-style-grid.velocitrust-documents-columns-3,
    .velocitrust-documents-shortcode.velocitrust-style-grid.velocitrust-documents-columns-4,
    .velocitrust-documents-grid.velocitrust-documents-columns-3,
    .velocitrust-documents-grid.velocitrust-documents-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .velocitrust-documents-shortcode.velocitrust-style-grid[class*="velocitrust-documents-columns-"],
    .velocitrust-documents-grid[class*="velocitrust-documents-columns-"] {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .velocitrust-style-list .velocitrust-document-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--vt-space-3);
    }
    
    .velocitrust-style-list .velocitrust-document-item h4 {
        width: 100%;
    }
    
    .velocitrust-documents-shortcode .velocitrust-download-btn,
    .velocitrust-documents-shortcode .velocitrust-request-btn {
        width: 100%;
    }
    
    .velocitrust-documents-shortcode.velocitrust-style-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Subprocessors Shortcode Styles
   ============================================ */

.velocitrust-subprocessors-shortcode {
    font-family: var(--vt-font-sans);
    color: var(--vt-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: var(--vt-space-4);
}

.velocitrust-subprocessor-group {
    margin-bottom: var(--vt-space-8);
}

.velocitrust-subprocessor-group-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vt-text);
    margin-bottom: var(--vt-space-4);
    padding-bottom: var(--vt-space-2);
    border-bottom: 2px solid var(--vt-primary-subtle);
}

.velocitrust-subprocessor-list {
    display: grid;
    gap: var(--vt-space-4);
}

.velocitrust-subprocessors-columns-2 .velocitrust-subprocessor-list,
.velocitrust-subprocessors-columns-3 .velocitrust-subprocessor-list {
    grid-template-columns: repeat(2, 1fr);
}

.velocitrust-subprocessor-card {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-5);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.velocitrust-subprocessor-card:hover {
    border-color: var(--vt-primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.velocitrust-subprocessor-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--vt-space-3);
    margin-bottom: var(--vt-space-3);
}

.velocitrust-subprocessor-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-md);
    background: var(--vt-surface);
    overflow: hidden;
}

.velocitrust-subprocessor-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.velocitrust-subprocessor-logo-fallback {
    color: var(--vt-gray-400);
    background: var(--vt-page-bg);
}

.velocitrust-subprocessor-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.velocitrust-subprocessor-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vt-heading);
    margin: 0;
}

.velocitrust-subprocessor-location {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--vt-primary);
    background: var(--vt-primary-subtle);
    padding: var(--vt-space-1) var(--vt-space-2);
    border-radius: var(--vt-radius-md);
    white-space: nowrap;
}

.velocitrust-subprocessor-description {
    font-size: 0.875rem;
    color: var(--vt-text-muted);
    margin: 0 0 var(--vt-space-3);
    line-height: 1.5;
}

.velocitrust-subprocessor-data-use {
    font-size: 0.8125rem;
    color: var(--vt-gray-700);
    margin: 0 0 var(--vt-space-3);
    padding: var(--vt-space-3);
    background: var(--vt-page-bg);
    border-radius: var(--vt-radius-md);
    line-height: 1.5;
}

.velocitrust-subprocessor-data-use strong {
    color: var(--vt-text);
}

.velocitrust-subprocessor-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-3);
    margin-bottom: var(--vt-space-3);
}

.velocitrust-subprocessor-links a {
    font-size: 0.8125rem;
    color: var(--vt-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.velocitrust-subprocessor-links a:hover {
    color: var(--vt-primary-dark);
    text-decoration: underline;
}

.velocitrust-subprocessor-products {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-2);
    margin-top: var(--vt-space-3);
    padding-top: var(--vt-space-3);
    border-top: 1px solid var(--vt-gray-100);
}

.velocitrust-product-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: var(--vt-space-1) var(--vt-space-2);
    border-radius: var(--vt-radius-md);
    border: 1px solid;
}

/* Product badge links */
a.velocitrust-product-badge-link,
a.velocitrust-doc-product-badge {
    text-decoration: none;
    transition: opacity var(--vt-transition-fast), transform var(--vt-transition-fast);
    cursor: pointer;
}

a.velocitrust-product-badge-link:hover,
a.velocitrust-doc-product-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* Responsive adjustments for subprocessors */
@media (max-width: 768px) {
    .velocitrust-subprocessors-columns-2 .velocitrust-subprocessor-list,
    .velocitrust-subprocessors-columns-3 .velocitrust-subprocessor-list {
        grid-template-columns: 1fr;
    }
    
    .velocitrust-subprocessor-header {
        flex-direction: column;
        gap: var(--vt-space-2);
    }
}

/* ============================================
   Products Filter Nav
   ============================================ */
.velocitrust-product-nav {
    background: var(--vt-page-bg);
    padding: var(--vt-space-4) 0;
    border-bottom: 1px solid var(--vt-border);
}

.velocitrust-products-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.velocitrust-product-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    padding: var(--vt-space-2) var(--vt-space-4);
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vt-gray-700);
    cursor: pointer;
    transition: all 0.15s ease;
}

.velocitrust-product-btn:hover {
    background: var(--vt-primary-subtle);
    border-color: var(--vt-btn-bg);
    color: var(--vt-btn-bg);
}

.velocitrust-product-btn.active {
    background: var(--vt-btn-bg);
    border-color: var(--vt-btn-bg);
    color: var(--vt-btn-text);
}

.velocitrust-product-btn.active .product-dot {
    background-color: white !important;
}

.product-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.product-count {
    background: var(--vt-gray-100);
    color: var(--vt-text-muted);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--vt-radius-full);
}

.velocitrust-product-btn.active .product-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ============================================
   Document Product Badges
   ============================================ */
.document-products {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-1);
    padding: var(--vt-space-2) var(--vt-space-4);
    background: var(--vt-page-bg);
    border-bottom: 1px solid var(--vt-gray-100);
}

.document-product-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--vt-radius-md);
    border: 1px solid;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ============================================
   Products Shortcode Styles
   ============================================ */
.velocitrust-products-shortcode {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--vt-space-4);
}

.velocitrust-products-list {
    display: grid;
    gap: var(--vt-space-6);
}

/* Grid layouts */
.velocitrust-products-grid .velocitrust-products-list {
    grid-template-columns: repeat(1, 1fr);
}

.velocitrust-products-columns-2 .velocitrust-products-list {
    grid-template-columns: repeat(2, 1fr);
}

.velocitrust-products-columns-3 .velocitrust-products-list {
    grid-template-columns: repeat(3, 1fr);
}

.velocitrust-products-columns-4 .velocitrust-products-list {
    grid-template-columns: repeat(4, 1fr);
}

/* List layout */
.velocitrust-products-list .velocitrust-products-list {
    grid-template-columns: 1fr;
}

/* Product Card */
.velocitrust-product-card {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-left: 4px solid var(--vt-card-accent);
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-5);
    transition: all 0.2s ease;
}

.velocitrust-product-card:hover {
    border-color: var(--vt-border-strong);
    box-shadow: var(--vt-shadow-md);
    transform: translateY(-2px);
}

.velocitrust-product-header {
    display: flex;
    align-items: center;
    gap: var(--vt-space-3);
    margin-bottom: var(--vt-space-3);
}

.velocitrust-product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--vt-radius-md);
    flex-shrink: 0;
}

.velocitrust-product-icon svg {
    width: 24px;
    height: 24px;
}

.velocitrust-product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vt-heading);
    margin: 0;
    line-height: 1.4;
}

.velocitrust-product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.velocitrust-product-name a:hover {
    color: var(--vt-primary);
}

.velocitrust-product-description {
    font-size: 0.875rem;
    color: var(--vt-text-muted);
    line-height: 1.6;
    margin: 0 0 var(--vt-space-4);
}

.velocitrust-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-3);
    align-items: center;
}

.velocitrust-product-doc-count {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-1);
    font-size: 0.8125rem;
    color: var(--vt-text-subtle);
}

.velocitrust-product-doc-count svg {
    width: 14px;
    height: 14px;
    color: var(--vt-gray-400);
}

.velocitrust-product-action {
    margin-top: var(--vt-space-4);
    padding-top: var(--vt-space-4);
    border-top: 1px solid var(--vt-gray-100);
}

.velocitrust-product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vt-primary);
    text-decoration: none;
    transition: gap 0.15s ease;
}

.velocitrust-product-link:hover {
    gap: var(--vt-space-3);
    text-decoration: underline;
}

.velocitrust-product-link svg {
    width: 14px;
    height: 14px;
}

/* Product Card Subprocessors List */
.velocitrust-product-subprocessors {
    margin-top: var(--vt-space-4);
    padding-top: var(--vt-space-4);
    border-top: 1px solid var(--vt-gray-100);
}

.velocitrust-product-subprocessors-title {
    display: flex;
    align-items: center;
    gap: var(--vt-space-2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vt-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--vt-space-3);
}

.velocitrust-product-subprocessors-title svg {
    width: 14px;
    height: 14px;
    color: var(--vt-gray-400);
}

.velocitrust-product-subprocessors-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.velocitrust-product-subprocessors-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--vt-space-2) 0;
    border-bottom: 1px solid var(--vt-gray-50);
    font-size: 0.8125rem;
}

.velocitrust-product-subprocessors-list li:last-child {
    border-bottom: none;
}

.velocitrust-product-subprocessors-list .subprocessor-name {
    color: var(--vt-text);
    font-weight: 500;
}

.velocitrust-product-subprocessors-list .subprocessor-location {
    color: var(--vt-text-subtle);
    font-size: 0.75rem;
    background: var(--vt-gray-100);
    padding: 2px 8px;
    border-radius: var(--vt-radius-full);
}

.velocitrust-product-subprocessors-list .subprocessor-more {
    color: var(--vt-gray-400);
    font-style: italic;
    font-size: 0.75rem;
}

/* All Products Badge */
.document-product-badge-all {
    background-color: var(--vt-gray-100) !important;
    color: var(--vt-text-muted) !important;
    border-color: var(--vt-border) !important;
}

/* Responsive adjustments for products */
@media (max-width: 992px) {
    .velocitrust-products-columns-4 .velocitrust-products-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .velocitrust-products-columns-3 .velocitrust-products-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .velocitrust-products-columns-2 .velocitrust-products-list,
    .velocitrust-products-columns-3 .velocitrust-products-list,
    .velocitrust-products-columns-4 .velocitrust-products-list {
        grid-template-columns: 1fr;
    }
    
    .velocitrust-products-filter {
        flex-direction: column;
    }
    
    .velocitrust-product-btn {
        justify-content: flex-start;
        width: 100%;
    }
    
    .velocitrust-product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .document-products {
        justify-content: center;
    }
}

/* ============================================
   Request All Button Shortcode
   ============================================ */
.velocitrust-request-all-wrapper {
    display: flex;
    width: 100%;
}

.velocitrust-request-all-wrapper.velocitrust-align-left {
    justify-content: flex-start;
}

.velocitrust-request-all-wrapper.velocitrust-align-center {
    justify-content: center;
}

.velocitrust-request-all-wrapper.velocitrust-align-right {
    justify-content: flex-end;
}

.velocitrust-request-all-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
}

.velocitrust-request-all-btn svg {
    width: 18px !important;
    height: 18px !important;
}

.velocitrust-request-all-granted {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
    padding: var(--vt-space-3) var(--vt-space-4);
    background: var(--vt-success-bg);
    border: 1px solid #a7f3d0;
    border-radius: var(--vt-radius-lg);
    color: #047857;
    font-weight: 500;
}

.velocitrust-request-all-granted .velocitrust-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--vt-success);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

/* ============================================
   Controls List Shortcode/Block
   ============================================ */
.velocitrust-controls-shortcode {
    font-family: var(--vt-font-sans);
    color: var(--vt-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--vt-space-4);
}

.velocitrust-controls-list {
    display: grid;
    gap: var(--vt-space-4);
}

.velocitrust-controls-columns-1 .velocitrust-controls-list {
    grid-template-columns: 1fr;
}

.velocitrust-controls-columns-2 .velocitrust-controls-list {
    grid-template-columns: repeat(2, 1fr);
}

.velocitrust-controls-columns-3 .velocitrust-controls-list {
    grid-template-columns: repeat(3, 1fr);
}

.velocitrust-control-card {
    background: var(--vt-surface);
    border: 1px solid var(--vt-border);
    border-left: 4px solid var(--vt-card-accent);
    border-radius: var(--vt-radius-lg);
    padding: var(--vt-space-5);
    transition: all var(--vt-transition);
    position: relative;
}

.velocitrust-control-card:hover {
    border-color: var(--vt-border-strong);
    border-left-color: var(--vt-card-accent);
    box-shadow: var(--vt-shadow-md);
    transform: translateY(-2px);
    filter: brightness(0.95);
}

.velocitrust-control-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--vt-space-2);
    margin-bottom: var(--vt-space-3);
}

.velocitrust-control-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--vt-space-1) var(--vt-space-3);
    background: var(--vt-card-accent);
    color: white;
    border-radius: var(--vt-radius-full);
    font-family: var(--vt-font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.velocitrust-control-separator {
    color: var(--vt-gray-400);
    font-weight: 400;
    flex-shrink: 0;
}

.velocitrust-control-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--vt-heading);
    line-height: 1.4;
    margin: 0;
}

.velocitrust-control-description {
    color: var(--vt-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: var(--vt-space-3);
    padding: var(--vt-space-3);
    background: var(--vt-page-bg);
    border-radius: var(--vt-radius-md);
    border-left: 3px solid var(--vt-border);
}

.velocitrust-control-description p {
    margin: 0 0 var(--vt-space-2) 0;
}

.velocitrust-control-description p:last-child {
    margin-bottom: 0;
}

.velocitrust-control-products {
    display: flex;
    flex-wrap: wrap;
    gap: var(--vt-space-2);
    margin-top: var(--vt-space-3);
    padding-top: var(--vt-space-3);
    border-top: 1px solid var(--vt-gray-100);
}

.velocitrust-control-products .velocitrust-product-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-1);
    padding: var(--vt-space-1) var(--vt-space-2);
    background: var(--vt-gray-100);
    color: var(--vt-gray-700);
    border-radius: var(--vt-radius-full);
    font-size: 0.6875rem;
    font-weight: 500;
    transition: background-color var(--vt-transition-fast);
}

.velocitrust-control-products .velocitrust-product-badge:hover {
    background: var(--vt-border);
}

.velocitrust-control-products .product-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Controls in Products Card */
.velocitrust-product-controls {
    margin-top: var(--vt-space-4);
    padding-top: var(--vt-space-4);
    border-top: 1px solid var(--vt-gray-100);
}

.velocitrust-product-controls-title {
    display: flex;
    align-items: center;
    gap: var(--vt-space-2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vt-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--vt-space-2) 0;
}

.velocitrust-product-controls-title svg {
    width: 14px !important;
    height: 14px !important;
    color: var(--vt-primary);
}

.velocitrust-product-controls-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.velocitrust-product-controls-list li {
    display: flex;
    align-items: center;
    gap: var(--vt-space-2);
    padding: var(--vt-space-2) 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--vt-gray-50);
}

.velocitrust-product-controls-list li:last-child {
    border-bottom: none;
}

.velocitrust-product-controls-list .control-id {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--vt-card-accent);
    color: white;
    border-radius: var(--vt-radius-full);
    font-family: var(--vt-font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.velocitrust-product-controls-list .control-separator {
    color: var(--vt-gray-400);
}

.velocitrust-product-controls-list .control-name {
    color: var(--vt-gray-700);
    line-height: 1.4;
    font-weight: 500;
}

.velocitrust-product-controls-list .control-more {
    color: var(--vt-text-subtle);
    font-size: 0.75rem;
    font-style: italic;
    padding: var(--vt-space-2) 0;
}

/* Empty State */
.velocitrust-controls-shortcode .velocitrust-empty-state {
    text-align: center;
    padding: var(--vt-space-12);
    color: var(--vt-text-subtle);
}

/* Responsive Controls */
@media (max-width: 768px) {
    .velocitrust-controls-columns-2 .velocitrust-controls-list,
    .velocitrust-controls-columns-3 .velocitrust-controls-list {
        grid-template-columns: 1fr;
    }
    
    .velocitrust-control-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .velocitrust-controls-shortcode {
        padding: var(--vt-space-3);
    }
    
    .velocitrust-control-card {
        padding: var(--vt-space-4);
    }
    
    .velocitrust-control-header {
        gap: var(--vt-space-2);
    }
}

/* ============================================
   Document Card Actions Split (Request + Add to Cart)
   ============================================ */
.document-card-actions-split {
    display: flex;
    gap: var(--vt-space-2);
    width: 100%;
}

.document-card-actions-split .request-access-btn {
    flex: 1;
}

.velocitrust-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    padding: var(--vt-space-3);
    background: var(--vt-surface);
    color: var(--vt-text-subtle);
    border: 1.5px solid var(--vt-border-strong);
    border-radius: var(--vt-radius-lg);
    cursor: pointer;
    transition: all var(--vt-transition);
}

.velocitrust-btn-cart:hover {
    border-color: var(--vt-btn-bg);
    color: var(--vt-btn-bg);
    background: var(--vt-primary-subtle);
}

.velocitrust-btn-cart.in-cart {
    background: var(--vt-btn-bg);
    color: white;
    border-color: var(--vt-btn-bg);
}

.velocitrust-btn-cart.added {
    background: var(--vt-success);
    color: white;
    border-color: var(--vt-success);
    transform: scale(1.1);
}

.velocitrust-btn-cart svg {
    width: 18px !important;
    height: 18px !important;
}

/* ============================================
   Floating Cart Button (FAB)
   ============================================ */
.velocitrust-cart-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--vt-btn-bg);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--vt-shadow-lg);
    transition: all var(--vt-transition);
}

.velocitrust-cart-fab:hover {
    transform: scale(1.08);
    box-shadow: var(--vt-shadow-xl);
}

.velocitrust-cart-fab svg {
    width: 22px !important;
    height: 22px !important;
}

.velocitrust-cart-fab .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    font-family: var(--vt-font-sans);
}

.velocitrust-cart-fab.cart-pulse {
    animation: cart-pulse-anim 0.6s ease-out;
}

@keyframes cart-pulse-anim {
    0% { transform: scale(1); }
    30% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   Cart Sidebar
   ============================================ */
.velocitrust-cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

/* Offset cart sidebar below WP admin toolbar when logged in */
.admin-bar .velocitrust-cart-sidebar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .velocitrust-cart-sidebar {
        top: 46px;
    }
}

.velocitrust-cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.velocitrust-cart-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--vt-surface);
    box-shadow: var(--vt-shadow-2xl);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.velocitrust-cart-panel.open {
    right: 0;
}

.velocitrust-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--vt-space-4) var(--vt-space-5);
    border-bottom: 1px solid var(--vt-border);
    background: var(--vt-page-bg);
}

.cart-header-title {
    display: flex;
    align-items: center;
    gap: var(--vt-space-2);
}

.cart-header-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vt-text);
}

.cart-header-title svg {
    color: var(--vt-btn-bg);
}

.cart-item-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--vt-btn-bg);
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.velocitrust-cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--vt-space-1);
    color: var(--vt-gray-400);
    border-radius: var(--vt-radius-md);
    transition: all var(--vt-transition);
}

.velocitrust-cart-close:hover {
    color: var(--vt-gray-700);
    background: var(--vt-gray-100);
}

.velocitrust-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--vt-space-4);
}

.velocitrust-cart-empty {
    text-align: center;
    padding: var(--vt-space-10) var(--vt-space-4);
    color: var(--vt-gray-400);
}

.velocitrust-cart-empty svg {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: var(--vt-space-3);
    color: var(--vt-border-strong);
}

.velocitrust-cart-empty p {
    margin: 0 0 var(--vt-space-2);
    font-size: 0.9rem;
    color: var(--vt-text-subtle);
}

.cart-empty-hint {
    font-size: 0.8rem !important;
    color: var(--vt-gray-400) !important;
}

.velocitrust-cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vt-space-3);
    padding: var(--vt-space-3) var(--vt-space-4);
    background: var(--vt-page-bg);
    border: 1px solid var(--vt-border);
    border-radius: var(--vt-radius-md);
    margin-bottom: var(--vt-space-2);
    transition: all var(--vt-transition);
}

.velocitrust-cart-item:hover {
    border-color: var(--vt-border-strong);
    background: var(--vt-surface);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.cart-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--vt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item-nda {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--vt-warning);
    background: var(--vt-warning-bg);
    padding: 1px 6px;
    border-radius: var(--vt-radius-sm);
    width: fit-content;
}

.cart-remove-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--vt-gray-400);
    border-radius: var(--vt-radius-sm);
    flex-shrink: 0;
    transition: all var(--vt-transition);
}

.cart-remove-item:hover {
    color: var(--vt-danger);
    background: rgba(220, 38, 38, 0.08);
}

.cart-remove-item svg {
    width: 16px !important;
    height: 16px !important;
}

.velocitrust-cart-footer {
    padding: var(--vt-space-4) var(--vt-space-5);
    border-top: 1px solid var(--vt-border);
    background: var(--vt-page-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vt-space-3);
}

.velocitrust-cart-footer .cart-clear-btn {
    font-size: 0.8rem;
}

.velocitrust-cart-footer .cart-clear-btn svg {
    width: 14px !important;
    height: 14px !important;
}

@media (max-width: 480px) {
    .velocitrust-cart-panel {
        width: 100%;
        max-width: 100vw;
    }
    
    .velocitrust-cart-fab {
        bottom: 16px;
        right: 16px;
    }
    
    .document-card-actions-split {
        flex-direction: column;
    }
    
    .velocitrust-btn-cart {
        width: 100%;
    }
}

/* ============================================
   Document Search Toggle
   ============================================ */

/* Standalone bar (no filters present) — identical visual treatment to filter navs */
.velocitrust-doc-search-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* Tokenised, not hard-coded white: the bar is sticky, so on a dark preset
       a white strip scrolled over the cards. */
    background: var(--vt-surface);
    border-bottom: 1px solid var(--vt-border);
    padding: var(--vt-space-4) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Search item inside the pill row */
.velocitrust-search-li {
    list-style: none;
    margin-left: auto;
    display: flex;
    align-items: center;
}

/* The toggle wrapper sits inside .velocitrust-filter-header or .velocitrust-doc-search-bar */
.velocitrust-doc-search-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

/* Icon button */
.velocitrust-doc-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--vt-text-subtle, #6b7280);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.velocitrust-doc-search-btn:hover {
    color: var(--vt-heading, #111827);
    background: var(--vt-gray-100, rgba(0, 0, 0, 0.06));
}

.velocitrust-doc-search-toggle.is-open .velocitrust-doc-search-btn {
    color: var(--vt-primary, #2563eb);
}

/* Expandable input — hidden until .is-open */
.velocitrust-doc-search-input {
    width: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--vt-surface);
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.5;
    box-sizing: border-box;
    transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease, border-color 0.2s ease;
}

.velocitrust-doc-search-toggle.is-open .velocitrust-doc-search-input {
    width: 200px;
    opacity: 1;
    padding: 0.375rem 0.75rem;
    border-color: var(--vt-gray-300, #d1d5db);
}

.velocitrust-doc-search-input:focus {
    outline: none;
    border-color: var(--vt-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.velocitrust-doc-search-input::placeholder {
    color: #9ca3af;
}

.velocitrust-search-empty {
    text-align: center;
    color: #6b7280;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   Canvas & Block Layout
   ============================================

   When TrustCenterCanvas takes over the document there is no theme, so
   nothing defines WordPress's layout classes. These rules supply them:
   `.velocitrust-band` groups run full-bleed and constrain their own content
   to --vt-container-max with --vt-gutter either side. That is what turns the
   old ~650px theme column into a full-width page.
   ============================================ */

.velocitrust-canvas {
    margin: 0;
    background: var(--vt-page-bg);
    color: var(--vt-text);
    font-family: var(--vt-font-sans);
    font-size: var(--vt-font-size-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.velocitrust-canvas *,
.velocitrust-canvas *::before,
.velocitrust-canvas *::after {
    box-sizing: border-box;
}

.velocitrust-canvas img {
    max-width: 100%;
    height: auto;
}

.velocitrust-canvas h1,
.velocitrust-canvas h2,
.velocitrust-canvas h3,
.velocitrust-canvas h4 {
    font-family: var(--vt-font-heading);
    font-weight: var(--vt-heading-weight);
    color: var(--vt-heading);
    letter-spacing: -0.01em;
}

.velocitrust-canvas a {
    color: var(--vt-link);
}

.velocitrust-canvas a:hover {
    color: var(--vt-link-hover);
}

/* The content wrapper carries NO horizontal padding. Gutters belong to the
   band's inner constrained child, or full-bleed bands show gaps at the edge. */
.velocitrust-canvas__content {
    display: block;
    padding: 0;
    margin: 0;
}

/* ---- Masthead ---- */

.velocitrust-canvas__header {
    background: var(--vt-surface);
    border-bottom: 1px solid var(--vt-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.velocitrust-canvas__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--vt-space-4);
    min-height: 68px;
}

.velocitrust-canvas__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-3);
    text-decoration: none;
    color: inherit;
}

.velocitrust-canvas__brand:hover {
    color: inherit;
}

.velocitrust-canvas__logo {
    max-height: 36px;
    width: auto;
}

.velocitrust-canvas__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.velocitrust-canvas__title {
    font-family: var(--vt-font-heading);
    font-weight: var(--vt-heading-weight);
    font-size: 1.0625rem;
    color: var(--vt-heading);
}

.velocitrust-canvas__company {
    font-size: 0.75rem;
    color: var(--vt-text-subtle);
}

.velocitrust-canvas__actions {
    display: inline-flex;
    align-items: center;
    gap: var(--vt-space-2);
}

@media (max-width: 640px) {
    .velocitrust-canvas__company {
        display: none;
    }
}

/* ---- Block layout, in the absence of a theme ---- */

.velocitrust-canvas .wp-block-group.is-layout-constrained > :where(:not(.alignfull):not(.alignwide)),
.velocitrust-canvas .velocitrust-band > :where(:not(.alignfull):not(.alignwide)) {
    max-width: var(--vt-container-max);
    margin-inline: auto;
    padding-inline: var(--vt-gutter);
}

.velocitrust-canvas .alignfull {
    margin-inline: 0;
    max-width: none;
    width: 100%;
}

.velocitrust-canvas .alignwide {
    max-width: var(--vt-container-max);
    margin-inline: auto;
}

.velocitrust-canvas .wp-block-columns {
    display: flex;
    gap: var(--vt-space-8);
    flex-wrap: wrap;
}

.velocitrust-canvas .wp-block-column {
    flex-grow: 1;
    flex-basis: 0;
    min-width: 0;
}

@media (max-width: 782px) {
    .velocitrust-canvas .wp-block-column:not(:only-child) {
        flex-basis: 100% !important;
    }
}

/* ---- Bands ---- */

.velocitrust-band {
    padding-block: var(--vt-space-24);
}

.velocitrust-band--sm {
    padding-block: var(--vt-space-16);
}

.velocitrust-band--alt {
    background: var(--vt-surface-alt);
}

.velocitrust-band--cta {
    background: var(--vt-primary-subtle);
    text-align: center;
}

.velocitrust-band > h2:first-child,
.velocitrust-band > .wp-block-heading:first-child {
    margin-top: 0;
}

.velocitrust-band__lede {
    color: var(--vt-text-muted);
    font-size: 1.0625rem;
    max-width: 62ch;
}

/* A band immediately after the hero should not double up on space. */
.velocitrust-hero + .velocitrust-band {
    padding-block-start: var(--vt-space-16);
}

@media (max-width: 640px) {
    .velocitrust-band {
        padding-block: var(--vt-space-12);
    }

    .velocitrust-band--sm {
        padding-block: var(--vt-space-10);
    }
}

/* ---- Footer additions ---- */

.velocitrust-footer-links {
    margin-top: var(--vt-space-3);
    font-size: 0.875rem;
}

.velocitrust-footer-links a {
    color: var(--vt-text-muted);
    text-decoration: none;
}

.velocitrust-footer-links a:hover {
    color: var(--vt-link);
    text-decoration: underline;
}

.velocitrust-footer-sep {
    color: var(--vt-text-subtle);
    margin: 0 var(--vt-space-2);
}

.velocitrust-footer-updated {
    margin-top: var(--vt-space-2);
    font-size: 0.8125rem;
    color: var(--vt-text-subtle);
}

.velocitrust-footer-powered {
    color: var(--vt-text-subtle);
}

.velocitrust-footer-powered::before {
    content: "\00b7";
    margin: 0 var(--vt-space-2);
}

.velocitrust-footer-powered a {
    color: inherit;
    text-decoration: none;
}

.velocitrust-footer-powered a:hover {
    color: var(--vt-link);
    text-decoration: underline;
}

/* ---- Preview iframe ---- */

.velocitrust-canvas--preview .velocitrust-canvas__header {
    position: static;
}
