/* Gamer Store chat widget */
.gsx-chat { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.gsx-chat__log {
	height: 380px; max-height: 60vh; overflow-y: auto; padding: 14px; border-radius: 20px;
	background: var(--gsx-surface2); border: 1px solid var(--gsx-border);
	display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.gsx-chat__log:focus-visible { outline: 2px solid var(--gsx-primary); outline-offset: 2px; }
.gsx-chat__empty { margin: auto; text-align: center; }
.gsx-chat__msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; background: var(--gsx-surface); border: 1px solid var(--gsx-border); }
.gsx-chat__msg.is-mine { align-self: flex-end; background: var(--gsx-primary); color: var(--gsx-on-primary); border-color: transparent; border-bottom-right-radius: 6px; }
.gsx-chat__msg.is-theirs { align-self: flex-start; border-bottom-left-radius: 6px; }
.gsx-chat__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 4px; opacity: .85; flex-wrap: wrap; }
.gsx-chat__meta time { font-weight: 500; opacity: .8; }
.gsx-chat__lock { display: inline-flex; align-items: center; }
.gsx-chat__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.gsx-chat__msg.is-purged .gsx-chat__body { font-style: italic; opacity: .75; }
.gsx-chat__msg.is-sensitive:not(.is-mine) { border-color: var(--gsx-amber); }
.gsx-chat__check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 14px; cursor: pointer; }
.gsx-chat__check input { width: 22px; height: 22px; }
.gsx-chat__tip { font-size: 13px; margin: 0 0 10px; }
.gsx-chat__actions { display: flex; align-items: center; gap: 14px; }
.gsx-chat__count { font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.gsx-chat__status[hidden] { display: none; }
.gsx-chat .gsx-field { margin-bottom: 8px; }

.gsx-chat-threads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gsx-chat-threads__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; }
.gsx-chat-threads__item.has-unread { border-color: var(--gsx-primary); }
.gsx-chat-threads__main { flex: 1 1 220px; min-width: 0; }
.gsx-chat-threads__preview { margin-top: 4px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.gsx-chat-section { margin-top: 32px; }

@media (max-width: 480px) {
	.gsx-chat__msg { max-width: 94%; }
	.gsx-chat__log { height: 320px; }
}
@media (prefers-reduced-motion: reduce) { .gsx-chat__log { scroll-behavior: auto; } }
