.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    display: block;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #1e3a8a;
    font-size: 24px;
    text-align: center;
}

.modal-content input,
.modal-content textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    display: block;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content .submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.modal-content .submit-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
}

.quote-result-message {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.quote-result-message p#quote-success {
    font-size: 18px;
    color: #16a34a;
    margin-bottom: 25px;
}

.quote-result-message p#quote-fail {
    font-size: 18px;
    color: red;
    margin-bottom: 25px;
}

.quote-result-message button {
    padding: 14px 30px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.quote-result-message button:hover {
    background: #2563eb;
}

.quote-btn,
.btn.quote-btn,
.product-card .btn {
    cursor: pointer !important;
}

/* Add to Quote Button */
.add-to-quote-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.add-to-quote-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
}

/* Quote Products List */
.quote-products-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quote-products-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-left: 12px;
    flex-shrink: 0;
    height: 30px;
    display: flex;
    align-items: center;
}

.quote-products-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.quote-products-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    height: 190px;
}

.quote-product-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quote-product-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.quote-product-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

.quote-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quote-product-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #9ca3af;
    text-align: center;
    padding: 2px;
}

.quote-product-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.quote-product-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-product-sku {
    font-size: 10px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-quote-product {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-quote-product:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.quote-products-empty {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.quote-products-empty p {
    margin: 0 0 4px 0;
    font-size: 12px;
}

.quote-products-empty .empty-hint {
    font-size: 10px;
    color: #9ca3af;
}

