/*
 * Resolution centre — "Get help" and the case pages.
 *
 * Mobile-first, on the --g-* design tokens so Admin > Appearance governs it
 * like everything else. Nothing here invents a colour.
 */
.gx-help {
    padding: 24px 0 64px;
}

.gx-help__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--g-muted, #6b6360);
    text-decoration: none;
}

.gx-help__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--g-ink, #1c1a1b);
}

.gx-help__lead,
.gx-help__booking {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--g-muted, #6b6360);
}

.gx-help__booking {
    margin-bottom: 20px;
    font-size: 14px;
}

.gx-help__group {
    margin-bottom: 22px;
}

.gx-help__grouptitle {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--g-muted, #6b6360);
}

/* One row per issue. A full-width target, because this is frequently used
   one-handed by somebody standing in a place they do not want to be. */
.gx-help__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
    padding: 14px 16px;
    text-align: left;
    text-decoration: none;
    background: var(--g-bg-soft, #f5f2f0);
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.gx-help__item:hover {
    background: var(--g-bg-hover, #eee9e6);
}

.gx-help__item strong {
    display: block;
    font-size: 15px;
    color: var(--g-ink, #1c1a1b);
}

.gx-help__item small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--g-muted, #6b6360);
}

.gx-help__item.is-urgent {
    background: var(--g-primary-soft, #fdecee);
    border-color: var(--primary-color, #E5384E);
}

.gx-help__item.is-urgent strong {
    color: var(--primary-color, #E5384E);
}

.gx-help__chosen {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--g-ink, #1c1a1b);
}

/* Safety copy leads with what to do, not with a form. */
.gx-help__urgent {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--g-primary-soft, #fdecee);
    border-radius: 12px;
}

.gx-help__urgent strong {
    display: block;
    font-size: 15px;
    color: var(--primary-color, #E5384E);
}

.gx-help__urgent span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--g-muted, #6b6360);
}

.gx-help__label {
    display: block;
    margin: 14px 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--g-ink, #1c1a1b);
}

.gx-help__textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--g-ink, #1c1a1b);
    background: var(--g-card, #fff);
    border: 1px solid var(--g-border, #e7e2df);
    border-radius: 12px;
    resize: vertical;
}

.gx-help__textarea:focus {
    border-color: var(--primary-color, #E5384E);
    outline: none;
}

.gx-help__file {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--g-muted, #6b6360);
}

.gx-help__submit {
    width: 100%;
    margin-top: 18px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: var(--primary-color, #E5384E);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.gx-help__fine {
    margin-top: 10px;
    font-size: 13px;
    color: var(--g-muted, #6b6360);
}

.gx-help__error {
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--primary-color, #E5384E);
    background: var(--g-primary-soft, #fdecee);
    border-radius: 12px;
}

/* ---------------------------------------------------------------- a case */

.gx-case__status {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--g-bg-soft, #f5f2f0);
    border-radius: 12px;
}

.gx-case__status.is-urgent {
    background: var(--g-primary-soft, #fdecee);
}

.gx-case__status strong {
    display: block;
    font-size: 16px;
    color: var(--g-ink, #1c1a1b);
}

.gx-case__status span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: var(--g-muted, #6b6360);
}

.gx-case__block {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--g-card, #fff);
    border: 1px solid var(--g-border, #e7e2df);
    border-radius: 14px;
}

/* Guestly's own replies read differently from the other party's. */
.gx-case__block.is-guestly {
    background: var(--g-info-soft, #eef4fd);
    border-color: transparent;
}

.gx-case__blocktitle {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--g-muted, #6b6360);
}

.gx-case__meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.gx-case__meta strong {
    font-size: 14px;
    color: var(--g-ink, #1c1a1b);
}

.gx-case__meta small,
.gx-case__when {
    font-size: 12px;
    color: var(--g-faint, #938a86);
}

.gx-case__body {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--g-ink, #1c1a1b);
}

.gx-case__evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 6px;
}

.gx-case__evidence img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.gx-case__resolution {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: var(--g-success-soft, #e9f6ee);
    border-radius: 14px;
}

.gx-case__reply {
    margin-top: 18px;
}

.gx-case__pill {
    flex: none;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--g-muted, #6b6360);
    background: var(--g-border, #e7e2df);
    border-radius: 999px;
}

.gx-case__pill.is-open {
    color: #fff;
    background: var(--primary-color, #E5384E);
}

@media (min-width: 768px) {
    .gx-help__submit { width: auto; min-width: 220px; }
    .gx-help__title  { font-size: 28px; }
}

/* Payout history: how a host actually gets paid, said once at the top. */
.gx-payout-note {
    max-width: 640px;
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--g-muted, #6b6360);
}
