.support-trigger {
  border-color: #aa761e;
  background: linear-gradient(135deg, #f5c45d, #d99a2b);
  color: #294231;
  padding: 10px 17px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(151, 101, 21, 0.2);
}

.support-trigger:hover {
  background: linear-gradient(135deg, #ffcf68, #e8a536);
  transform: translateY(-1px);
}

.support-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid #a96f16;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6c75f, #d89424);
  color: #263d2e;
  box-shadow: 0 10px 28px rgba(62, 46, 19, 0.3);
}

.support-fab > span:first-child {
  font-size: 24px;
}

.support-fab > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.35;
}

.support-fab strong {
  font-size: 14px;
}

.support-fab small {
  color: #425744;
  font-size: 10px;
}

.support-fab:hover {
  background: linear-gradient(135deg, #ffd36e, #e5a033);
  transform: translateY(-2px);
  box-shadow: 0 13px 32px rgba(62, 46, 19, 0.35);
}

body:has(#support[open]) .support-fab {
  opacity: 0;
  pointer-events: none;
}

.support-dialog {
  width: 440px;
  text-align: center;
}

.support-dialog .dialog-heading {
  text-align: left;
}

.support-dialog > p {
  font-size: 13px;
}

.support-dialog img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 18px auto;
  border-radius: 12px;
}

.support-hint {
  margin: 10px 0 0;
  color: var(--muted);
}

.feedback-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: 24px 28px;
  border: 1px solid #d8e1d2;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f0f4e9);
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #f3c45e;
  font-size: 22px;
}

.feedback-card .eyebrow {
  margin-bottom: 5px;
  color: #7a8b72;
}

.feedback-card h2 {
  margin-bottom: 5px;
  font-size: 18px;
}

.feedback-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 5px 12px;
  min-width: 220px;
}

.contact > span:first-child {
  color: var(--muted);
  font-size: 11px;
}

.contact strong {
  font-size: 18px;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  user-select: all;
}

.contact button {
  grid-column: 1 / -1;
  border: 0;
  background: var(--green);
  color: #fff;
  font-size: 12px;
}

.contact button:hover {
  background: #32634e;
}

.copy-status {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 5px;
  color: #486a50;
  font-size: 11px;
}

@media (max-width: 700px) {
  .header .support-trigger {
    margin-left: auto;
    padding: 9px 12px;
    font-size: 12px;
  }

  .header-note + .support-trigger + button {
    display: none;
  }

  .support-dialog {
    padding: 20px;
  }

  .support-dialog img {
    max-width: min(100%, 330px);
  }

  .support-fab {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 52px;
    padding: 9px 12px;
    border-radius: 14px;
  }

  .support-fab > span:first-child {
    font-size: 20px;
  }

  .support-fab small {
    display: none;
  }

  .feedback-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin-top: 26px;
    padding: 20px;
  }

  .feedback-icon {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .contact {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-trigger,
  .support-fab {
    transform: none !important;
  }
}
