/* Floating call widget: independent of page layouts and the chat widget. */
.yw-call-widget {
  position: fixed;
  z-index: 2147483000;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  direction: rtl;
}

.yw-call-trigger {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue), #13368e);
  box-shadow: 0 7px 23px rgba(11, 24, 73, .28), 0 0 0 1px rgba(37, 99, 235, .12);
  color: #fff;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.yw-call-trigger::before {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(37, 99, 235, .42);
  border-radius: inherit;
  content: "";
  pointer-events: none;
  animation: yw-call-wave 5s ease-out infinite;
}
.yw-call-trigger svg { transition: transform .22s ease; }
.yw-call-trigger:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 24, 73, .33); }
.yw-call-trigger:hover svg { transform: rotate(-12deg); }
.yw-call-trigger:active { transform: translateY(0) scale(.97); }
.yw-call-widget.is-open .yw-call-trigger { background: linear-gradient(145deg, var(--navy), #214bb2); }
.yw-call-widget button:focus-visible,
.yw-call-widget a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.yw-call-panel[hidden] { display: none !important; }
.yw-call-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(11, 24, 73, .23);
  animation: yw-call-panel-in .22s cubic-bezier(.2, .75, .3, 1) both;
}
.yw-call-panel-head {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(125deg, var(--navy), #214bb2);
  padding: 11px 17px;
}
.yw-call-eyebrow { color: #fff; font-size: .76rem; font-weight: 800; }
.yw-call-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease;
}
.yw-call-close:hover { background: rgba(255, 255, 255, .24); }
.yw-call-panel-body { padding: 20px; }
.yw-call-panel-body h2 { margin: 0 0 8px; color: var(--navy); font-size: .96rem; line-height: 1.6; }
.yw-call-panel-body p { margin: 0 0 17px; color: var(--text); font-size: .72rem; line-height: 1.9; }
.yw-call-number {
  display: block;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: var(--soft);
  color: var(--navy);
  padding: 10px 14px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: .035em;
}
.yw-call-number:hover { border-color: var(--blue); color: var(--blue-dark); }
.yw-call-action {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 11px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: .76rem;
  font-weight: 850;
  transition: background .18s ease, transform .18s ease;
}
.yw-call-action:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); }
.yw-call-action:active { transform: translateY(0); }

@keyframes yw-call-wave {
  0%, 68%, 100% { opacity: 0; transform: scale(1); }
  12% { opacity: .7; }
  40% { opacity: 0; transform: scale(1.35); }
}
@keyframes yw-call-panel-in {
  from { opacity: 0; transform: translateY(9px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
  .yw-call-widget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }
  .yw-call-trigger { width: 60px; height: 60px; }
  .yw-call-panel { width: min(300px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  .yw-call-trigger,.yw-call-trigger svg,.yw-call-action { transition: none; }
  .yw-call-trigger::before,.yw-call-panel { animation: none; }
}
