.tmw-widget {
  --tmw-blue: #2e4396;
  --tmw-edge: 24px;
  --tmw-bottom: max(var(--tmw-edge), calc(env(safe-area-inset-bottom, 0px) + 12px));
  position: fixed;
  z-index: 90;
  right: max(var(--tmw-edge), env(safe-area-inset-right, 0px));
  bottom: var(--tmw-bottom);
  font: 16px/1.25 Calibri, Arial, sans-serif;
  color: #15202e;
}
.tmw-widget *, .tmw-widget *::before, .tmw-widget *::after { box-sizing: border-box; }
.tmw-widget [hidden], .tmw-widget[hidden], .tmw-widget[data-tmw-obscured] { display: none !important; }
.tmw-widget button, .tmw-widget a { font: inherit; color: inherit; }
.tmw-widget button { cursor: pointer; }
.tmw-widget :is(a, button):focus-visible { outline: 2px solid var(--tmw-blue); outline-offset: 3px; }
.tmw-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 8px 6px 18px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: var(--tmw-blue);
}
.tmw-widget .tmw-launcher { color: #fff; font-weight: 700; }
.tmw-launcher:hover { background: #263883; }
.tmw-bubble, .tmw-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
}
.tmw-bubble { background: #fff; color: var(--tmw-blue); }
.tmw-badge { background: var(--tmw-blue); color: #fff; }
.tmw-widget svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.tmw-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: min(328px, calc(100vw - 2 * var(--tmw-edge) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: calc(100vh - var(--tmw-bottom) - 76px);
  max-height: calc(100dvh - var(--tmw-bottom) - 76px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid #eae5df;
  background: #f8f4f0;
  box-shadow: 0 8px 28px #15202e26;
}
.tmw-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin: 0 0 8px 8px; }
.tmw-title { font: 700 22px/1.1 Calibri, Arial, sans-serif; margin: 0; color: var(--tmw-blue); overflow-wrap: anywhere; }
.tmw-actions { display: grid; gap: 8px; }
.tmw-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  text-align: left;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px 8px 8px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
}
.tmw-action:hover { background: #e8edf5; }
.tmw-action span { overflow-wrap: anywhere; }
.tmw-action > svg { width: 16px; height: 16px; color: var(--tmw-blue); }
.tmw-action:disabled { cursor: default; }
.tmw-action:disabled .tmw-badge { background: #eae5df; color: var(--tmw-blue); }
@media (max-width: 768px) {
  .tmw-widget { --tmw-edge: 16px; }
}
.tmw-launcher[aria-expanded="false"] .tmw-on,
.tmw-launcher[aria-expanded="true"] .tmw-off { display: none; }
.tmw-launcher[aria-expanded="true"] .tmw-bubble svg { width: 16px; height: 16px; }
