.cvc-vehicle-selector-wrap {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 24px;
    margin: 20px auto;
    width: var(--cvc-wrap-width, 100%);
    max-width: var(--cvc-wrap-max-width, 1200px);
    overflow: visible;
}
.cvc-vehicle-selector-wrap.cvc-vs-layout-horizontal {
    max-width: var(--cvc-wrap-max-width, 1200px);
    overflow: visible;
}
.cvc-vs-inner { }
.cvc-vs-title {
    margin: 0 0 16px 0;
    font-size: 1.25rem;
}
.cvc-vs-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--cvc-vs-field-gap, 12px 16px);
    margin-bottom: 16px;
}
/* Universal fix: Force single row for Make, Model, Year (hide Color dropdown) */
/* This applies everywhere but can be overridden for specific layouts */
.cvc-vehicle-selector-wrap .cvc-vs-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid: none !important;
    gap: var(--cvc-vs-field-gap, 12px 16px) !important;
    margin-bottom: 0 !important;
    align-items: flex-end !important;
}
.cvc-vehicle-selector-wrap .cvc-vs-field {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    grid-column: auto !important;
}
.cvc-vehicle-selector-wrap .cvc-vs-field-color-dropdown {
    display: none !important;
}
/* Force single row for Make, Model, Year when inside vehicle shop page */
/* Target direct embedding */
.cvc-vehicle-shop-wrap .cvc-vs-fields,
.cvc-vehicle-shop-wrap #cvc-vehicle-selector .cvc-vs-fields,
.cvc-vehicle-shop-wrap .cvc-vehicle-selector-wrap .cvc-vs-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: var(--cvc-vs-field-gap, 12px 16px) !important;
    margin-bottom: 0 !important;
    align-items: flex-end !important;
}
/* Target Elementor widget embedding - HIGH SPECIFICITY */
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-fields,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-fields,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-fields,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    grid: none !important;
    gap: var(--cvc-vs-field-gap, 12px 16px) !important;
    margin-bottom: 0 !important;
    align-items: flex-end !important;
}
.cvc-vehicle-shop-wrap .cvc-vs-field,
.cvc-vehicle-shop-wrap #cvc-vehicle-selector .cvc-vs-field,
.cvc-vehicle-shop-wrap .cvc-vehicle-selector-wrap .cvc-vs-field,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-field,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-field,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-field,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-field {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    grid-column: auto !important;
}
.cvc-vehicle-shop-wrap .cvc-vs-field-color-dropdown,
.cvc-vehicle-shop-wrap #cvc-vehicle-selector .cvc-vs-field-color-dropdown,
.cvc-vehicle-shop-wrap .cvc-vehicle-selector-wrap .cvc-vs-field-color-dropdown,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-field-color-dropdown,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-field-color-dropdown,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-field-color-dropdown,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-field-color-dropdown {
    display: none !important;
}
/* Force single row for Make, Model, Year on vehicle shop page */
.cvc-vehicle-shop-wrap .cvc-vs-fields,
.cvc-vehicle-shop-wrap #cvc-vehicle-selector .cvc-vs-fields {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: var(--cvc-vs-field-gap, 12px 16px) !important;
    margin-bottom: 0 !important;
    align-items: flex-end !important;
}
.cvc-vehicle-shop-wrap .cvc-vs-field,
.cvc-vehicle-shop-wrap #cvc-vehicle-selector .cvc-vs-field {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.cvc-vehicle-shop-wrap .cvc-vs-field-color-dropdown,
.cvc-vehicle-shop-wrap #cvc-vehicle-selector .cvc-vs-field-color-dropdown {
    display: none !important;
}
.cvc-vs-layout-horizontal .cvc-vs-inner {
    display: flex;
    flex-direction: column;
}
.cvc-vs-layout-horizontal .cvc-vs-title {
    margin-bottom: 12px;
}
/* Horizontal row wrapper for fields */
.cvc-vs-layout-horizontal .cvc-vs-row {
    display: block; /* fields row */
    width: 100%;
}
.cvc-vs-layout-horizontal .cvc-vs-fields {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--cvc-vs-field-gap, 12px 16px);
    align-items: flex-end;
    margin-bottom: 0;
    width: 100%;
}
.cvc-vs-layout-horizontal .cvc-vs-field {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
/* Actions (buttons) appear after color swatches */
.cvc-vs-layout-horizontal .cvc-vs-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    align-items: center;
}
@media (max-width: 768px) {
    .cvc-vs-fields {
        grid-template-columns: 1fr;
    }
    .cvc-vs-layout-horizontal .cvc-vs-row {
        display: block;
        overflow: visible;
    }
    .cvc-vs-layout-horizontal .cvc-vs-fields {
        flex-direction: column;
        width: 100%;
        overflow: visible;
    }
    .cvc-vs-layout-horizontal .cvc-vs-field {
        min-width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    .cvc-vs-layout-horizontal .cvc-vs-actions {
        width: 100%;
        margin-top: 16px;
        overflow: visible;
    }
    .cvc-vs-layout-horizontal .cvc-vs-btn {
        width: 100%;
    }
    .cvc-vs-swatch-name {
        max-width: none;
    }
    .cvc-vs-color-swatches {
        width: 100%;
    }
}
.cvc-vs-field {
    display: flex;
    flex-direction: column;
    overflow: visible;
    min-width: 0;
}
.cvc-vs-field label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
}

.cvc-vs-required {
    color: #E63946;
    font-weight: 700;
    font-size: 1.1em;
    line-height: 1;
}
.cvc-vs-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    min-height: 42px;
    box-sizing: border-box;
    overflow: visible;
    text-overflow: ellipsis;
    vertical-align: middle;
}
.cvc-vs-actions {
    margin-top: 8px;
}
/* Ensure proper order: fields -> color swatches -> actions on vehicle shop page */
.cvc-vehicle-shop-wrap .cvc-vs-inner,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-inner,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-inner,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-inner,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-inner {
    display: flex !important;
    flex-direction: column !important;
}
.cvc-vehicle-shop-wrap .cvc-vs-fields,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-fields,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-fields,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-fields,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-fields {
    order: 1;
}
.cvc-vehicle-shop-wrap .cvc-vs-color-swatches-row,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-color-swatches-row,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-color-swatches-row,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-color-swatches-row,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-color-swatches-row {
    order: 2;
    margin-top: 16px;
}
.cvc-vehicle-shop-wrap .cvc-vs-actions,
.elementor-element.elementor-widget-shortcode .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-actions,
.elementor-element .elementor-widget-container .elementor-shortcode .cvc-vehicle-selector-wrap .cvc-vs-actions,
.elementor-widget-shortcode .cvc-vehicle-selector-wrap .cvc-vs-actions,
.elementor-element .cvc-vehicle-selector-wrap .cvc-vs-actions {
    order: 3;
    margin-top: 16px;
}
.cvc-vs-btn {
    padding: 10px 20px;
    font-size: 1rem;
}
.cvc-vs-reset-btn {
    padding: 10px 20px;
    font-size: 1rem;
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
    margin-left: 8px;
}
.cvc-vs-reset-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: #fff;
}
/* Duplicate removed - see rule at line 51 */
.cvc-vs-layout-horizontal .cvc-vs-reset-btn {
    margin-left: 0;
}
.cvc-vs-error {
    color: #b32d2e;
    margin-top: 12px;
}

/* Color dropdown hidden – selection is via swatches only */
.cvc-vs-field-color-dropdown {
    display: none;
}

/* Color swatches row (horizontal layout): second row with swatches + names */
.cvc-vs-color-swatches-row {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    overflow: visible;
    width: 100%;
}
.cvc-vs-layout-horizontal .cvc-vs-color-swatches-row {
    margin-top: 16px;
}

/* Hide color helper message until colors are loaded */
.cvc-vs-color-instruction,
.cvc-vs-swatches-label {
    display: none;
}
.cvc-vs-color-instruction {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    line-height: 1.4;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #E63946;
    border-radius: 4px;
}
.cvc-vs-color-instruction em {
    font-style: italic;
    color: #495057;
}
.cvc-vs-swatches-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.9rem;
    overflow: visible;
    white-space: nowrap;
}
.cvc-vs-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-start;
    overflow: visible;
    width: 100%;
}
.cvc-vs-swatch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}
.cvc-vs-swatch:hover {
    border-color: #E63946;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.25);
    transform: translateY(-2px);
    background: #fff5f5;
}
.cvc-vs-swatch.selected {
    border-color: #E63946;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2), 0 4px 12px rgba(230, 57, 70, 0.3);
    background: #fff5f5;
    font-weight: 600;
}
.cvc-vs-swatch.selected::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E63946;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    overflow: visible;
}
.cvc-vs-swatch-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.2);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.cvc-vs-swatch.selected .cvc-vs-swatch-circle {
    border-color: #E63946;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}
.cvc-vs-swatch-name {
    font-weight: 500;
    color: #333;
    overflow: visible;
    word-wrap: break-word;
    word-break: break-word;
    max-width: 200px;
    min-width: 0;
    line-height: 1.3;
}
.cvc-vs-swatch.selected .cvc-vs-swatch-name {
    color: #E63946;
    font-weight: 600;
}
.cvc-vs-layout-horizontal .cvc-vs-color-swatches-row {
    margin-top: 14px;
}

/* Manual entry toggle and form */
.cvc-vs-manual-toggle {
    margin-top: 12px;
    padding: 8px 16px;
    background: transparent;
    border: 1px dashed #999;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: visible;
    display: inline-block;
}
.cvc-vs-manual-toggle:hover {
    border-color: #E63946;
    color: #E63946;
    background: #fff5f5;
}
.cvc-vs-manual-entry {
    margin-top: 12px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}
.cvc-vs-manual-entry label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    overflow: visible;
    white-space: nowrap;
}
.cvc-vs-manual-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 8px;
    box-sizing: border-box;
    overflow: visible;
}
.cvc-vs-manual-input:focus {
    outline: none;
    border-color: #E63946;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.1);
}
.cvc-vs-manual-hint {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    overflow: visible;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}
