.home-products-more {
    display: grid;
    min-height: 72px;
    justify-items: center;
    align-content: center;
    gap: 7px;
    margin-top: 16px;
}

.support-chat {
    display: grid;
    grid-template-rows: auto minmax(190px, 1fr) auto;
    height: clamp(480px, 75dvh, 720px);
    max-width: 850px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #dce7f8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 50px #173d8610;
}

.support-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: #fff;
    border-bottom: 1px solid #e7edf8;
}

.support-chat-header img { border-radius: 12px; }
.support-chat-header h1 { font-size: clamp(1.1rem, 3.5vw, 1.38rem); }
.support-chat-header p { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: .82rem; }
.support-chat-header p span { width: 7px; height: 7px; border-radius: 50%; background: #17855d; }

.support-chat-log {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px;
    background: #f4f7fd;
    scrollbar-gutter: stable;
}

.support-message { min-width: 0; width: fit-content; max-width: min(88%, 590px); margin: 0 0 15px; }
.support-message.from-customer { margin-left: auto; text-align: right; }
.support-sender { color: #536482; font-size: .78rem; margin: 0 2px 4px; }
.support-message p {
    width: fit-content;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 3px 14px 14px;
    background: #fff;
    color: #152646;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.58;
    font-size: .94rem;
}
.from-customer p { margin-left: auto; border-radius: 14px 3px 14px 14px; background: #234bcf; color: #fff; text-align: left; }
.support-message-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.support-message-actions a, .support-message-actions button, .support-questions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 5px 10px;
    color: #193fae;
    border: 1px solid #dce6fb;
    border-radius: 10px;
    background: #fff;
    font-size: .83rem;
    font-weight: 620;
}
.support-message-actions a:hover, .support-message-actions button:hover, .support-questions button:hover { background: #edf3ff; }
.support-compose { padding: 10px 18px 13px; border-top: 1px solid #e2e9f7; }
.support-questions { display: flex; gap: 6px; overflow-x: auto; padding: 3px 3px 7px; }
.support-questions button { flex-shrink: 0; border-radius: 99px; }
.support-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.support-input input {
    min-width: 0;
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #d9e2f4;
    border-radius: 10px;
    background: #f8faff;
    color: var(--ink);
}
.support-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; color: #536482; font-size: .8rem; }
.support-help a { color: #193fae; text-decoration: underline; text-underline-offset: 2px; padding: 4px 0; }
.support-help span { padding: 4px 0; }
.support-help-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.support-human { border: 0; border-radius: 6px; background: #ecf2ff; color: #193fae; padding: 6px 8px; font-size: inherit; }
.support-human:disabled { opacity: .72; cursor: default; }
.support-message.from-system p { background: #e8edf6; }
.support-chat-status { font-size: .82rem; margin-top: 5px; }
.support-ticket-top { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px; }

.h5 .support-chat { height: max(420px, calc(100dvh - var(--tabs) - 86px)); border-radius: 17px; }
.h5 .support-chat-header, .h5 .support-chat-log { padding: 12px; }
.h5 .support-chat-header img { width: 37px; height: 37px; }
.h5 .support-compose { padding: 8px 10px; }
.h5 .support-message-actions a, .h5 .support-message-actions button, .h5 .support-questions button { min-height: 42px; }
.h5 .support-help a { min-height: 31px; }

@media (max-width: 440px) {
    .support-chat-log { padding: 12px; }
    .support-message { max-width: 93%; }
    .support-help { font-size: .74rem; }
}
