/* ============================= */
/* CHAT LAUNCHER (IMAGE ICON) */
/* ============================= */
.chat-launcher { 
  position: fixed; 
  bottom: 24px; 
  right: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%; 
  border: none;
  cursor: pointer; 
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  box-shadow: 0 12px 30px rgba(0,0,0,.25); 
  display: flex; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /*padding: 6px;*/
}
.chat-launcher span { 
    font-size: 30px;
    line-height: 1; 
    
}


.options button.option-item {
  background: #eb90021a;   /* warm off-white */
  border-color: #e6ddc4;
}





.chat-launcher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.12);
}


/* ============================= */
/* CHAT WIDGET (HIDDEN BY DEFAULT) */
/* ============================= */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  touch-action: auto;
}

/* SHOW CHAT */
.chat-widget.active {
  display: flex;
}


/* ============================= */
/* HEADER */
/* ============================= */
.chat-header {
  background: #c9a962;
  color: #fff;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* AVATAR (IMAGE) */
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  flex-shrink: 0;
}

.avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.chat-header h4 {
  margin: 0;
  font-size: 16px;
}

.chat-header small {
  font-size: 12px;
  opacity: .85;
}

.close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}


/* ============================= */
/* BODY */
/* ============================= */
.chat-body {
  flex: 1;
  padding: 18px;
  background: #f8fafc;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* ============================= */
/* BOT MESSAGE */
/* ============================= */
.bot {
  background: #e5e7eb;
  color: #111;
  padding: 14px 18px;
  border-radius: 16px;
  margin-bottom: 14px;
  font-size: 15px;
  max-width: 85%;
  line-height: 1.5;
}


/* ============================= */
/* OPTIONS */
/* ============================= */
.options {
  margin-bottom: 16px;
}

.options button {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: all .25s ease;
}

.options button:hover {
  background: #c9a962;
  color: #fff;
  border-color: #c9a962;
  transform: translateY(-1px);
}


/* ============================= */
/* MOBILE FULL SCREEN */
/* ============================= */
@media (max-width: 768px) {

  .chat-widget.active {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .chat-header {
    padding: 18px;
  }

  .chat-header h4 {
    font-size: 17px;
  }

  .chat-body {
    padding: 20px;
  }

  .options button {
    padding: 18px;
    font-size: 16px;
  }

  .chat-launcher {
    width: 72px;
    height: 72px;
    bottom: 16px;
    right: 16px;
  }

  .avatar {
    width: 48px;
    height: 48px;
  }

  .avatar img {
    width: 28px;
    height: 28px;
  }
  
    .chat-launcher span {
    font-size: 32px;
  }
}
