.contact-rail {
  position: fixed; right: max(16px, env(safe-area-inset-right)); top: 50%; z-index: 6;
  transform: translateY(-50%); padding: 12px 8px; border-radius: 36px;
  color: #fff; background: rgb(65 56 60 / .18); box-shadow: 0 3px 14px rgb(0 0 0 / .08);
  font: 400 14px/1.35 var(--font-body, sans-serif);
}
.contact-rail-disclosure { display: none; }
.contact-rail-links { display: grid; gap: 6px; }
.contact-rail .contact-rail-link {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; text-decoration: none; background: #565357; color: #fff;
}
.contact-rail svg { width: 23px; height: 23px; flex: none; }
.contact-rail .contact-rail-link:is(:hover, :focus-visible) { background: #a62532; color: #fff; }
.contact-rail :focus-visible { outline: 2px solid #a62532; outline-offset: 3px; }
.contact-rail-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  display: grid; gap: 3px; visibility: hidden; opacity: 0; width: max-content; max-width: min(290px, 65vw);
  padding: 10px 15px; border-radius: 8px; background: #2a2628; color: white; text-align: start;
  box-shadow: 0 4px 18px rgb(0 0 0 / .14);
}
.contact-rail-label::after { content: ""; position: absolute; left: 100%; top: 0; bottom: 0; width: 12px; }
.contact-rail-label bdi { overflow-wrap: anywhere; color: #e7e1e3; font-size: 13px; }
.contact-rail:not([data-tip-dismissed]) .contact-rail-link:is(:hover, :focus-visible) .contact-rail-label {
  visibility: visible; opacity: 1;
}
@media (min-width: 671px) and (max-width: 1100px) {
  .contact-rail { right: 8px; padding: 8px 5px; }
}
@media (min-width: 671px) and (min-height: 441px) {
  html[dir="rtl"] .contact-rail {
    right: auto; left: max(12px, env(safe-area-inset-left));
  }
  html[dir="rtl"] .contact-rail-label {
    right: auto; left: calc(100% + 12px);
  }
  html[dir="rtl"] .contact-rail-label::after {
    left: auto; right: 100%;
  }
}
@media (max-width: 670px), (max-height: 440px) {
  main { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .contact-rail {
    top: auto; right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom));
    transform: none; padding: 0; border-radius: 0; box-shadow: none; background: none;
  }
  .contact-rail-disclosure { display: block; }
  .contact-rail-disclosure summary {
    list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
    padding: 0 13px; border-radius: 30px; background: rgb(48 44 47 / .92); color: #fff;
    box-shadow: 0 3px 10px rgb(0 0 0 / .16); font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .contact-rail-disclosure summary::-webkit-details-marker { display: none; }
  .contact-rail-disclosure[open] summary { background: #a62532; }
  .contact-rail-disclosure:not([open]) + .contact-rail-links { display: none; }
  .contact-rail-links {
    position: absolute; right: 0; bottom: calc(100% + 9px); gap: 2px; padding: 7px;
    width: min(294px, calc(100vw - 32px)); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px);
    overflow: auto; overscroll-behavior: contain; border-radius: 12px; background: #fffdfa;
    box-shadow: 0 6px 24px rgb(32 24 27 / .2);
  }
  .contact-rail .contact-rail-link {
    display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 54px;
    padding: 8px 11px; color: #a62532; background: transparent; border-radius: 6px;
  }
  .contact-rail .contact-rail-link:is(:hover, :focus-visible) { color: #8b2231; background: #f1e9e6; }
  .contact-rail-label {
    position: static; transform: none; visibility: visible; opacity: 1; max-width: 100%;
    padding: 0; background: none; color: #302c2f; box-shadow: none;
  }
  .contact-rail-label::after { display: none; }
  .contact-rail-label bdi { color: #64595e; }
  .global-footer .footer-bottom { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
}
