/**
 * Version2 Consent Mode Banner Styles
 * Modern, polished design with proper isolation
 *
 * @package Version2_Consent_Mode
 * @version 1.2.0
 */

/* ==========================================================================
   CSS Custom Properties - Define our design system
   ========================================================================== */

#v2-consent-banner {
    /* Background & Surface */
    --v2-bg: #ffffff;
    --v2-bg-subtle: #f8fafc;
    --v2-surface: #f1f5f9;
    --v2-surface-hover: #e2e8f0;

    /* Text */
    --v2-text: #0f172a;
    --v2-text-secondary: #475569;
    --v2-text-muted: #94a3b8;

    /* Borders */
    --v2-border: #e2e8f0;
    --v2-border-strong: #cbd5e1;

    /* Primary accent - Vibrant blue */
    --v2-primary: #2563eb;
    --v2-primary-hover: #1d4ed8;
    --v2-primary-light: #3b82f6;
    --v2-primary-subtle: rgba(37, 99, 235, 0.1);

    /* Success */
    --v2-success: #16a34a;
    --v2-success-bg: #dcfce7;

    /* Danger */
    --v2-danger: #dc2626;

    /* Sizing */
    --v2-radius: 12px;
    --v2-radius-sm: 8px;
    --v2-radius-xs: 6px;

    /* Shadows */
    --v2-shadow: 0 -4px 24px -4px rgba(0, 0, 0, 0.12), 0 -1px 6px -1px rgba(0, 0, 0, 0.08);
    --v2-shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    --v2-shadow-button: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --v2-shadow-button-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Overlay
   ========================================================================== */

#v2-consent-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 999998 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

#v2-consent-overlay.v2-consent-visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Banner Container
   ========================================================================== */

#v2-consent-banner {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999999 !important;
    background: var(--v2-bg) !important;
    border: none !important;
    border-top: 1px solid var(--v2-border) !important;
    border-radius: 0 !important;
    box-shadow: var(--v2-shadow) !important;
    padding: 20px 28px !important;
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: var(--v2-text) !important;
    box-sizing: border-box !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                visibility 0.35s ease !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#v2-consent-banner.v2-consent-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Position: Top */
#v2-consent-banner.v2-position-top {
    bottom: auto !important;
    top: 0 !important;
    border-top: none !important;
    border-bottom: 1px solid var(--v2-border) !important;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-100%);
}

#v2-consent-banner.v2-position-top.v2-consent-visible {
    transform: translateY(0);
}

/* Position: Center (Modal) */
#v2-consent-banner.v2-position-center {
    bottom: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    max-width: 480px !important;
    width: calc(100% - 40px) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius) !important;
    box-shadow: var(--v2-shadow-lg) !important;
    padding: 24px !important;
    transform: translate(-50%, -50%) scale(0.95);
}

#v2-consent-banner.v2-position-center.v2-consent-visible {
    transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   Main View Layout
   ========================================================================== */

#v2-consent-main {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.v2-consent-content {
    flex: 1 1 280px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Title with Cookie Icon
   ========================================================================== */

.v2-consent-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--v2-text) !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
}

.v2-consent-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-hover) 100%) !important;
    border-radius: 6px !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21.598 11.064a1.006 1.006 0 0 0-.854-.172A2.938 2.938 0 0 1 20 11c-1.654 0-3-1.346-3-3 0-.217.031-.444.099-.716a1 1 0 0 0-1.067-1.236A9.956 9.956 0 0 0 12 6C6.486 6 2 10.486 2 16s4.486 10 10 10c5.514 0 10-4.486 10-10 0-.762-.092-1.518-.263-2.253a1.002 1.002 0 0 0-.139-.683zM12 24c-4.411 0-8-3.589-8-8s3.589-8 8-8a7.962 7.962 0 0 1 3.35.727 4.963 4.963 0 0 0 1.61 4.313A4.963 4.963 0 0 0 21.273 14.65 7.962 7.962 0 0 1 20 18c0 3.309-2.691 6-6 6z'/%3E%3Ccircle cx='8.5' cy='14.5' r='1.5'/%3E%3Ccircle cx='10.5' cy='19.5' r='1.5'/%3E%3Ccircle cx='15' cy='16' r='1'/%3E%3C/svg%3E") !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21.598 11.064a1.006 1.006 0 0 0-.854-.172A2.938 2.938 0 0 1 20 11c-1.654 0-3-1.346-3-3 0-.217.031-.444.099-.716a1 1 0 0 0-1.067-1.236A9.956 9.956 0 0 0 12 6C6.486 6 2 10.486 2 16s4.486 10 10 10c5.514 0 10-4.486 10-10 0-.762-.092-1.518-.263-2.253a1.002 1.002 0 0 0-.139-.683zM12 24c-4.411 0-8-3.589-8-8s3.589-8 8-8a7.962 7.962 0 0 1 3.35.727 4.963 4.963 0 0 0 1.61 4.313A4.963 4.963 0 0 0 21.273 14.65 7.962 7.962 0 0 1 20 18c0 3.309-2.691 6-6 6z'/%3E%3Ccircle cx='8.5' cy='14.5' r='1.5'/%3E%3Ccircle cx='10.5' cy='19.5' r='1.5'/%3E%3Ccircle cx='15' cy='16' r='1'/%3E%3C/svg%3E") !important;
    mask-size: contain !important;
    -webkit-mask-size: contain !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-repeat: no-repeat !important;
}

/* ==========================================================================
   Description
   ========================================================================== */

.v2-consent-description {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--v2-text-secondary) !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 600px !important;
}

/* ==========================================================================
   Privacy Link
   ========================================================================== */

.v2-consent-links {
    margin: 8px 0 0 0 !important;
    padding: 0 !important;
}

.v2-consent-links a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--v2-primary) !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
}

.v2-consent-links a:hover {
    color: var(--v2-primary-hover) !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   Buttons Container
   ========================================================================== */

.v2-consent-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   Buttons - Modern, elevated design
   ========================================================================== */

#v2-consent-banner .v2-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 20px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.01em !important;
    text-decoration: none !important;
    border: none !important;
    border-radius: var(--v2-radius-sm) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    outline: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

#v2-consent-banner .v2-btn:focus-visible {
    outline: 2px solid var(--v2-primary) !important;
    outline-offset: 2px !important;
}

/* Accept Button - Primary with gradient */
#v2-consent-banner .v2-btn-accept {
    background: linear-gradient(135deg, var(--v2-primary-light) 0%, var(--v2-primary) 50%, var(--v2-primary-hover) 100%) !important;
    color: #ffffff !important;
    box-shadow: var(--v2-shadow-button), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

#v2-consent-banner .v2-btn-accept:hover {
    background: linear-gradient(135deg, var(--v2-primary) 0%, var(--v2-primary-hover) 100%) !important;
    box-shadow: var(--v2-shadow-button-hover), 0 0 0 4px var(--v2-primary-subtle) !important;
    transform: translateY(-1px) !important;
}

#v2-consent-banner .v2-btn-accept:active {
    transform: translateY(0) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Reject Button - Secondary */
#v2-consent-banner .v2-btn-reject {
    background: var(--v2-surface) !important;
    color: var(--v2-text) !important;
    box-shadow: var(--v2-shadow-button), inset 0 0 0 1px var(--v2-border) !important;
}

#v2-consent-banner .v2-btn-reject:hover {
    background: var(--v2-surface-hover) !important;
    box-shadow: var(--v2-shadow-button-hover), inset 0 0 0 1px var(--v2-border-strong) !important;
    transform: translateY(-1px) !important;
}

#v2-consent-banner .v2-btn-reject:active {
    transform: translateY(0) !important;
    background: var(--v2-border) !important;
}

/* Settings Button - Ghost/Text style */
#v2-consent-banner .v2-btn-settings {
    background: transparent !important;
    color: var(--v2-text-secondary) !important;
    padding: 11px 16px !important;
    box-shadow: none !important;
}

#v2-consent-banner .v2-btn-settings:hover {
    background: var(--v2-surface) !important;
    color: var(--v2-text) !important;
}

/* ==========================================================================
   Settings Panel
   ========================================================================== */

#v2-consent-settings {
    display: none !important;
}

#v2-consent-settings.v2-consent-settings-visible {
    display: block !important;
}

#v2-consent-main.v2-hidden {
    display: none !important;
}

/* Settings Header */
.v2-settings-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 20px 0 !important;
    padding: 0 0 16px 0 !important;
    border-bottom: 1px solid var(--v2-border) !important;
}

/* Back Button */
#v2-consent-banner .v2-back-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--v2-text-secondary) !important;
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius-xs) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    margin: 0 !important;
}

#v2-consent-banner .v2-back-btn:hover {
    background: var(--v2-surface-hover) !important;
    color: var(--v2-text) !important;
    border-color: var(--v2-border-strong) !important;
}

#v2-consent-banner .v2-back-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

/* Settings Title */
.v2-settings-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--v2-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
}

/* Settings Content Scrollable */
.v2-settings-content {
    max-height: 50vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 4px 0 0 !important;
}

.v2-settings-content::-webkit-scrollbar {
    width: 6px !important;
}

.v2-settings-content::-webkit-scrollbar-track {
    background: var(--v2-surface) !important;
    border-radius: 3px !important;
}

.v2-settings-content::-webkit-scrollbar-thumb {
    background: var(--v2-border-strong) !important;
    border-radius: 3px !important;
}

.v2-settings-content::-webkit-scrollbar-thumb:hover {
    background: var(--v2-text-muted) !important;
}

/* ==========================================================================
   Cookie Categories - Card style
   ========================================================================== */

.v2-cookie-category {
    padding: 16px !important;
    margin: 0 0 12px 0 !important;
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius-sm) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.v2-cookie-category:last-child {
    margin-bottom: 0 !important;
}

.v2-cookie-category:hover {
    border-color: var(--v2-border-strong) !important;
}

/* Category Header */
.v2-category-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Category Label */
.v2-category-label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    color: var(--v2-text) !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.v2-category-label strong {
    font-weight: 600 !important;
    color: var(--v2-text) !important;
}

/* ==========================================================================
   Custom Toggle Switch
   ========================================================================== */

#v2-consent-banner .v2-category-label input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 44px !important;
    height: 24px !important;
    min-width: 44px !important;
    background: var(--v2-border-strong) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    transition: background 0.2s ease !important;
    flex-shrink: 0 !important;
    outline: none !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#v2-consent-banner .v2-category-label input[type="checkbox"]::before {
    content: '' !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 20px !important;
    height: 20px !important;
    background: #ffffff !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 1px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#v2-consent-banner .v2-category-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--v2-primary-light), var(--v2-primary)) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#v2-consent-banner .v2-category-label input[type="checkbox"]:checked::before {
    transform: translateX(20px) !important;
}

#v2-consent-banner .v2-category-label input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px var(--v2-primary-subtle) !important;
}

#v2-consent-banner .v2-category-label input[type="checkbox"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

#v2-consent-banner .v2-category-label input[type="checkbox"]:disabled:checked {
    background: var(--v2-success) !important;
}

/* Category Description */
.v2-category-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: var(--v2-text-secondary) !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
}

/* Badge */
.v2-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    margin: 0 !important;
}

.v2-badge-required {
    background: var(--v2-success-bg) !important;
    color: var(--v2-success) !important;
}

/* ==========================================================================
   Settings Actions
   ========================================================================== */

.v2-settings-actions {
    margin: 20px 0 0 0 !important;
    padding: 16px 0 0 0 !important;
    border-top: 1px solid var(--v2-border) !important;
}

.v2-settings-actions .v2-btn {
    width: 100% !important;
    padding: 14px 24px !important;
}

/* ==========================================================================
   Branding
   ========================================================================== */

.v2-branding {
    font-size: 11px !important;
    color: var(--v2-text-muted) !important;
    text-align: center !important;
    margin: 16px 0 0 0 !important;
    padding: 12px 0 0 0 !important;
    border-top: 1px solid var(--v2-border) !important;
}

.v2-branding a {
    color: inherit !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.15s ease !important;
}

.v2-branding a:hover {
    color: var(--v2-primary) !important;
}

/* Hide branding on main view */
#v2-consent-main ~ .v2-branding {
    display: none !important;
}

/* ==========================================================================
   Body State - Prevent scroll when open
   ========================================================================== */

body.v2-consent-open {
    overflow: hidden !important;
}

/* ==========================================================================
   Animations
   ========================================================================== */

#v2-consent-banner.v2-consent-animate-in {
    animation: v2SlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

#v2-consent-banner.v2-consent-animate-out {
    animation: v2SlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes v2SlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes v2SlideDown {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100%); opacity: 0; }
}

/* Top position animations */
#v2-consent-banner.v2-position-top.v2-consent-animate-in {
    animation: v2SlideDownFromTop 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

#v2-consent-banner.v2-position-top.v2-consent-animate-out {
    animation: v2SlideUpToTop 0.3s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes v2SlideDownFromTop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes v2SlideUpToTop {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* Center position animations */
#v2-consent-banner.v2-position-center.v2-consent-animate-in {
    animation: v2ScaleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

#v2-consent-banner.v2-position-center.v2-consent-animate-out {
    animation: v2ScaleOut 0.25s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes v2ScaleIn {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes v2ScaleOut {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
}

/* ==========================================================================
   Responsive - Mobile
   ========================================================================== */

@media (max-width: 640px) {
    #v2-consent-banner {
        padding: 16px 20px !important;
    }

    #v2-consent-main {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .v2-consent-content {
        text-align: center !important;
    }

    .v2-consent-title {
        justify-content: center !important;
    }

    .v2-consent-description {
        max-width: none !important;
    }

    .v2-consent-actions {
        flex-direction: column !important;
        width: 100% !important;
    }

    #v2-consent-banner .v2-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Reorder buttons on mobile: Accept first */
    .v2-consent-actions {
        display: flex !important;
        flex-direction: column !important;
    }

    #v2-consent-banner .v2-btn-accept {
        order: 1 !important;
    }

    #v2-consent-banner .v2-btn-reject {
        order: 2 !important;
    }

    #v2-consent-banner .v2-btn-settings {
        order: 3 !important;
    }

    .v2-cookie-category {
        padding: 14px !important;
    }

    #v2-consent-banner .v2-category-label input[type="checkbox"] {
        width: 40px !important;
        height: 22px !important;
        min-width: 40px !important;
    }

    #v2-consent-banner .v2-category-label input[type="checkbox"]::before {
        width: 18px !important;
        height: 18px !important;
    }

    #v2-consent-banner .v2-category-label input[type="checkbox"]:checked::before {
        transform: translateX(18px) !important;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    #v2-consent-banner,
    #v2-consent-overlay,
    #v2-consent-banner .v2-btn,
    #v2-consent-banner .v2-category-label input[type="checkbox"],
    #v2-consent-banner .v2-category-label input[type="checkbox"]::before {
        transition: none !important;
        animation: none !important;
    }

    #v2-consent-banner.v2-consent-visible {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }

    #v2-consent-banner.v2-position-center.v2-consent-visible {
        transform: translate(-50%, -50%) !important;
    }
}

@media (prefers-contrast: high) {
    #v2-consent-banner {
        border: 3px solid #000 !important;
    }

    #v2-consent-banner .v2-btn {
        border: 2px solid currentColor !important;
    }
}

/* ==========================================================================
   Dark Mode (automatic detection)
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    #v2-consent-banner {
        --v2-bg: #1e293b;
        --v2-bg-subtle: #0f172a;
        --v2-surface: #334155;
        --v2-surface-hover: #475569;
        --v2-text: #f8fafc;
        --v2-text-secondary: #cbd5e1;
        --v2-text-muted: #64748b;
        --v2-border: #475569;
        --v2-border-strong: #64748b;
        --v2-shadow: 0 -4px 24px -4px rgba(0, 0, 0, 0.4);
    }

    #v2-consent-overlay {
        background: rgba(0, 0, 0, 0.7) !important;
    }
}

/* ==========================================================================
   Print - Hide
   ========================================================================== */

@media print {
    #v2-consent-banner,
    #v2-consent-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   Page Settings Shortcode
   ========================================================================== */

.v2-consent-page-settings {
    padding: 24px !important;
    background: linear-gradient(to bottom, #ffffff, #f8fafc) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin: 20px 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07) !important;
}

.v2-consent-page-settings h3 {
    margin: 0 0 16px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.v2-consent-page-actions {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    flex-wrap: wrap !important;
}

.v2-consent-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}

.v2-consent-list li {
    padding: 12px 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 14px !important;
    color: #1e293b !important;
}

.v2-consent-list li:last-child {
    margin-bottom: 0 !important;
}

.v2-status-granted {
    color: #16a34a !important;
    font-weight: 600 !important;
}

.v2-status-denied {
    color: #dc2626 !important;
    font-weight: 600 !important;
}
