html.mfcg-popin-open { overflow: hidden; }
#mfcg-popin:not([open]) { display: none; }
#mfcg-popin {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(540px, calc(100vw - 32px), calc((100svh - 32px) * .8));
    max-width: calc(100vw - 32px);
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    background: #090909;
    color: #fff;
    overflow: auto;
    box-shadow: 0 16px 64px #0009;
}
#mfcg-popin::backdrop { background: rgb(0 0 0 / 78%); }
#mfcg-popin .mfcg-popin-visual { position: relative; }
#mfcg-popin img { display: block; width: 100%; height: auto; margin: 0; }
#mfcg-popin .mfcg-popin-close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
    z-index: 1;
}
#mfcg-popin .mfcg-popin-cta {
    position: absolute;
    left: 50%;
    bottom: calc(7% - 30px);
    transform: translateX(-50%);
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100% - 32px);
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid #D9B573;
    border-radius: 3px;
    background: #D9B573;
    color: #090909;
    font: 700 clamp(13px, 3.5vw, 17px)/1.3 "Oxanium", Arial, sans-serif;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}
#mfcg-popin .mfcg-popin-cta:hover { background: #fff; color: #090909; }
#mfcg-popin :focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
/* Neutraliser les contours/ombres du theme et le focus automatique a l'ouverture. */
#mfcg-popin .mfcg-popin-close,
#mfcg-popin .mfcg-popin-close:hover,
#mfcg-popin .mfcg-popin-close:focus,
#mfcg-popin .mfcg-popin-close:active {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: #fff;
    color: #000;
    text-decoration: none !important;
}
#mfcg-popin .mfcg-popin-close::before,
#mfcg-popin .mfcg-popin-close::after { content: none !important; }
