/* Scoped compatibility for the existing Auto Translate plugin. */
#auto_translate_button_wrapper.wpat_float_top_left > .auto_translate_minimalist,
#auto_translate_button_wrapper.wpat_float_top_left > .google_translate_element {
 position:fixed!important; top:auto!important; right:auto!important; left:12px!important;
 bottom:max(112px,env(safe-area-inset-bottom))!important; margin:0!important;
 max-width:calc(100vw - 112px); z-index:90; overflow:visible!important;
}
#auto_translate_button_wrapper.wpat_float_top_left .wpat_minimalist_dropdown {
 position:absolute!important; bottom:100%!important; top:auto!important; left:0; right:auto;
 max-height:max(44px,calc(100vh - 270px - var(--gac-translate-offset,0px) - var(--gac-translate-admin-offset,0px)));
 max-height:max(44px,calc(100dvh - 270px - var(--gac-translate-offset,0px) - var(--gac-translate-admin-offset,0px)));
 overflow:auto!important;
}
.site-header {top:var(--gac-translate-offset,0px)}
.admin-bar .site-header {top:calc(32px + var(--gac-translate-offset,0px))}
.admin-bar #auto_translate_button_wrapper {--gac-translate-admin-offset:32px}
@media (max-width:782px) {
 .admin-bar .site-header {top:calc(46px + var(--gac-translate-offset,0px))}
 .admin-bar #auto_translate_button_wrapper {--gac-translate-admin-offset:46px}
}
@media (max-width:600px) {
 .admin-bar .site-header {top:var(--gac-translate-offset,0px)}
 .admin-bar #auto_translate_button_wrapper {--gac-translate-admin-offset:0px}
}

#qlwapp.qlwapp-bubble.qlwapp-bottom-right .qlwapp-toggle .qlwapp-text {
  box-sizing: border-box;
  background: #f7f4ee;
  color: #152636;
  padding: 4px 10px;
}

@media (max-width: 600px) {
  #qlwapp.qlwapp-bubble.qlwapp-bottom-right .qlwapp-toggle .qlwapp-text {
    width: max-content;
    max-width: calc(100vw - 120px);
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
}
