/* BW Nice Number 前端样式 */

.bw-nice-number-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.bw-nice-number-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.bw-nice-number-message.bw-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bw-nice-number-message.bw-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bw-nice-number-message.bw-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.bw-nice-number-user-info {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
}

.bw-nice-number-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bw-nice-number-header {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.bw-nice-number-header div {
    padding: 12px 15px;
}

.bw-nice-number-item {
    display: flex;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.bw-nice-number-item:last-child {
    border-bottom: none;
}

.bw-nice-number-item:hover {
    background-color: #f8f9fa;
}

.bw-number,
.bw-price,
.bw-action {
    padding: 15px;
    display: flex;
    align-items: center;
}

.bw-number {
    flex: 2;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.bw-price {
    flex: 1;
    color: #e44d26;
    font-weight: 600;
}

.bw-action {
    flex: 1;
    justify-content: center;
}


.bw-not-enough {
    color: #dc3545;
    font-size: 14px;
}

.bw-nice-number-pagination {
    margin-top: 20px;
    text-align: center;
}

.bw-nice-number-pagination .page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.bw-nice-number-pagination .page-numbers.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.bw-nice-number-pagination .page-numbers:hover:not(.current) {
    background-color: #f8f9fa;
}

/* 模态框样式 */
.bw-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

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

.bw-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.bw-modal-close:hover,
.bw-modal-close:focus {
    color: black;
    text-decoration: none;
}

.bw-modal h3 {
    margin-top: 0;
    color: #333;
}

.bw-modal-actions {
    margin-top: 20px;
    text-align: right;
}

.bw-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.bw-button-primary {
    background-color: #007bff;
    color: white;
}

.bw-button-primary:hover {
    background-color: #0069d9;
}

#bw-cancel-buy {
    background-color: #6c757d;
    color: white;
}

#bw-cancel-buy:hover {
    background-color: #5a6268;
}

/* 响应式样式 */
@media (max-width: 768px) {

    .bw-nice-number-item,
    .bw-nice-number-header {
        flex-direction: column;
    }

    .bw-number,
    .bw-price,
    .bw-action {
        width: 100%;
        padding: 10px 15px;
        justify-content: flex-start;
    }

    .bw-action {
        padding-bottom: 15px;
    }
}