#rise-chat-widget {
  --rc-bg: #ffffff;
  --rc-card: #f4f4f4;
  --rc-gold: #C9A97A;
  --rc-text: #333333;
  --rc-border: #cccccc;
  --rc-user-bubble: #C9A97A;
  --rc-user-text: #ffffff;

  font-family: 'Lato', sans-serif;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#rc-toggle-btn {
  width: 60px;
  height: 60px;
  background: var(--rc-gold);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(201, 169, 122, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

#rc-toggle-btn:hover { transform: scale(1.05); }
#rc-toggle-btn svg { width: 28px; height: 28px; fill: #fff; }

#rc-chat-window {
  width: 350px;
  height: 500px;
  background: var(--rc-bg);
  border: 1px solid var(--rc-border);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

#rc-chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.rc-header {
  background: #f4f4f4;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rc-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rc-title {
  color: var(--rc-gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.rc-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.rc-close:hover { color: #000; }

.rc-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}

.rc-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.rc-msg.bot {
  background: var(--rc-card);
  color: var(--rc-text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.rc-msg.user {
  background: var(--rc-user-bubble);
  color: var(--rc-user-text);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}

.rc-typing {
  font-size: 0.75rem;
  color: #888;
  margin-left: 10px;
  display: none;
}

.rc-input-area {
  padding: 16px;
  border-top: 1px solid var(--rc-border);
  display: flex;
  gap: 10px;
  background: #fff;
}

.rc-input {
  flex: 1;
  background: #f9f9f9;
  border: 1px solid #ddd;
  color: var(--rc-text);
  padding: 10px 14px;
  border-radius: 20px;
  outline: none;
  font-family: inherit;
}
.rc-input:focus { border-color: var(--rc-gold); }

.rc-send {
  background: var(--rc-gold);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rc-send svg { width: 18px; height: 18px; fill: #fff; }

@media (max-width: 480px) {
  #rc-chat-window { width: 100%; height: 100%; right: 0; bottom: 0; border-radius: 0; }
  #rise-chat-widget { width: 100%; height: 100%; bottom: 0; right: 0; pointer-events: none; }
  #rc-toggle-btn { pointer-events: auto; position: absolute; bottom: 20px; right: 20px; }
}
