/* ywwc_ai_images (queue #202) */

/* --- checkbox list under the editor: one row per image — its preview, the checkbox, the wording --- */
.ywwc-ai-panel {
    margin: 6px 0;
    font-size: 13px;
}

.ywwc-ai-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 3px 0;
    color: var(--bs-body-color);
    font-weight: normal;
    hyphens: manual; /* the themes hyphenate: "AI-gener-ated" */
    cursor: pointer;
}

.ywwc-ai-thumb {
    width: 36px;
    height: 36px;
    flex: none;
    object-fit: cover;
    border-radius: 3px;
}

.ywwc-ai-row .form-check-input {
    flex: none;
    margin: 0;
}

/* an image without a preview: its file name stands in, and gives way first when the row is too narrow */
.ywwc-ai-row-name {
    max-width: 40%;
    overflow: hidden;
    color: var(--bs-secondary-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- the AI button in the hover menu of a member's profile picture and banner: on while the picture is labelled --- */
/* A fourth button does not fit across a phone-size profile picture, and the themes' one-line flex menu would push
   Upload out of the picture: let the menu wrap. */
.image-upload-buttons.ywwc-ai-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ywwc-ai-profile-toggle {
    font-weight: 600;
}

.ywwc-ai-profile-toggle[aria-pressed="true"]::before {
    content: "\2713\00a0"; /* check mark */
}

/* --- label on a ticked image --- */
.ywwc-ai-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.ywwc-ai-wrap-center {
    display: table;
    margin-right: auto;
    margin-left: auto;
}

.ywwc-ai-tile {
    position: relative;
}

/* Top left: a gallery tile's link is an inline box at the TOP of its image (stock .post-files img is
   vertical-align: top), so only offsets from the top land on the picture. Same corner inside a text. */
.ywwc-ai-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, .75);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); /* keeps its edge on a dark picture */
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
}
