:root {
    --mfh-pb-extra-offset-desktop: 10vh;
    --mfh-pb-extra-offset-mobile: 14vh;
}

.mfh-pb-shortcode-wrap {
    display: inline-block;
}

.mfh-pb-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    background: #2d4d69;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mfh-pb-trigger:hover,
.mfh-pb-trigger:focus {
    opacity: 0.92;
    transform: translateY(-1px);
}

.mfh-pb-trigger.text {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.mfh-pb-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 99999;
    overflow-y: auto;
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--mfh-pb-top-offset, 24px) + var(--mfh-pb-extra-offset-desktop)) 16px 32px;
    box-sizing: border-box;
}

.mfh-pb-modal.is-active {
    display: flex;
}

.mfh-pb-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.mfh-pb-dialog {
    position: relative;
    z-index: 2;
    width: min(100%, 960px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.mfh-pb-body {
    padding: 26px;
}

.mfh-pb-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    border: 0;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #333333;
}

.mfh-pb-title {
    margin: 0 0 18px;
}

.mfh-pb-audio-wrap {
    margin-bottom: 18px;
}

.mfh-pb-audio-wrap audio {
    width: 100%;
}

.mfh-pb-image-wrap {
    margin-bottom: 18px;
}

.mfh-pb-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

body.mfh-pb-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .mfh-pb-modal {
        padding: calc(var(--mfh-pb-top-offset, 20px) + var(--mfh-pb-extra-offset-mobile)) 10px 18px;
    }

    .mfh-pb-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 12px;
    }

    .mfh-pb-body {
        padding: 20px;
    }
}
