#enq-bubble {
  position: fixed !important;
  bottom: calc(var(--bottom-nav-height, 56px) + var(--safe-bottom, 0px) + 20px) !important; /* Raised to reduce gap to Instagram FAB */
  right: 20px !important;
  z-index: 9000 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: linear-gradient(135deg, #ffffff, #dce3e8) !important; /* Premium polished whitish silver */
  color: #064b61 !important; /* Contrast dark teal icon */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  transition: transform 0.2s ease !important;
}

#enq-bubble svg {
  width: 18px !important;
  height: 18px !important;
}

#enq-bubble:active {
  transform: scale(0.93) !important;
}

#enq-panel {
  position: fixed;
  bottom: calc(var(--bottom-nav-height, 56px) + var(--safe-bottom, 0px) + 80px); /* Aligned with raised bubble position */
  right: 20px;
  width: 300px;
  max-width: calc(100vw - 36px);
  height: 440px;
  max-height: calc(100vh - 140px);
  z-index: 8889;
  background: var(--surface); /* Reverted to elegant brand surface background */
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22,1,0.36,1);
}

#enq-panel.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

#enq-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  background: var(--accent);
  color: var(--bg);
  flex-shrink: 0;
}

#enq-header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

#enq-title {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: 0.03em;
}

#enq-subtitle {
  font-family: var(--sans);
  font-size: 10px;
  opacity: 0.65;
  color: var(--bg);
  letter-spacing: 0.02em;
  margin-top: 1px;
}

#enq-close {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  background: none;
  border: none;
  color: var(--bg);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.15s;
}

#enq-close:hover {
  opacity: 1;
}

#enq-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
  background: var(--surface); /* Reverted to brand surface background */
}

#enq-messages::-webkit-scrollbar {
  width: 3px;
}

#enq-messages::-webkit-scrollbar-track {
  background: transparent;
}

#enq-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.enq-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  word-break: break-word;
}

.enq-msg-bot {
  background: var(--bg); /* Highly readable contrasting bot bubbles */
  color: var(--text);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.enq-msg-user {
  background: var(--accent);
  color: var(--bg);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border: none;
}

#enq-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface); /* Reverted to brand surface background */
}

#enq-input {
  flex: 1;
  background: var(--bg); /* Flat input integrated beautifully */
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

#enq-input::placeholder {
  color: var(--muted);
  font-size: 12px;
}

#enq-input:focus {
  border-color: var(--accent);
}

#enq-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
}

#enq-send:active {
  opacity: 0.8;
  transform: scale(0.93);
}

@media (min-width: 768px) {
  #enq-bubble {
    bottom: 30px !important;
    right: 24px !important;
  }

  #enq-panel {
    bottom: 90px !important;
    right: 24px !important;
  }
}
