/* Garantiza que display:flex no anule el atributo hidden del navegador */
.cjchatbot-panel[hidden],
.cjchatbot-form[hidden],
.cjchatbot-visual[hidden],
.cjchatbot-identificacion-wrap[hidden],
#cjchatbot-form-extras[hidden],
#cjchatbot-valoracion-wrap[hidden],
#cjchatbot-requerimiento-wrap[hidden] {
  display: none !important;
}

body.cjchatbot-widget-page.page-id-8911 {
  background: #e9eaeb !important;
  overflow-x: hidden;
}

body.cjchatbot-widget-page.page-id-8911 #page,
body.cjchatbot-widget-page.page-id-8911 #content,
body.cjchatbot-widget-page.page-id-8911 .site-content,
body.cjchatbot-widget-page.page-id-8911 .site-content > .ast-container,
body.cjchatbot-widget-page.page-id-8911 #primary,
body.cjchatbot-widget-page.page-id-8911 #main,
body.cjchatbot-widget-page.page-id-8911 article#post-8911,
body.cjchatbot-widget-page.page-id-8911 .entry-content,
body.cjchatbot-widget-page.page-id-8911 .elementor-8911 {
  background: transparent !important;
}

body.cjchatbot-widget-page.page-id-8911 .site-content,
body.cjchatbot-widget-page.page-id-8911 #primary,
body.cjchatbot-widget-page.page-id-8911 article#post-8911,
body.cjchatbot-widget-page.page-id-8911 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.cjchatbot-widget-page.page-id-8911 .site-content > .ast-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

/* ── Widget flotante ────────────────────────────────────────────── */
.cjchatbot-root {
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 99999;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.cjchatbot-root *,
.cjchatbot-root *::before,
.cjchatbot-root *::after {
  box-sizing: border-box;
}

.cjchatbot-demo-fallback-link {
  align-items: center;
  color: #0b376a !important;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  line-height: 1.2;
  margin-top: 8px;
  text-decoration: underline;
}

.cjchatbot-demo-fallback-link::before {
  content: "+";
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cjchatbot-demo-fallback-item {
  margin-top: 6px;
}

.cjchatbot-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.84);
  border-radius: 50%;
  background: rgba(11, 55, 106, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12, 36, 64, 0.32);
  transition: transform 0.2s ease;
  overflow: hidden;
  animation: cjbot-toggle-alert 3.8s ease-in-out infinite;
}

.cjchatbot-toggle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.cjchatbot-toggle:hover {
  transform: scale(1.05);
  animation-play-state: paused;
}

@keyframes cjbot-toggle-alert {
  0%, 72%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(12, 36, 64, 0.32);
  }
  78% {
    transform: translateY(-7px) scale(1.04);
    box-shadow: 0 14px 30px rgba(12, 36, 64, 0.38), 0 0 0 0 rgba(73, 220, 243, 0.34);
  }
  86% {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(12, 36, 64, 0.32), 0 0 0 12px rgba(73, 220, 243, 0);
  }
}

/* ── Popup de notificación (4 s por mensaje de bot) ────────────── */
.cjchatbot-popup {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 270px;
  max-width: calc(100vw - 32px);
  background: rgba(244, 248, 252, 0.92);
  border: 1.5px solid rgba(130, 151, 169, 0.82);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(12, 36, 64, 0.24);
  padding: 44px 18px 18px;
  text-align: center;
  z-index: 2;
  animation: cjbot-popup-show 0.3s ease forwards;
}

.cjchatbot-popup[hidden] {
  display: none !important;
}

.cjchatbot-popup--saliendo {
  animation: cjbot-popup-hide 0.35s ease forwards !important;
}

.cjchatbot-popup-avatar {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #637b91;
  object-fit: cover;
  object-position: 50% 22%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.cjchatbot-popup-msg {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1a2a40;
  font-weight: 500;
}

@keyframes cjbot-popup-show {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@keyframes cjbot-popup-hide {
  from { opacity: 1; transform: translateY(0)    scale(1);    }
  to   { opacity: 0; transform: translateY(8px)  scale(0.97); }
}

/* ── Panel ──────────────────────────────────────────────────────── */
.cjchatbot-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 390px;
  max-width: calc(100vw - 32px);
  max-height: min(680px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: rgba(232, 238, 244, 0.88);
  border: 1px solid rgba(89, 107, 123, 0.72);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(12, 36, 64, 0.28);
  backdrop-filter: blur(7px);
  overflow: hidden;
}

.cjchatbot-panel--identificacion {
  width: 400px;
  max-height: min(680px, calc(100vh - 96px));
}

/* ── Cabecera ───────────────────────────────────────────────────── */
.cjchatbot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #174f90;
  color: #fff;
  flex-shrink: 0;
  justify-content: flex-start;
  min-height: 42px;
  text-align: left;
}

.cjchatbot-header-logo {
  width: 78px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 4px 6px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.cjchatbot-header-title {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 6px;
  min-width: 0;
  line-height: 1;
}

.cjchatbot-title-main {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.cjchatbot-title-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.9;
  white-space: nowrap;
}

.cjchatbot-header-search {
  display: none;
  align-items: center;
  flex: 0 0 36px;
  max-width: 36px;
  min-width: 36px;
  height: 36px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: flex-basis 0.18s ease, max-width 0.18s ease;
}

.cjchatbot-header-search.is-enabled {
  display: flex;
}

.cjchatbot-header-search.is-open {
  flex: 0 0 158px;
  max-width: 158px;
  min-width: 158px;
  height: 36px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 0;
  border-radius: 4px;
}

.cjchatbot-header-search-input {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #174f90;
  font-size: 16px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

.cjchatbot-header-search.is-open .cjchatbot-header-search-input {
  width: 100%;
  padding: 0 4px 0 10px;
  opacity: 1;
  pointer-events: auto;
}

.cjchatbot-header-search-input:focus,
.cjchatbot-header-search-input:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.cjchatbot-header-search-input::placeholder {
  color: #7a8b9d;
  opacity: 1;
}

.cjchatbot-header-search-input::-webkit-search-cancel-button,
.cjchatbot-header-search-input::-webkit-search-decoration {
  display: none;
}

.cjchatbot-header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff !important;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  opacity: 1;
  overflow: visible;
}

.cjchatbot-header-search-btn::before,
.cjchatbot-header-search-btn::after {
  content: none;
}

.cjchatbot-header-search.is-open .cjchatbot-header-search-btn {
  color: #174f90 !important;
}

.cjchatbot-header-search-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.cjchatbot-header-search.is-enabled .cjchatbot-header-search-btn {
  opacity: 1;
}

.cjchatbot-search-icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: currentColor;
  overflow: visible;
}

.cjchatbot-search-icon path {
  fill: currentColor !important;
}

.cjchatbot-header-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.cjchatbot-subtitle {
  font-size: 12px;
  opacity: 0.9;
  flex: 1;
}

.cjchatbot-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  margin-left: 0;
}

/* ── Imagen de paso ─────────────────────────────────────────────── */
.cjchatbot-visual {
  padding: 6px 10px 0;
  background: transparent;
  flex-shrink: 0;
}

.cjchatbot-robot-frame {
  position: relative;
  width: 100%;
  height: 132px;
  max-height: 132px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  transform-origin: 52% 58%;
}

.cjchatbot-visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  display: block;
  transform: scale(1.02);
  transform-origin: 50% 45%;
}

.cjchatbot-visual--speaking .cjchatbot-robot-frame {
  animation: cjbot-head-talk 2.4s ease-in-out infinite;
}

.cjchatbot-visual--speaking .cjchatbot-robot-frame::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 31.5%;
  width: clamp(15px, 4.4%, 21px);
  height: 3px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 35%, #baf7ff 0 18%, #49dcf3 42%, #0f5377 100%);
  box-shadow:
    0 0 8px rgba(73, 220, 243, 0.88),
    0 0 16px rgba(48, 180, 220, 0.42);
  opacity: 0.9;
  pointer-events: none;
  transform: translate(-50%, -50%) scaleY(0.55);
  transform-origin: center;
  animation:
    cjbot-mouth-talk 0.26s ease-in-out infinite,
    cjbot-mouth-life var(--cjchatbot-speech-duration, 9000ms) linear forwards;
}

@keyframes cjbot-head-talk {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  22% {
    transform: translateY(1px) rotate(-1.1deg);
  }
  48% {
    transform: translateY(-1px) rotate(0.8deg);
  }
  74% {
    transform: translateY(1px) rotate(-0.5deg);
  }
}

@keyframes cjbot-mouth-talk {
  0%, 100% {
    height: 2px;
    opacity: 0.68;
    transform: translate(-50%, -50%) scaleY(0.45);
  }
  45% {
    height: 7px;
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1);
  }
}

@keyframes cjbot-mouth-life {
  0%, 92% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

/* ── Área de mensajes (burbujas + opciones + loading) ───────────── */
.cjchatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
}

.cjchatbot-panel--identificacion .cjchatbot-messages {
  flex: 0 0 auto;
  overflow: visible;
}

/* ── Burbujas ───────────────────────────────────────────────────── */
.cjchatbot-bubble {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.38;
  white-space: pre-wrap;
}

.cjchatbot-panel--identificacion .cjchatbot-bubble {
  max-width: 100%;
}

.cjchatbot-bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(205, 216, 226, 0.95);
}

.cjchatbot-bubble--user {
  align-self: flex-end;
  background: rgba(26, 77, 140, 0.92);
  color: #fff;
}

.cjchatbot-bubble a {
  color: #0d4f91;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.cjchatbot-bubble p {
  margin: 0 0 6px;
}

.cjchatbot-bubble p:last-child,
.cjchatbot-bubble ul:last-child,
.cjchatbot-bubble ol:last-child {
  margin-bottom: 0;
}

.cjchatbot-bubble ul,
.cjchatbot-bubble ol {
  margin: 6px 0;
  padding-left: 18px;
}

/* ── Opciones (botones inline dentro del área de mensajes) ──────── */
.cjchatbot-options {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

/* ── Indicador de carga ─────────────────────────────────────────── */
.cjchatbot-loading {
  display: flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 4px;
}

.cjchatbot-loading-dots {
  display: flex;
  gap: 5px;
}

.cjchatbot-loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a4d8c;
  display: inline-block;
  animation: cjbot-bounce 1.2s ease-in-out infinite;
}

.cjchatbot-loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.cjchatbot-loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes cjbot-bounce {
  0%, 80%, 100% {
    transform: scale(0.55);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Botones ────────────────────────────────────────────────────── */
.cjchatbot-btn {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 1px solid #c5d4e8;
  border-radius: 8px;
  background: #fff;
  color: #12385f !important;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.cjchatbot-btn:hover {
  background: #e8f0fa;
  color: #12385f !important;
}

.cjchatbot-btn:disabled {
  color: #607187 !important;
  cursor: default;
  background: #f6f8fb;
}

.cjchatbot-btn:disabled:hover {
  background: #f6f8fb;
}

.cjchatbot-btn--secondary {
  background: #f0f4f8;
  border-color: #d1dce8;
  color: #12385f !important;
}

.cjchatbot-btn--secondary:hover {
  background: #dce7f5;
  color: #12385f !important;
}

/* ── Formulario de texto ────────────────────────────────────────── */
.cjchatbot-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(180, 194, 208, 0.72);
  background: rgba(235, 241, 247, 0.58);
  flex-shrink: 0;
}

.cjchatbot-identificacion-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.cjchatbot-form--identificacion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: stretch;
  column-gap: 8px;
  row-gap: 6px;
}

.cjchatbot-form--identificacion .cjchatbot-identificacion-wrap {
  display: contents;
}

.cjchatbot-tipo-identificacion {
  display: flex;
  gap: 0;
  width: 100%;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: rgba(224, 233, 242, 0.86);
}

.cjchatbot-form--identificacion .cjchatbot-tipo-identificacion {
  order: 1;
  grid-column: 1 / -1;
  flex: 0 0 auto;
  min-width: 0;
  max-width: none;
  width: 100%;
}

.cjchatbot-tipo-opcion {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #415875;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.cjchatbot-tipo-opcion.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(199, 214, 230, 0.95);
  box-shadow: 0 1px 3px rgba(12, 41, 74, 0.12);
  color: #0d3768;
  font-weight: 700;
}

.cjchatbot-identificacion-label {
  display: none;
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #21364f;
}

.cjchatbot-form--identificacion .cjchatbot-identificacion-label {
  display: block;
  order: 2;
  grid-column: 1 / -1;
  width: 100%;
}

.cjchatbot-form--identificacion .cjchatbot-input {
  order: 3;
  grid-column: 1 / -1;
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

.cjchatbot-captcha-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
}

.cjchatbot-form--identificacion .cjchatbot-captcha-wrap {
  display: flex;
  order: 4;
  grid-column: 1;
  min-height: 70px;
  align-self: start;
}

.cjchatbot-turnstile {
  min-height: 65px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.cjchatbot-captcha-status {
  font-size: 12px;
  line-height: 1.2;
  color: #21364f;
  margin: 0;
}

.cjchatbot-form .cjchatbot-input {
  flex: 1;
  min-width: 120px;
}

.cjchatbot-form.cjchatbot-form--identificacion .cjchatbot-input {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

.cjchatbot-form .cjchatbot-send {
  flex-shrink: 0;
}

.cjchatbot-form--identificacion .cjchatbot-send {
  order: 4;
  grid-column: 2;
  width: 44px;
  height: 44px;
  margin-left: 0;
  min-width: 44px;
  padding: 0;
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  font-weight: 700;
}

.cjchatbot-form--identificacion .cjchatbot-send::before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='m22 2-7 20-4-9-9-4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cjchatbot-input {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.92);
}

.cjchatbot-send {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: rgba(26, 77, 140, 0.94);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.cjchatbot-send--icon {
  width: 44px;
  height: 40px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
}

.cjchatbot-send--icon::before {
  display: none;
}

.cjchatbot-send--icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Valoración ────────────────────────────────────────────────── */
.cjchatbot-valoracion-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.cjchatbot-valoracion-comentario {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #d4dde8;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2f43;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.35;
  resize: vertical;
  box-sizing: border-box;
}

.cjchatbot-valoracion-estrellas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 2px 0 4px;
}

.cjchatbot-valoracion-star {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c58410;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.cjchatbot-valoracion-star:hover,
.cjchatbot-valoracion-star:focus-visible {
  color: #a66d05;
  outline: none;
  transform: translateY(-1px);
}

.cjchatbot-valoracion-star.is-selected {
  color: #a66d05;
}

.cjchatbot-valoracion-omitir {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: #2d3543;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.cjchatbot-valoracion-omitir:hover,
.cjchatbot-valoracion-omitir:focus-visible {
  background: #f8fafc;
  outline: none;
}

/* ── Formulario de requerimiento libre (4 campos) ───────────────── */
.cjchatbot-requerimiento-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.cjchatbot-req-campos {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cjchatbot-req-field {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}

.cjchatbot-req-field[readonly] {
  background: #f1f5f9;
  color: #64748b;
  cursor: default;
}

.cjchatbot-req-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 72px;
  font-family: inherit;
  box-sizing: border-box;
}

.cjchatbot-req-enviar {
  align-self: flex-end;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cjchatbot-root {
    right: 12px;
    bottom: 12px;
  }

  .cjchatbot-toggle {
    width: 56px;
    height: 56px;
  }

  .cjchatbot-panel {
    width: calc(100vw - 24px);
    bottom: 64px;
    max-height: calc(100vh - 80px);
  }

  .cjchatbot-header {
    gap: 6px;
  }

  .cjchatbot-header-logo {
    width: 58px;
    padding: 4px;
  }

  .cjchatbot-header-search {
    flex-basis: 34px;
    max-width: 34px;
    min-width: 34px;
  }

  .cjchatbot-header-search.is-open {
    flex-basis: 128px;
    max-width: 128px;
    min-width: 128px;
  }

  .cjchatbot-title-main {
    font-size: 16px;
  }

  .cjchatbot-title-sub {
    font-size: 9px;
  }
}

@media (max-height: 700px) {
  .cjchatbot-panel,
  .cjchatbot-panel--identificacion {
    max-height: calc(100vh - 76px);
  }

  .cjchatbot-robot-frame {
    height: 112px;
    max-height: 112px;
  }

  .cjchatbot-messages {
    padding: 7px 10px;
  }

  .cjchatbot-bubble {
    font-size: 12.5px;
    line-height: 1.32;
    padding: 7px 9px;
  }

  .cjchatbot-form {
    padding: 7px 9px 9px;
  }

  .cjchatbot-tipo-opcion {
    padding: 7px 5px;
  }
}
