.f2cb {
  position: fixed;
  right: var(--f2cb-right, 24px);
  bottom: var(--f2cb-bottom, 110px);
  z-index: var(--f2cb-z, 99999);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.f2cb * { box-sizing: border-box; }

.f2cb__btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(20,20,20,.92);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.f2cb__btn i{
  font-size: 1.5em;
}
.f2cb__btn:active { transform: translateY(1px); }

.f2cb__btn:focus {
  border: 1px solid #a01d35;
  background: #a01d35;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

.f2cb__panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(380px, calc(100vw - 32px));
  height: 520px;
  border-radius: 18px;
  background: rgba(18,18,18,.96);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  overflow: hidden;
  display: none;
}

.f2cb__panel.is-open { display: block; }

.f2cb__header {
  height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.10);
  color: #fff;
}

.f2cb__title { font-weight: 700; font-size: 14px; opacity: .95; }

.f2cb__close {
  background: transparent;
  border: 0;
  color: #fff;
  opacity: .8;
  cursor: pointer;
  font-size: 18px;
}

.f2cb__close i{
  font-size: 1.5em;
}

.f2cb__body {
  height: calc(520px - 52px - 60px);
  padding: 12px;
  overflow: auto;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.f2cb__composer {
  height: 60px;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  gap: 10px;
}

.f2cb__input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}

.f2cb__send {
  width: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
  display: grid;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.f2cb__send i{
  font-size: 1.5em;
}

.f2cb__send:focus {
  border: 1px solid #a01d35;
  background: #a01d35;
  color: #fff;
}

.f2cb-thinking {
  font-size: 13px;
  color: #666;
  padding: 6px 10px;
  margin-top: 6px;
  font-style: italic;
  opacity: 0.85;
}

.f2cb-msg.typing {
  opacity: 0.6;
  font-style: italic;
}

.f2cb-msg {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.f2cb-msg.assistant {
  background: #f5f7fb;
  border-radius: 12px;
}

/* Contenedor de acciones */
.f2cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

/* Botón de acción */
.f2cb-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);

  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}

/* Hover */
.f2cb-action-btn:hover {
  background: #A01D35 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Botón tipo teléfono */
.f2cb-action-btn[data-type="phone"] {
  border-color: rgba(0, 200, 0, 0.5);
}

/* Botón tipo email */
.f2cb-action-btn[data-type="email"] {
  border-color: rgba(0, 150, 255, 0.5);
}


