/* The feedback hub's own styles, on top of the host's Bulma. Prefixed feedback-hub so they can't
   meet the host's own classes; Bulma owns is-. */

.feedback-hub {
    max-width: 44rem;
    margin-inline: auto;
}

/* The honeypot (see Spam/Honeypot.cs): off-screen rather than display:none, which some bots skip. */
.feedback-hub-trap {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.feedback-hub-conversation {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feedback-hub-message {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    max-width: 90%;
}

.feedback-hub-message--theirs {
    background: #f5f5f5;
    align-self: flex-start;
}

.feedback-hub-message--ours {
    background: #eef6fc;
    align-self: flex-end;
}

.feedback-hub-message__meta {
    font-size: 0.8rem;
    color: #6b6b6b;
    margin-bottom: 0.25rem !important;
}

/* Written by the public as plain text: keep their line breaks without trusting any markup. */
.feedback-hub-message__text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Admin */

.feedback-hub-message--draft {
    background: #fffaeb;
    align-self: stretch;
    max-width: none;
    border: 1px dashed #e6c35c;
}

.feedback-hub-filters__check,
.feedback-hub-filters__buttons {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

/* Its tickboxes stack, bottom-aligned with the fields beside them. */
.feedback-hub-filters__check {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.25rem;
}

.feedback-hub-nowrap {
    white-space: nowrap;
}

.feedback-hub-issue + .feedback-hub-issue {
    margin-left: 0.4em;
}

.feedback-hub-inline {
    display: inline;
}

.feedback-hub-group {
    margin-bottom: 2.5rem;
}

.feedback-hub-quote {
    border-left: 3px solid #dbdbdb;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
    color: #4a4a4a;
}
