html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.support-assistant-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
}

.support-assistant-toggle {
  min-width: 8.5rem;
  border-radius: 0.375rem;
}

.support-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 3.25rem;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
}

.support-assistant-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.support-assistant-thread {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1rem;
  min-height: 12rem;
  overflow-y: auto;
  background: #f8f9fa;
}

.support-assistant-message {
  max-width: 92%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: pre-wrap;
}

.support-assistant-message-assistant {
  align-self: flex-start;
  color: #212529;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.support-assistant-message-user {
  align-self: flex-end;
  color: #fff;
  background: #0d6efd;
}

.support-assistant-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.support-assistant-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(13, 110, 253, 0.3);
  border-radius: 0.375rem;
  background: #fff;
  color: #0d6efd;
  font-size: 0.8125rem;
  text-decoration: none;
}

.support-assistant-disclaimer {
  color: #664d03;
  background: #fff3cd;
  border: 1px solid #ffecb5;
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
}

.support-assistant-action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.28);
  border-left: 0.25rem solid #0d6efd;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 0.875rem;
}

.support-assistant-action-title {
  color: #0d6efd;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.support-assistant-action-summary {
  margin: 0;
  color: #495057;
  line-height: 1.35;
}

.support-assistant-action-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.support-assistant-form {
  padding: 0.875rem 1rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 575.98px) {
  .support-assistant-widget {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
  }

  .support-assistant-toggle {
    width: 100%;
  }

  .support-assistant-panel {
    left: 0;
    right: 0;
    width: 100%;
  }
}
