/* SC Fitment Frontend Styles */

/* ==========================================================================
   Select2 Overrides
   ========================================================================== */
.select2-container--default .select2-selection--single {
    height: 46px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    padding-left: 0;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #e67e22;
    box-shadow: 0 0 0 1px #e67e22;
}

.select2-dropdown {
    border-color: #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #e67e22;
    outline: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #e67e22;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f5f5f5;
}

.select2-results__option {
    padding: 10px 12px;
}

/* ==========================================================================
   Loader
   ========================================================================== */
.sc-loader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.sc-spinner {
    color: #e67e22;
}

/* ==========================================================================
   Fitment Selector Dropdown
   ========================================================================== */
.sc-fitment-selector {
    display: block;
    width: 100%;
    max-width: 450px;
    padding: 12px 40px 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease;
    margin-bottom: 25px;
}

.sc-fitment-selector:hover {
    border-color: #bbb;
}

.sc-fitment-selector:focus {
    outline: none;
    border-color: #e67e22;
}

.sc-no-fitments {
    color: #888;
    font-size: 14px;
    font-style: italic;
}

/* ==========================================================================
   Fitment Data Sections
   ========================================================================== */
.sc-fitment-group-section {
    margin-bottom: 20px;
}

.sc-fitment-group-section:last-child {
    margin-bottom: 0;
}

.sc-fitment-group-section .sc-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.sc-fitment-data {
    min-height: 20px;
}

/* Messages */
.sc-select-fitment-msg,
.sc-no-data {
    color: #999;
    font-size: 14px;
    font-style: italic;
    margin: 0;
    padding: 0 0 0 18px;
}

.sc-loading {
    color: #888;
    font-size: 14px;
    padding-left: 18px;
}

.sc-error {
    color: #c00;
    font-size: 14px;
    padding-left: 18px;
}

/* ==========================================================================
   Attributes List - Bullet Style
   ========================================================================== */
.sc-attributes-list {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 18px;
}

.sc-attributes-list li {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.sc-attributes-list li strong {
    font-weight: 600;
    color: #333;
}

.sc-attributes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.sc-attributes-table th,
.sc-attributes-table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.sc-attributes-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.sc-attributes-table td {
    color: #666;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .sc-fitment-selector {
        max-width: 100%;
    }
}
