body.fc-site-modal-open {
    overflow: hidden;
}

.fc-site-modal[hidden] {
    display: none;
}

.fc-site-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.fc-site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 28, 24, 0.58);
    backdrop-filter: blur(8px);
}

.fc-site-modal__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(250, 246, 239, 0.98) 0%, rgba(242, 234, 220, 0.98) 100%);
    border: 1px solid rgba(47, 47, 47, 0.08);
    box-shadow: 0 28px 80px rgba(16, 24, 40, 0.26);
    outline: none;
}

.fc-site-modal__dialog.is-text-only {
    grid-template-columns: minmax(0, 1fr);
    width: min(720px, calc(100vw - 32px));
}

.fc-site-modal__media {
    min-height: 100%;
    background: rgba(239, 228, 211, 0.65);
}

.fc-site-modal__dialog.is-media-contained {
    grid-template-columns: minmax(0, 1fr);
    width: min(1100px, calc(100vw - 32px));
}

.fc-site-modal__dialog.is-media-contained .fc-site-modal__media {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) 0;
    background: transparent;
}

.fc-site-modal__dialog.is-media-contained .fc-site-modal__image {
    width: calc(100% * var(--fc-modal-image-scale, 0.5));
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.fc-site-modal__dialog.is-media-contained .fc-site-modal__content {
    padding-top: clamp(18px, 3vw, 24px);
    justify-items: center;
    text-align: center;
}

.fc-site-modal__dialog.is-media-contained .fc-site-modal__actions {
    justify-content: center;
}

.fc-site-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.fc-site-modal__content {
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(24px, 4vw, 40px);
}

.fc-site-modal__eyebrow,
.fc-site-modal__body p,
.fc-site-modal__content h2 {
    margin: 0;
}

.fc-site-modal__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: #5d7c5a;
}

.fc-site-modal__content h2 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.02;
    color: #2d4735;
}

.fc-site-modal__body {
    color: rgba(47, 47, 47, 0.82);
    font-size: 1rem;
    line-height: 1.8;
}

.fc-site-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.fc-site-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(47, 47, 47, 0.1);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.fc-site-modal__button:hover,
.fc-site-modal__button:focus-visible,
.fc-site-modal__close:hover,
.fc-site-modal__close:focus-visible {
    transform: translateY(-1px);
    outline: 0;
}

.fc-site-modal__button--primary {
    background: #5d7c5a;
    color: #fff;
    box-shadow: 0 16px 28px rgba(93, 124, 90, 0.22);
}

.fc-site-modal__button--ghost {
    background: transparent;
    color: #2d4735;
}

.fc-site-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #2d4735;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 780px) {
    .fc-site-modal {
        padding: 16px;
    }

    .fc-site-modal__dialog {
        grid-template-columns: minmax(0, 1fr);
        width: min(640px, calc(100vw - 16px));
    }

    .fc-site-modal__media {
        min-height: 220px;
    }

    .fc-site-modal__dialog.is-media-contained .fc-site-modal__image {
        width: calc(100% * min(1, var(--fc-modal-image-scale, 0.5) + 0.2));
    }

    .fc-site-modal__content h2 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }
}