/* Product Selection Styles */

/* Checkbox Customization */
.product-select-checkbox {
    position: relative;
    display: block;
}

.product-checkbox:checked + .checkbox-custom {
    background: #f3c07b !important;
    border-color: #f3c07b !important;
}

.product-checkbox:checked + .checkbox-custom .checkmark {
    display: block !important;
    color: white !important;
}

/* Floating Quote Button */
.quote-floating-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #f3c07b 0%, #d98b4a 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(243, 192, 123, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.quote-floating-btn.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.quote-floating-btn:hover {
    box-shadow: 0 6px 25px rgba(243, 192, 123, 0.6);
    transform: scale(1.05);
}

.quote-floating-btn:active {
    transform: scale(0.95);
}

.quote-btn-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-icon {
    width: 20px;
    height: 20px;
    stroke: white;
}

.quote-btn-text {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.quote-count-badge {
    background: white;
    color: #d98b4a;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Quote Modal */
.quote-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quote-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quote-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quote-modal-close:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.quote-modal-body {
    padding: 24px;
}

.quote-form-group {
    margin-bottom: 20px;
}

.quote-form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.quote-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.quote-form-input:focus {
    outline: none;
    border-color: #f3c07b;
    box-shadow: 0 0 0 3px rgba(243, 192, 123, 0.1);
}

.quote-form-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.quote-selected-products {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.quote-selected-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    font-size: 14px;
}

.quote-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: white;
    border-radius: 8px;
    margin-bottom: 8px;
}

.quote-product-item:last-child {
    margin-bottom: 0;
}

.quote-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #f3f4f6;
}

.quote-product-info {
    flex: 1;
}

.quote-product-name {
    font-weight: 600;
    font-size: 13px;
    color: #1f2937;
    margin-bottom: 2px;
}

.quote-product-meta {
    font-size: 11px;
    color: #6b7280;
}

.quote-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
}

.quote-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quote-btn-primary {
    background: linear-gradient(135deg, #f3c07b 0%, #d98b4a 100%);
    color: white;
}

.quote-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 192, 123, 0.4);
}

.quote-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.quote-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.quote-btn-secondary:hover {
    background: #e5e7eb;
}

.quote-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .quote-floating-btn {
        bottom: 80px;
        right: 16px;
        padding: 12px 16px;
    }
    
    .quote-btn-text {
        font-size: 13px;
    }
    
    .quote-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .quote-modal-header {
        padding: 20px;
    }
    
    .quote-modal-body {
        padding: 20px;
    }
    
    .quote-modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .quote-btn {
        width: 100%;
    }
}

/* Desktop product cards - position relative for checkbox */
.product-card {
    position: relative;
}
