/* ProteinText chat signup — namespaced ptc-*. Blue/white live-site theme. */
.ptc-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(17, 17, 19, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
.ptc-card {
  width: min(420px, 100%); height: min(700px, calc(100dvh - 32px));
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
}
.ptc-progress { height: 3px; background: #efeff1; }
.ptc-progress-fill { height: 3px; width: 0; background: #007aff; border-radius: 0 2px 2px 0; transition: width 0.5s ease; }
.ptc-head {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 16px 10px; border-bottom: 1px solid #efeff1; background: rgba(250, 250, 250, 0.92);
}
.ptc-avatar {
  /* Matches the site's brand mark: rounded SQUARE, not a circle. */
  width: 42px; height: 42px; border-radius: 12px; background: #007aff; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 20px;
}
.ptc-head-name { font-size: 13px; font-weight: 600; color: #111113; }
.ptc-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; margin: -7px;
  border: 0; border-radius: 50%; background: transparent; color: #6e6e73; font-size: 15px; cursor: pointer;
}
.ptc-close:hover { color: #111113; }
.ptc-thread {
  flex: 1; overflow-y: auto; padding: 18px 16px 12px; background: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.ptc-stamp { text-align: center; font-size: 11px; color: #8e8e93; padding-bottom: 6px; }
.ptc-row { display: flex; justify-content: flex-start; }
.ptc-row.ptc-me { justify-content: flex-end; }
.ptc-bubble {
  max-width: 82%; padding: 10px 15px; border-radius: 20px; border-bottom-left-radius: 6px;
  background: #e9e9eb; color: #111113; font-size: 16px; line-height: 1.38;
  animation: ptc-in 0.25s ease both; text-wrap: pretty;
}
.ptc-me .ptc-bubble {
  background: #007aff; color: #fff;
  border-radius: 20px; border-bottom-right-radius: 6px;
}
.ptc-bubble--consent { max-width: 88%; font-size: 13.5px; line-height: 1.5; color: #26262a; display: grid; gap: 8px; }
.ptc-bubble--consent a { color: #007aff; }
.ptc-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.ptc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: ptc-dot 1.25s infinite; }
.ptc-typing span:nth-child(2) { animation-delay: 0.18s; }
.ptc-typing span:nth-child(3) { animation-delay: 0.36s; }
.ptc-poll {
  width: 88%; box-sizing: border-box; padding: 14px; border: 1px solid #e4e4e7; border-radius: 20px;
  border-bottom-left-radius: 6px; background: #f7f7f8; display: grid; gap: 10px;
  animation: ptc-in 0.25s ease both;
}
.ptc-poll-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #8e8e93; }
.ptc-poll-q { font-size: 15.5px; font-weight: 700; color: #111113; line-height: 1.3; }
.ptc-poll-opts { display: grid; gap: 8px; }
.ptc-opt {
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid #e4e4e7; border-radius: 14px; background: #fff; cursor: pointer;
  font: inherit; text-align: left; transition: border-color 0.2s, opacity 0.2s;
}
.ptc-opt:hover { border-color: #007aff; }
.ptc-opt[disabled] { cursor: default; }
.ptc-opt.ptc-picked { border-color: #007aff; }
.ptc-opt.ptc-dim { opacity: 0.45; }
.ptc-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7c7cc; box-sizing: border-box; flex-shrink: 0; display: grid; place-items: center; }
.ptc-picked .ptc-radio { border: 0; background: #007aff; color: #fff; font-size: 13px; font-weight: 800; }
.ptc-opt-label { font-size: 15px; font-weight: 600; color: #111113; display: block; }
.ptc-opt-sub { font-size: 12.5px; color: #6e6e73; display: block; }
.ptc-poll-foot { font-size: 12px; color: #8e8e93; }
.ptc-agree-row { display: flex; justify-content: flex-end; padding-top: 6px; }
.ptc-agree {
  min-height: 48px; padding: 13px 20px; border: 0; border-radius: 18px;
  background: #007aff; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  animation: ptc-in 0.25s ease both;
}
.ptc-agree:hover { background: #0070eb; }
.ptc-compose { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #efeff1; background: #fff; }
.ptc-input {
  flex: 1; min-width: 0; padding: 10px 15px; border: 1px solid #d1d1d6; border-radius: 18px;
  font: inherit; font-size: 16px; color: #111113; outline: none;
}
.ptc-input:focus { border-color: #007aff; }
.ptc-send {
  width: 44px; height: 44px; margin: -4px 0; flex-shrink: 0; border: 0; border-radius: 50%;
  background: #007aff; color: #fff; font-size: 17px; font-weight: 800; cursor: pointer;
  transition: opacity 0.15s; opacity: 0.35;
}
.ptc-send.ptc-ready { opacity: 1; }
.ptc-foot { display: grid; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid #efeff1; background: #fff; }
.ptc-checkout {
  display: grid; place-items: center; min-height: 52px; padding: 0 20px; border: 0; border-radius: 999px;
  background: #007aff; color: #fff; font: inherit; font-size: 16.5px; font-weight: 600; text-decoration: none;
  cursor: pointer; box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}
.ptc-checkout:hover { background: #0070eb; color: #fff; }
.ptc-checkout[disabled] { opacity: 0.68; cursor: wait; }
.ptc-foot-note { text-align: center; font-size: 12.5px; color: #8e8e93; }
.ptc-error { text-align: center; font-size: 13px; color: #b3261e; }
@keyframes ptc-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes ptc-dot { 0%, 62%, 100% { opacity: 0.34; transform: none; } 31% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .ptc-bubble, .ptc-poll, .ptc-agree { animation: none; }
  .ptc-typing span { animation: none; }
  .ptc-progress-fill { transition: none; }
}

.ptc-compose.ptc-locked { opacity: 0.45; pointer-events: none; }
.ptc-compose.ptc-locked .ptc-input { background: #f2f2f7; }

.ptc-bubble--summary { background: #f2f2f7; color: #111113; line-height: 1.6; }
.ptc-bubble--summary b { display: block; margin-bottom: 4px; }

/* The conversation is a product surface, so it follows the matte site shell. */
.ptc-overlay { background: rgba(23, 32, 43, .42); font-family: "DM Sans", system-ui, sans-serif; }
.ptc-card { background: #f4f5f7; border: 1px solid rgba(255,255,255,.62); border-radius: 26px; box-shadow: 18px 20px 52px rgba(50, 60, 73, .30), -8px -8px 24px rgba(255,255,255,.35); }
.ptc-progress { background: #d9dde4; }
.ptc-progress-fill, .ptc-avatar, .ptc-me .ptc-bubble, .ptc-agree, .ptc-send, .ptc-checkout { background: #0067dc; }
.ptc-head, .ptc-compose, .ptc-foot { background: rgba(244,245,247,.94); border-color: #d9dde4; }
.ptc-thread { background: #e6e8ec; }
.ptc-bubble { background: #f8f9fa; color: #17202b; box-shadow: 4px 5px 10px rgba(119,128,141,.12); }
.ptc-poll { background: #f4f5f7; border-color: #d1d6de; box-shadow: 6px 7px 14px rgba(119,128,141,.12); }
.ptc-opt { background: #fbfcfd; border-color: #d1d6de; }
.ptc-opt:hover, .ptc-opt.ptc-picked { border-color: #0067dc; }
.ptc-input { background: #fbfcfd; border-color: #cbd1da; }
.ptc-checkout { box-shadow: 7px 7px 15px rgba(0,103,220,.20); }
