#sales-inquiry-popup {
    display: none;
    position: fixed;
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    min-width: 300px;
    max-width: 880px;
    max-height: 80vh;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1001;
    overflow-y: auto;
}

#popupContent {
    position: relative;
    text-align: center;
}

.closePopup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
}
.closePopup:hover {
    color: #f00;
}

#sales-inquiry-list {
    margin-bottom: 10px;
    position: relative;
    z-index: 0;
}

.sales-inquiry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    padding-bottom: 10px;
    background: #fff;
    position: static;
    flex-wrap: wrap;
    z-index: auto;
}

.sales-inquiry-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #ddd;
}

.sales-inquiry-item-details {
    text-align: left;
    flex: 1;
    min-width: 200px;
}

.sales-inquiry-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.quantity-input {
    width: 60px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #000;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.upgrades-section {
    font-size: 14px;
    text-align: left;
    margin: 10px 0 10px 0;
    background: white;
    padding: 10px 0;
    width: 100%;
    z-index: auto;
    position: static;
}

.upgrade-option {
    display: block;
    margin-bottom: 6px;
}

#sales-inquiry-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#sales-inquiry-form input {
    flex: 0 0 48%;
    padding: 10px;
    font-size: 14px;
}
#sales-inquiry-form textarea {
    flex: 0 0 100%;
}
#submitInquiry {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: white;
    border: 2px solid #f3380f;
    color: #f3380f;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
#submitInquiry:hover {
    background-color: #f3380f;
    color: white;
}

#sales-inquiry-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
}

#sales-inquiry-float-button {
    position: fixed;
    top: 20%;
    right: 42px;
    background-color: #393939;
    color: white;
    padding: 10px 15px;
    transform: rotate(-90deg);
    transform-origin: top right;
    cursor: pointer;
    z-index: 9999;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    font-size: 15px;
}
#sales-inquiry-float-button:hover {
    background-color: #f3380f;
}

.add-to-sales-inquiry {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 30px !important;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    width: 35%;
}

.sku-line {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

/* Flex responsiveness */
@media screen and (max-width: 480px) {
    #sales-inquiry-popup {
        padding: 20px;
    }
    .sales-inquiry-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .sales-inquiry-controls {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .sales-inquiry-item img {
        margin-bottom: 10px;
    }
    #sales-inquiry-form input,
    #sales-inquiry-form textarea {
        flex: 0 0 100%;
    }
	.add-to-sales-inquiry {
    width: 100% !important;
}
}
