/* Nacify 3DS Bridge - Public Styles v2.6.0 */

.nacify-3ds-mount,
.nacify-3ds-hidden,
#cardinal_collection_form_div {
    display: none !important;
}

body.nacify-3ds-modal-open {
    overflow: hidden;
}

#modal-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.68);
}

#modal-container.nacify-3ds-active {
    display: flex;
}

#modal-content {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.nacify-3ds-modal__header,
.nacify-3ds-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: #f8fafc;
}

.nacify-3ds-modal__title-wrap {
    min-width: 0;
}

.nacify-3ds-modal__eyebrow {
    margin: 0 0 4px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nacify-3ds-modal__title {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
}

.nacify-3ds-modal__close {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.nacify-3ds-modal__frame-wrap {
    padding: 0;
    background: #ffffff;
}

#step-up-iframe-id {
    display: block;
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #ffffff;
}

.nacify-3ds-modal__notice {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

#nacify-3ds-popup-fallback {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

#nacify-3ds-popup-fallback[disabled] {
    opacity: 0.65;
    cursor: wait;
}

#nacify-3ds-popup-blocked {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    z-index: 1000000;
    max-width: min(520px, calc(100vw - 32px));
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
    font-size: 14px;
    line-height: 1.5;
}

@media screen and (max-width: 680px) {
    #modal-container {
        padding: 0;
    }

    #modal-content {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .nacify-3ds-modal__header,
    .nacify-3ds-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .nacify-3ds-modal__close {
        align-self: flex-end;
    }

    #step-up-iframe-id {
        min-height: calc(100vh - 170px);
    }
}
