/* Support: the conversation with the team. Full height on phones (header, messages, composer), a panel on wide screens. */

.page.support {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ct-backdrop);
}
.sp-panel {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.sp-status {
  flex: none;
  padding: 10px 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.sp-status:empty {
  display: none;
}
.sp-status.is-closed {
  color: var(--wd-amber);
}
.sp-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sp-row {
  display: flex;
  padding-right: 40px;
}
.sp-row.is-mine {
  justify-content: flex-end;
  padding: 0 0 0 40px;
}
.sp-bubble {
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 16px 16px 16px 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 1px 1px var(--ct-bubble-shadow);
}
.sp-bubble.is-mine {
  border-radius: 16px 16px 5px 16px;
  color: #fff;
  background: var(--wd-brand);
  box-shadow: none;
}
.sp-from {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wd-brand);
}
.sp-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}
.sp-time {
  align-self: flex-end;
  font-size: 11px;
  opacity: 0.7;
}
.sp-empty {
  margin: auto 0;
  padding: 28px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sp-empty-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--wd-brand);
  background: var(--wd-brand-soft);
}
.sp-empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.sp-empty p {
  max-width: 380px;
}
.sp-safety {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--wd-green);
}
.sp-error {
  flex: none;
  padding: 0 16px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-red);
}
.sp-bar {
  flex: none;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--surface);
  border-top: 1px solid var(--topbar-line);
}
.sp-input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  max-height: 160px;
  padding: 10px 14px;
  border-radius: 21px;
  border: 1px solid var(--ct-input-line);
  outline: none;
  resize: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
}
.sp-input:focus {
  border-color: var(--wd-brand);
}
.sp-send {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: var(--wd-brand);
}
.sp-send:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (min-width: 900px) {
  .sp-panel {
    margin: 20px auto;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--topbar-line);
    background: var(--ct-backdrop);
    box-shadow: 0 20px 50px var(--panel-shadow);
  }
}
