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

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

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

.cjbot-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;
}

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

.cjbot-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) ────────────── */
.cjbot-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;
}

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

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

.cjbot-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);
}

.cjbot-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 ──────────────────────────────────────────────────────── */
.cjbot-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;
}

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

/* ── Cabecera ───────────────────────────────────────────────────── */
.cjbot-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;
}

.cjbot-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;
}

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

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

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

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

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

.cjbot-header-search.is-open {
  flex: 0 1 132px;
  max-width: 132px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.cjbot-header-search-input {
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0d2438;
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.18s ease, opacity 0.18s ease, padding 0.18s ease;
}

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

.cjbot-header-search-input::placeholder {
  color: #6b8cac;
}

.cjbot-header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.cjbot-header-search.is-open .cjbot-header-search-btn {
  color: #174f90;
}

.cjbot-header-search-btn:disabled {
  display: none;
}

.cjbot-search-icon {
  display: block;
  width: 17px;
  height: 17px;
}

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

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

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

.cjbot-header-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  margin-left: auto;
}

.cjbot-tts-toggle {
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 4px;
  width: 32px;
}

.cjbot-tts-toggle .cjbot-tts-icon {
  height: 20px;
  width: 20px;
}

.cjbot-tts-toggle .cjbot-tts-icon--off {
  display: none;
}

.cjbot-tts-toggle.is-muted .cjbot-tts-icon--on {
  display: none;
}

.cjbot-tts-toggle.is-muted .cjbot-tts-icon--off {
  display: block;
}

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

.cjbot-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%;
}

.cjbot-avatar-fallback {
  align-items: center;
  background: #0b376a;
  color: #fff;
  display: flex;
  font-size: 32px;
  font-weight: bold;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.cjbot-json-player {
  display: block;
  height: 132px;
  width: 100%;
  min-height: 132px;
}

.cjbot-visual--json .cjbot-robot-frame {
  background: rgba(255, 255, 255, 0.84);
}

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

.cjbot-visual-img[hidden] {
  display: none !important;
}

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

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

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

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

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

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

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

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

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

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

/* Alias usado por renderBotResponse (control maestro de renderizado) */
.cjbot-msg {
  max-width: 92%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.38;
  white-space: pre-wrap;
}

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

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

.cjbot-msg--error {
  align-self: flex-start;
  background: rgba(254, 242, 242, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.55);
  color: #991b1b;
}

.cjbot-msg--html {
  white-space: normal;
}

.cjbot-msg--html p {
  margin: 0 0 0.55em;
}

.cjbot-msg--html p:last-child {
  margin-bottom: 0;
}

.cjbot-msg--html a {
  color: #1a4d8c;
  text-decoration: underline;
  word-break: break-word;
}

.cjbot-msg--html a:hover,
.cjbot-msg--html a:focus {
  color: #0f3460;
}

.cjbot-msg--html strong,
.cjbot-msg--html b {
  font-weight: 700;
}

.cjbot-popup-msg--html {
  font-weight: 400;
  text-align: left;
}

.cjbot-popup-msg--html p {
  margin: 0 0 0.5em;
}

.cjbot-popup-msg--html p:last-child {
  margin-bottom: 0;
}

.cjbot-popup-msg--html a {
  color: #1a4d8c;
  text-decoration: underline;
  word-break: break-word;
}

.cjbot-popup-msg--html strong,
.cjbot-popup-msg--html b {
  font-weight: 700;
}

.cjbot-input--email,
.cjbot-input--otp {
  letter-spacing: 0.02em;
}

.cjbot-input--otp {
  font-variant-numeric: tabular-nums;
  text-align: center;
  letter-spacing: 0.18em;
}

.cjbot-input--error {
  border-color: #f87171;
  background: rgba(254, 242, 242, 0.92);
}

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

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

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

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

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

.cjbot-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 ────────────────────────────────────────────────────── */
.cjbot-btn {
  background-color: #ffffff;
  color: #0b376a; /* Azul institucional para contraste */
  border: 1px solid #0b376a;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 4px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.cjbot-btn:hover, .cjbot-btn:focus {
  background-color: #0b376a;
  color: #ffffff;
  box-shadow: 0 4px 6px rgba(11, 55, 106, 0.2);
  outline: none;
}

.cjbot-btn:disabled {
  color: #607187;
  cursor: default;
  background: #f6f8fb;
}

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

.cjbot-btn--secondary {
  background: #f0f4f8;
  border-color: #d1dce8;
}

.cjbot-btn--secondary:hover {
  background: #dce7f5;
}

/* ── Formulario de texto ────────────────────────────────────────── */
.cjbot-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;
}

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

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

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

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

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

.cjbot-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;
}

.cjbot-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;
}

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

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

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

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

.cjbot-form--identificacion .cjbot-captcha-wrap {
  display: contents;
  order: 4;
  flex: 0 0 auto;
  width: 100%;
}

.cjbot-form--identificacion .cjbot-captcha-label {
  order: 4;
  grid-column: 1;
  align-self: end;
}

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

.cjbot-form--identificacion .cjbot-captcha-input {
  order: 5;
  grid-column: 1;
}

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

.cjbot-captcha-refresh {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.cjbot-form--identificacion .cjbot-captcha-refresh {
  order: 4;
  grid-column: 2;
  width: 44px;
  height: 34px;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

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

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

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

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

.cjbot-form--identificacion .cjbot-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;
}

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

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

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

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

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

/* ── Valoración ────────────────────────────────────────────────── */
.cjbot-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;
}

.cjbot-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;
}

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

.cjbot-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;
}

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

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

.cjbot-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;
}

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

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

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

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

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

.cjbot-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;
}

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

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

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

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

  .cjbot-header {
    gap: 6px;
  }

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

  .cjbot-header-search {
    flex-basis: 30px;
    max-width: 30px;
  }

  .cjbot-header-search.is-open {
    flex-basis: 92px;
    max-width: 92px;
  }

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

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

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

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

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

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

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

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