.mm-dynamic-popup,
.mm-dynamic-popup * {
    box-sizing: border-box;
}

.mm-dynamic-popup {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(25, 4, 50, 0.82);
}

.mm-dynamic-popup.is-visible {
    display: flex;
}

.mm-dynamic-popup__card {
    --mm-popup-bg-image: none;
    position: relative;
    width: min(100%, 470px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px 24px 24px;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background-image:
        linear-gradient(
            rgba(49, 13, 82, 0.80),
            rgba(105, 18, 102, 0.93)
        ),
        var(--mm-popup-bg-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.mm-dynamic-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #35105b;
    font-size: 25px;
    line-height: 34px;
    cursor: pointer;
}

.mm-dynamic-popup__logo {
    display: block;
    width: 92px;
    max-width: 92px;
    height: auto;
    margin: 0 auto 14px;
}

.mm-dynamic-popup__title {
    margin: 0 38px 14px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 39px !important;
    font-weight: 900 !important;
    line-height: 0.98 !important;
    letter-spacing: -1px;
    text-transform: uppercase;
    text-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
}

.mm-dynamic-popup__content,
.mm-dynamic-popup__content p {
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.mm-dynamic-popup__schedule {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.mm-dynamic-popup__schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.09);
    text-align: left;
}

.mm-dynamic-popup__schedule-date,
.mm-dynamic-popup__schedule-time {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
}

.mm-dynamic-popup__schedule-date strong,
.mm-dynamic-popup__schedule-time span {
    color: #fff !important;
}

.mm-dynamic-popup__schedule-icon {
    flex: 0 0 auto;
    font-size: 19px;
}

@media (max-width: 480px) {
    .mm-dynamic-popup {
        padding: 12px;
    }

    .mm-dynamic-popup__card {
        width: min(100%, 330px);
        max-height: 88vh;
        padding: 19px 14px 16px;
        border-radius: 16px;
    }

    .mm-dynamic-popup__close {
        top: 8px;
        right: 8px;
        width: 31px;
        height: 31px;
        font-size: 22px;
        line-height: 29px;
    }

    .mm-dynamic-popup__logo {
        width: 66px;
        max-width: 66px;
        margin-bottom: 9px;
    }

    .mm-dynamic-popup__title {
        margin: 0 26px 10px !important;
        font-size: 27px !important;
        line-height: 1 !important;
    }

    .mm-dynamic-popup__content,
    .mm-dynamic-popup__content p {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .mm-dynamic-popup__schedule {
        gap: 7px;
        margin-top: 13px;
    }

    .mm-dynamic-popup__schedule-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 9px 10px;
    }

    .mm-dynamic-popup__schedule-date,
    .mm-dynamic-popup__schedule-time {
        font-size: 13px !important;
    }

    .mm-dynamic-popup__schedule-icon {
        font-size: 17px;
    }
}
