.nuvi-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.nuvi-modal.is-open {
    display: block;
}

.nuvi-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.nuvi-modal__panel {
    position: relative;
    z-index: 2;
    width: min(92vw, 760px);
    max-height: 85vh;
    margin: 6vh auto 0;
    background: #ffffff;
    color: #000000;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nuvi-modal__topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 72px;
    display: grid;
    grid-template-columns: 120px 1fr 56px;
    align-items: center;
    padding: 20px 16px;
    background: #ffffff;
    border-bottom: 1px solid #b3b3b3;
}

.nuvi-modal__brand img {
    width: 72px;
    height: auto;
}

.nuvi-modal__title {
    text-align: center;
    font-size: var(--font-size-title);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.nuvi-modal__close {
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #000000;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.nuvi-modal__body {
    padding: 24px;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .nuvi-modal__panel {
        width: calc(100vw - 16px);
        max-height: 90vh;
        margin: 16px auto 0;
        border-radius: 16px;
    }

    .nuvi-modal__topbar {
        height: 60px;
        grid-template-columns: 84px 1fr 44px;
        padding: 0 12px;
    }

    .nuvi-modal__brand img {
        width: 58px;
    }

    .nuvi-modal__title {
        font-size: 18px;
    }

    .nuvi-modal__body {
        padding: 18px;
    }

    .nuvi-modal__close {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}
