.umbrella-guide {
  --guide-ink: var(--about-ink, #191714);
  --guide-paper: var(--about-paper, #faf9f6);
  --guide-card: var(--about-card, #fffdf8);
  --guide-border: var(--about-line, #e4e0d8);
  --guide-blue: var(--pilot-blue, #e6edf8);
  --guide-link: var(--about-focus, #3157e7);
  --text: var(--guide-ink);
  position: fixed;
  z-index: 9500;
  inset-inline-end: max(16px, env(safe-area-inset-right));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  color: var(--guide-ink);
  font: 500 16px/1.45 "Avenir Next", Inter, system-ui, sans-serif;
}

:is(html.dark, html[data-theme="dark"]) .umbrella-guide {
  --guide-ink: var(--about-ink, #f8f2ea);
  --guide-paper: var(--about-paper, #25212a);
  --guide-card: var(--about-card, #302a35);
  --guide-border: var(--about-line, #504958);
  --guide-blue: #303c51;
  --guide-link: var(--about-focus, #a9b8ff);
}

.umbrella-guide *,
.umbrella-guide__panel {
  box-sizing: border-box;
}

.umbrella-guide button,
.umbrella-guide button:is(:hover, :focus) {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.umbrella-guide button:focus-visible,
.umbrella-guide a:focus-visible,
.umbrella-guide input:focus-visible {
  outline: 2px solid var(--guide-link);
  outline-offset: 3px;
}

.umbrella-guide .umbrella-guide__launcher,
.umbrella-guide .umbrella-guide__launcher:is(:hover, :focus) {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  padding: 0 16px 0 13px;
  border-color: var(--guide-border);
  background: var(--guide-card);
  box-shadow: 0 5px 20px #161b3520;
}

.umbrella-guide img {
  display: block;
  margin: 0;
  width: 30px;
  height: auto;
}

.umbrella-guide__panel {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) calc(76px + env(safe-area-inset-bottom)) auto;
  width: min(405px, calc(100vw - 32px));
  height: min(560px, calc(100dvh - 100px - env(safe-area-inset-bottom)));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  border-radius: 22px;
  background: var(--guide-paper);
  color: var(--guide-ink);
  box-shadow: 0 16px 55px #161b3533;
}

.umbrella-guide__panel[open] {
  display: flex;
  flex-direction: column;
}

.umbrella-guide__header,
.umbrella-guide__identity,
.umbrella-guide__compose {
  display: flex;
  align-items: center;
  gap: 10px;
}

.umbrella-guide__header {
  flex: none;
  justify-content: space-between;
  width: 100%;
  padding: 10px 12px 10px 16px;
  background: var(--guide-blue);
}

.umbrella-guide__header h2 {
  margin: 0;
  color: var(--guide-ink);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-align: start;
}

.umbrella-guide .umbrella-guide__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.umbrella-guide__body {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
}

.umbrella-guide__bubble {
  max-width: 95%;
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid var(--guide-border);
  border-radius: 14px;
  background: var(--guide-card);
  text-align: start;
  overflow-wrap: anywhere;
}

.umbrella-guide__bubble p,
.umbrella-guide__status,
.umbrella-guide__privacy {
  margin: 0;
  font: inherit;
  text-align: start;
}

.umbrella-guide__bubble--visitor {
  width: fit-content;
  margin-inline-start: auto;
  border-color: transparent;
  background: var(--guide-blue);
}

.umbrella-guide__shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.umbrella-guide__shortcuts[hidden],
.umbrella-guide__status:empty {
  display: none;
}

.umbrella-guide .umbrella-guide__shortcuts button,
.umbrella-guide .umbrella-guide__shortcuts button:is(:hover, :focus) {
  min-height: 40px;
  padding-inline: 10px;
  border-color: var(--guide-border);
  background: var(--guide-card);
  font-size: 13px;
  white-space: normal;
}

.umbrella-guide__bubble a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--guide-link) !important;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.umbrella-guide__bubble a:first-of-type[href^="/book-demo/?topic="] {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--guide-ink);
  color: var(--guide-paper) !important;
  text-decoration: none;
}

.umbrella-guide__form {
  flex: none;
  margin: 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--guide-border);
  background: var(--guide-card);
}

.umbrella-guide__privacy {
  margin-bottom: 8px;
  font-size: 12px;
}

.umbrella-guide .umbrella-guide__compose input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  background: var(--guide-paper);
  font: inherit;
}

.umbrella-guide .umbrella-guide__compose button,
.umbrella-guide .umbrella-guide__compose button:is(:hover, :focus) {
  min-height: 44px;
  padding-inline: 14px;
  background: var(--guide-ink);
  color: var(--guide-paper) !important;
}

.umbrella-guide button:hover:not(:disabled) {
  filter: brightness(.96);
}
