/* International site: move existing chat entries without changing their UI or state. */
:root {
  --hl-intl-chat-right: 20px;
  --hl-intl-chat-bottom: 20px;
}

#hl-ttkefu-official-root #ttkefuico.tool-box-components,
#hl-ttkefu-official-root #ttkefu_Mb_Ico_Wrapper,
#hl-ttkefu-official-root #ttkefuico.ttkefuico,
#hl-ttkefu-official-root #ttkefu_Mb_MinWindow_TakingIcoDiv,
#hl-contact-actions #hl-online-chat {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: var(--hl-intl-chat-right) !important;
  bottom: var(--hl-intl-chat-bottom) !important;
}

/* Remove the provider's empty 360px rail while retaining its native 60px content. */
#hl-ttkefu-official-root #ttkefuico.tool-box-components {
  width: 60px !important;
  height: auto !important;
}

#hl-ttkefu-official-root #ttkefuico.tool-box-components #ttkefu_back_top {
  display: none !important;
}

@media (min-width: 901px) {
  /* The existing quote button occupies the lower-right corner on these pages. */
  body:has(#hl-cta-fab) {
    --hl-intl-chat-bottom: 88px;
  }
}

@media (max-width: 900px) {
  :root {
    --hl-intl-chat-right: max(12px, env(safe-area-inset-right, 0px));
    --hl-intl-chat-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  /* Native 25px / 60px entries fit the existing 80px lane beside the mobile dock.
     The wider backup button needs clearance when no English mobile shell is active. */
  body:not(.hl-ms-ready):has(#hl-cta-bar) #hl-contact-actions #hl-online-chat {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
