
/* v5.5.50 in-chat acknowledgement */
.he550-consent-gate{margin:12px 0;padding:22px 18px;background:#f6f9ff;border:1px solid #dbe5f7;border-radius:18px;color:#26364f}
.he550-consent-gate h2{font-size:19px;line-height:1.4;margin:8px 0 12px}
.he550-consent-gate p{line-height:1.85;font-size:14px;white-space:normal}
.he550-consent-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#dbeafe;color:#2463d2;font-weight:800}
.he550-consent-form{display:flex;flex-direction:column;gap:14px;margin-top:18px}
.he550-consent-form label{font-size:14px;line-height:1.6;display:flex;align-items:flex-start;gap:8px}
.he550-consent-form input{width:19px;height:19px;flex-shrink:0;margin-top:2px}
.he550-consent-form button{width:100%;min-height:49px}
.he550-locked-compose{padding:17px;text-align:center;background:#f2f5fb;color:#53647b;border-radius:14px;font-size:14px}
/* v5.5.51: consent is a compact modal, not a card in the conversation. */
#he551-consent-dialog.he550-consent-gate{position:fixed;inset:0;width:min(92vw,440px);max-width:440px;max-height:min(82dvh,700px);margin:auto;padding:22px 20px;border:1px solid #dce4f2;border-radius:22px;box-shadow:0 24px 80px #11234255;overflow-y:auto;background:#fff;z-index:10000;color:#26364f}
#he551-consent-dialog::backdrop{background:rgba(11,23,43,.72)}
#he551-consent-dialog .he551-consent-note{font-size:12px;color:#386cbb;font-weight:700;margin-top:10px}
#he551-consent-dialog h2{font-size:19px;margin:8px 0 12px;line-height:1.45}
#he551-consent-dialog p{font-size:13px;line-height:1.8;background:#f5f7fb;border-radius:12px;padding:13px;margin:8px 0}
#he551-consent-dialog .he550-consent-form{gap:11px;margin-top:12px}
#he551-consent-dialog .he550-consent-form label{font-size:13px;line-height:1.55}
#he551-consent-dialog .he551-consent-back{display:block;text-align:center;padding:12px 0 2px;color:#5c6b81;font-size:13px;text-decoration:underline}


/* v5.5.71: streamlined mandatory chat acknowledgement modal.
   Scoped to the gate only, without changing the policy text or consent endpoint. */
#he551-consent-dialog.he571-consent {
  box-sizing:border-box;
  position:fixed;
  inset:0;
  width:min(430px,calc(100vw - 32px));
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);
  margin:auto;
  padding:25px 23px 19px;
  border:1px solid #e9edf5;
  border-radius:22px;
  background:#fff;
  box-shadow:0 22px 70px rgba(16,35,67,.26);
  overflow-y:auto;
  overscroll-behavior:contain;
  color:#1d2a3c;
  text-align:left;
  -webkit-overflow-scrolling:touch;
}
#he551-consent-dialog.he571-consent::backdrop {
  background:rgba(12,24,45,.56);
}
#he551-consent-dialog .he571-consent-heading {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 13px;
}
#he551-consent-dialog .he550-consent-icon {
  box-sizing:border-box;
  flex:0 0 42px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#e9f0ff;
  color:#3467dd;
  font-size:24px;
  line-height:1;
  font-weight:800;
}
#he551-consent-dialog .he551-consent-note {
  margin:0 0 4px;
  color:#5474af;
  font-size:12px;
  line-height:1.35;
  font-weight:740;
}
#he551-consent-dialog h2 {
  margin:0;
  color:#1c2940;
  font-size:21px;
  font-weight:820;
  letter-spacing:-.04em;
  line-height:1.28;
  overflow-wrap:break-word;
}
#he551-consent-dialog h2:focus {outline:none}
#he551-consent-dialog p.he571-consent-intro {
  margin:0 0 15px;
  padding:0;
  background:transparent;
  color:#69768a;
  border-radius:0;
  font-size:13px;
  line-height:1.6;
}
#he551-consent-dialog .he571-policy-box {
  box-sizing:border-box;
  padding:15px 16px;
  max-height:min(33dvh,235px);
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #e9edf4;
  border-radius:13px;
  background:#f6f8fc;
  scrollbar-width:thin;
  scrollbar-color:#cdd7e6 transparent;
}
#he551-consent-dialog .he571-policy-box p {
  margin:0;
  padding:0;
  background:transparent;
  border-radius:0;
  color:#4b596e;
  font-size:13px;
  line-height:1.77;
  font-weight:440;
  letter-spacing:-.025em;
  overflow-wrap:break-word;
  word-break:keep-all;
}
#he551-consent-dialog p.he571-scroll-hint {
  margin:6px 0 0;
  padding:0;
  border-radius:0;
  background:transparent;
  color:#919caf;
  font-size:11px;
  text-align:right;
  line-height:1.5;
}
#he551-consent-dialog .he550-consent-form {
  display:flex;
  flex-direction:column;
  gap:0;
  margin:12px 0 0;
}
#he551-consent-dialog .he550-consent-form label.he571-consent-check {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  gap:10px;
  align-items:start;
  width:100%;
  margin:0 0 17px;
  cursor:pointer;
  color:#2d3b51;
}
#he551-consent-dialog label.he571-consent-check input[type=checkbox] {
  box-sizing:border-box;
  display:block;
  flex:none;
  width:20px;
  height:20px;
  min-width:20px;
  min-height:20px;
  max-width:20px;
  margin:1px 0 0;
  padding:0;
  appearance:auto;
  accent-color:#4568ea;
  border-radius:4px;
  box-shadow:none;
}
#he551-consent-dialog label.he571-consent-check span {
  display:block;
  min-width:0;
  font-size:13px;
  line-height:1.5;
  font-weight:620;
  color:#344258;
  word-break:keep-all;
}
#he551-consent-dialog label.he571-consent-check strong {
  display:inline-block;
  vertical-align:baseline;
  margin-right:4px;
  padding:2px 5px;
  border-radius:4px;
  background:#edf2ff;
  font-size:11px;
  font-weight:770;
  color:#4164d1;
  white-space:nowrap;
}
#he551-consent-dialog .he550-consent-form button.btn.primary {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:49px;
  margin:0;
  padding:12px 16px;
  border:0;
  border-radius:12px;
  background:#4665ec;
  color:#fff;
  font-size:15px;
  font-weight:780;
  line-height:1.35;
  letter-spacing:-.03em;
  white-space:normal;
  box-shadow:0 6px 18px rgba(53,92,217,.16);
  cursor:pointer;
}
#he551-consent-dialog .he550-consent-form button.btn.primary:hover {
  background:#3657db;
}
#he551-consent-dialog .he551-consent-back {
  display:block;
  margin:0;
  padding:15px 8px 0;
  color:#7e8999;
  font-size:13px;
  font-weight:550;
  line-height:1.5;
  text-decoration:none;
  text-align:center;
}
#he551-consent-dialog .he551-consent-back:hover {
  color:#344b6c;
  text-decoration:underline;
}
@media(max-width:390px) {
  #he551-consent-dialog.he571-consent {
    padding:22px 18px 16px;
    border-radius:19px;
  }
  #he551-consent-dialog .he571-policy-box {padding:13px 14px;max-height:min(31dvh,220px)}
}
@media(max-height:590px) {
  #he551-consent-dialog.he571-consent {padding-top:16px;padding-bottom:12px}
  #he551-consent-dialog .he571-policy-box {max-height:26dvh}
  #he551-consent-dialog .he550-consent-form {margin-top:11px}
}
