/*
 * Custom CSS for Nexus Cart Orderform
 *
 * This file allows you to customize the theme colors and styles for the Nexus Cart orderform.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --vl-primary: var(--zinc-900); use --vl-primary: #your-color;
 * - You can also override any CSS properties here.
 *
 * Note: Changes here will apply to the orderform's Shadow DOM.
 */

/* Add you custom styles here */
:host, :root {
    /* Primary colors */
    --vl-primary: var(--color-orange-500);
    --vl-primary-lifted: var(--color-orange-500);
    --vl-primary-accented: var(--color-orange-500);

    /* Secondary colors */
    --vl-secondary: var(--secondary);
    --vl-secondary-lifted: var(--secondary-lifted);
    --vl-secondary-accented: var(--secondary-accented);

    /* Success colors */
    --vl-success: var(--success);
    --vl-success-lifted: var(--success-lifted);
    --vl-success-accented: var(--success-accented);

    /* Info colors */
    --vl-info: var(--info);
    --vl-info-lifted: var(--info-lifted);
    --vl-info-accented: var(--info-accented);

    /* Notice colors */
    --vl-notice: var(--notice);
    --vl-notice-lifted: var(--notice-lifted);
    --vl-notice-accented: var(--notice-accented);

    /* Warning colors */
    --vl-warning: var(--warning);
    --vl-warning-lifted: var(--warning-lifted);
    --vl-warning-accented: var(--warning-accented);

    /* Error colors */
    --vl-error: var(--error);
    --vl-error-lifted: var(--error-lifted);
    --vl-error-accented: var(--error-accented);

    /* Grayscale colors */
    --vl-grayscale: var(--grayscale);
    --vl-grayscale-lifted: var(--grayscale-lifted);
    --vl-grayscale-accented: var(--grayscale-accented);

    /* Neutral colors */
    --vl-neutral: var(--neutral);
    --vl-neutral-lifted: var(--neutral-lifted);
    --vl-neutral-accented: var(--neutral-accented);

    /* Text neutral colors */
    --vl-text-inverted: var(--text-inverted);
    --vl-text-muted: var(--text-muted);
    --vl-text-lifted: var(--text-lifted);
    --vl-text-accented: var(--text-accented);
    --vl-text: var(--text);

    /* Border neutral colors */
    --vl-border-muted: var(--border-muted);
    --vl-border: var(--border);
    --vl-border-lifted: var(--border-lifted);
    --vl-border-accented: var(--border-accented);

    /* Background neutral colors */
    --vl-bg: var(--bg-surface);
    --vl-bg-muted: var(--bg-surface);
    --vl-bg-lifted: var(--bg-surface);
    --vl-bg-accented: var(--bg-accented);
    --vl-bg-inverted: var(--bg-inverted);

    /* Additional custom properties */
    /* Font Sizes */
    --vl-text-xs: var(--text-xs);
    --vl-text-sm: var(--text-sm);
    --vl-text-md: var(--text-md);
    --vl-text-lg: var(--text-lg);

    /* Spacing */
    --vl-outline-sm: var(--outline-sm);
    --vl-outline-md: var(--outline-md);
    --vl-outline-lg: var(--outline-lg);

    /* Rounding */
    --vl-rounding-sm: var(--rounding-sm);
    --vl-rounding-md: var(--rounding-md);
    --vl-rounding-lg: var(--rounding-lg);

    /* Other */
    --vl-letter-spacing: var(--letter-spacing);
    --vl-disabled-opacity: var(--disabled-opacity);
}


/* 1. Force the dropdown menu panel to stay open, fully visible, and nicely sized */
div.absolute.z-50[style*="max-height"] {
    max-height: 200px !important;
    background-color: #1a202c !important;
    border-color: rgba(255, 106, 0, 0.3) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
}

/* 2. Target the inner option divs (like your 'Annually' and 'Monthly' titles) and force bright text */
div.absolute.z-50 div[title] {
    color: #ffffff !important;
    opacity: 1 !important;
}

/* 3. Style the selected/active option clearly */
div.absolute.z-50 div[title].font-medium,
div.absolute.z-50 [aria-selected="true"] div[title] {
    color: #ff6a00 !important;
    background-color: rgba(255, 106, 0, 0.15) !important;
    font-weight: 600 !important;
}

/* 4. Hover state for any option in the list */
div.absolute.z-50 div[title]:hover {
    background-color: rgba(255, 106, 0, 0.25) !important;
    color: #ff6a00 !important;
}

/* Target the container using its background class or layout structure */
.bg-default.py-6 {
    border-radius: 12px !important; /* Adjust pixel size or use variables like var(--radius-medium) */
	padding:16px;
}

/* Add rounded corners and ensure inner contents stay clipped inside the border */
div.flex.bg-muted.pt-10 {
    border-radius: 16px !important; /* Change 16px to your preferred roundness (e.g., 12px or 24px) */
    overflow: hidden !important;
}

/* Direct force for the checkmark icon */
svg.bi-check-circle.text-grayscale {
    color: #0f172a !important;
}

[aria-selected="true"] svg.bi-check-circle.text-grayscale,
.font-medium svg.bi-check-circle.text-grayscale {
    color: #ff6a00 !important;
}

/* Spinner / loading wheel overrides - forced brand orange */
.animate-spin,
svg.animate-spin,
.spinner-border,
.spinner,
svg[class*="spin"],
i.fa-spinner,
.text-grayscale.animate-spin,
.text-muted.animate-spin {
    color: #ff6a00 !important;
    stroke: #ff6a00 !important;
    fill: none !important;
}

/* Force SVG child paths/circles to inherit brand orange */
.animate-spin path,
.animate-spin circle,
svg.animate-spin path,
svg.animate-spin circle,
svg[class*="spin"] path,
svg[class*="spin"] circle {
    stroke: #ff6a00 !important;
    fill: none !important;
}