#ab-stat-settings[hidden], #ab-stat-choice[hidden] { display: none !important; }
.ab-contact-tools {
	position: fixed; z-index: 190; bottom: max(1rem, env(safe-area-inset-bottom)); right: max(1rem, env(safe-area-inset-right));
	display: grid; justify-items: end; gap: .5rem; max-width: calc(100vw - 2rem); pointer-events: none;
}
.ab-contact-tools > * { pointer-events: auto; }
.ab-contact-tools .ab-chat-link {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  padding: 8px;
  border: 1px solid #159447;
  border-radius: 13px;
  background: linear-gradient(160deg, #39df74, #1fb957);
  color: #fff;
  box-shadow: 0 2px 9px rgb(0 0 0 / 20%);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ab-contact-tools .ab-chat-link:hover { background: #159447; color: #fff; }
.ab-contact-tools .ab-chat-link:focus-visible { outline: 3px solid #121212; outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.ab-contact-tools .ab-chat-link svg { display: block; flex: none; width: 32px; height: 32px; }
/* Never cover the visitor's cookie choice. It returns after accept OR reject. */
.ab-contact-tools:has(#ab-stat-choice:not([hidden])) .ab-chat-link { visibility: hidden; pointer-events: none; }
@media print { .ab-contact-tools .ab-chat-link { display: none; } }

#ab-stat-choice {
	box-sizing: border-box; width: min(24rem, 100%); max-height: calc(100dvh - 6rem); overflow-y: auto;
	padding: 1rem; background: #fff; color: #112b43; border: 1px solid #90a8bf; border-radius: .75rem; box-shadow: 0 3px 16px #102b4326;
}
#ab-stat-title { margin: 0 0 .4rem; font-size: 1.05rem; line-height: 1.3; }
#ab-stat-choice p { margin: 0 0 .7rem; font-size: .92rem; line-height: 1.45; }
.ab-stat-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.ab-stat-actions button { flex: 1; min-height: 44px; padding: .45rem .8rem; color: #112b43; background: #edf4fa; border: 1px solid #8096a9; border-radius: .35rem; font: inherit; font-weight: 600; cursor: pointer; }
.ab-stat-actions button:hover { background: #dce9f5; }
#ab-stat-settings { padding: .3rem 1rem 1rem; text-align: center; background: #fff; }
#ab-stat-settings button { min-height: 44px; background: transparent; border: 0; color: #0057be; font: inherit; text-decoration: underline; cursor: pointer; }
