@media (max-width: 767px) {
  body #hecs-contact-links.heb-contact-ready[aria-label] {
    --heb-contact-bottom: calc(78px + env(safe-area-inset-bottom));
    width: 46px;
    height: 46px;
    gap: 0;
    right: max(12px, calc(env(safe-area-inset-right) + 8px));
    bottom: var(--heb-contact-bottom);
  }
  body:has(#he-mobile-nav .he-nav-search[open]) #hecs-contact-links.heb-contact-ready[aria-label] {
    --heb-contact-bottom: calc(145px + env(safe-area-inset-bottom));
    bottom: var(--heb-contact-bottom);
  }
  #hecs-contact-links .heb-contact-launcher {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid #f9f5ec;
    border-radius: 50%;
    background: #40352f;
    color: #fffaf2;
    box-shadow: 0 2px 7px rgb(47 34 22 / 18%);
    pointer-events: auto;
    cursor: pointer;
  }
  .heb-contact-symbol {
    position: relative;
    box-sizing: border-box;
    width: 21px; height: 17px;
    border: 1.8px solid currentColor;
    border-radius: 7px;
  }
  .heb-contact-symbol::before {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    left: 3px; bottom: -4px;
    background: #40352f;
    border: solid currentColor; border-width: 0 1.8px 1.8px 0;
    transform: rotate(36deg) skew(-13deg,-13deg);
  }
  .heb-contact-symbol::after {
    content: '';
    position: absolute;
    top: 6px; left: 8px;
    width: 2px; height: 2px;
    border-radius: 100%;
    background: currentColor;
    box-shadow: -4px 0 currentColor, 4px 0 currentColor;
  }
  .heb-contact-launcher[aria-expanded="true"] .heb-contact-symbol { border: 0; }
  .heb-contact-launcher[aria-expanded="true"] .heb-contact-symbol::before,
  .heb-contact-launcher[aria-expanded="true"] .heb-contact-symbol::after {
    top: 8px; left: 0; width: 21px; height: 2px;
    border: 0; border-radius: 2px; box-shadow: none;
    background: currentColor; transform: rotate(45deg);
  }
  .heb-contact-launcher[aria-expanded="true"] .heb-contact-symbol::after { transform: rotate(-45deg); }
  #hecs-contact-links .heb-contact-options {
    position: absolute;
    right: 0; bottom: calc(100% + 7px);
    width: min(190px, calc(100vw - 28px));
    max-height: calc(100vh - var(--heb-contact-bottom) - 65px);
    max-height: calc(100dvh - var(--heb-contact-bottom) - 65px);
    box-sizing: border-box;
    padding: 4px;
    overflow-y: auto;
    border: 1px solid #dfd6cb; border-radius: 9px;
    background: #fffdf9; box-shadow: 0 4px 18px rgb(47 34 22 / 12%);
    pointer-events: auto;
  }
  #hecs-contact-links .heb-contact-options[hidden] { display: none !important; }
  #hecs-contact-links.heb-contact-ready .heb-contact-options > a {
    display: flex; align-items: center; justify-content: flex-start;
    gap: 10px; width: 100%; height: auto; min-height: 44px;
    padding: 6px 10px; margin: 0;
    background: transparent; color: #382f29; border: 0;
    border-radius: 4px; box-shadow: none;
    font-family: inherit; font-size: 14px; line-height: 1.35; font-weight: 500;
    text-align: start; text-decoration: none;
  }
  #hecs-contact-links.heb-contact-ready .heb-contact-options > a::before { content: none; }
  #hecs-contact-links.heb-contact-ready .heb-contact-options svg {
    box-sizing: border-box;
    display: block; flex: none; width: 27px; height: 27px;
    padding: 4px; border-radius: 50%;
  }
  #hecs-contact-links .heb-contact-options .hecs-wa svg { background: #258b43; }
  #hecs-contact-links .heb-contact-options .hecs-email svg { background: #a2672b; }
  #hecs-contact-links .heb-contact-options .hecs-telegram svg { background: #187ba8; }
  #hecs-contact-links .heb-contact-options a:focus-visible,
  #hecs-contact-links .heb-contact-launcher:focus-visible {
    outline: 2px solid #745734;
    outline-offset: 2px;
  }
}
