/*
 * 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(--primary);
    --vl-primary-lifted: var(--primary-lifted);
    --vl-primary-accented: var(--primary-accented);

    /* 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);
    --vl-bg-muted: var(--bg-muted);
    --vl-bg-lifted: var(--bg-lifted);
    --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);
}


/* Pro Hosting: product configuration */
#order-standard_cart:has(#frmConfigureProduct) {
    --ph-ink: #102745;
    --ph-muted: #4c6079;
    --ph-line: #dbe5f0;
    --ph-blue: #174cc7;
}
#order-standard_cart:has(#frmConfigureProduct) .header-lined h1 {
    color: var(--ph-ink);
    font-weight: 750;
    letter-spacing: -.035em;
}
#order-standard_cart:has(#frmConfigureProduct) .cart-sidebar .card {
    border: 1px solid var(--ph-line);
    border-radius: 10px;
}
#order-standard_cart #frmConfigureProduct .product-info,
#order-standard_cart #frmConfigureProduct .order-summary {
    background: #fff;
    border: 1px solid var(--ph-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16,39,69,.06);
    color: var(--ph-ink);
    overflow: hidden;
}
#order-standard_cart #frmConfigureProduct .product-info {
    border-top: 4px solid var(--ph-blue);
    margin: 0 0 22px;
    padding: 20px 22px;
    font-size: .875rem;
}
#order-standard_cart #frmConfigureProduct .product-info p { margin-bottom: .45rem; }
#order-standard_cart #frmConfigureProduct .product-info p:last-child { margin-bottom: 0; }
#order-standard_cart #frmConfigureProduct .product-info .product-title,
#order-standard_cart #frmConfigureProduct .product-info h3 {
    font-size: 1.25rem;
    font-weight: 750;
}
#order-standard_cart #frmConfigureProduct .order-summary h2 {
    background: #132b52;
    color: #fff;
    margin: 0;
    padding: 16px 18px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
}
#order-standard_cart #frmConfigureProduct .order-summary .summary-container {
    background: #fff;
    color: var(--ph-ink);
    padding: 16px 18px;
}
#order-standard_cart #frmConfigureProduct .total-due-today {
    background: #eef4ff;
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}
#order-standard_cart #frmConfigureProduct .total-due-today .amt {
    color: var(--ph-ink);
    font-weight: 750;
    font-size: clamp(1.2rem, 2.1vw, 1.65rem);
}
#order-standard_cart #frmConfigureProduct #inputBillingcycle {
    border: 1px solid #9bafca;
    border-radius: 9px;
}
#order-standard_cart #btnCompleteProductConfig {
    background: var(--ph-blue);
    border-color: var(--ph-blue);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    min-height: 46px;
}
#order-standard_cart #btnCompleteProductConfig:hover { background: #113b9e; }
#order-standard_cart #btnCompleteProductConfig:focus-visible {
    outline: 3px solid #537ce2;
    outline-offset: 3px;
}
