/* Path A — the help chat bubble, pinned bottom-right on every page.
   Sized for a thumb on a phone and out of the way of the page content. */

.botdopay-chat-bubble {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  min-height: 3.25rem;
  padding: 0 1.1rem;

  border: 0;
  border-radius: 999px;
  cursor: pointer;

  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
  font-family: var(--md-text-font-family, inherit);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.botdopay-chat-bubble:hover,
.botdopay-chat-bubble:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.botdopay-chat-bubble:focus-visible {
  outline: 2px solid var(--md-accent-fg-color);
  outline-offset: 3px;
}

/* On a phone the label would crowd the screen — shrink to a round icon button. */
@media screen and (max-width: 44.9375em) {
  .botdopay-chat-bubble {
    width: 3.25rem;
    padding: 0;
    justify-content: center;
  }

  .botdopay-chat-bubble__label {
    display: none;
  }
}

/* Keep the widget's own dialog above Material's header on small screens. */
gen-search-widget {
  position: relative;
  z-index: 21;
}
