.consumer-ticket-history-shell {
    overflow: hidden;
    border: 1px solid #dce7e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(20,61,73,.045);
}

.consumer-ticket-history-head,
.consumer-ticket-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.consumer-ticket-history-head {
    padding: 24px;
    border-bottom: 1px solid #edf2f3;
}

.consumer-ticket-history-head h3,
.consumer-ticket-detail h3,
.consumer-ticket-empty h3 {
    margin: 3px 0 8px;
    color: #123c4b;
    font-size: 22px;
    line-height: 1.25;
}

.consumer-ticket-history-head p,
.consumer-ticket-empty p {
    margin: 0;
    color: #6d8188;
    line-height: 1.55;
}

.consumer-ticket-eyebrow {
    margin: 0 0 5px !important;
    color: #008a80 !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.consumer-ticket-list {
    display: grid;
}

.consumer-ticket-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 0;
    border-bottom: 1px solid #edf2f3;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background .16s ease,
        transform .16s ease;
}

.consumer-ticket-row:last-child {
    border-bottom: 0;
}

.consumer-ticket-row:hover {
    background: #f8fbfb;
}

.consumer-ticket-row:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid rgba(0,139,131,.14);
    outline-offset: -3px;
}

.consumer-ticket-row-main,
.consumer-ticket-row-side {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.consumer-ticket-row-main {
    min-width: 0;
}

.consumer-ticket-row-main strong {
    overflow: hidden;
    color: #173f4c;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consumer-ticket-row-main small,
.consumer-ticket-row-side small {
    color: #788b92;
    font-size: 12px;
}

.consumer-ticket-row-side {
    align-items: flex-end;
    min-width: 165px;
}

.consumer-ticket-reference {
    color: #008077;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.consumer-ticket-priority {
    color: #526970;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.consumer-ticket-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #e9f6f3;
    color: #08796f;
    font-size: 11px;
    font-weight: 800;
}

.consumer-ticket-status[data-status-id="2"] {
    background: #e8f2fb;
    color: #286c9b;
}

.consumer-ticket-status[data-status-id="3"] {
    background: #e9f6ed;
    color: #357847;
}

.consumer-ticket-status[data-status-id="4"] {
    background: #fff6e5;
    color: #956d1e;
}

.consumer-ticket-status[data-status-id="5"] {
    background: #eff1f2;
    color: #5e696d;
}

.consumer-ticket-detail {
    padding: 24px;
}

.consumer-ticket-back {
    margin: 0 0 17px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #008077;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.consumer-ticket-title-row {
    padding-bottom: 2px;
}

.consumer-ticket-meta-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin: 20px 0 24px;
}

.consumer-ticket-meta-grid > div {
    padding: 12px;
    border: 1px solid #e0e9eb;
    border-radius: 10px;
    background: #f9fbfb;
}

.consumer-ticket-meta-grid span,
.consumer-ticket-meta-grid strong {
    display: block;
}

.consumer-ticket-meta-grid span {
    color: #7b8d93;
    font-size: 11px;
}

.consumer-ticket-meta-grid strong {
    margin-top: 4px;
    color: #214955;
    font-size: 13px;
}

.consumer-ticket-thread {
    display: grid;
    gap: 12px;
}

.consumer-ticket-message {
    max-width: 86%;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 12px;
}

.consumer-ticket-message.is-consumer {
    margin-left: auto;
    border: 1px solid #cce6e1;
    background: #eff8f6;
}

.consumer-ticket-message.is-support {
    margin-right: auto;
    border: 1px solid #e1e7e9;
    background: #f7f8f9;
}

.consumer-ticket-message-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.consumer-ticket-message-head strong {
    color: #153d4a;
    font-size: 12px;
}

.consumer-ticket-message-head span {
    color: #7b8d93;
    font-size: 11px;
}

.consumer-ticket-message p {
    margin: 0;
    color: #334f58;
    line-height: 1.58;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.consumer-ticket-message-files {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}

.consumer-ticket-attachment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid #dce7e8;
    border-radius: 8px;
    background: #fff;
    color: #11636a;
    text-decoration: none;
}

.consumer-ticket-attachment:hover {
    border-color: #b8d8d4;
}

.consumer-ticket-attachment small {
    color: #7a8c91;
}

.consumer-ticket-reply {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #edf1f2;
}

.consumer-ticket-reply label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.consumer-ticket-reply label > span {
    color: #183f4c;
    font-size: 13px;
    font-weight: 700;
}

.consumer-ticket-reply textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #cbdadd;
    border-radius: 9px;
    background: #fff;
    color: #183e4b;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.consumer-ticket-reply textarea:focus {
    outline: 3px solid rgba(0,145,137,.11);
    border-color: #008b83;
}

.consumer-ticket-file-field input {
    max-width: 100%;
}

.consumer-ticket-file-field small {
    color: #7a8c91;
}

.consumer-ticket-reply-status {
    min-height: 19px;
    margin: 4px 0 10px;
    color: #6f838a;
    font-size: 12px;
}

.consumer-ticket-closed {
    margin-top: 22px;
    padding: 13px 15px;
    border-radius: 9px;
    background: #f2f4f4;
    color: #5e7076;
}

.consumer-ticket-loading,
.consumer-ticket-empty {
    padding: 30px;
}

.consumer-ticket-loading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.consumer-ticket-loading strong {
    color: #163e4b;
}

.consumer-ticket-loading p {
    margin: 3px 0 0;
    color: #75888e;
}

.consumer-ticket-spinner {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    border: 3px solid #dce9e7;
    border-top-color: #008b83;
    border-radius: 50%;
    animation: consumer-ticket-spin .8s linear infinite;
}

@keyframes consumer-ticket-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width:820px) {
    .consumer-ticket-history-head,
    .consumer-ticket-title-row,
    .consumer-ticket-row {
        flex-direction: column;
    }

    .consumer-ticket-row-side {
        align-items: flex-start;
        min-width: 0;
    }

    .consumer-ticket-row-main strong {
        white-space: normal;
    }

    .consumer-ticket-meta-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .consumer-ticket-message {
        max-width: 100%;
    }
}

@media (max-width:520px) {
    .consumer-ticket-meta-grid {
        grid-template-columns: 1fr;
    }

    .consumer-ticket-detail,
    .consumer-ticket-history-head,
    .consumer-ticket-loading,
    .consumer-ticket-empty {
        padding: 18px;
    }
}
