html .feedback-icon-control[data-feedback-control] {
  align-items: center;
  appearance: none;
  block-size: 2.125rem;
  border: 1px solid transparent;
  border-radius: 50%;
  box-sizing: border-box;
  color: #fff;
  display: inline-flex;
  flex: 0 0 2.125rem;
  font-size: 1rem;
  inline-size: 2.125rem;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

html .feedback-icon-control[data-feedback-control] > i,
html i.feedback-icon-control[data-feedback-control]::before {
  display: block;
  font-size: inherit;
  line-height: 1;
}

html .feedback-icon-control.feedback-icon-control--like[data-feedback-control] {
  background-color: var(--bs-success, #198754);
  border-color: color-mix(in srgb, var(--bs-success, #198754) 88%, #000);
  color: #fff;
}

html .feedback-icon-control.feedback-icon-control--dislike[data-feedback-control] {
  background-color: var(--bs-danger, #dc3545);
  border-color: color-mix(in srgb, var(--bs-danger, #dc3545) 88%, #000);
  color: #fff;
}

html button.feedback-icon-control[data-feedback-control] {
  cursor: pointer;
  transform: none;
  transition: background-color .15s ease, border-color .15s ease;
}

html button.feedback-icon-control.feedback-icon-control--like[data-feedback-control]:hover {
  background-color: color-mix(in srgb, var(--bs-success, #198754) 84%, #000);
  border-color: color-mix(in srgb, var(--bs-success, #198754) 76%, #000);
}

html button.feedback-icon-control.feedback-icon-control--dislike[data-feedback-control]:hover {
  background-color: color-mix(in srgb, var(--bs-danger, #dc3545) 84%, #000);
  border-color: color-mix(in srgb, var(--bs-danger, #dc3545) 76%, #000);
}

html button.feedback-icon-control[data-feedback-control]:focus-visible {
  outline: 2px solid var(--admin-primary, var(--accent-color, #4f46e5));
  outline-offset: 2px;
}

html button.feedback-icon-control[data-feedback-control]:disabled {
  cursor: not-allowed;
  opacity: .65;
}

/* Customer-facing resolved-ticket feedback prompt. */
html .customer-feedback {
  border-block-start: 1px solid var(--admin-border, var(--border-color, #e2e8f0));
  margin-block-start: 1.5rem;
  padding-block-start: 1.25rem;
  text-align: center;
  width: 90%;
margin-inline: auto;
}

html .customer-feedback__content {
  inline-size: min(100%, 28rem);
  margin-inline: auto;
}

html .customer-feedback__heading {
  color: var(--admin-text-primary, var(--heading-color, #1e293b));
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

html .customer-feedback__subheading {
  color: var(--admin-muted, var(--muted-color, #64748b));
  font-size: .85rem;
  line-height: 1.6;
  margin: .2rem 0 0;
}

html .customer-feedback__actions {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  gap: .75rem;
  justify-content: center;
  margin-block-start: 1rem;
}

html .customer-feedback__choice {
  align-items: center;
  appearance: none;
  background: var(--admin-surface, var(--surface-color, #fff));
  border: 1px solid var(--admin-border, var(--border-color, #d8dee8));
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--admin-text-primary, var(--heading-color, #334155));
  cursor: pointer;
  display: inline-flex;
  flex: 1 1 0;
  font-size: .9rem;
  font-weight: 600;
  gap: .55rem;
  justify-content: center;
  line-height: 1.25;
  margin: 0;
  min-block-size: 3.125rem;
  min-inline-size: 0;
  padding: .7rem 1rem;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}

html .customer-feedback__choice > i {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}

html .customer-feedback__choice:hover {
  background: var(--admin-surface-secondary, var(--background-color, #f8fafc));
  color: var(--admin-text-primary, var(--heading-color, #1e293b));
}

html .customer-feedback__choice--helpful:hover {
  border-color: var(--success-color, #16a34a);
}

html .customer-feedback__choice--not-helpful:hover {
  border-color: var(--danger-color, #dc2626);
}

html .customer-feedback__choice:focus-visible {
  outline: 2px solid var(--admin-primary, var(--accent-color, #4f46e5));
  outline-offset: 2px;
}

html .customer-feedback__choice:disabled {
  cursor: not-allowed;
  opacity: .65;
}

@media (max-width: 420px) {
  html :where(body:not(.chat-widget-embed), body.chat-widget-mobile) .customer-feedback__heading {
    font-size: 1.1rem;
  }

  html :where(body:not(.chat-widget-embed), body.chat-widget-mobile) .customer-feedback__choice {
    padding-inline: .75rem;
    padding-block: .5rem;
    min-block-size: 2.5rem;
  }
}
