:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-dark: #013bb5;
  --color-primary-light: #eff6ff;
  --color-primary-border: #bfdbfe;

  --color-text-heading: #0f172a;
  --color-text-body: #475569;
  --color-text-muted: #64748b;

  --color-accent-blue: #0284c7;
  --color-accent-purple: #7c3aed;
  --color-accent-green: #059669;
  --color-accent-gold: #d97706;
  --color-accent-cyan: #06b6d4;
  --color-accent-amber: #d97706;

  --dark-text: #0f172a;
  --muted-text: #475569;
  --light-bg: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --accent-blue: #eff6ff;
  --success-color: #10b981;

  --bg-gradient-start: #f0f7ff;
  --bg-gradient-mid: #ffffff;
  --bg-gradient-end: #f8fafc;

  --radius-lg: 20px;
  --radius-md: 12px;

  --bg-header: rgba(255, 255, 255, 0.85);
  --bg-header-scrolled: rgba(255, 255, 255, 0.95);

  --shadow-header: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-header-scrolled: 0 10px 30px -5px rgba(15, 23, 42, 0.12);

  /* Background Colors */
  --bg-light: #f8fafc;
  --bg-ice-blue: #f0f5ff;
  --bg-card-white: rgba(255, 255, 255, 0.95);
  --bg-slate: #f8fafc;
  --bg-ice: #f0f6ff;
  --bg-card: #ffffff;

  /* Shadow Tokens */
  --shadow-sm: 0 4px 6px -1px rgba(2, 86, 235, 0.05);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(2, 86, 235, 0.12);
  --shadow-subtle: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 25px 50px -12px rgba(2, 86, 235, 0.22);

  /* Shadows */
  --shadow-glass: 0 20px 35px -10px rgba(37, 99, 235, 0.12),
    0 0 15px rgba(0, 0, 0, 0.02);
  --shadow-glass-hover: 0 25px 45px -10px rgba(37, 99, 235, 0.22);
  --shadow-button: 0 10px 25px -5px rgba(37, 99, 235, 0.35);

  /* Typography */
  --font-family-base: "Plus Jakarta Sans", "Inter", -apple-system,
    BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --bg-body: #f9f6f3;
  --text-color: #3f3f3f;
  --gray-color: #767676;
  --bold-color: #222222;
  --light: #fffbf6;
  --color-dark: #221f1d;
  --border: #dbdbd3;
  --shadow: 0 0 8px 1px #cccccc;
  --shadow-primary: 0 0 10px 1px var(--color-primary);
  --shadow-secondary: 0 0 10px 1px var(--color-secondary);
  --font-text: "open sans", sans-serif;
  --font-heading: "roboto", sans-serif;
  --gradient: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
}

.toolbar-link--ai-customer-service-admin-history::before{
  content: "" !important;

  width: 20px !important;
  height: 20px !important;

  -webkit-mask: url("../icons/chat.svg") center / 20px 20px no-repeat !important;
  mask: url("../icons/chat.svg") center / 20px 20px no-repeat !important;

  -webkit-mask-image: url("../icons/chat.svg") !important;
  mask-image: url("../icons/chat.svg") !important;

  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;

  -webkit-mask-position: center !important;
  mask-position: center !important;

  -webkit-mask-size: contain !important;
  mask-size: contain !important;
}

.acs-widget,
.acs-widget * {
  box-sizing: border-box;
}
.acs-widget {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #182230;
}
.acs-launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: var(--transition-smooth);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 5px;
}
.acs-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}
.acs-launcher-icon {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #ffffff26;
  font-size: 20px;
  align-content: center;
}
.acs-panel {
  width: min(370px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* border: 1px solid #d9e0e7; */
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 12px 48px #0003;
}
.acs-panel[hidden] {
  display: none;
}
.acs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  color: #fff;
  background: var(--gradient);
}
.acs-header-title {
  min-width: 0;
}
.acs-header strong {
  display: block;
  font-size: 15px;
  color: #fff;
}
.acs-header small {
  display: block;
  margin-top: 2px;
  opacity: 0.85;
  font-size: 11px;
}
.acs-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acs-clear {
  border: 1px solid #ffffff80;
  border-radius: 7px;
  padding: 6px 8px;
  background: #ffffff1a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.acs-clear:hover,
.acs-clear:focus {
  background: #ffffff30;
}
.acs-clear:disabled {
  opacity: 0.55;
  cursor: wait;
}
.acs-close {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.acs-whatsapp {
  display: block;
  margin: 10px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #168447;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.acs-whatsapp:hover,
.acs-whatsapp:focus {
  background: #116b39;
  color: #fff;
  text-decoration: none;
}
.acs-whatsapp[hidden] {
  display: none;
}
.acs-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px 12px;
  background: #f6f8fb;
}
.acs-message {
  max-width: 88%;
  margin: 0 0 11px;
  padding: 10px 12px;
  border-radius: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.5;
}
.acs-assistant {
  margin-right: auto;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
  background: #fff;
}
.acs-user {
  margin-left: auto;
  border-bottom-right-radius: 4px;
  background: var(--color-primary-border);
}
.acs-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #e5eaf0;
  background: #fff;
}
.acs-form textarea {
  flex: 1;
  min-width: 0;
  max-height: 100px;
  resize: none !important;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-size: 13px;
  color: #182230;
}
.acs-send {
  flex: 0 0 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.acs-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
.acs-note {
  padding: 0 12px 9px;
  color: #64748b;
  background: #fff;
  font-size: 10px;
}
.acs-widget .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .acs-widget {
    right: 12px;
    bottom: 12px;
  }
  .acs-panel {
    width: calc(100vw - 24px);
    height: min(72vh, 600px);
  }
}

/* Hilangkan semua kontrol resize pada widget AI Customer Service */
.acs-widget,
.acs-widget *,
.acs-panel,
.acs-messages,
.acs-form,
.acs-form textarea,
.acs-form input {
  resize: none !important;
}

/* Pastikan panel chat tidak bisa diubah ukurannya */
.acs-panel {
  overflow: hidden !important;
  min-width: 0;
  min-height: 0;
}

/* Hilangkan kemungkinan resize dari style tema Drupal */
.acs-widget textarea,
.acs-widget input,
.acs-widget div {
  -webkit-resize: none !important;
  resize: none !important;
}

/* Sembunyikan scrollbar area pesan */
.acs-messages {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* Internet Explorer */
  }
  
  .acs-messages::-webkit-scrollbar {
    display: none !important; /* Chrome, Edge, Safari */
    width: 0 !important;
    height: 0 !important;
  }
  
  /* Sembunyikan scrollbar di seluruh widget chat */
  .acs-widget,
  .acs-widget * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  
  .acs-widget *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
/* Required visitor details shown before the first chat message. */
.acs-contact-form { padding: 18px 16px; background: #fff; }
.acs-contact-form[hidden] { display: none !important; }
.acs-contact-form > p:first-child { margin: 0 0 14px; font-size: 13px; color: #475569; }
.acs-contact-form label { display: block; margin: 0 0 12px; color: #334155; font-size: 12px; font-weight: 600; }
.acs-contact-form input { display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #182230; font: inherit; font-size: 13px; }
.acs-contact-submit { width: 100%; border: 0; border-radius: 9px; padding: 11px 14px; background: var(--gradient); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.acs-contact-error { color: #b91c1c !important; margin: 10px 0 0 !important; }
.acs-contact-error[hidden] { display: none !important; }
.acs-contact-form[hidden] + .acs-whatsapp { margin-top: 10px; }
.acs-messages[hidden], .acs-form[hidden], .acs-note[hidden] { display: none !important; }

/* Tombol keluar untuk mengakhiri sesi pengunjung dan memasukkan data baru. */
.acs-logout {
  border: 1px solid #ffffff80;
  border-radius: 7px;
  padding: 6px 9px;
  background: #ffffff1a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
}
.acs-logout[hidden] { display: none !important; }
.acs-logout:hover, .acs-logout:focus { background: #ffffff30; }
.acs-logout:disabled { opacity: .55; cursor: wait; }

.form-textarea-wrapper textarea {
  min-height: 500px;
}