.zivv-social-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 0 6px;
    padding: 0;
    border: 1px solid rgba(127, 127, 127, .4);
    border-radius: 8px;
    background: var(--hh-background-color-secondary, rgba(127, 127, 127, .16));
    color: var(--hh-text-color-main, inherit);
    cursor: pointer;
}

.zivv-social-refresh:hover {
    background: var(--hh-background-color-highlight, rgba(127, 127, 127, .28));
}

.zivv-ig-tools {
    position: absolute;
    z-index: 40;
    right: 0;
    top: 46%;
    bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 52px;
    padding: 0 0 6px;
    box-sizing: border-box;
    background: transparent;
    pointer-events: none;
}

.zivv-ig-tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .92;
    pointer-events: auto;
}

.zivv-ig-tool:hover {
    opacity: 1;
}

.zivv-net-ig:fullscreen,
.zivv-net-ig:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    background: #000;
    overflow: hidden !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.zivv-net-ig:fullscreen iframe,
.zivv-net-ig:-webkit-full-screen iframe {
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
    background: #000;
}

.zivv-social {
    display: block;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    line-height: 0;
}

.zivv-social iframe {
    display: block;
    width: 100%;
    border: 0;
    background: #111;
}

.zivv-ig-end {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 4;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.zivv-net-yt iframe {
    aspect-ratio: 16 / 9;
    height: auto;
}

.zivv-net-yt.zivv-social-short {
    max-width: 320px;
}

.zivv-net-yt.zivv-social-short iframe {
    aspect-ratio: 9 / 16;
    max-height: 560px;
}

.zivv-net-ig {
    position: relative;
    isolation: isolate;
    z-index: 1;
    max-width: 540px;
    background: #fff;
    line-height: normal;
    overflow: visible !important;
}

.zivv-net-ig iframe,
.zivv-net-ig blockquote.instagram-media {
    position: relative;
    z-index: 1;
}

.zivv-net-ig iframe {
    width: 100%;
    min-height: 560px;
    background: #fff;
}

.zivv-social.zivv-net-fb {
    position: relative;
    isolation: isolate;
    max-width: 500px;
    background: #fff;
    overflow: visible;
    height: auto;
    max-height: none;
    line-height: normal;
}

.zivv-fb-full {
    position: absolute;
    z-index: 40;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111;
    cursor: pointer;
}

.zivv-fb-full:hover {
    color: #000;
}

.zivv-net-fb:fullscreen,
.zivv-net-fb:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none !important;
    background: #000 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.zivv-net-fb:fullscreen iframe,
.zivv-net-fb:-webkit-full-screen iframe {
    max-width: none !important;
    max-height: none !important;
    min-height: 0 !important;
    min-width: 0 !important;
}

.zivv-social.zivv-net-fb iframe {
    position: static !important;
    width: 100% !important;
    height: 640px;
    min-height: 0;
    max-height: none !important;
    background: #fff;
}

.zivv-fb-photo,
.zivv-fb-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.zivv-social-spotify iframe,
.zivv-social-sound iframe {
    aspect-ratio: auto;
    height: 152px;
}

.zivv-social-spotify.zivv-social-tall iframe {
    height: 352px;
}

.zivv-social-short iframe {
    aspect-ratio: 9 / 16;
    max-height: 560px;
}

.zivv-net-tt {
    position: relative;
    max-width: 340px;
    background: #fff;
    line-height: 0;
}

.zivv-tt-shield {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.zivv-net-tt iframe {
    display: block;
    width: 100%;
    height: 560px;
    min-height: 0;
    border: 0;
    background: #fff;
}

.zivv-social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
    padding: 10px 12px;
    box-sizing: border-box;
    border-radius: 12px;
    background: var(--hh-background-color-secondary, rgba(127, 127, 127, .14));
    color: var(--hh-text-color-main, inherit);
    text-decoration: none;
    line-height: 1.3;
}

.zivv-social-card:hover {
    color: var(--hh-text-color-main, inherit);
    text-decoration: none;
}

.zivv-social-mark {
    flex: 0 0 auto;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    background: #9d4fbc;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

.zivv-social-card span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chat : Telegram à la même largeur que les autres publications. */
.mail-conversation-entry .zivv-net-tg {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    margin: 4px 0;
    background: #fff;
    line-height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
}

.mail-conversation-entry .zivv-net-tg iframe,
.mail-conversation-entry iframe[src*="t.me"],
.mail-conversation-entry iframe[src*="telegram.me"],
.mail-conversation-entry iframe[src*="telegram.org"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 420px;
    border: 0;
    background: #fff;
    box-sizing: border-box !important;
}

.mail-conversation-entry .conversation-entry-content:has(.zivv-net-tg),
.mail-conversation-entry .conversation-entry-content:has(iframe[src*="t.me"]),
.mail-conversation-entry .conversation-entry-content:has(iframe[src*="telegram.me"]),
.mail-conversation-entry .conversation-entry-content:has(iframe[src*="telegram.org"]) {
    width: fit-content !important;
    max-width: min(78%, 540px) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}
