/**
 * Wholesale Quote for WooCommerce - Public CSS
 */

.wqw-price-hidden {
    color: #d9534f;
    font-weight: bold;
    font-style: italic;
}

.wqw-moq-display {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 15px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-left: 3px solid #000;
    display: inline-block;
}

/* Wholesale Quote Modal Styles */
.wqw-quote-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.wqw-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
}

.wqw-modal-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wqw-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.wqw-close-modal {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.wqw-close-modal:hover {
    color: #000;
}

.wqw-quote-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.wqw-quote-list-table th, .wqw-quote-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wqw-quote-list-table th {
    background-color: #f9f9f9;
}

.wqw-item-qty-input {
    width: 70px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wqw-remove-item {
    color: #e74c3c;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.wqw-modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: right;
}

.wqw-submit-quote-btn {
    background-color: #000;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.wqw-submit-quote-btn:hover {
    background-color: #333;
}

.wqw-floating-quote-icon {
    position: fixed;
    /* bottom: 30px;  移除或注释掉 */
    /* right: 30px;   移除或注释掉 */
   /* background-color: #rgba(0,140,60,0.51); 移除或注释掉 */
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    /* z-index: 999998;  移除或注释掉 */
    transition: transform 0.3s ease;
}

.wqw-floating-quote-icon:hover {
    transform: scale(1.1);
}

.wqw-quote-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

/* Loading Spinner */
.wqw-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
