[data-registration-module] .payment-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

[data-registration-module] .payment-overlay[hidden],
[data-registration-module] .payment-overlay [hidden] {
    display: none !important;
}

[data-registration-module] .payment-dialog {
    box-sizing: border-box;
    width: 448px;
    max-width: 100%;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 32px;
    border-radius: 12px;
    background: #fff;
    color: #282828;
    text-align: center;
    font-family: Arial, sans-serif;
    box-shadow: 0 16px 50px rgba(0, 0, 0, .2);
    outline: none;
}

[data-registration-module] .payment-dialog h2 {
    color: #282828;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 18px 0 0;
}

[data-registration-module] #payment-message {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin: 16px 0 0;
    overflow-wrap: anywhere;
}

[data-registration-module] .payment-spinner {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #00a5a5;
    border-right-color: transparent;
    border-radius: 50%;
    animation: registration-payment-spin .8s linear infinite;
}

@keyframes registration-payment-spin {
    to {transform: rotate(360deg);}
}

[data-registration-module] .payment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 40px;
    line-height: 1;
}

[data-registration-module] .payment-icon.success {
    background: #dcfce7;
    color: #00b341;
}

[data-registration-module] .payment-icon.error {
    background: #fee2e2;
    color: #ed0012;
}

[data-registration-module] .payment-icon.pending {
    background: #e0f5f5;
    color: #008f95;
}

[data-registration-module] #payment-close {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    margin-top: 16px;
    padding: 14px 21px;
    border: 0;
    border-radius: 0;
    background: #ed171f;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

[data-registration-module] #payment-close:hover {background: #c61d23;}
[data-registration-module] #payment-close:focus,
[data-registration-module] #payment-close:focus-visible {
    outline: none;
    box-shadow: none;
}

[data-registration-module] .payment-disabled {
    opacity: .5;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(1);
}
