/* Isolated from WordPress theme styles */
.gradient-chat-widget,
.gradient-chat-widget * {
  box-sizing: border-box;
}

.gradient-chat-widget {
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.gradient-chat-widget .wc-panel {
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100vh - 100px);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  color: #111827;
}

.gradient-chat-widget .wc-inline-wrap {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 16px;
}

.gradient-chat-widget .wc-header {
  background: #2563eb;
  color: #fff !important;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 16px;
}

.gradient-chat-widget .wc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  color: #111827;
}

.gradient-chat-widget .wc-msg {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 88%;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: #111827 !important;
  opacity: 1 !important;
  font-size: 14px !important;
}

.gradient-chat-widget .wc-msg-user {
  margin-left: auto;
  background: #dbeafe;
  color: #0f172a !important;
  text-align: right;
}

.gradient-chat-widget .wc-msg-bot {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111827 !important;
}

.gradient-chat-widget .wc-transfer {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  color: #7c2d12 !important;
  font-size: 14px !important;
}

.gradient-chat-widget .wc-transfer div {
  color: #7c2d12 !important;
}

.gradient-chat-widget .wc-transfer-text {
  color: #7c2d12 !important;
  margin-bottom: 10px;
}

.gradient-chat-widget .wc-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gradient-chat-widget .wc-btn-transfer-crisp {
  display: inline-block;
  margin-top: 0;
  padding: 10px 14px;
  background: #2563eb;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px !important;
  cursor: pointer;
}

.gradient-chat-widget .wc-btn-transfer-wa {
  display: inline-block;
  margin-top: 0;
  padding: 10px 14px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px !important;
  cursor: pointer;
}

.gradient-chat-widget .wc-btn-transfer-no {
  display: inline-block;
  padding: 10px 14px;
  background: #fff;
  color: #374151 !important;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px !important;
  cursor: pointer;
}

.gradient-chat-widget .wc-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.gradient-chat-widget .wc-input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px !important;
  color: #111827 !important;
  background: #fff !important;
  opacity: 1 !important;
}

.gradient-chat-widget .wc-input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.gradient-chat-widget .wc-send {
  border: none;
  background: #2563eb;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 600;
}

.gradient-chat-widget .wc-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #2563eb;
  color: #fff !important;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  z-index: 999998;
  line-height: 1;
}

.gradient-chat-widget.wc-handoff-active .wc-fab,
.gradient-chat-widget.wc-handoff-active .wc-floating {
  display: none !important;
}

.gradient-chat-widget .wc-floating {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 999999;
  display: none;
}

.gradient-chat-widget .wc-floating.open {
  display: block;
}
