/* BPM Contact Bubble v1.6.6 */
#bpmcb-root { position: relative; z-index: 999999; }
#bpmcb-launcher {
  position: fixed; right: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 999px;
  border: none; cursor: pointer; background: var(--bpmcb-color, #03A84E);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
#bpmcb-launcher:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
#bpmcb-launcher .bpmcb-icon, #bpmcb-launcher i { font-size: 22px; line-height: 1; }
#bpmcb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.18); backdrop-filter: blur(.5px); z-index: 99998; }
#bpmcb-greeting {
  position: fixed; right: 16px; bottom: 86px; width: 320px;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
  overflow: hidden; z-index: 999999; font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
#bpmcb-greeting[hidden] { display: none !important; }
.bpmcb-greet-header { display:flex; align-items:center; justify-content: space-between; padding: 10px 12px; background: #f7f8f9; border-bottom: 1px solid #edf0f3; }
.bpmcb-greet-header button { border:none; background:transparent; font-size:20px; cursor:pointer; }
.bpmcb-greet-body { padding: 12px; font-size: 14px; line-height: 1.4; }
.bpmcb-greet-actions { display:flex; gap: 8px; padding: 0 12px 12px 12px; }
.bpmcb-btn { flex:1; padding: 10px 12px; border-radius: 8px; border: none; cursor:pointer; background: var(--bpmcb-color, #03A84E); color:#fff; font-weight: 600; }
.bpmcb-btn-ghost { background: #f0f2f4; color: #111; }
#bpmcb-panel {
  position: fixed; right: 16px; bottom: 86px; width: 360px; max-width: calc(100vw - 24px);
  border-radius: 12px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.22);
  z-index: 999999; display:block;
}
#bpmcb-panel[hidden] { display: none !important; }
.bpmcb-header { display:flex; align-items:center; justify-content: space-between; padding: 12px; background:#f7f8f9; border-bottom: 1px solid #edf0f3; }
#bpmcb-title { font-weight: 700; font-size: 15px; }
.bpmcb-close { border:none; background:transparent; font-size:22px; cursor:pointer; }
#bpmcb-form { padding: 12px; max-height: 70vh; overflow: auto; }
.bpmcb-label { display:block; font-size:12px; color:#5b6875; margin: 8px 0 4px; }
#bpmcb-form input[type="text"],#bpmcb-form input[type="email"],#bpmcb-form input[type="tel"],#bpmcb-form textarea {
  width: 100%; border: 1px solid #d8dee6; border-radius: 8px; padding: 10px 12px; font-size: 14px;
}
#bpmcb-form textarea { resize: vertical; }
.bpmcb-hp { position: absolute; left: -5000px; top: -5000px; height: 0; width: 0; }
.bpmcb-submit { width: 100%; margin-top: 12px; padding: 12px; border: none; background: var(--bpmcb-color,#03A84E); color:#fff; border-radius: 10px; font-weight: 700; cursor: pointer; }
.bpmcb-status { margin-top: 8px; font-size: 13px; color:#0f5132; }
.bpmcb-foot { font-size: 12px; color: #5b6875; padding: 8px 12px 12px; }
.bpmcb-success { color:#0f5132; background:#d1e7dd; border:1px solid #badbcc; padding:8px 10px; border-radius:8px; }

/* Nudge pulse on launcher */
@keyframes bpmcb-pulse {
  0% { box-shadow: 0 0 0 0 rgba(3,168,78,0.35); }
  70% { box-shadow: 0 0 0 14px rgba(3,168,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(3,168,78,0); }
}
#bpmcb-launcher.bpmcb-pulse { animation: bpmcb-pulse 1.8s ease-out 3; }

@supports (bottom: env(safe-area-inset-bottom)){
  #bpmcb-launcher { bottom: calc(16px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
  #bpmcb-panel { bottom: calc(86px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
  #bpmcb-greeting { bottom: calc(86px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
}
@media (max-width: 480px){
  #bpmcb-panel { right: 8px; left: 8px; bottom: 76px; width: auto; }
  #bpmcb-greeting { right: 8px; left: 8px; width: auto; }
  #bpmcb-launcher { right: 8px; bottom: 8px; }
}
