/* The list of placeholders beside the recipient field and the subject of a mail trigger. Clicking
   one writes it into the field, so nobody has to remember how a name is spelled. */

.mail-placeholder-panel {
    /* A row of its own under the field it belongs to, lined up with that field's editor. */
    margin: 2px 0 8px 150px;
    padding: 0;
}

.mail-placeholder-title {
    margin-bottom: 4px;
    color: var(--s-text-muted-color, #6c757d);
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
}

.mail-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    /* Long lists stay a few rows tall; the field below stays where the planner expects it. */
    max-height: 94px;
    overflow-y: auto;
}

.mail-placeholder-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border: 1px solid var(--s-border-color, #c8ced3);
    border-radius: 10px;
    background: var(--s-panel-bg, transparent);
    color: var(--s-text-color, #23282c);
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
}

.mail-placeholder-item i {
    font-size: 9px;
    opacity: 0.6;
}

.mail-placeholder-item:hover,
.mail-placeholder-item:focus-visible {
    border-color: var(--s-primary-color, #0d6efd);
    color: var(--s-primary-color, #0d6efd);
    outline: none;
}

.mail-placeholder-hint {
    margin-top: 4px;
    color: var(--s-text-muted-color, #6c757d);
    font-size: 11px;
    line-height: 1.5;
}
