.support-widget {
  --support-launcher-gradient:
    radial-gradient(circle at 92% 32%, rgba(209, 74, 112, 0.3), transparent 48%),
    radial-gradient(circle at 10% 82%, rgba(209, 161, 78, 0.22), transparent 46%),
    linear-gradient(145deg, #17101e 0%, #090a11 64%, #21101d 100%);
  --support-header-gradient:
    radial-gradient(ellipse 34% 150% at 104% 48%, rgba(209, 74, 112, 0.28), transparent 72%),
    radial-gradient(ellipse 30% 140% at -4% 20%, rgba(209, 161, 78, 0.2), transparent 70%),
    linear-gradient(105deg, #111321 0%, #090a11 54%, #21101d 100%);
  --support-message-gradient:
    radial-gradient(circle at 108% 42%, rgba(209, 74, 112, 0.26), transparent 54%),
    radial-gradient(circle at -8% 70%, rgba(209, 161, 78, 0.16), transparent 48%),
    linear-gradient(145deg, #15111d 0%, #090a11 62%, #21101d 100%);
  position: fixed;
  right: 16px;
  bottom: 12px;
  z-index: 70;
  font-family: "Noto Sans SC", sans-serif;
}

.support-launcher {
  position: relative;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(204, 145, 174, 0.58);
  border-radius: 50%;
  background: var(--support-launcher-gradient);
  box-shadow:
    0 15px 34px rgba(3, 21, 38, 0.28),
    0 0 0 5px rgba(200, 161, 89, 0.08),
    0 0 26px rgba(200, 161, 89, 0.16);
  color: #fff8f5;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.support-launcher:hover,
.support-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(235, 185, 210, 0.84);
  box-shadow:
    0 18px 38px rgba(3, 21, 38, 0.32),
    0 0 0 5px rgba(200, 161, 89, 0.11),
    0 0 30px rgba(200, 161, 89, 0.24);
}

.support-launcher:focus-visible {
  outline: 2px solid rgba(235, 185, 210, 0.88);
  outline-offset: 4px;
}

.support-launcher svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.support-icon-close {
  display: none;
}

.support-status-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 12px;
  height: 12px;
  border: 3px solid #17101f;
  border-radius: 50%;
  background: #d88caf;
  box-shadow: 0 0 14px rgba(216, 140, 175, 0.62);
}

.support-widget.is-open .support-icon-chat {
  display: none;
}

.support-widget.is-open .support-icon-close {
  display: block;
}

.support-widget.is-open .support-status-dot {
  opacity: 0;
}

.support-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 416px;
  height: min(676px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 4px 16px rgba(4, 25, 42, 0.16);
  transform-origin: right bottom;
  animation: support-panel-enter 250ms ease-out;
}

.support-panel[hidden] {
  display: none;
}

@keyframes support-panel-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-panel-header {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 72px;
  padding: 16px;
  border-radius: 8px 8px 0 0;
  color: white;
  background: var(--support-header-gradient);
}

.support-panel-header:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 201, 130, 0.9) 46%, rgba(200, 161, 89, 0.45), transparent);
  box-shadow: 0 0 10px rgba(213, 171, 89, 0.48);
}

.support-panel-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-panel-brand b {
  font-family: "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}

.support-panel-mark {
  width: 46px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
}

.support-panel-mark img {
  width: 46px;
  height: 36px;
  object-fit: contain;
}

.support-panel-actions { display: flex; align-items: center; gap: 8px; }
.support-panel-expand { width: 28px; height: 28px; display: grid; place-items: center; color: rgba(255, 255, 255, 0.72); }
.support-panel-expand svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.support-panel-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.support-panel-close:hover,
.support-panel-close:focus-visible {
  border-color: rgba(231, 197, 129, 0.72);
  background: rgba(255, 255, 255, 0.11);
  color: #f7d992;
}

.support-panel-close:focus-visible {
  outline: 2px solid rgba(231, 197, 129, 0.82);
  outline-offset: 2px;
}

.support-panel-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.support-chat-body { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; background: var(--paper); }
.support-message-log { min-height: 0; display: flex; flex: 1 1 auto; flex-direction: column; gap: 12px; overflow-y: auto; padding: 16px; scrollbar-width: thin; scrollbar-color: rgba(200, 161, 89, 0.45) transparent; }
.support-message-row, .support-message-log > [data-support-message-role] { display: flex; gap: 8px; width: 100%; }
.support-message-row-assistant, .support-message-log > [data-support-message-role="assistant"] { align-items: flex-start; }
.support-message-stack { display: grid; gap: 8px; min-width: 0; }
.support-message-avatar { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 32px; border: 1px solid rgba(126, 65, 96, 0.24); border-radius: 50%; background: var(--support-launcher-gradient); }
.support-message-avatar img { width: 24px; height: 20px; object-fit: contain; }
.support-message-bubble, .support-message-log > [data-support-message-role] { width: fit-content; max-inline-size: 308px; min-height: 32px; margin: 0; padding: 8px 16px; border-radius: 10px; color: var(--ink); background: var(--ivory); font-size: 14px; line-height: 24px; overflow-wrap: anywhere; }
.support-message-bubble[data-support-message-role="user"], .support-message-log > [data-support-message-role="user"] { align-self: flex-end; margin-left: auto; color: white; background: var(--support-message-gradient); }
.support-message-bubble[data-support-message-role="assistant"] a, .support-message-log > [data-support-message-role="assistant"] a { color: var(--ink-2); font-weight: 700; text-decoration-color: rgba(200, 161, 89, 0.82); text-underline-offset: 3px; }
.support-quick-reply-group { width: 324px; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.support-quick-reply { height: 34px; padding: 7px 10px; border: 1px solid rgba(200, 161, 89, 0.78); border-radius: 10px; background: white; color: var(--ink-2); cursor: pointer; font: 600 12px/18px "Noto Sans SC", sans-serif; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease; }
.support-quick-reply[data-support-quick-reply="buyer"] { width: 96px; }
.support-quick-reply[data-support-quick-reply="seller"] { width: 142px; }
.support-quick-reply[data-support-quick-reply="progress"] { width: 107px; }
.support-quick-reply:hover, .support-quick-reply:focus-visible { border-color: var(--gold); background: #fff7e6; color: var(--ink); }
.support-quick-reply:focus-visible, .support-composer-action:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.support-consent { height: 98px; flex: 0 0 98px; margin-bottom: 16px; padding: 12px 28px; border-top: 2px solid #f2f5f8; background: var(--ivory); }
.support-consent p { margin: 0; color: #42607a; font-size: 12px; line-height: 24px; }
.support-composer { min-height: 58px; display: flex; align-items: center; flex: 0 0 58px; gap: 4px; padding: 8px 9px 8px 16px; border-top: 1px solid var(--line); background: white; }
.support-composer input { width: 282px; height: 38px; min-width: 0; flex: 0 0 282px; padding: 8px; border: 0; border-radius: 8px; outline: 0; color: var(--ink); background: transparent; font: 14px/22px "Noto Sans SC", sans-serif; }
.support-composer input::placeholder { color: #9b9897; }
.support-composer input:focus-visible { box-shadow: inset 0 0 0 1px rgba(200, 161, 89, 0.72); }
.support-composer-action { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color 0.15s ease-out, color 0.15s ease-out; }
.support-composer-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.support-composer-action:disabled { color: #9b9897; cursor: not-allowed; }
.support-send:not(:disabled) { color: white; background: var(--support-message-gradient); }
.support-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
