/* 🔥 RESET DIVI CONFLICT */
#chat-box, #chat-box * {
  box-sizing: border-box !important;
  font-family: Arial, sans-serif !important;
}

.slot-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

/* 💬 CHAT BUTTON */
#chat-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 60px !important;
  height: 60px !important;
  background: #4c6ef5 !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  font-size: 22px !important;
}

/* 📦 CHAT BOX */
#chat-box {
  position: fixed !important;
  bottom: 90px !important;
  right: 20px !important;
  width: 340px !important;
  height: 480px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
  display: none;
  flex-direction: column !important;
  overflow: visible !important;
  z-index: 9999 !important;
}

/* 🧢 HEADER */
#chat-header {
  background: #4c6ef5 !important;
  color: #fff !important;
  padding: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-weight: bold !important;
border-radius: 20px 20px 0 0;
}

/* ❌ CLOSE BUTTON */
#chat-close {
  cursor: pointer !important;
  font-size: 18px !important;
}

/* 📜 BODY */
#chat-body {
  flex: 1 !important;
  padding: 12px !important;
  overflow-y: auto !important;
  background: #f5f7fb !important;
  display: flex;
  flex-direction: column;
  border-radius: 20px !important;
}

/* 🤖 BOT MESSAGE */
.bot {
  background: #e9ecef !important;
  color: #000 !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  margin: 6px 0 !important;
  max-width: 75% !important;
  font-size: 14px !important;
  align-self: flex-start;
}

/* 👤 USER MESSAGE */
.user {
  background: #4c6ef5 !important;
  color: #fff !important;
  padding: 8px 12px !important;
  border-radius: 10px !important;
  margin: 6px 0 !important;
  max-width: 75% !important;
  font-size: 14px !important;
  align-self: flex-end;
}

/* 🔘 SLOT BUTTONS */
.slot-btn {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  background: #fff !important;
  border: 1px solid #4c6ef5 !important;
  padding: 8px 8px !important;
  margin: 3px 0 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

/* GRID */
.dept-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.dept-container-timeslot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

/* ✨ HOVER */
.slot-btn:hover {
  background: #4c6ef5 !important;
  color: #fff !important;
}

/* 📝 INPUT */
.chat-modern-input {
  width: 100% !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  border: 1.5px solid #4f6df5 !important;
  font-size: 13px !important;
  margin-bottom: 10px !important;
}

.chat-modern-input::placeholder {
  color: #aaa !important;
}

.chat-modern-input:focus {
  border-color: #4f6df5 !important;
}

/* SUBMIT */
.chat-submit-text {
  text-align: right !important;
  color: #4CAF50 !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
  cursor: pointer !important;
}

.chat-submit-text:hover {
  opacity: 0.8;
}

/* 📅 FLATPICKR FIX */

/* MAIN */
.flatpickr-calendar {
  z-index: 999999 !important;
  background: #fff !important;
  opacity: 1 !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2) !important;
  border-radius: 10px !important;
  padding: 12px !important;
  position: absolute !important;
}

/* DAYS */
.flatpickr-days {
  padding: 4px !important;
  background: #fff !important;
}

/* HEADER */
.flatpickr-months {
  margin-bottom: 8px !important;
  background: #fff !important;
}

/* DAY CELL */
.flatpickr-day {
  background: #fff !important;
  margin: 2px !important;
}

/* SELECTED */
.flatpickr-day.selected {
  background: #4c6ef5 !important;
  color: #fff !important;
}

/* TODAY */
.flatpickr-day.today {
  border-color: #4c6ef5 !important;
}

/* AVAILABLE */
.available-date {
  font-weight: 600 !important;
  color: #4c6ef5 !important;
  border-radius: 6px;
}
.chat-input-wrapper{
  display:flex;
  gap:12px;
  margin-top:15px;
}

.chat-input{
  flex:1;
  padding:16px 18px;
  border-radius:18px;
  border:2px solid #2f6fed;
  outline:none;
  font-size:16px;
  background:#f5f6f7;
}

.chat-input:focus{
  background:#fff;
  box-shadow:0 0 0 3px rgba(47,111,237,0.15);
}

.chat-send{
  min-width:80px;
  border:none;
  border-radius:18px;
  background:#2f6fed;
  color:#fff;
  font-size:20px;
  cursor:pointer;
}

.chat-send:hover{
  background:#2559c7;
}
.user-msg{
  background:#2f6fed;
  color:#fff;
  padding:10px 14px;
  border-radius:14px;
  margin:10px 0;
  max-width:70%;
  margin-left:auto; /* align right */

  font-size:14px;
}
.appt-summary{
  background:#fff;
  border-radius:14px;
  padding:15px;
  margin-top:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.appt-title{
  font-weight:600;
  font-size:16px;
  margin-bottom:10px;
  color:#2e7d32;
}

.appt-row{
  display:flex;
  justify-content:space-between;
  padding:8px 10px;
  margin:5px 0;
  background:#f7f9fc;
  border-radius:8px;
  font-size:14px;
}
.dept-card{
  display:flex;
  justify-content:space-between;
  align-items:center;

  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  margin:10px 0;

  border:1px solid #e5e7eb;

  cursor:pointer;
  transition:all 0.2s ease;

  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

.dept-card:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.dept-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.dept-icon{
  font-size:18px;
}

.dept-name{
  font-size:15px;
  font-weight:500;
  color:#333;
}

.dept-arrow{
  font-size:18px;
  color:#999;
}

/* SELECTED STATE */
.dept-card.active{
  background:linear-gradient(135deg,#4f6ef7,#6a85ff);
  color:#fff;
  border:none;
}

.dept-card.active .dept-arrow{
  color:#fff;
}
.pay-card{
  background:#fff;
  border-radius:14px;
  padding:14px;
  margin:10px 0;
  border:1px solid #e5e7eb;
  box-shadow:0 4px 12px rgba(0,0,0,0.06);
}

.pay-title{
  font-weight:600;
  font-size:15px;
  margin-bottom:5px;
}

.pay-desc{
  font-size:13px;
  color:#666;
  margin-bottom:8px;
}

.pay-amount{
  font-size:16px;
  font-weight:600;
  color:#4f6ef7;
}
.pay-btn{
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg,#4f6ef7,#6a85ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.pay-btn:hover{
  opacity: 0.9;
  transform: translateY(-1px);
}
.wrapper{
  border-radius: 20px;
  overflow: hidden;
}
