/**
 * Selector Buttons CSS
 * 
 * Unified styling for all Pool Builder selector components.
 * This file contains both common multi-selector styles and 
 * specific selector type styles.
 * 
 * @since 1.0.0
 */

/* =====================================================================
   BOOTSTRAP PRIMARY COLOR OVERRIDE
   Override Bootstrap's default primary color with our custom blue
   ===================================================================== */
:root {
    --bs-primary: #1956BC !important;
    --bs-primary-rgb: 25, 86, 188 !important;
}

/* =====================================================================
   UNIFIED MULTI-SELECTOR BUTTON STYLES
   These classes provide consistent styling across all selector types
   ===================================================================== */

.multi-selector-button {
    display: block;
    width: 100%;
    padding: 8px 14px;
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.multi-selector-button:hover {
    border-left: 4px solid #1956BC;
    border-top: 1px solid #1956BC;
    border-right: 1px solid #1956BC;
    border-bottom: 1px solid #1956BC;
}

.multi-selector-button.selected {
    border-left: 4px solid var(--bs-primary, #1956BC);
    border-top: 1px solid var(--bs-primary, #1956BC);
    border-right: 1px solid var(--bs-primary, #1956BC);
    border-bottom: 1px solid var(--bs-primary, #1956BC);
    background: #ffffff;
}

.multi-selector-button .selector-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.multi-selector-button .selector-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

.multi-selector-button .selector-name .model-name {
    font-weight: 400;
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    white-space: nowrap;
}



.multi-selector-button .selector-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.multi-selector-button .selector-quantity .form-select {
    min-width: 60px;
    padding: 4px 8px 4px 8px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.multi-selector-button .selector-price {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

.radio-button-card-content.with-quantity {
    padding-left: 0px !important;
}
.form-select.form-select-sm.quantity-input {
    padding: 0.125rem 0.5rem !important;
    padding-left: 0px !important;
}


/* =====================================================================
   RESPONSIVE DESIGN
   ===================================================================== */

@media (max-width: 768px) {
    .multi-selector-button {
        padding: 12px;
    }
    
    .multi-selector-button .selector-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .multi-selector-button .selector-quantity {
        align-self: flex-end;
    }
}

/* Pool Type Selector */
.type-selector:hover {
    border-left: 4px solid #1956BC;
    border-top: 1px solid #1956BC;
    border-right: 1px solid #1956BC;
    border-bottom: 1px solid #1956BC;
}

.type-selector.selected {
    border-left: 4px solid #1956BC;
    border-top: 1px solid #1956BC;
    border-right: 1px solid #1956BC;
    border-bottom: 1px solid #1956BC;
    background: #ffffff;
}

/* Series Selector */
.series-selector:hover {
    border-left: 4px solid #1956BC;
    border-top: 1px solid #1956BC;
    border-right: 1px solid #1956BC;
    border-bottom: 1px solid #1956BC;
}

.series-selector.selected {
    border-left: 4px solid #1956BC;
    border-top: 1px solid #1956BC;
    border-right: 1px solid #1956BC;
    border-bottom: 1px solid #1956BC;
    background: #ffffff;
}



/* Hide price on size selectors */
.size-selector .option-price,
.size-selector .price-display,
.size-selector .price-amount,
.size-selector .price {
    display: none !important;
}

/* Add padding to size selector content for radio indicator */
.size-selector .radio-button-card-content,
.size-selector .option-info,
.size-selector .selector-content {
    padding-left: 2.5rem;
}

/* Size dimensions text */
.selector-dimensions {
    font-size: 0.875rem;
    color: #666;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* Section separator for multiple option types in same section */
.section-separator {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.section-subheader {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}
