.quiqqer-info-popup-entry .quiqqer-info-popup-entry-desc {
    color: var(--qui-text-color-secondary, #6f6f6f);
    display: block;
    font-size: 0.85em;
    padding: 0 0 0.5rem;
}

/**
 * Content preview - formatted content, click / Enter opens the editor window
 */
.quiqqer-info-popup-entry-content-preview {
    cursor: pointer;
    max-height: 220px;
    min-height: 120px;
    overflow: auto;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quiqqer-info-popup-entry-content-preview:hover,
.quiqqer-info-popup-entry-content-preview:focus-visible {
    border-color: var(--qui-colors-primary, #7f8ea3);
    box-shadow: 0 0 0 3px rgb(72 121 255 / 12%);
    outline: none;
}

.quiqqer-info-popup-entry-content-preview--empty {
    align-items: center;
    color: var(--qui-text-color-secondary, #6f6f6f);
    display: flex;
    font-style: italic;
}

/* keep the rendered editor content compact inside the preview box */
.quiqqer-info-popup-entry-content-preview > :first-child {
    margin-top: 0;
}

.quiqqer-info-popup-entry-content-preview > :last-child {
    margin-bottom: 0;
}

.quiqqer-info-popup-entry-content-preview img {
    height: auto;
    max-width: 100%;
}

/**
 * Language targeting - clickable flag picker, shown when the popup is
 * restricted to specific project languages.
 */
.quiqqer-info-popup-entry-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quiqqer-info-popup-entry-language {
    align-items: center;
    background: var(--qui-background-color, #fff);
    border: 1px solid var(--qui-colors-borders, #dcdee1);
    border-radius: var(--qui-border-radius, 4px);
    cursor: pointer;
    display: inline-flex;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quiqqer-info-popup-entry-language:hover,
.quiqqer-info-popup-entry-language:focus-visible {
    border-color: var(--qui-colors-primary, #7f8ea3);
    outline: none;
}

.quiqqer-info-popup-entry-language[aria-pressed="true"] {
    border-color: var(--qui-colors-primary, #7f8ea3);
    box-shadow: 0 0 0 2px rgb(72 121 255 / 20%);
}

.quiqqer-info-popup-entry-language:not([aria-pressed="true"]) {
    opacity: 0.6;
}

.quiqqer-info-popup-entry-language img {
    display: block;
    height: 16px;
    width: 16px;
}

.quiqqer-info-popup-entry-language-code {
    text-transform: uppercase;
}

.quiqqer-info-popup-entry-error {
    color: var(--qui-colors-error, #cc3b3b);
    display: block;
    font-size: 0.85em;
    padding: 0 0 0.5rem;
}

.quiqqer-info-popup-grid-languages-flag {
    height: 16px;
    margin-right: 0.25rem;
    vertical-align: middle;
    width: 16px;
}
