/* bp-contact 1.0.0 - styles for the phone-first WhatsApp / Call panel (owner prompt 2026-11-18 ZERO-FRICTION V1).
   The panel is fixed and created on the first tap, so it never moves the page (no CLS). Phones: bottom sheet.
   Desktop (>= 768 px): compact centred modal. 16 px input font, controls >= 44 px, works down to 320 px wide. */
html.bpct-lock, html.bpct-lock body { overflow: hidden; }
.bpct { position: fixed; inset: 0; z-index: 2147483000; font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", sans-serif; color: #111827; }
.bpct[hidden], .bpct [hidden] { display: none !important; }
.bpct *, .bpct *::before, .bpct *::after { box-sizing: border-box; }
.bpct__back { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); opacity: 0; }
.bpct__sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .25); transform: translateY(100%); outline: none;
}
.bpct--in .bpct__back { opacity: 1; }
.bpct--in .bpct__sheet { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .bpct__back { transition: opacity .2s ease; }
  .bpct__sheet { transition: transform .24s ease; }
  .bpct__spin { animation: bpct-spin .8s linear infinite; }
}
.bpct__x {
  position: absolute; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: transparent;
  color: #374151; font: 28px/1 system-ui, sans-serif; cursor: pointer;
}
.bpct__title { margin: 0 44px 4px 0; font-size: 20px; line-height: 1.25; font-weight: 700; color: #111827; }
[dir="rtl"] .bpct__title { margin: 0 0 4px 44px; }
.bpct__sub { margin: 0 0 12px; font-size: 15px; color: #4b5563; }
.bpct__form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.bpct__input {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; line-height: 1.3; color: #111827; background: #fff;
  border: 1px solid #6b7280; border-radius: 10px; direction: ltr; text-align: start;
}
[dir="rtl"] .bpct__input:placeholder-shown { direction: rtl; text-align: right; }
.bpct__input:focus-visible, .bpct button:focus-visible, .bpct__direct:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 2px; }
.bpct__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bpct__chip { flex: 1 1 0; min-width: 84px; min-height: 44px; padding: 8px 10px; font: inherit; font-weight: 600; color: #111827; background: #f3f4f6; border: 1px solid #9ca3af; border-radius: 10px; cursor: pointer; }
.bpct__err { margin: 0; font-size: 14px; color: #b91c1c; }
.bpct__go {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 16px; border: 0; border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: #0a7d4a; cursor: pointer;
}
.bpct[data-ch="call"] .bpct__go { background: #1d4ed8; }
.bpct__go:disabled { opacity: .7; cursor: default; }
.bpct__spin { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; }
@keyframes bpct-spin { to { transform: rotate(360deg); } }
.bpct__alt { min-height: 44px; padding: 8px 12px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #1f2937; text-decoration: underline; cursor: pointer; }
.bpct__alt:disabled { opacity: .5; cursor: default; }
.bpct__fail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.bpct__retry { min-height: 44px; padding: 8px 16px; font: inherit; font-weight: 700; color: #111827; background: #f3f4f6; border: 1px solid #6b7280; border-radius: 10px; cursor: pointer; }
.bpct__direct { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #1d4ed8; font-weight: 600; }
.bpct__fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: #4b5563; }
@media (min-width: 768px) {
  .bpct__sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    border-radius: 16px; padding: 24px; transform: translate(-50%, -46%); opacity: 0; box-shadow: 0 16px 48px rgba(0, 0, 0, .3);
  }
  .bpct--in .bpct__sheet { transform: translate(-50%, -50%); opacity: 1; }
  .bpct__x { top: 8px; inset-inline-end: 8px; }
}
@media (max-width: 359px) {
  .bpct__sheet { padding-inline: 12px; }
  .bpct__chip { min-width: 72px; }
}
