/* The partner uses a near-maximum z-index inside its shadow root. Contain it
   below our analytics consent (10000). */
#blukach-widget-host {
  position: relative;
  z-index: 9999;
}

/* Also covers a download that completes after navigation to a sensitive view. */
html[data-descriptor-strider-widget="disabled"] #blukach-widget-host {
  display: none !important;
}

/* Also loaded inside the partner's open shadow root by our local adapter.
   Target the existing image button only; its title, accessible name and
   click handler stay on the original element. If its markup changes, fall
   back to the partner's appearance instead of hiding a text-only button. */
:host(#blukach-widget-host) .blkch-root > button.blkch-floater:has(> img:is(.blkch-floater-avatar-img, .blkch-floater-logo)) {
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
  justify-content: center;
  font-size: 0;
  line-height: 0;
}

:host(#blukach-widget-host) .blkch-root > button.blkch-floater > img:is(.blkch-floater-avatar-img, .blkch-floater-logo) {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

:host(#blukach-widget-host) .blkch-root > button.blkch-floater:focus-visible {
  outline: 2px solid var(--blkch-accent);
  outline-offset: 3px;
}
