/* Packet Item Selection Menu Styles */

/* Main Container */
.product-selection-menu {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

/* Selection Group */
.selection-group {
    margin-bottom: 25px;
}

.selection-group:last-of-type {
    margin-top: 25px;
}

.selection-group > label {
    display: block;
    font-weight: 700;
    color: #333;
    font-size: 13px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Selection Options Container */
.selection-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.selection-options[data-type="additional"] {
    gap: 12px;
    align-items: flex-start;
}

/* Device/Packet Option */
.device-option {
    flex: 0 1 calc(50% - 8px);
    min-width: 180px;
    padding: 13px 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.device-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.device-option input[type="radio"] {
    cursor: pointer;
}

.device-option i.fa {
    font-size: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.device-option span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.device-option span span:first-child {
    font-size: 12px;
    color: #222;
    font-weight: 700;
}

.device-option span span:last-child {
    font-size: 11px;
    color: #777;
    font-weight: 500;
    margin-top: 2px;
}

/* Variant/Additional Checkbox */
.variant-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    min-width: 220px;
    justify-content: flex-start;
}

.variant-checkbox:hover {
    border-color: #667eea;
    transform: scale(1.02);
}

.variant-checkbox input[type="checkbox"] {
    cursor: pointer;
}

.variant-checkbox .color-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.variant-checkbox span {
    font-size: 12px;
    color: #333;
    font-weight: 500;
}

/* Quantity Selector Container */
#qty-selector-container {
    padding: 11px 14px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    min-width: 130px;
}

#qty-selector-container:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Quantity Buttons */
#qty-minus,
#qty-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f8f8;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#qty-minus:hover,
#qty-plus:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Quantity Display */
#qty-display {
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #222;
}

/* Selected Summary */
.selected-summary {
    margin-top: 20px;
    padding: 13px 16px;
    background: #fafbfc;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
}

.selected-summary p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.selected-summary strong {
    color: #667eea;
    font-weight: 700;
}

#selected-packet {
    color: #333;
    font-weight: 500;
}

#selected-additional {
    color: #666;
}

/* Empty State Message */
.packet-empty-message {
    padding: 10px 12px;
    background: #fff;
    border: 1px dashed #d0d0d0;
    border-radius: 6px;
    color: #777;
    font-size: 13px;
}

@media (max-width: 992px) {
    .product-selection-menu > .selection-group:last-of-type {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .product-selection-menu {
        padding: 18px !important;
    }
    
    .selection-group {
        margin-bottom: 18px !important;
    }
    
    .device-option {
        flex: 0 1 100% !important;
        min-width: none !important;
        padding: 11px 14px !important;
    }
    
    .variant-checkbox {
        flex: 0 1 calc(50% - 6px) !important;
        min-width: 140px;
    }
    
    .selection-options {
        gap: 12px !important;
    }
    
    #qty-selector-container {
        flex: 0 1 calc(50% - 6px) !important;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .variant-checkbox {
        flex: 0 1 100% !important;
        min-width: none !important;
    }
    
    #qty-selector-container {
        flex: 0 1 100% !important;
        min-width: none !important;
    }
    
    .device-option {
        padding: 10px 12px !important;
    }
}
