/**
 * AB Pay Bridge 前端样式
 */

/* 购买按钮 */
.abpb-buy-container {
    display: inline-block;
    position: relative;
}

.abpb-buy-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #e4393c;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.abpb-buy-btn:hover {
    background: #cc2e31;
    color: #fff;
}

.abpb-buy-btn:active {
    background: #b5272a;
}

.abpb-buy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 错误/消息提示 */
.abpb-buy-msg {
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 4px;
}

.abpb-buy-msg.error {
    color: #e4393c;
    background: #fef0f0;
    border: 1px solid #fde2e2;
}

.abpb-buy-msg.success {
    color: #67c23a;
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
}

/* 弹窗 */
.abpb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abpb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.abpb-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1;
}

.abpb-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.abpb-modal-close:hover {
    color: #333;
}

.abpb-pay-iframe {
    width: 100%;
    min-height: 520px;
    border: 0;
    display: block;
}

/* 响应式 */
@media (max-width: 640px) {
    .abpb-modal-content {
        width: 95%;
    }

    .abpb-pay-iframe {
        min-height: 480px;
    }
}
