/* "Call us" browser call widget — same file in every site (see web-call.js) */
.wc-fab, .wc-panel, .wc-hero-btn { --wc-green: #16a34a; --wc-green-2: #22c55e; --wc-red: #dc2626; box-sizing: border-box; font-family: inherit; }
.wc-fab *, .wc-panel * { box-sizing: border-box; }

/* floating button — bottom right, every page */
.wc-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 2147482000;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--wc-green-2), var(--wc-green)); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.1; text-align: left;
  box-shadow: 0 14px 30px -10px rgb(22 163 74 / .75), 0 0 0 3px rgb(255 255 255 / .85);
  animation: wcIn .5s .8s cubic-bezier(.2, .8, .2, 1) both; transition: transform .2s, box-shadow .2s;
}
.wc-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgb(22 163 74 / .85), 0 0 0 3px #fff; }
.wc-fab:focus-visible { outline: 3px solid #86efac; outline-offset: 3px; }
.wc-fab > svg { flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgb(255 255 255 / .22); }
.wc-fab::before { content: ""; position: absolute; left: 8px; top: 8px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .65); animation: wcPulse 2s ease-out infinite; pointer-events: none; }
.wc-fab-txt { display: flex; flex-direction: column; white-space: nowrap; }
.wc-fab-txt small { font-size: 11px; font-weight: 500; opacity: .9; }
.wc-fab.wc-live { background: linear-gradient(135deg, #ef4444, var(--wc-red)); box-shadow: 0 14px 30px -10px rgb(220 38 38 / .7), 0 0 0 3px rgb(255 255 255 / .85); }
.wc-fab.wc-live .wc-fab-txt small { display: none; }
@media (max-width: 640px) {
  .wc-fab { width: 56px; padding: 0; justify-content: center; right: 14px; bottom: 14px; }
  .wc-fab-txt { display: none; }
  .wc-fab::before { left: 8px; }
}

/* call panel */
.wc-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 2147482001; width: 320px; max-width: calc(100vw - 24px);
  border-radius: 20px; background: #fff; color: #0f172a; overflow: hidden; text-align: center;
  box-shadow: 0 30px 70px -20px rgb(15 23 42 / .45), 0 0 0 1px rgb(15 23 42 / .06);
  animation: wcPop .22s cubic-bezier(.2, .8, .2, 1);
}
.wc-panel[hidden] { display: none; }
.wc-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 14px 18px; text-align: left; color: #fff; background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.wc-head > div { flex: 1; min-width: 0; }
.wc-title { font-size: 16px; font-weight: 700; }
.wc-sub { font-size: 12px; opacity: .75; margin-top: 2px; }
.wc-x { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer; }
.wc-x svg { width: 16px; height: 16px; }
.wc-x:hover { background: rgb(255 255 255 / .22); }
.wc-body { padding: 22px 20px 18px; }
.wc-av { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--wc-green-2), var(--wc-green)); }
.wc-av svg { width: 34px; height: 34px; position: relative; }
.wc-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wc-green-2); opacity: 0; }
.wc-panel[data-phase="calling"] .wc-ring, .wc-panel[data-phase="ringing"] .wc-ring, .wc-panel[data-phase="starting"] .wc-ring { animation: wcPulse 1.6s ease-out infinite; }
.wc-panel .wc-r2 { animation-delay: .8s !important; }
.wc-panel[data-phase="ended"] .wc-av { background: linear-gradient(135deg, #94a3b8, #64748b); }
.wc-state { min-height: 20px; font-size: 14.5px; font-weight: 600; color: #0f172a; line-height: 1.4; }
.wc-time { margin-top: 4px; font-size: 26px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--wc-green); }
.wc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px auto 2px; max-width: 220px; }
.wc-keys[hidden], .wc-time[hidden], .wc-note[hidden], .wc-panel [hidden] { display: none !important; }
.wc-keys button { height: 42px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; color: #0f172a; font-size: 18px; font-weight: 600; cursor: pointer; }
.wc-keys button:active { background: #e2e8f0; }
.wc-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.wc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--wc-green-2), var(--wc-green)); box-shadow: 0 10px 22px -10px rgb(22 163 74 / .8); }
.wc-btn:hover { filter: brightness(1.05); }
.wc-round { display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer; background: #f1f5f9; color: #0f172a; }
.wc-round.on { background: #0f172a; color: #fff; }
.wc-end { background: var(--wc-red); color: #fff; box-shadow: 0 10px 22px -10px rgb(220 38 38 / .8); }
.wc-end:hover { filter: brightness(1.08); }
.wc-btn:focus-visible, .wc-round:focus-visible, .wc-x:focus-visible, .wc-keys button:focus-visible { outline: 3px solid #86efac; outline-offset: 2px; }
.wc-note { margin-top: 12px; font-size: 11.5px; color: #64748b; }
.wc-shake { animation: wcShake .35s; }
@media (max-width: 640px) { .wc-panel { right: 12px; bottom: 80px; } }

/* dark themes (sites that set data-theme="dark") */
:root[data-theme="dark"] .wc-panel { background: #0f172a; color: #e2e8f0; box-shadow: 0 30px 70px -20px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .08); }
:root[data-theme="dark"] .wc-state { color: #f1f5f9; }
:root[data-theme="dark"] .wc-round:not(.wc-end) { background: #1e293b; color: #e2e8f0; }
:root[data-theme="dark"] .wc-keys button { background: #1e293b; border-color: #334155; color: #e2e8f0; }

/* hero / inline "Call us" button (sites add their own button classes) */
.wc-hero-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.wc-hero-btn[hidden] { display: none !important; }
.wc-hero-btn .wc-ico { flex: 0 0 auto; }
.wc-hero-btn.wc-default { height: 48px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; font-size: 16px; font-weight: 700; background: linear-gradient(135deg, var(--wc-green-2), var(--wc-green)); box-shadow: 0 12px 26px -12px rgb(22 163 74 / .8); }
.wc-hero-btn.wc-default:hover { filter: brightness(1.05); transform: translateY(-1px); }

@keyframes wcIn { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes wcPop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes wcPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes wcShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .wc-fab, .wc-fab::before, .wc-ring, .wc-panel { animation: none !important; } }
@media print { .wc-fab, .wc-panel { display: none !important; } }
