/**
 * Magelan CustomAttributes - Inquiry Attributes Styles
 */

.inquiry-attributes-wrapper {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    order: 8 !important; /* Position after stock/overview (6-7) and before add-to-cart (9) */
}

.inquiry-attributes-title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.inquiry-attributes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inquiry-attribute-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-attribute-label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Dropdown Styles */
.inquiry-dropdown-container {
    max-width: 300px;
}

.inquiry-attribute-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.inquiry-attribute-select:focus {
    border-color: #1979c3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 121, 195, 0.2);
}

/* Swatch Container */
.inquiry-swatch-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Visual Swatch Styles */
.inquiry-swatch-container.swatch-visual .inquiry-swatch-option {
    width: 32px;
    height: 32px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-size: cover;
    background-position: center;
}

.inquiry-swatch-container.swatch-visual .inquiry-swatch-option:hover {
    border-color: #999;
    transform: scale(1.05);
}

.inquiry-swatch-container.swatch-visual .inquiry-swatch-option.selected {
    border-color: #1979c3;
    box-shadow: 0 0 0 2px rgba(25, 121, 195, 0.3);
}

/* Text Swatch Styles */
.inquiry-swatch-container.swatch-text .inquiry-swatch-option {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.inquiry-swatch-container.swatch-text .inquiry-swatch-option:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.inquiry-swatch-container.swatch-text .inquiry-swatch-option.selected {
    border-color: #1979c3;
    background-color: #e6f2ff;
    color: #1979c3;
    font-weight: 500;
}

/* Price Notice */
.inquiry-price-notice {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 13px;
}

/* Validation Error */
.inquiry-attribute-item.validation-error .inquiry-attribute-label {
    color: #e02b27;
}

.inquiry-attribute-item.validation-error .inquiry-attribute-select,
.inquiry-attribute-item.validation-error .inquiry-swatch-container {
    border-color: #e02b27;
}

/* Responsive */
@media (max-width: 767px) {
    .inquiry-attributes-wrapper {
        margin: 15px 0;
        padding: 12px;
    }
    
    .inquiry-swatch-container.swatch-visual .inquiry-swatch-option {
        width: 40px;
        height: 40px;
    }
}

/* Quote Modal - Selected Options Display */
.quote-product-summary .product-selected-options {
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.quote-product-summary .product-selected-options .label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.quote-product-summary .options-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quote-product-summary .options-list li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
    border-bottom: 1px solid #eee;
}

.quote-product-summary .options-list li:last-child {
    border-bottom: none;
}

.quote-product-summary .options-list li strong {
    color: #333;
}
