/**
 * Coolster Vehicle Selector - Frontend Styles
 * Primary Brand Color: #ed2229
 * Banner Specific Icon Color: #D0504F
 */

/* Base Reset */
.cvs-vehicle-header,
.cvs-modal,
.cvs-notification {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cvs-vehicle-header *,
.cvs-modal *,
.cvs-notification * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Header Trigger Button */
.cvs-vehicle-header {
    display: inline-block;
    vertical-align: middle;
}

.cvs-vehicle-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #ed2229;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(237, 34, 41, 0.15);
    text-decoration: none;
    outline: none;
    min-height: 48px;
    white-space: nowrap;
}

.cvs-vehicle-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cvs-vehicle-trigger:hover::before {
    left: 100%;
}

.cvs-vehicle-trigger:hover,
.cvs-vehicle-trigger:focus {
    background: #ed2229;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 34, 41, 0.35);
}

.cvs-vehicle-trigger:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(237, 34, 41, 0.25);
}

.cvs-vehicle-trigger.cvs-has-vehicle {
    background: linear-gradient(135deg, #ed2229 0%, #c11a20 100%);
    color: #fff;
    border-color: #ed2229;
    box-shadow: 0 4px 16px rgba(237, 34, 41, 0.3);
}

.cvs-vehicle-trigger.cvs-has-vehicle:hover,
.cvs-vehicle-trigger.cvs-has-vehicle:focus {
    background: linear-gradient(135deg, #c11a20 0%, #a01419 100%);
    box-shadow: 0 8px 24px rgba(237, 34, 41, 0.45);
    transform: translateY(-3px);
}

.cvs-vehicle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.cvs-vehicle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cvs-vehicle-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.3;
    text-align: left;
    overflow: hidden;
}

.cvs-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    opacity: 0.92;
    font-weight: 600;
    line-height: 1.2;
}

.cvs-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvs-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 12px;
    height: 12px;
}

.cvs-vehicle-trigger:hover .cvs-arrow {
    transform: translateY(3px);
}

/* Modal Overlay */
.cvs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cvs-modal.cvs-active {
    display: flex;
    opacity: 1;
}

.cvs-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: cvsOverlayFadeIn 0.3s ease;
}

@keyframes cvsOverlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cvs-modal-container {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    /* CHANGED: Removed overflow hidden to allow dropdowns to pop out */
    overflow: visible; 
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: cvsModalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cvsModalZoom {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.cvs-modal-header {
    background: linear-gradient(135deg, #ed2229 0%, #c11a20 100%);
    color: #fff;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #a01419;
    flex-shrink: 0;
    position: relative;
    /* Added radius to match container */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.cvs-modal-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
}

.cvs-modal-title,
h2#cvs-modal-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;
    line-height: 1.3 !important;
    flex: 1;
}

.cvs-modal-title svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Close Button */
.cvs-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    min-height: 40px !important;
    max-height: 40px !important;
    border-radius: 50%;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    font-weight: 300;
    text-align: center;
    margin: 0;
    font-family: inherit;
}

.cvs-modal-close:hover,
.cvs-modal-close:focus {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.cvs-modal-close:active {
    transform: rotate(90deg) scale(1.05);
}

button.cvs-modal-close span {
    margin-top: -4px;
}

/* Modal Body */
.cvs-modal-body {
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    background: #fff;
    /* Added radius to match container */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.cvs-modal-body::-webkit-scrollbar {
    width: 10px;
}

.cvs-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cvs-modal-body::-webkit-scrollbar-thumb {
    background: #ed2229;
    border-radius: 10px;
    transition: background 0.3s;
}

.cvs-modal-body::-webkit-scrollbar-thumb:hover {
    background: #c11a20;
}

/* Tabs */
.cvs-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 3px solid #f0f0f0;
    padding-bottom: 0;
}

.cvs-tab-btn {
    padding: 14px 26px;
    background: none;
    border: none;
    border-bottom: 4px solid transparent;
    font-size: 15px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    bottom: -3px;
    font-family: inherit;
}

.cvs-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 4px;
    background: #ed2229;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cvs-tab-btn:hover,
.cvs-tab-btn:focus {
    color: #ed2229;
    outline: none;
}

.cvs-tab-btn.cvs-active {
    color: #ed2229;
    border-bottom-color: transparent;
}

.cvs-tab-btn.cvs-active::after {
    width: 100%;
}

.cvs-tab-panel {
    display: none;
}

.cvs-tab-panel.cvs-active {
    display: block;
    animation: cvsFadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cvsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Current Vehicle Banner */
.cvs-current-banner {
    background: #fff;
    color: #333;
    padding: 20px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.cvs-banner-icon {
    background: #fff0f0;
    color: #D0504F;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 1px solid #ffeaea;
}

.cvs-banner-icon svg {
    width: 26px;
    height: 26px;
}

.cvs-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.cvs-banner-text strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.6;
    font-weight: 700;
    line-height: 1.2;
    color: #666;
}

.cvs-banner-text span {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: #2c3e50;
}

/* Form */
.cvs-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cvs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cvs-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cvs-form-label {
    font-weight: 700;
    font-size: 13px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.4;
}

.cvs-form-label svg {
    color: #ed2229;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* Select Dropdown */
.cvs-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    font-family: inherit;
    color: #2c3e50;
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1.5 4.5 2.91 3.09 6 6.17 9.09 3.09 10.5 4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    min-height: 50px;
}

.cvs-form-control:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cvs-form-control:focus {
    outline: none;
    border-color: #ed2229;
    box-shadow: 0 0 0 4px rgba(237, 34, 41, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 12 12'%3E%3Cpath fill='%23ed2229' d='M6 9L1.5 4.5 2.91 3.09 6 6.17 9.09 3.09 10.5 4.5z'/%3E%3C/svg%3E");
}

.cvs-form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    color: #999;
    border-color: #e0e0e0;
}

.cvs-form-control option {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    background: #fff;
}

.cvs-form-control option:checked,
.cvs-form-control option:hover {
    background: #ed2229;
    color: #fff;
}

.cvs-form-control option[value=""] {
    color: #999;
    font-style: italic;
}

/* Buttons */
.cvs-form-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cvs-btn {
    padding: 15px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
    min-height: 52px;
}

.cvs-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cvs-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cvs-btn:hover::before {
    width: 300px;
    height: 300px;
}

.cvs-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(237, 34, 41, 0.2);
}

.cvs-btn-primary {
    background: linear-gradient(135deg, #ed2229 0%, #c11a20 100%);
    color: #fff;
    flex: 1;
    box-shadow: 0 4px 16px rgba(237, 34, 41, 0.35);
}

.cvs-btn-primary:hover:not(:disabled),
.cvs-btn-primary:focus:not(:disabled) {
    background: linear-gradient(135deg, #c11a20 0%, #a01419 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(237, 34, 41, 0.5);
}

.cvs-btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(237, 34, 41, 0.4);
}

.cvs-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
    transform: none;
}

/* Shop Without Vehicle Link Styles */
.cvs-shop-without-wrapper {
    text-align: center;
    margin-top: 5px;
}

.cvs-shop-without-btn {
    font-size: 15px;
    color: #777;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
}

.cvs-shop-without-btn:hover {
    color: #ed2229;
    text-decoration: underline;
}

/* Saved Vehicles List */
.cvs-saved-list,
.cvs-modal-saved-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cvs-no-vehicles {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.6;
}

.cvs-saved-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cvs-saved-item:hover {
    background: #f0f0f0;
    border-color: #ed2229;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(237, 34, 41, 0.15);
}

.cvs-saved-item.cvs-is-current {
    background: linear-gradient(135deg, #ed2229 0%, #c11a20 100%);
    color: #fff;
    border-color: #ed2229;
    box-shadow: 0 4px 16px rgba(237, 34, 41, 0.3);
}

.cvs-saved-item.cvs-is-current:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(237, 34, 41, 0.4);
}

.cvs-saved-item .cvs-vehicle-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cvs-saved-item.cvs-is-current .cvs-vehicle-icon {
    background: rgba(255, 255, 255, 0.25);
}

.cvs-saved-item .cvs-vehicle-icon svg {
    width: 26px;
    height: 26px;
}

.cvs-vehicle-info {
    flex: 1;
    min-width: 0;
}

.cvs-vehicle-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cvs-current-label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    line-height: 1.3;
}

.cvs-vehicle-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.cvs-btn-select {
    padding: 10px 18px;
    background: #ed2229;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    font-family: inherit;
    white-space: nowrap;
}

.cvs-btn-select:hover,
.cvs-btn-select:focus {
    background: #c11a20;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(237, 34, 41, 0.4);
    outline: none;
}

.cvs-btn-select:active {
    transform: scale(1.03);
}

.cvs-btn-remove {
    padding: 10px;
    background: rgba(0, 0, 0, 0.08);
    color: #ed2229;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.cvs-btn-remove svg {
    width: 18px;
    height: 18px;
}

.cvs-btn-remove:hover,
.cvs-btn-remove:focus {
    background: #ed2229;
    color: #fff;
    transform: scale(1.15);
    outline: none;
}

.cvs-btn-remove:active {
    transform: scale(1.05);
}

.cvs-saved-item.cvs-is-current .cvs-btn-remove {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
}

.cvs-saved-item.cvs-is-current .cvs-btn-remove:hover,
.cvs-saved-item.cvs-is-current .cvs-btn-remove:focus {
    background: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Notifications */
.cvs-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 36px;
    border-radius: 10px;
    font-weight: 600;
    z-index: 10000000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-size: 15px;
    letter-spacing: 0.4px;
    max-width: 90%;
    text-align: center;
    font-family: inherit;
}

.cvs-notification.cvs-show {
    bottom: 40px;
}

.cvs-notification.cvs-success {
    background: linear-gradient(135deg, #ed2229 0%, #c11a20 100%);
    color: #fff;
}

.cvs-notification.cvs-error {
    background: linear-gradient(135deg, #ed2229 0%, #c11a20 100%);
    color: #fff;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    border: 2px solid #ddd !important;
    border-radius: 8px !important;
    height: auto !important;
    padding: 14px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s !important;
    min-height: 50px !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #bbb !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #ed2229 !important;
    box-shadow: 0 0 0 4px rgba(237, 34, 41, 0.1) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #2c3e50 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
    font-style: italic !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-dropdown {
    border: 2px solid #ed2229 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    overflow: hidden !important;
    /* Added high Z-index so it stays on top of modal parts */
    z-index: 9999999 !important;
}

.select2-container--default .select2-search--dropdown {
    padding: 12px !important;
    background: #f8f8f8 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid #ddd !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    outline: none !important;
    font-family: inherit !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #ed2229 !important;
    box-shadow: 0 0 0 3px rgba(237, 34, 41, 0.1) !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s !important;
}

.select2-container--default .select2-results__option--highlighted {
    background: #ed2229 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #f0f0f0 !important;
    color: #2c3e50 !important;
    font-weight: 700 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
    background: #c11a20 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__message {
    padding: 24px !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 14px !important;
}

.select2-container--default .select2-results__option.loading-results {
    padding: 24px !important;
    text-align: center !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
    background: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Utility Classes */
.cvs-hidden {
    display: none !important;
}

.cvs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
    .cvs-modal-container {
        top:-12%;
        max-width: 95%;
    }
    
    .cvs-modal-body {
        padding: 28px;
    }
    
    .cvs-form-row {
        gap: 18px;
    }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .cvs-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .cvs-modal-container {
        max-width: 90%;
        max-height: 95vh;
        top:-35%;
        animation: cvsModalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes cvsModalSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .cvs-modal-header {
        padding: 20px 24px;
    }
    
    .cvs-modal-title,
    h2#cvs-modal-title {
        font-size: 18px !important;
        gap: 10px;
    }
    
    .cvs-modal-title svg {
        width: 24px;
        height: 24px;
    }
    
    .cvs-modal-close {
        width: 36px;
        min-height: 36px !important;
        max-height: 36px !important;
        font-size: 24px;
    }
    
    .cvs-modal-body {
        padding: 24px;
    }
    
    .cvs-tabs {
        gap: 8px;
    }
    
    .cvs-tab-btn {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .cvs-form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cvs-form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .cvs-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cvs-vehicle-trigger {
        padding: 11px 16px;
        font-size: 13px;
        gap: 8px;
        min-height: 44px;
    }
    
    .cvs-vehicle-icon {
        width: 20px;
        height: 20px;
    }
    
    .cvs-label {
        font-size: 9px;
    }
    
    .cvs-name {
        font-size: 13px;
        max-width: 180px;
    }
    
    .cvs-current-banner {
        padding: 16px 20px;
        flex-wrap: wrap;
    }
    
    .cvs-banner-icon {
        width: 44px;
        height: 44px;
    }
    
    .cvs-banner-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .cvs-banner-text span {
        font-size: 15px;
    }
    
    .cvs-saved-item {
        flex-wrap: wrap;
        padding: 16px;
    }
    
    .cvs-vehicle-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cvs-btn-select {
        flex: 1;
    }
}

/* Responsive: Small Mobile */
@media (max-width: 480px) {
    .cvs-vehicle-trigger {
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
        min-height: 42px;
    }
    
    .cvs-vehicle-icon {
        width: 18px;
        height: 18px;
    }
    
    .cvs-label {
        font-size: 8px;
    }
    
    .cvs-name {
        font-size: 12px;
        max-width: 150px;
    }
    
    .cvs-arrow {
        width: 10px;
        height: 10px;
    }
    
    .cvs-modal-header {
        padding: 18px 20px;
    }
    
    .cvs-modal-title,
    h2#cvs-modal-title {
        font-size: 16px !important;
    }
    
    .cvs-modal-title svg {
        width: 20px;
        height: 20px;
    }
    
    .cvs-modal-close {
        width: 32px;
        min-height: 32px !important;
        max-height: 32px !important;
        font-size: 22px;
    }
    
    .cvs-modal-body {
        padding: 20px;
    }
    
    .cvs-tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .cvs-form-control {
        padding: 12px 14px;
        font-size: 13px;
        min-height: 46px;
    }
    
    .cvs-btn {
        padding: 13px 24px;
        font-size: 13px;
        min-height: 48px;
    }
    
    .cvs-current-banner {
        padding: 14px 18px;
    }
    
    .cvs-banner-text span {
        font-size: 14px;
    }
    
    .cvs-vehicle-name {
        font-size: 15px;
    }
}

/* Print Styles */
@media print {
    .cvs-vehicle-header,
    .cvs-modal {
        display: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .cvs-vehicle-trigger,
    .cvs-form-control,
    .cvs-btn {
        border-width: 3px;
    }
}

/* Focus Visible (Keyboard Navigation) */
.cvs-vehicle-trigger:focus-visible,
.cvs-modal-close:focus-visible,
.cvs-tab-btn:focus-visible,
.cvs-form-control:focus-visible,
.cvs-btn:focus-visible,
.cvs-btn-select:focus-visible,
.cvs-btn-remove:focus-visible {
    outline: 3px solid #ed2229;
    outline-offset: 2px;
}

/* ============================================================================
   CVS Doofinder Integration - PRODUCTION v4.5.1
   UPDATED: Green highlight removed. Replaced with Default Red #ed2229
   ============================================================================ */

/* Vehicle Banner */
.cvs-doofinder-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #ed2229;
    color: #ffffff;
    border-radius: 4px;
    margin: 12px 16px;
    box-shadow: 0 2px 4px rgba(237, 34, 41, 0.2);
    font-family: inherit;
}

.cvs-df-banner-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.cvs-df-banner-icon svg {
    display: block;
}

.cvs-df-banner-text {
    flex: 1;
    font-size: 13px;
    line-height: 1.3;
}

.cvs-df-banner-text strong {
    display: inline;
    font-weight: 600;
    margin-right: 4px;
}

.cvs-df-banner-text span {
    font-size: 14px;
    font-weight: 600;
}

/* Match Badge - UPDATED COLOR #ed2229 */
.cvs-match-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #ed2229;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(237, 34, 41, 0.35);
    z-index: 10;
    line-height: 1;
    pointer-events: none;
}

.cvs-match-badge svg {
    flex-shrink: 0;
    display: block;
    width: 14px;
    height: 14px;
}

.cvs-match-badge span {
    white-space: nowrap;
}

/* Matching Product Highlight - UPDATED BORDER #ed2229 */
.dfd-card.cvs-vehicle-match {
    box-shadow: 0 0 0 2px #ed2229 !important;
    height: 100% !important;
    position: relative !important;
}

/* Ensure media container supports badge positioning */
.dfd-card__media {
    position: relative !important;
}

/* CRITICAL: Prevent height issues */
.cvs-vehicle-match,
.cvs-vehicle-match * {
    box-sizing: border-box;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cvs-doofinder-banner {
        margin: 8px 12px;
        padding: 8px 12px;
        gap: 10px;
    }
    
    .cvs-df-banner-icon {
        width: 24px;
        height: 24px;
    }
    
    .cvs-df-banner-text {
        font-size: 12px;
    }
    
    .cvs-df-banner-text span {
        font-size: 13px;
    }
    
    .cvs-match-badge {
        top: 4px;
        left: 4px;
        padding: 3px 6px;
        font-size: 10px;
    }
    
    .cvs-match-badge svg {
        width: 12px;
        height: 12px;
    }
}

/* Performance optimization */
.cvs-match-badge {
    will-change: transform;
    backface-visibility: hidden;
}

/* Ensure grid layout stays intact */
.dfd-results-grid .cvs-vehicle-match {
    margin: 0;
    padding: 0;
}

/* FIX: Removed bottom:6vw rule and forced max height on options if needed */
.select2-container--default .select2-results>.select2-results__options {
    max-height: 150px !important;
}