.lb-video-link {
    position: relative;
    display: inline-block;
}

.lb-video-link-overlay {
    display: inline-block;
    height: 60px;
    left: 50%;
    top: 38%;
    margin-left: -43px;
    position: absolute;
    width: 85px;
    z-index: 20;
    vertical-align: middle;
    cursor: pointer;
}

.lb-video-embed-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 8px 0;
}

.lb-video-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.mfa-img-responsive {
    display: inline-block;
    height: auto;
    max-width: 100%;
}

/* CKEditor only: video embeds are widgets — full-width so caret can sit below */
.cke_editable .cke_widget_wrapper:has(> a.lb-video-link) {
    display: block !important;
    width: 100%;
    max-width: 100%;
}

.cke_editable a.lb-video-link,
.cke_editable a.lb-video-link * {
    -webkit-user-select: none;
    user-select: none;
}

/* CKEditor only: don't let legacy YouTube/Vimeo iframes capture clicks — select for Link Builder instead */
.cke_editable .lb-video-embed-wrap {
    cursor: pointer;
    position: relative;
}
.cke_editable .lb-video-embed {
    pointer-events: none;
}
/* Light-mode contact/link cards — shared layout for all Link Builder types (News/Info V2) */

/* a.mfa-contact-card:* beats a:link underline from _defaultCss / UA styles */
a.mfa-contact-card,
a.mfa-contact-card:link,
a.mfa-contact-card:visited,
a.mfa-contact-card:hover,
a.mfa-contact-card:focus,
a.mfa-contact-card:active {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-height: 64px;
    margin: 8px 0;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: 0px 1px 4px rgba(26, 43, 69, 0.07), 0px 0px 0px 1px rgba(26, 43, 69, 0.05);
    border: none;
    border-radius: 12px;
    color: #374151;
    font-weight: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mfa-contact-card-icon-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border-radius: 10px;
}

.mfa-contact-card-icon,
.mfa-contact-card-chevron {
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.mfa-contact-card-icon {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.mfa-contact-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.mfa-contact-card-label {
    display: block;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    line-height: 16px;
    letter-spacing: 0.22px;
    color: #6b7280;
}

.mfa-contact-card-title {
    display: block;
    margin-top: 2px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mfa-contact-card-chevron {
    display: block;
    flex: none;
    width: 16px;
    height: 16px;
    opacity: 1;
}

/* CKEditor only: cards are widgets — full-width wrapper, no text selection inside */
.cke_editable .cke_widget_wrapper:has(> a.mfa-contact-card) {
    display: block !important;
    width: 100%;
    max-width: 100%;
}

/* Keep the "+" drag handle above the 40x40 icon so dragging still works */
.cke_editable .cke_widget_wrapper:has(> a.mfa-contact-card) > .cke_widget_drag_handler_container {
    z-index: 100;
    pointer-events: auto;
}

.cke_editable a.mfa-contact-card,
.cke_editable a.mfa-contact-card * {
    -webkit-user-select: none;
    user-select: none;
    cursor: default;
}
