.support-fab {
  display: none;
  position: fixed;
  z-index: 34;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: var(--p);
  color: #fff;
  box-shadow: 0 8px 26px #0003;
  font-family: Tom;
}
.has-checkout .support-fab {
  bottom: 145px;
}
.support-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: #0008;
  display: flex;
  align-items: flex-end;
}
.support-panel {
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  margin: auto;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow: auto;
  padding: 14px;
}
.support-panel > header {
  position: sticky;
  top: -14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 7px 0;
}
.support-panel > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-panel header img {
  width: 48px;
  height: 34px;
  object-fit: contain;
}
.support-panel h2 {
  font-size: 19px;
  margin: 0;
}
.support-panel h3 {
  font-size: 16px;
}
.support-panel #supportClose {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
}
.support-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 8px 0;
}
.support-tabs button {
  min-height: 43px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.support-tabs button.active {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
.support-tab {
  display: none;
}
.support-tab.active {
  display: block;
}
.review-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--p);
}
.review-summary b {
  grid-row: 1/3;
  font: 700 28px Tom;
}
.review-summary small {
  grid-column: 2;
  color: var(--muted);
}
#reviewForm {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 12px;
}
.rating-row > span {
  flex: 1;
}
.stars {
  display: flex;
  direction: ltr;
}
.stars button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  font-size: 22px;
}
.stars button.on {
  color: #f59e0b;
}
.support-submit {
  min-height: 48px;
}
.privacy {
  font-size: 11px;
  color: var(--muted);
}
.public-review {
  padding: 10px;
  margin: 7px 0;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
}
.public-review > div {
  display: flex;
  justify-content: space-between;
}
.public-review span {
  color: #f59e0b;
}
.public-review p {
  margin: 6px 0 0;
}
.intent-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.intent-chips button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--p);
}
.intent-chips button.active {
  background: var(--soft);
  border-color: var(--p);
}
.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 9px 0;
}
.ai-messages {
  height: 250px;
  overflow: auto;
  padding: 10px;
  background: #e7eeee;
  border-radius: 14px;
}
.ai-msg {
  max-width: 88%;
  margin: 7px 0;
  padding: 9px 11px;
  border-radius: 13px;
  background: #fff;
}
.ai-msg.customer {
  margin-right: auto;
  background: var(--p);
  color: #fff;
}
.ai-msg.assistant {
  margin-left: auto;
}
#aiForm {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}
#aiForm textarea {
  min-height: 48px;
}
#aiForm button {
  min-width: 76px;
}
@media (max-width: 340px) {
  .support-fab span {
    display: none;
  }
  .support-fab {
    width: 48px;
    padding: 0;
  }
  .lead-fields {
    grid-template-columns: 1fr;
  }
  .stars button {
    font-size: 20px;
  }
}
