/* Shared action buttons for Bootstrap modals, native dialogs and custom dialogs. */
html body :is(.modal, dialog, [role="dialog"]) :is(.btn, .ghost-hunt-profile, .achievement-viewer__share, .comment-info-confirm) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  height: auto;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Bootstrap secondary buttons include a 1px border within the same height. */
html body :is(.modal, dialog, [role="dialog"]) .btn {
  padding: 11px 19px;
}

html body :is(.modal, dialog, [role="dialog"]) :is(.btn-primary, .ghost-hunt-profile, .achievement-viewer__share, .comment-info-confirm) {
  padding: 12px 20px;
  border: 0 !important;
  background: #0ea5e9 !important;
  color: #fff !important;
}

html body :is(.modal, dialog, [role="dialog"]) :is(.btn-primary, .ghost-hunt-profile, .achievement-viewer__share, .comment-info-confirm):is(:hover, :active) {
  background: #0284c7 !important;
  color: #fff !important;
  opacity: 1;
  transform: none;
}

html body :is(.modal, dialog, [role="dialog"]) :is(.btn, .ghost-hunt-profile, .achievement-viewer__share, .comment-info-confirm):focus-visible {
  outline: 2px solid #0ea5e9 !important;
  outline-offset: 3px;
}

html body :is(.modal, dialog, [role="dialog"]) :is(.btn, .ghost-hunt-profile, .achievement-viewer__share, .comment-info-confirm):is(:disabled, [aria-disabled="true"], .disabled) {
  opacity: .5;
  cursor: not-allowed;
}

html body :is(.modal, dialog, [role="dialog"]) :is(.btn, .ghost-hunt-profile, .achievement-viewer__share, .comment-info-confirm)[hidden] {
  display: none !important;
}
