.b2sc-modal[hidden] {
    display: none !important;
}

.b2sc-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 24, 32, .56);
    backdrop-filter: blur(2px);
}

.b2sc-dialog {
    width: min(360px, 100%);
    padding: 26px;
    box-sizing: border-box;
    border-radius: var(--b2radius, 12px);
    background: var(--b2bg, #fff);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
    color: var(--b2color, #333);
}

.b2sc-title {
    margin: 0 0 18px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
}

.b2sc-loading {
    padding: 22px 0;
    text-align: center;
    color: #999;
    cursor: pointer;
}

.b2sc-row,
.b2sc-actions {
    display: flex;
    gap: 10px;
}

.b2sc-row {
    align-items: center;
    margin-bottom: 15px;
}

.b2sc-image {
    width: 132px;
    height: 42px;
    flex: 0 0 132px;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px;
    cursor: pointer;
}

.b2sc-input {
    min-width: 0;
    width: 100%;
    height: 42px;
    padding: 0 11px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 15px;
    outline: none;
}

.b2sc-input:focus {
    border-color: var(--b2color, #e74c3c);
}

.b2sc-button {
    min-height: 40px;
    flex: 1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.b2sc-cancel {
    border: 1px solid rgba(0, 0, 0, .12);
    background: transparent;
    color: #777;
}

.b2sc-confirm {
    border: 0;
    background: var(--b2color, #e74c3c);
    color: #fff;
}

.b2sc-confirm:disabled {
    opacity: .55;
    cursor: wait;
}

.b2sc-error {
    margin: 12px 0 0;
    color: #e74c3c;
    font-size: 13px;
    text-align: center;
}

.b2sc-success {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1000000;
    transform: translate(-50%, -50%);
    padding: 13px 24px;
    border-radius: 8px;
    background: #35b56a;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 15px;
}

@media (max-width: 480px) {
    .b2sc-dialog {
        padding: 22px 18px;
    }

    .b2sc-image {
        width: 120px;
        flex-basis: 120px;
    }
}
