/* =======================================================================
   SÉLECTION VO - Composant Page Builder Maurin
   Présentation identique à franck-listing-used-cars
   ======================================================================= */

@import url('franck-listing-used-cars.css');

.selection-vo {
    position: relative;
}

.selection-vo__header {
    margin-bottom: 28px;
    text-align: center;
}

.selection-vo__title {
    font-size: var(--sv-title-size, 32px);
    font-weight: 700;
    color: var(--sv-title-color, var(--theme-text-color, #1e293b));
    margin-bottom: 8px;
    line-height: 1.25;
}

.selection-vo__subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.5;
}

/* Multi-select dropdown styles (Builder settings & front) */
.sv-multiselect {
    position: relative;
}
.sv-ms-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    cursor: pointer;
    text-align: left;
    height: 42px;
    font-size: 13.5px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sv-ms-btn:focus,
.sv-ms-btn.is-active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}
.sv-ms-label {
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sv-ms-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.18), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 10px;
    z-index: 1060;
}
.sv-ms-list {
    max-height: 210px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sv-ms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    margin: 0;
    user-select: none;
    transition: background 0.15s;
}
.sv-ms-item:hover {
    background-color: #f1f5f9;
}
.sv-ms-item input[type="checkbox"] {
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 8px;
}
.sv-ms-item .sv-item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sv-ms-item .sv-item-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
}
.sv-badge-pill {
    font-size: 11px;
    font-weight: 600;
}
