.am-supp {
    color: #182635;
    margin-block: 20px;
    scroll-margin-top: 20px;
}

.am-supp-messages {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.am-supp-message {
    background: #f3f7fb;
    border: 1px solid #c8d6e4;
    border-radius: 12px;
    list-style: none;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 12px clamp(12px, 3vw, 20px);
}

.am-supp-message--staff {
    background: #f1f8ff;
    border-inline-start: 4px solid #2471be;
}

.am-supp .am-supp-message__meta {
    align-items: baseline;
    color: #34485d;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0 0 8px;
}

.am-supp .am-supp-message__body {
    line-height: 1.5;
    margin: 0;
    white-space: pre-wrap;
}

.am-supp-unread {
    background: #d3e7fa;
    border-radius: 5px;
    color: #173e75;
    font-size: 0.875em;
    padding: 1px 7px;
}

.am-supp-state {
    color: #34485d;
    font-weight: 650;
}

.am-supp-merge {
    border: 1px solid #c8d6e4;
    border-radius: 10px;
    margin-block: 16px;
    padding: 12px;
}

.am-supp-merge > p:first-child {
    margin-top: 0;
}

.am-supp-acknowledge,
.am-supp-form {
    margin-block: 16px;
}

.am-supp-file-field {
    margin-block: 12px;
}

.am-supp-notify {
    border-block-start: 1px solid #c8d6e4;
    margin-block: 20px;
    padding-block-start: 12px;
}

.am-supp-form input:not([type="hidden"]) {
    box-sizing: border-box;
    display: block;
    font: inherit;
    margin-block-end: 8px;
    max-width: 100%;
    min-height: 44px;
}

.am-supp-notify input:not([type="hidden"]) {
    border: 1px solid #7188a0;
    border-radius: 8px;
    padding: 8px;
}

.am-supp-notify-change {
    margin-block-end: 12px;
}

.am-supp-notify-change summary {
    cursor: pointer;
    min-height: 44px;
}

.am-supp-form label {
    display: block;
    font-weight: 650;
    margin-bottom: 6px;
}

.am-supp-form textarea {
    background: #fff;
    border: 1px solid #7188a0;
    border-radius: 8px;
    box-sizing: border-box;
    color: #182635;
    display: block;
    font: inherit;
    line-height: 1.4;
    min-height: 120px;
    padding: 10px;
    resize: vertical;
    width: 100%;
}

.am-supp .am-supp-button,
.am-supp .am-supp-link {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    line-height: 1.35;
    max-width: 100%;
    min-height: 44px;
    overflow-wrap: anywhere;
}

.am-supp .am-supp-button {
    background: #185b9d;
    border: 1px solid #185b9d;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 650;
    padding: 8px 14px;
}

.am-supp .am-supp-button--secondary {
    background: #fff;
    color: #174f87;
}

.am-supp .am-supp-button:hover {
    text-decoration: underline;
}

.am-supp .am-supp-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.am-supp .am-supp-link {
    color: #174f87;
    text-decoration: underline;
}

.am-supp :focus-visible {
    outline: 3px solid #075ab6;
    outline-offset: 3px;
}

.am-supp .am-supp-status,
.am-supp .am-supp-error {
    border-inline-start: 4px solid #2471be;
    line-height: 1.5;
    padding: 8px 12px;
}

.am-supp .am-supp-error {
    background: #fff0ee;
    border-color: #9e2828;
    color: #78211e;
}

.am-supp .am-supp-status:empty,
.am-supp .am-supp-error:empty {
    border: 0;
    margin: 0;
    padding: 0;
}
