/* Botón flotante WhatsApp */
.custom-floating-chat-btn{
  position: fixed;
  right: 18px;
  bottom: 68px;
  z-index: 999999;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  font-weight: 800;
  cursor: pointer;
}

.custom-chat-popup{
  position: fixed;
  right: 18px;
  bottom: 125px;
  width: 320px;
  max-width: calc(100vw - 36px);
  z-index: 999999;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
  border: 1px solid rgba(0,0,0,.08);
}

.custom-chat-header{
  background: #25D366;
  color:#fff;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.custom-chat-header h5{ margin:0; font-size: 14px; font-weight: 900; }
.custom-chat-close{
  background: transparent;
  border:none;
  color:#fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.custom-chat-body{
  padding: 12px 14px;
  color: #111827;
}
.custom-chat-body p{ margin: 0 0 10px; font-size: 13px; color:#374151; }

.custom-chat-user{
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,.06);
}
.custom-chat-link{
  text-decoration:none;
  display:block;
}
.custom-user-info{
  display:flex;
  align-items:center;
  gap: 10px;
}
.custom-user-avatar{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
}
.custom-user-name{
  font-weight: 800;
  color: #111827;
}

/* ============================
   Botón flotante Tarjeta + Modal público
   ============================ */
.cucrd-floating-card-btn{
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  z-index: 999999;
}
.cucrd-floating-card-btn i{ font-size: 18px; }
.cucrd-floating-card-btn:hover{ transform: translateY(-1px); }

.cucrd-modal{
  position: fixed;
  inset: 0;
  z-index: 1000000;
}
.cucrd-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.cucrd-modal-dialog{
  position: relative;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #fff;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.cucrd-modal-close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.06);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.cucrd-modal-head{
  padding: 14px 16px;
  font-weight: 900;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.cucrd-modal-body{
  padding: 12px 12px 14px;
}
.cucrd-card-picker{
  margin-bottom: 10px;
}
#cucrd-card-select{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  font-weight: 700;
}
.cucrd-public-card-container{
  display:flex;
  justify-content:center;
}
.cucrd-public-card-loading{
  padding: 18px;
  color: #374151;
  font-weight: 700;
}

/* Ajuste para que la tarjeta se vea bien dentro del modal */
.cucrd-modal .cucrd-card-wrap{
  width: 100%;
}
