/* Menyembunyikan floating chat di halaman dengan ID 7793, 64, dan 62 */
.page-id-7793 .floating-chat,
.page-id-64 .floating-chat,
.page-id-62 .floating-chat {
    display: none !important;
}

/* Ikon Chat */
#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 43px;
    height: 43px;
    background: #284CEA;
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#chat-icon:after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #284CEA;
}

/* Kontainer Chat */
#chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  max-width: 1300px;
  height: 450px;
  max-height: 650px;
  background: white;
  color: black;
  border-radius: 10px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
  z-index: 999;
}

/* Kontainer Chat Maksimal (TIDAK DIUBAH) */
#chat-container.maximized {
    width: 350px;
    height: 450px;
    display: flex;
}

/* Header Chat */
#chat-header {
  background: #284CEA;
  padding: 10px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#chat-header span {
  color: white;
  font-weight: bold;
  font-size: 16px;
  flex-grow: 1;
  text-align: left;
}

#chat-controls {
  display: flex;
}

#maximize, #restore, #chat-toggle {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 5px;
  border-radius: 5px;
  margin-left: 2px;
}

#maximize:hover, #restore:hover, #chat-toggle:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

#maximize { display: block; }
#restore { display: none; }

/* Area Isi Chat */
#chat-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
}

#chat-messages {
    flex: 1;
    margin-bottom: 10px;
    overflow-y: auto;
}

/* ================= FIX LIST SAJA ================= */
#chat-messages ul,
#chat-messages ol {
    padding-left: 18px;
    margin: 6px 0;
    list-style: disc;
}

#chat-messages li {
    margin-bottom: 4px;
    white-space: normal;
}

/* ================= END FIX ================= */

#chat-messages img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Input */
#chat-input {
    width: calc(100% - 20px);
    padding: 5px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

#send-chat {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #284CEA;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Message */
.message.right {
    background-color: #edf2fb;
    color: black;
    align-self: flex-end;
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 100%;
    white-space: pre-wrap;
}

.message.left {
    background-color: #ffffff;
    color: black;
    align-self: flex-start;
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Gaya saat maximize (TIDAK DIUBAH) */
#chat-container.maximized {
    width: 120vw;
    height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
}

.chat-wrapper {
    margin-bottom: 12px;
  }
  
  .chat-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
  }
  
  .chat-title span {
    font-size: 12px;
    color: #666;
  }
  
  .chat-card {
    background: #f4f6fb;
    border-left: 4px solid #3b5bdb; /* biru sesuai header */
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }
  
  .chat-card-header {
    background: #e7ecff;
    padding: 8px 10px;
    font-weight: 600;
    cursor: pointer;
  }
  
  .chat-card-body {
    padding: 10px;
    font-size: 13px;
    line-height: 1.5;
  }
  
  .chat-subtitle {
    margin-top: 6px;
    font-weight: 600;
    color: #2b4eff;
  }
  
  .chat-list {
    padding-left: 18px;
    margin: 4px 0;
  }

  /* ===== GUIDE CHAT 1 ===== */
.chat-guide-1 {
    background: #eef2ff;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #284CEA;
    margin-top: 6px;
    line-height: 1.6;
    font-size: 14px;
}

.guide-title-1 {
    font-weight: bold;
    font-size: 16px;
    color: #284CEA;
    margin-bottom: 8px;
}

.guide-item-1 b {
    color: #284CEA;
}

/* * Ikon Chat 2 * */
#chat-icon-2 {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 43px;
    height: 43px;
    background: #28A745;
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Segitiga di bawah ikon chat 2 */
#chat-icon-2:after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #28A745;
}

/* Kontainer Chat 2 */
#chat-container-2 {
    position: fixed;
    bottom: 20px;
    right: 80px;
    width: 300px;
    max-width: 1300px;
    height: 450px;
    max-height: 650px;
    background: white;
    color: black;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

/* Kontainer Chat 2 Maksimal */
#chat-container-2.maximized {
    width: 350px;
    height: 450px;
    display: flex;
}

/* Header Chat 2 */
#chat-header-2 {
    background: #28A745;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Teks Header 2 */
#chat-header-2 span {
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-grow: 1;
    text-align: left;
}

/* Kontainer Tombol Minimize dan Restore Chat 2 */
#chat-controls-2 {
    display: flex;
}

/* Tombol Maximize, Restore, dan Minimize Chat 2 */
#maximize-2, #restore-2, #chat-toggle-2 {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    border-radius: 5px;
    margin-left: 2px;
}

/* Efek Hover pada Tombol Chat 2 */
#maximize-2:hover, #restore-2:hover, #chat-toggle-2:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#maximize-2 {
    display: block;
}

#restore-2 {
    display: none;
}

/* Area Isi Chat 2 */
#chat-body-2 {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
}

#chat-messages-2 {
    flex: 1;
    margin-bottom: 10px;
    overflow-y: auto;
}

#chat-messages-2 ul,
#chat-messages-2 ol {
    padding-left: 1.5em;
}

#chat-messages-2 li {
    text-indent: -1.5em;
    padding-left: 1.5em;
    list-style-position: outside;
    white-space: pre-wrap;
}

#chat-messages-2 img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Input dan Tombol Kirim Chat 2 */
#chat-input-2 {
    width: calc(100% - 20px);
    padding: 5px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

#send-chat-2 {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #28A745;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Pesan Pengguna Chat 2 */
.message-2.right {
    background-color: #edf2fb;
    color: black;
    align-self: flex-end;
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Pesan Bot Chat 2 */
.message-2.left {
    background-color: #ffffff;
    color: black;
    align-self: flex-start;
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Gaya saat maximize untuk Chat 2 */
#chat-container-2.maximized {
    width: 120vw;
    height: 120vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
}

/* Link download di chat */
#chat-messages-2 a {
    color: #1976d2;
    font-weight: bold;
    text-decoration: none;
}

#chat-messages-2 a:hover {
    text-decoration: underline;
}

.chat-guide {
    background: #f4f9f4;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #28A745;
    margin-top: 6px;
    line-height: 1.6;
    font-size: 14px;
}

.guide-title {
    font-weight: bold;
    font-size: 16px;
    color: #28A745;
    margin-bottom: 8px;
}

.guide-item {
    margin-bottom: 8px;
}

.guide-item b {
    color: #28A745;
}

.guide-item code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 4px;
    font-family: monospace;
}

/* Ikon Chat 3 */
#chat-icon-3 {
    position: fixed;
    bottom: 90px; /* Posisikan di atas ikon Chat 2 */
    right: 20px;
    width: 43px;
    height: 43px;
    background: #FF5733; /* Warna orange */
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

/* Segitiga di bawah ikon Chat 3 */
#chat-icon-3:after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #FF5733; /* Warna yang sama dengan ikon */
}

/* Kontainer Chat 3 */
#chat-container-3 {
    position: fixed;
    bottom: 110px; /* Sama dengan posisi ikon Chat 3 */
    right: 20px;
    width: 300px;
    max-width: 1300px;
    height: 450px;
    max-height: 650px;
    background: white;
    color: black;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    z-index: 999;
}

/* Kontainer Chat 3 Maksimal */
#chat-container-3.maximized {
    width: 350px;
    height: 450px;
    display: flex;
}

/* Header Chat 3 */
#chat-header-3 {
    background: #FF5733;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Teks Header 3 */
#chat-header-3 span {
    color: white;
    font-weight: bold;
    font-size: 16px;
    flex-grow: 1;
    text-align: left;
}

/* Kontainer Tombol Minimize dan Restore Chat 3 */
#chat-controls-3 {
    display: flex;
}

/* Tombol Maximize, Restore, dan Minimize Chat 3 */
#maximize-3, #restore-3, #chat-toggle-3 {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    border-radius: 5px;
    margin-left: 2px;
}

/* Efek Hover pada Tombol Chat 3 */
#maximize-3:hover, #restore-3:hover, #chat-toggle-3:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#maximize-3 {
    display: block;
}

#restore-3 {
    display: none;
}

/* Area Isi Chat 3 */
#chat-body-3 {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow-y: auto;
}

#chat-messages-3 {
    flex: 1;
    margin-bottom: 10px;
    overflow-y: auto;
}

#chat-messages-3 ul,
#chat-messages-3 ol {
    padding-left: 1.5em;
}

#chat-messages-3 li {
    text-indent: -1.5em;
    padding-left: 1.5em;
    list-style-position: outside;
    white-space: pre-wrap;
}

#chat-messages-3 img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Input dan Tombol Kirim Chat 3 */
#chat-input-3 {
    width: calc(100% - 20px);
    padding: 5px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

#send-chat-3 {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #FF5733;
    cursor: pointer;
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
}

/* Pesan Pengguna Chat 3 */
.message-3.right {
    background-color: #edf2fb;
    color: black;
    align-self: flex-end;
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Pesan Bot Chat 3 */
.message-3.left {
    background-color: #ffffff;
    color: black;
    align-self: flex-start;
    padding: 8px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 100%;
    white-space: pre-wrap;
}

/* Gaya saat maximize untuk Chat 3 */
#chat-container-3.maximized {
    width: 120vw;
    height: 120vh;
    bottom: 0;
    right: 0;
    border-radius: 0;
}

/* Card obat */
.drug-card {
    background: #f9fafc;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #FF5733;
    margin-top: 6px;
    line-height: 1.6;
    font-size: 14px;
}

/* Judul obat */
.drug-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 6px;
    text-transform: capitalize;
}

/* Item tiap baris */
.drug-item {
    margin-bottom: 4px;
}

/* Label (Kelas, Indikasi, dll) */
.drug-item b {
    color: #FF5733;
}

/* ===== GUIDE CHAT 3 ===== */
.chat-guide-3 {
    background: #fff3ef;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid #FF5733;
    margin-top: 6px;
    line-height: 1.6;
    font-size: 14px;
}

.guide-title-3 {
    font-weight: bold;
    font-size: 16px;
    color: #FF5733;
    margin-bottom: 8px;
}

.guide-item-3 b {
    color: #FF5733;
}