/* Nexcod AI, the website chat behind Call now, in the look of a WhatsApp chat (includes/call-now.php,
   assets/js/site-chat.js; 20 Oct 2026, the owner: "chat theme pura WhatsApp jaisa, verified badge, smooth").
   A window above the button on a computer; the whole screen on a phone, sized to what the keyboard leaves. */
.cn .sc { position: absolute; right: 0; bottom: 68px; z-index: 2; display: flex; flex-direction: column; width: 400px; max-width: calc(100vw - 32px);
  height: 640px; max-height: calc(100vh - 100px); overflow: hidden; border-radius: 14px; background: #efeae2;
  box-shadow: 0 24px 64px -18px rgba(11, 20, 26, .55), 0 0 0 1px rgba(11, 20, 26, .08);
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, 'Lucida Grande', Arial, Ubuntu, Cantarell, 'Fira Sans', sans-serif;
  color: #111b21; text-align: left; transform-origin: 100% 100%;
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .22s ease, transform .26s cubic-bezier(.2, .9, .3, 1.15); will-change: transform, opacity; }
.cn .sc.is-in { opacity: 1; transform: none; }
.cn .sc[hidden] { display: none; }
.cn .sc * { box-sizing: border-box; font-family: inherit; }

/* the top bar, WhatsApp green */
.sc-head { display: flex; align-items: center; gap: 8px; flex: none; min-height: 60px; padding: 8px 10px 8px 6px; background: #008069; color: #fff; }
.cn .sc .sc-back { display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; }
.cn .sc .sc-back:hover { background: rgba(255, 255, 255, .12); }
.sc-back svg { width: 24px; height: 24px; }
.sc-av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #fff; object-fit: cover; }
.sc-who { flex: 1; min-width: 0; line-height: 1.2; }
.sc-who b { display: flex; align-items: center; gap: 4px; font-size: 16.5px; font-weight: 600; white-space: nowrap; }
.sc-tick { width: 19px; height: 19px; flex: none; }
.sc-who span { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .2s; }
.cn .sc .sc-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; text-decoration: none; }
.cn .sc .sc-ic:hover { background: rgba(255, 255, 255, .12); }
.sc-ic svg { width: 21px; height: 21px; }

/* the wallpaper and the messages */
.sc-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 6px; -webkit-overflow-scrolling: touch;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.06' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='12' y='14' width='26' height='11' rx='5.5' transform='rotate(-30 25 19.5)'/%3E%3Cpath d='M25 14v11' transform='rotate(-30 25 19.5)'/%3E%3Cpath d='M92 12v14M85 19h14'/%3E%3Cpath d='M58 52h16v20a4 4 0 0 1-4 4h-8a4 4 0 0 1-4-4z'/%3E%3Cpath d='M61 46h10v6H61z'/%3E%3Cpath d='M112 62c4-6 14-2 10 6l-10 9-10-9c-4-8 6-12 10-6z'/%3E%3Ccircle cx='24' cy='92' r='9'/%3E%3Cpath d='M18 92h12'/%3E%3Cpath d='M84 104l14-6 6 14-14 6z'/%3E%3Cpath d='M44 118c6-4 10 4 16 0'/%3E%3Cpath d='M118 116v10M113 121h10'/%3E%3C/g%3E%3C/svg%3E"); }
.sc-day { display: table; margin: 4px auto 10px; padding: 5px 12px; border-radius: 8px; background: #fff; color: #54656f; font-size: 12.5px;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13); text-transform: uppercase; }
.sc-note { margin: 0 auto 12px; max-width: 92%; padding: 6px 10px; border-radius: 8px; background: #ffeecd; color: #54656f; font-size: 12.5px; line-height: 1.45;
  text-align: center; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.sc-row { display: flex; margin: 0 0 4px; }
.sc-row.sc-gap { margin-top: 10px; }
.sc-row.is-new { animation: scMsg .2s ease-out both; }
@keyframes scMsg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sc-b { position: relative; max-width: 82%; padding: 6px 8px 8px 9px; border-radius: 8px; font-size: 14.2px; line-height: 1.42; white-space: pre-wrap;
  word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.sc-bot .sc-b { background: #fff; }
.sc-user { justify-content: flex-end; }
.sc-user .sc-b { background: #d9fdd3; }
/* the little tail on the first message of a turn */
.sc-gap.sc-bot .sc-b { border-top-left-radius: 0; }
.sc-gap.sc-user .sc-b { border-top-right-radius: 0; }
.sc-gap.sc-bot .sc-b::before, .sc-gap.sc-user .sc-b::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.sc-gap.sc-bot .sc-b::before { left: -8px; background: linear-gradient(225deg, #fff 50%, transparent 50%); }
.sc-gap.sc-user .sc-b::before { right: -8px; background: linear-gradient(135deg, #d9fdd3 50%, transparent 50%); }
.sc-meta { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -4px 10px; font-size: 11px; color: #667781; line-height: 1; }
.sc-ticks { width: 16px; height: 11px; color: #8696a0; transition: color .3s; }
.sc-ticks.is-read { color: #53bdeb; }
.sc-typing .sc-b { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.sc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: scDot 1.2s infinite ease-in-out; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes scDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* reply buttons under a message, as WhatsApp draws them */
.sc-btns { display: grid; gap: 4px; margin: 4px 0 8px; max-width: 82%; }
.sc-btns.is-new { animation: scMsg .2s .08s ease-out both; }
.cn .sc .sc-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: #fff; color: #027eb5; font-size: 14.2px; font-weight: 500; line-height: 1.2; text-align: center; text-decoration: none !important;
  cursor: pointer; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); transition: background .15s; }
.cn .sc .sc-btn:hover { background: #f5f6f6; }
.cn .sc .sc-btn:disabled { color: #8696a0; cursor: default; }
.sc-btn svg { width: 17px; height: 17px; flex: none; }

/* the number first */
.sc-gate { flex: none; padding: 10px 12px 12px; background: #f0f2f5; }
.sc-gate[hidden] { display: none; }
.sc-gate-row { display: flex; align-items: center; gap: 8px; }
.sc-cc { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; border-radius: 22px; background: #fff; color: #111b21; font-size: 15px; flex: none; }
.cn .sc .sc-gate input[type="tel"] { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 16px; border: 0; border-radius: 22px; background: #fff; color: #111b21;
  font-size: 16px; letter-spacing: .04em; outline: none; box-shadow: none; }
.cn .sc .sc-gate input[type="tel"]::placeholder { color: #8696a0; letter-spacing: 0; }
.cn .sc .sc-gate input[type="tel"]:focus { box-shadow: 0 0 0 2px #00a884; }
.cn .sc .sc-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 16px; flex: none; border: 0; border-radius: 22px;
  background: #00a884; color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; box-shadow: none; transition: background .15s; }
.cn .sc .sc-go:hover { background: #008f72; }
.cn .sc .sc-go:disabled { opacity: .6; cursor: default; }
.sc-gate-msg { min-height: 16px; margin: 6px 4px 0; font-size: 12px; color: #54656f; }
.sc-gate-msg.is-bad { color: #d92d20; }

/* writing */
.sc-form { display: flex; align-items: flex-end; gap: 8px; flex: none; padding: 8px 10px 10px; background: #f0f2f5; }
.sc-form[hidden] { display: none; }
.sc-form .sc-hp, .sc-gate .sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cn .sc textarea { flex: 1; min-width: 0; height: 44px; max-height: 120px; margin: 0; padding: 11px 16px; border: 0; border-radius: 22px; background: #fff;
  color: #111b21; font-size: 15px; line-height: 1.45; resize: none; outline: none; box-shadow: none; overflow-y: hidden; scrollbar-width: thin; }
.cn .sc textarea::placeholder { color: #8696a0; }
.cn .sc .sc-send { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: #00a884; color: #fff; cursor: pointer; box-shadow: none; transition: background .15s, transform .12s; }
.cn .sc .sc-send:hover { background: #008f72; }
.cn .sc .sc-send:active { transform: scale(.92); }
.cn .sc .sc-send:disabled { opacity: .55; cursor: default; }
.cn .sc .sc-send svg { width: 20px; height: 20px; margin-left: 2px; }

/* the corner's rise animation keeps a transform (fill both), which would make the chat's fixed screen sit inside the
   0 by 0 corner box on a phone: dropped while the chat is open */
.cn.is-open { animation: none !important; transform: none !important; }

/* a phone: the whole screen, the height the keyboard leaves (--sc-h from the script), the page behind it still */
html.sc-lock, html.sc-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .cn.is-open { z-index: 10050; }
  .cn .sc { position: fixed; top: 0; right: 0; left: 0; bottom: auto; width: 100%; max-width: none; height: 100%; height: var(--sc-h, 100%); max-height: none;
    border-radius: 0; transform: translateY(24px); transform-origin: 50% 100%; }
  .cn .sc.is-in { transform: translateY(var(--sc-top, 0px)); }
  .sc-head { padding-top: max(8px, env(safe-area-inset-top)); }
  .sc-form, .sc-gate { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .cn.is-open .cn-btn { display: none; }
  .cn .sc textarea, .cn .sc .sc-gate input[type="tel"] { font-size: 16px; }   /* no zoom on iPhone */
}
@media (prefers-reduced-motion: reduce) { .cn .sc, .sc-row.is-new, .sc-btns.is-new, .sc-typing i { animation: none !important; transition: none !important; } }
@media print { .sc { display: none !important; } }
