/* ClearPro live quote assistant */
.cp-asst-root {
  --cp-navy: #0b2c6b;
  --cp-navy-deep: #071f4a;
  --cp-blue: #1a6fd4;
  --cp-ice: #e8f4ff;
  --cp-mist: #f4f8fc;
  --cp-ink: #142033;
  --cp-muted: #5b6b7f;
  --cp-line: #d7e3f0;
  --cp-wa: #25d366;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body.cp-assistant-on .float-wa {
  bottom: 5.7rem;
}

.cp-asst-launcher {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  cursor: pointer;
  background: var(--cp-navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.7rem 0.95rem 0.7rem 0.7rem;
  box-shadow: 0 12px 28px rgba(11, 44, 107, 0.35);
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
}
.cp-asst-launcher:hover { background: #0d3a86; }
.cp-asst-launcher .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1a6fd4;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.cp-asst-launcher[hidden] { display: none !important; }

.cp-asst-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1210;
  width: min(400px, calc(100vw - 1.4rem));
  height: min(640px, calc(100vh - 1.6rem));
  background: #fff;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(11, 44, 107, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cp-asst-panel[hidden] { display: none !important; }

.cp-asst-head {
  background: linear-gradient(135deg, #071f4a, #0b2c6b 55%, #1a6fd4);
  color: #fff;
  padding: 0.85rem 0.9rem 0.75rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.6rem;
}
.cp-asst-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cp-asst-head p {
  margin: 0;
  grid-column: 1;
  font-size: 0.78rem;
  opacity: 0.88;
}
.cp-asst-close {
  grid-row: 1 / span 2;
  align-self: start;
  border: 0;
  background: rgba(255,255,255,0.14);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.cp-asst-progress {
  height: 4px;
  background: #d7e3f0;
}
.cp-asst-progress i {
  display: block;
  height: 100%;
  width: 8%;
  background: #1a6fd4;
  transition: width 0.25s ease;
}

.cp-asst-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem 0;
  max-height: 4.6rem;
  overflow: auto;
}
.cp-asst-chips:empty { display: none; }
.cp-asst-chip {
  border: 1px solid #d7e3f0;
  background: #f4f8fc;
  color: #0b2c6b;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  cursor: pointer;
}

.cp-asst-log {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 0.8rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f7fafc;
}
.cp-asst-msg {
  max-width: 92%;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.cp-asst-msg.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #d7e3f0;
  color: #142033;
}
.cp-asst-msg.user {
  align-self: flex-end;
  background: #0b2c6b;
  color: #fff;
}
.cp-asst-tip {
  font-size: 0.75rem;
  color: #5b6b7f;
  margin-top: 0.35rem;
}
.cp-asst-est {
  margin-top: 0.55rem;
  border-top: 1px solid #d7e3f0;
  padding-top: 0.45rem;
}
.cp-asst-est strong {
  display: block;
  color: #0b2c6b;
  font-size: 1.05rem;
}

.cp-asst-opts {
  display: grid;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem 0.55rem;
  background: #fff;
  border-top: 1px solid #e8eef5;
  max-height: 42%;
  overflow: auto;
}
.cp-asst-opt {
  text-align: left;
  border: 1px solid #d7e3f0;
  background: #fff;
  color: #142033;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  font: inherit;
}
.cp-asst-opt:hover { border-color: #0b2c6b; background: #e8f4ff; }
.cp-asst-opt b { display: block; font-size: 0.88rem; color: #071f4a; }
.cp-asst-opt span { display: block; font-size: 0.75rem; color: #5b6b7f; }

.cp-asst-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem 0.75rem;
  background: #fff;
  border-top: 1px solid #e8eef5;
}
.cp-asst-form[hidden] { display: none !important; }
.cp-asst-form input {
  flex: 1;
  border: 1px solid #d7e3f0;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  min-width: 0;
}
.cp-asst-form button {
  border: 0;
  background: #0b2c6b;
  color: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.cp-asst-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.75rem 0.55rem;
  font-size: 0.72rem;
  color: #5b6b7f;
  background: #fff;
}
.cp-asst-foot a { color: #0b2c6b; font-weight: 700; }

@media (max-width: 640px) {
  .cp-asst-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .cp-asst-opts { max-height: 38%; }
}
