/* 全局样式重置 */
#wqw-floating-button,
#wqw-quote-modal,
#wqw-quote-table {
    box-sizing: border-box;
    font-family: inherit;
}

/* 悬浮按钮 */
#wqw-floating-button {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
    outline: none;
}
#wqw-floating-button .wqw-button-icon {
    font-size: 24px;
    line-height: 1;
}
#wqw-quote-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0 6px;
}

/* 弹窗遮罩 */
#wqw-quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#wqw-quote-modal.active {
    display: flex;
}

/* 弹窗内容 */
#wqw-quote-modal .wqw-modal-content {
    width: 100%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

/* 弹窗头部 */
#wqw-quote-modal .wqw-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#wqw-quote-modal .wqw-modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}
.wqw-modal-close {
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    color: #999;
    transition: color 0.3s ease;
}
.wqw-modal-close:hover {
    color: #000;
}

/* 弹窗主体 */
#wqw-quote-modal .wqw-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 报价表格 */
#wqw-quote-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
#wqw-quote-table thead th {
    padding: 15px 10px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}
#wqw-quote-table tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
#wqw-quote-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格列样式 */
.wqw-product-image img {
    border-radius: 4px;
}
.wqw-product-sku {
    font-weight: 500;
    color: #666;
}
.wqw-product-name {
    font-weight: 500;
    max-width: 200px;
    word-wrap: break-word;
}
.wqw-package-size,
.wqw-qty-per-cartoon,
.wqw-gross-weight,
.wqw-color,
.wqw-size {
    color: #666;
}

/* 数量输入框 */
.wqw-quantity-input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}
.wqw-quantity-input:focus {
    outline: none;
    border-color: #000;
}

/* 移除按钮 */
.wqw-remove-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.wqw-remove-btn:hover {
    color: #cc0000;
}

/* 空列表样式 */
.wqw-empty-quote {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
}

/* 弹窗底部 */
#wqw-quote-modal .wqw-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}
#wqw-submit-quote {
    padding: 15px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#wqw-submit-quote:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}

/* 响应式适配 */
@media screen and (max-width: 1024px) {
    #wqw-quote-table thead {
        display: none;
    }
    #wqw-quote-table tbody td {
        display: flex;
        align-items: center;
        padding: 10px;
        border-bottom: none;
    }
    #wqw-quote-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        width: 120px;
        margin-right: 10px;
    }
    #wqw-quote-table tbody tr {
        border-bottom: 1px solid #eee;
    }
}