/* All styles are scoped to this component and the replaced Chaty widget. */
html.wm-contact-ready .chaty-widget,
html.wm-contact-ready .chaty-widget-i,
html.wm-contact-ready #chaty-widget-0 { display: none !important; }
#wm-contact-capsule {
  position: fixed;
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: var(--wm-contact-bottom, calc(100px + env(safe-area-inset-bottom, 0px)));
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: 50px;
  padding: 4px 2px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #C5A76B;
  border-radius: 999px;
  background: #164D40;
  color: #E7C98D;
  box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
}
#wm-contact-capsule[hidden], #wm-contact-phones[hidden] { display: none !important; }
#wm-contact-capsule > a, #wm-contact-capsule > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #E7C98D;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
#wm-contact-capsule > button { position: relative; }
#wm-contact-capsule > button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 11px;
  right: 11px;
  height: 1px;
  background: rgb(197 167 107 / 35%);
}
#wm-contact-capsule svg { width: 24px; height: 24px; flex: none; }
#wm-contact-capsule > :is(a,button):hover { background: rgb(231 201 141 / 10%); }
#wm-contact-capsule :focus-visible, #wm-footer-contact-links a:focus-visible {
  outline: 2px solid #E7C98D;
  outline-offset: 2px;
}
#wm-contact-phones {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  width: min(218px, calc(100vw - 80px));
  padding: 10px;
  border: 1px solid #C5A76B;
  border-radius: 16px;
  background: #164D40;
  box-shadow: 0 4px 14px rgb(0 0 0 / 12%);
  font: 14px/1.5 Tahoma, sans-serif;
}
#wm-contact-phones a { display: block; min-height: 44px; padding: 12px 8px; color: #E7C98D; text-decoration: none; }
#wm-footer-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 16px;
  background: #164D40;
  border-top: 1px solid rgb(197 167 107 / 35%);
}
#wm-footer-contact-links a { display: inline-flex; align-items: center; min-height: 44px; color: #E7C98D; font: 14px/1.5 Tahoma, sans-serif; text-decoration: none; }
@media (min-width: 1025px) {
  #wm-contact-capsule { right: max(20px, env(safe-area-inset-right, 0px)); bottom: var(--wm-contact-bottom, 24px); }
}
/* Hide synchronously as menus/dialogs open, before the next measurement. */
body:has(.brx-open:not(#wm-contact-capsule)) #wm-contact-capsule,
body:has(dialog[open]) #wm-contact-capsule,
body:has([aria-modal="true"]:not([aria-hidden="true"])) #wm-contact-capsule,
body:has(.brxe-toggle[aria-expanded="true"]) #wm-contact-capsule,
body:has(.bricks-mobile-menu-toggle[aria-expanded="true"]) #wm-contact-capsule { visibility: hidden; }
@media print { #wm-contact-capsule { display: none !important; } }
