/* Wanda Floating Contact - desktop side stack / mobile bottom bar.
   Buttons carry their channel brand colour via --wfc-c (set inline). */

.wfc-stack {
  position: fixed;
  z-index: 99990;               /* under MMM's mobile drawer overlays, above content */
  display: flex;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 10px;
}

.wfc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--wfc-c, #0A558A);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(6, 42, 68, .22);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}
.wfc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 42, 68, .3);
  color: #fff;
}
.wfc-btn:focus-visible {
  outline: 2px solid #0A558A;
  outline-offset: 3px;
}
.wfc-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* hover label - desktop only, slides out to the left */
.wfc-lbl {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #062A44;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.wfc-btn:hover .wfc-lbl,
.wfc-btn:focus-visible .wfc-lbl { opacity: 1; }

/* ---- WeChat panel ---- */
.wfc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(6, 42, 68, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wfc-overlay[hidden] { display: none; }
.wfc-panel {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 26px 26px 22px;
  width: min(320px, 92vw);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 30px 60px rgba(6, 42, 68, .3);
}
.wfc-panel h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: #0A558A;
  margin: 0 0 14px;
  padding: 0;
}
.wfc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #F1F5F9;
  color: #313131;
  font-size: 13px;
  cursor: pointer;
}
.wfc-close:hover { background: #E1EAF2; }
.wfc-qr {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border: 1px solid #E1EAF2;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: block;
}
.wfc-hint {
  font-size: 11.5px;
  line-height: 1.6;
  color: #6E6E6E;
  margin: 0 0 14px;
  padding: 0;
}
.wfc-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.wfc-id > span {
  font-size: 14px;
  font-weight: 700;
  color: #313131;
}
.wfc-copy {
  border: 1px solid #D5DEE7;
  background: #F7F9FC;
  color: #0A558A;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.wfc-copy:hover { border-color: #9DB9CE; }
.wfc-openapp {
  display: none;                 /* mobile only */
  background: #07C160;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 999px;
}
.wfc-openapp:hover { color: #fff; }
.wfc-openapp--wa {
  display: inline-block;             /* the WhatsApp panel shows it everywhere */
  background: #25D366;
}

/* ---- mobile: bottom bar ---- */
@media (max-width: 760px) {
  .wfc-stack {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    background: #fff;
    border-top: 1px solid #E1EAF2;
    box-shadow: 0 -6px 20px rgba(6, 42, 68, .1);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .wfc-btn {
    flex: 1 1 0;
    height: 56px;
    width: auto;
    border-radius: 0;
    background: #fff;
    color: var(--wfc-c, #0A558A);
    box-shadow: none;
    flex-direction: column;
    gap: 3px;
  }
  .wfc-btn:hover { transform: none; box-shadow: none; color: var(--wfc-c); }
  .wfc-btn + .wfc-btn { border-left: 1px solid #F1F5F9; }
  .wfc-btn svg { width: 21px; height: 21px; }
  .wfc-lbl {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    color: #4A4A4A;                  /* brand greens fail contrast at this size */
    font-size: 9.5px;
    font-weight: 600;
    padding: 0;
  }
  .wfc-openapp { display: inline-block; }
  /* keep the page end + Divi's scroll-top clear of the bar */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0)); }
  .et_pb_scroll_top { bottom: calc(72px + env(safe-area-inset-bottom, 0)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wfc-btn, .wfc-lbl { transition: none; }
  .wfc-btn:hover { transform: none; }
}
