/* 3DS overlay — drop-in for static sites.
   Assumes .s3ds-* classes only; no framework conflicts. */

.s3ds-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 22, 30, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1d24;
}
.s3ds-overlay.s3ds-open { display: flex; }

.s3ds-modal {
    display: none;
    background: #fff;
    width: 92%; max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,.32);
    padding: 28px 24px;
    text-align: center;
    animation: s3ds-in .22s ease-out;
}
.s3ds-modal.s3ds-show { display: block; }

@keyframes s3ds-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.s3ds-head {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 6px;
}
.s3ds-head img { height: 26px; }
.s3ds-head b   { font-size: 15px; font-weight: 600; letter-spacing: .3px; }

.s3ds-title {
    font-size: 18px; font-weight: 600;
    margin: 14px 0 6px;
}
.s3ds-sub {
    font-size: 14px; color: #5a6070;
    line-height: 1.45;
    margin-bottom: 18px;
}

.s3ds-amount {
    display: flex; justify-content: space-between;
    padding: 12px 14px;
    background: #f5f7fb;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 18px;
}
.s3ds-amount b { font-weight: 600; }

.s3ds-input {
    width: 100%;
    padding: 14px;
    font-size: 20px;
    letter-spacing: 6px;
    text-align: center;
    border: 1.5px solid #d5d9e2;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.s3ds-input:focus { border-color: #6772e5; }
.s3ds-input.s3ds-invalid { border-color: #ea5455; background: #fff5f5; }

.s3ds-nc-input {
    text-align: left;
    letter-spacing: normal;
    font-size: 16px;
    margin-top: 10px;
}
.s3ds-nc-row { display: flex; gap: 10px; }
.s3ds-nc-row .s3ds-nc-input { flex: 1; }

.s3ds-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: #635bff;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: background .15s;
    font-family: inherit;
}
.s3ds-btn:hover { background: #5147e5; }
.s3ds-btn[disabled] { opacity: .5; cursor: not-allowed; }

.s3ds-spinner {
    width: 44px; height: 44px;
    margin: 18px auto;
    border: 3px solid #eef0f5;
    border-top-color: #635bff;
    border-radius: 50%;
    animation: s3ds-spin 1s linear infinite;
}
@keyframes s3ds-spin { to { transform: rotate(360deg); } }

.s3ds-check {
    width: 64px; height: 64px;
    margin: 12px auto 18px;
    border-radius: 50%;
    background: #28c76f;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}
.s3ds-cross {
    width: 64px; height: 64px;
    margin: 12px auto 18px;
    border-radius: 50%;
    background: #ea5455;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
}

.s3ds-err { color: #b3261e; font-size: 13px; margin-top: 8px; min-height: 16px; }

.s3ds-push-secs { font-size: 40px; font-weight: 600; margin: 6px 0 4px; }

.s3ds-push-copy {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #1a1f36;
    line-height: 1.5;
    background: #f5f7fb;
    border-left: 3px solid #635bff;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 8px 0 18px;
    text-align: left;
    word-break: break-word;
}
.s3ds-foot { font-size: 12px; color: #8a91a3; margin-top: 18px; }
