.contact-widget {
  position: fixed; z-index: 8; right: max(16px,env(safe-area-inset-right));
  top: 46%; transform: translateY(-50%); width: 156px;
  padding: 12px; color: #eef3ff; border: 1px solid #9bb0ef66; border-radius: 16px;
  background: linear-gradient(145deg,#24304aee,#11192cf5);
  box-shadow: 0 12px 38px #0007,inset 0 1px #d4e5ff22;
  backdrop-filter: blur(18px);
}
.contact-widget .contact-caption { margin: 0 0 8px; font-size: 11px; color: #d9ffae; letter-spacing: .07em; }
.contact-widget button,.contact-widget a { -webkit-tap-highlight-color: transparent; }
.contact-copy { display: flex; width: 100%; padding: 0; gap: 7px; flex-direction: column; align-items: center; border: 0; background: none; color: inherit; }
.contact-copy img { width: 100%; border-radius: 6px; background: white; }
.contact-copy > span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; }
.contact-symbol { font-size: 17px; color: var(--lime); }
.contact-call { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 0 0; margin-top: 10px; border-top: 1px solid #98aade40; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.contact-call:hover,.contact-copy:hover { color: var(--lime); }
.contact-mobile-label { display: none; }
.contact-widget .contact-status { margin: 0; font-size: 12px; line-height: 1.5; color: #d6e5ff; overflow-wrap: anywhere; }
.contact-status:not(:empty) { margin-top: 8px; }
.contact-manual { margin-top: 8px; }
.contact-manual label { display: block; font-size: 12px; margin-bottom: 4px; }
.contact-manual input { width: 100%; padding: 8px; border: 1px solid #b7cf86; background: #0c1527; border-radius: 5px; color: white; font-size: 16px; }
.contact-open { display: block; margin-top: 8px; color: var(--lime); font-size: 13px; text-decoration: underline; }
.contact-widget [hidden] { display: none !important; }
@media (min-width: 761px) and (max-width: 1660px) {
  .contact-widget { top: auto; bottom: 18px; transform: none; width: 132px; padding: 9px; }
  .contact-call { font-size: 12px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .contact-widget {
    top: auto; bottom: max(10px,env(safe-area-inset-bottom)); right: max(12px,env(safe-area-inset-right));
    left: max(12px,env(safe-area-inset-left)); transform: none; width: auto; border-radius: 15px; padding: 9px 11px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px;
  }
  .contact-widget .contact-caption,.contact-copy img,.contact-desktop-label { display: none; }
  .contact-copy { flex-direction: row; justify-content: center; border-radius: 8px; background: var(--lime); color: #172211; min-height: 44px; }
  .contact-copy > span { font-size: 13px; }
  .contact-copy .contact-symbol { color: #233f19; }
  .contact-copy:disabled { opacity: .65; }
  .contact-call { border: 1px solid #92a8d35c; margin: 0; padding: 5px; border-radius: 8px; min-height: 44px; }
  .contact-call .contact-mobile-label { display: inline; font-size: 13px; }
  .contact-mobile-label small { display: block; font-size: 10px; font-weight: 400; }
  .contact-status,.contact-manual,.contact-open { grid-column: 1/-1; }
  .contact-open { text-align: center; padding: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .contact-widget { animation: contact-arrive .5s ease both; }
  .contact-copy,.contact-call { transition: color .2s,box-shadow .2s; }
  .contact-copy:hover,.contact-call:hover { box-shadow: 0 0 16px #d9ff7820; }
  @keyframes contact-arrive { from { opacity: 0; } to { opacity: 1; } }
}

.desktop-contact { position: fixed; z-index: 8; right: max(16px,env(safe-area-inset-right)); bottom: 24px; }
.desktop-contact summary {
  display: grid; place-items: center; width: 52px; height: 52px;
  cursor: pointer; list-style: none; border: 1px solid #b7d99670; border-radius: 15px;
  background: linear-gradient(155deg,#232d47,#101a29); color: var(--lime);
  box-shadow: 0 10px 26px #0008,inset 0 1px #dbffb02c;
}
.desktop-contact summary::-webkit-details-marker { display:none; }
.desktop-contact summary::after { content:none; }
.desktop-contact[open] summary,.desktop-contact summary:hover { background:#32424b; }
.desktop-contact-icon { font-size: 1.45rem; }
.desktop-contact-panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: 190px; padding: 16px;
  border: 1px solid #a3b7f267; border-radius: 14px; background:#171f33; box-shadow:0 14px 40px #0009;
}
.desktop-contact-panel .eyebrow { margin:0 0 .6rem; }
.desktop-contact-panel img { width:100%; height:auto; aspect-ratio:1; padding:4px; border-radius:8px; background:white; }
.desktop-contact-qr { font-size:.8rem; margin:.5rem 0; color:#cbd7ef; }
.desktop-contact-phone { display:block; padding-top:.6rem; border-top:1px solid #9fb0dc44; font-size:.92rem; font-weight:700; }
.desktop-contact-phone:hover { color:var(--lime); }
@media (min-width:761px) { .contact-widget { display:none; } }
@media (max-width:760px) { .desktop-contact { display:none; } }
