/* Approved compact dock, applied to the existing native navigation anchors.
 * The native plugins still own links, accessible labels, pulse and hide rules.
 * No forced visibility, generated text, new controls or page-layout rules. */
html body .cg-support-site-bubble,
html body .cg-sales-bubble {
  --cg-dock-support-width:154px;
  --cg-dock-sales-width:126px;
  --cg-dock-width:280px;
  --cg-dock-right:18px;
  --cg-dock-bottom:max(18px,env(safe-area-inset-bottom,0px));
  position:fixed;
  left:auto;
  right:var(--cg-dock-right);
  bottom:var(--cg-dock-bottom);
  height:56px;
  box-sizing:border-box;
  margin:0;
  border:1px solid #d5e2eb;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 25px #05263b24;
  font-family:Arial,Helvetica,ui-sans-serif,system-ui,sans-serif;
  font-size:13px;
  font-weight:600;
  line-height:1.25;
}
html body .cg-support-site-bubble {
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  width:var(--cg-dock-support-width);
  padding:5px 10px 5px 15px;
  overflow:visible;
  color:#142e40;
}
html body .cg-support-site-bubble img {
  display:block;
  flex:0 0 31px;
  width:31px;
  height:31px;
  max-width:31px;
  margin:0;
  object-fit:contain;
  border:0;
  border-radius:50%;
}
html body .cg-support-site-bubble .cg-support-site-bubble__label {
  position:static;
  inset:auto;
  max-width:90px;
  padding:0;
  background:transparent;
  color:#142e40;
  font:600 13px/1.25 Arial,Helvetica,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:normal;
  text-align:left;
}
html body .cg-sales-bubble {
  z-index:39;
  width:var(--cg-dock-sales-width);
  padding:5px;
  overflow:visible;
}
html body .cg-sales-bubble .cg-sales-bubble__button,
html body .cg-sales-bubble .cg-sales-bubble__button:visited,
html body .cg-sales-bubble .cg-sales-bubble__button:hover,
html body .cg-sales-bubble .cg-sales-bubble__button:focus {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-sizing:border-box;
  width:100%;
  height:44px;
  min-height:44px;
  padding:4px 10px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#005c9e;
  box-shadow:none;
  overflow:visible;
  font:600 13px/1.25 Arial,Helvetica,ui-sans-serif,system-ui,sans-serif;
  text-decoration:none;
}
html body .cg-sales-bubble .cg-sales-bubble__face {
  position:static;
  inset:auto;
  display:block;
  flex:0 0 31px;
  width:31px;
  height:31px;
  margin:0;
  border:0;
  border-radius:50%;
  background:transparent;
  overflow:hidden;
}
html body .cg-sales-bubble .cg-sales-bubble__face img {
  display:block;
  width:100%;
  height:100%;
  margin:0;
  object-fit:contain;
  transform:none;
}
html body .cg-sales-bubble .cg-sales-bubble__label {
  position:static;
  inset:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:0;
  width:auto;
  height:auto;
  min-width:0;
  padding:0;
  background:transparent;
  color:#005c9e;
  font:600 13px/1.25 Arial,Helvetica,ui-sans-serif,system-ui,sans-serif;
  letter-spacing:normal;
  text-align:left;
}
html body .cg-sales-bubble .cg-sales-bubble__line {white-space:nowrap;}
html body .cg-sales-bubble .cg-sales-bubble__dot {flex-shrink:0;}
html body .cg-support-site-bubble:hover,
html body .cg-sales-bubble .cg-sales-bubble__button:hover {background:#f0f7fb;}
html body .cg-support-site-bubble:focus-visible,
html body .cg-sales-bubble .cg-sales-bubble__button:focus-visible {outline:3px solid #e4ac36;outline-offset:3px;}

/* A single decorative backplate joins the separately owned native anchors.
 * It never receives pointer input. Support is above it, and the R1 open menu
 * (10000) remains above both native launcher stacking levels. */
html body:has(.cg-support-site-bubble:not([hidden])):has(.cg-sales-bubble:not([hidden]) > .cg-sales-bubble__button:not([hidden])) .cg-support-site-bubble {
  right:calc(var(--cg-dock-right) + var(--cg-dock-sales-width));
  border:0;
  border-radius:10px 0 0 10px;
  background:transparent;
  box-shadow:none;
}
html body:has(.cg-support-site-bubble:not([hidden])):has(.cg-sales-bubble:not([hidden]) > .cg-sales-bubble__button:not([hidden])) .cg-sales-bubble {
  padding:6px 6px 6px 0;
  border:0;
  border-radius:0 10px 10px 0;
  background:transparent;
  box-shadow:none;
}
html body:has(.cg-support-site-bubble:not([hidden])):has(.cg-sales-bubble:not([hidden]) > .cg-sales-bubble__button:not([hidden])) .cg-sales-bubble::before {
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  z-index:-1;
  box-sizing:border-box;
  width:var(--cg-dock-width);
  height:56px;
  border:1px solid #d5e2eb;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 25px #05263b24;
  pointer-events:none;
}
html body:has(.cg-support-site-bubble:not([hidden])):has(.cg-sales-bubble:not([hidden]) > .cg-sales-bubble__button:not([hidden])) .cg-sales-bubble__button {border-left:1px solid #dce5ec;}
html body:has(.cg-support-site-bubble:not([hidden])):has(.cg-sales-bubble:not([hidden]) > .cg-sales-bubble__button:not([hidden])) .cg-support-site-bubble:hover {background:#f0f7fb;}

@media(max-width:760px) {
  html body .cg-support-site-bubble,
  html body .cg-sales-bubble {
    --cg-dock-support-width:calc((100% - 24px)/2);
    --cg-dock-sales-width:calc((100% - 24px)/2);
    --cg-dock-width:200%;
    --cg-dock-right:12px;
    --cg-dock-bottom:max(10px,env(safe-area-inset-bottom,0px));
  }
}
@media(max-width:360px) {
  html body .cg-support-site-bubble {gap:6px;padding:5px 6px 5px 11px;}
  html body .cg-support-site-bubble img,
  html body .cg-sales-bubble .cg-sales-bubble__face {flex-basis:28px;width:28px;height:28px;max-width:28px;}
  html body .cg-support-site-bubble .cg-support-site-bubble__label {max-width:83px;font-size:12px;}
  html body .cg-sales-bubble .cg-sales-bubble__button,
  html body .cg-sales-bubble .cg-sales-bubble__button:visited,
  html body .cg-sales-bubble .cg-sales-bubble__button:hover,
  html body .cg-sales-bubble .cg-sales-bubble__button:focus {gap:6px;padding:4px 6px;font-size:12px;}
  html body .cg-sales-bubble .cg-sales-bubble__label {font-size:12px;}
}

/* Retain explicit native hidden-state semantics as well as its route guards. */
html body .cg-support-site-bubble[hidden],
html body .cg-sales-bubble[hidden],
html body .cg-sales-bubble .cg-sales-bubble__button[hidden],
html body .cg-sales-bubble:has(> .cg-sales-bubble__button[hidden]) {display:none!important;}
