/* ==========================================================================
   SimpleSell: contact page + public ticket thread
   ========================================================================== */

/* ---------- Contact shortcuts ---------- */
.shortcuts {
  margin-top: clamp(32px, 6vh, 64px);
  border-top: 1px solid var(--line);
}
.shortcut {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.shortcut__k { font-size: 0.8rem; color: var(--muted); }
.shortcut__v {
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 1;
}
.shortcut__v span { display: inline-block; color: var(--orange); transition: transform 0.5s var(--ease); }
.shortcut:hover { padding-left: 10px; }
.shortcut:hover .shortcut__v span { transform: translateX(6px); }
.shortcut--chat:hover { padding-left: 0; }
.shortcut--chat .shortcut__v { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.shortcut--chat a,
.shortcut--chat button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; transition: color 0.3s; }
.shortcut--chat a:hover,
.shortcut--chat button:hover { color: var(--orange-hi); }

.chips input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.chip input[type="radio"]:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip input[type="radio"]:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.done__home { font-size: 0.9rem; color: var(--paper-muted); text-decoration: underline; text-underline-offset: 3px; }
.done__home:hover { color: var(--orange); }

/* ---------- Ticket thread ---------- */
.ticket-wrap { max-width: 900px; }
.thread-sheet { padding: clamp(22px, 3.2vw, 48px); min-height: 300px; }
.thread-loading { color: var(--paper-muted); padding: 40px 0; text-align: center; }
.thread-missing { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.thread-missing .display { --tc: var(--paper-ink); }
.thread-missing .lead { color: var(--paper-muted); max-width: 36ch; }
.thread-missing a { color: var(--orange); text-decoration: underline; }

.thread-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(11, 11, 11, 0.12);
}
.thread-head__meta { grid-column: 1 / -1; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-muted); }
.thread-head__title {
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.tstatus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid rgba(11, 11, 11, 0.15);
}
.tstatus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tstatus--open { color: #c2410c; border-color: rgba(194, 65, 12, 0.35); }
.tstatus--waiting { color: #1d6fd6; border-color: rgba(29, 111, 214, 0.35); }
.tstatus--closed { color: #6f706c; }

.thread { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.msg {
  max-width: 86%;
  padding: 14px 18px 16px;
  border-radius: 16px;
  background: #efeeea;
}
.msg--you { align-self: flex-end; border-bottom-right-radius: 6px; }
.msg--agency { align-self: flex-start; background: #fff1ec; border: 1px solid rgba(239, 78, 35, 0.18); border-bottom-left-radius: 6px; }
.msg__head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; font-size: 0.8rem; }
.msg__head strong { font-weight: 600; }
.msg__head time { color: var(--paper-muted); }
.msg__avatar { width: 24px; height: 24px; border-radius: 50%; }
.msg__body { white-space: pre-wrap; word-break: break-word; font-size: 0.98rem; line-height: 1.55; color: #222; }

.thread-reply { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(11, 11, 11, 0.12); display: flex; flex-direction: column; gap: 16px; }
.thread-reply__closed { font-size: 0.85rem; color: var(--paper-muted); }

@media (max-width: 560px) {
  .msg { max-width: 100%; }
  .thread-head { grid-template-columns: 1fr; }
}
