.mf-rsvp {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem;
}

.mf-rsvp__header {
    margin-bottom: 1rem;
}

.mf-rsvp__title {
    margin: 0 0 0.35rem;
}

.mf-rsvp__subtitle,
.mf-rsvp__help {
    margin: 0;
    opacity: 0.9;
}

.mf-rsvp__label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.mf-rsvp__input {
    width: 100%;
    min-height: 180px;
    padding: 0.75rem;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    resize: vertical;
    line-height: 1.5;
}

.mf-rsvp__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    align-items: center;
}

.mf-rsvp__counter {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.mf-rsvp__speed-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.mf-rsvp__speed {
    width: 180px;
}

.mf-rsvp__button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    background: #0d6efd;
    color: #fff;
}

.mf-rsvp__store-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.85rem;
    background: #111827;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
}

.mf-rsvp__store-badge {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #34a853;
    font-weight: 700;
}

.mf-rsvp__store-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
}

.mf-rsvp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mf-rsvp-overlay.is-open {
    display: flex;
}

.mf-rsvp-overlay[hidden] {
    display: none !important;
}

.mf-rsvp-overlay__panel {
    width: min(900px, 100%);
    min-height: 440px;
    height: min(78vh, 620px);
    background: #fdf6e3;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.25rem 2rem 4.25rem;
}

.mf-rsvp-overlay__actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mf-rsvp-overlay__icon-btn,
.mf-rsvp-overlay__close {
    border: 0;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mf-rsvp-overlay__close {
    font-size: 1.5rem;
    line-height: 1;
}

.mf-rsvp-overlay__icon {
    display: inline-block;
    width: auto;
    height: auto;
    font-size: 1.2rem;
    line-height: 1;
}

.mf-rsvp-overlay__pause-svg {
    width: 16px;
    height: 16px;
    font-size: 0;
}

.mf-rsvp-overlay__word {
    margin: 0;
    position: relative;
    width: 100%;
    max-width: 760px;
    min-height: 1.25em;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    user-select: none;
}

.mf-rsvp-overlay__line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    min-height: 1em;
}

.mf-rsvp-overlay__before,
.mf-rsvp-overlay__focal,
.mf-rsvp-overlay__after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    white-space: pre;
}

.mf-rsvp-overlay__before {
    right: calc(50% + var(--mf-focal-half, 0px) + var(--mf-focal-gap, 0.04em));
    text-align: right;
}

.mf-rsvp-overlay__focal {
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cc0000;
}

.mf-rsvp-overlay__after {
    left: calc(50% + var(--mf-focal-half, 0px) + var(--mf-focal-gap, 0.04em));
}

.mf-rsvp-overlay__footer {
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mf-rsvp-overlay__progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
}

.mf-rsvp-overlay__progress {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: #d6d3c4;
    overflow: hidden;
    flex: 1;
}

.mf-rsvp-overlay__progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: #0d6efd;
}

.mf-rsvp-overlay__progress-text {
    min-width: 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 600px) {
    .mf-rsvp {
        padding: 0.75rem;
    }

    .mf-rsvp__meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .mf-rsvp__speed {
        width: 150px;
    }

    .mf-rsvp-overlay__panel {
        min-height: 380px;
        height: min(78vh, 520px);
        padding: 3rem 1rem 4rem;
    }

    .mf-rsvp-overlay__footer {
        left: 0.8rem;
        right: 0.8rem;
        bottom: 0.8rem;
        gap: 0.55rem;
    }
}
