/* Consulate Gemini Chat — widget styles
   Save to: /assets/css/chat-widget.css
   Uses your existing brand tokens: Lebanon red #ED1C24, Lebanon green #00A651 */

.cc-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ED1C24;
  color: #fff;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 9998;
  transition: transform 0.15s ease;
}
.cc-bubble:hover { transform: scale(1.06); background: #d4171d; }

.cc-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 9999;
  font-family: inherit;
}
.cc-panel.cc-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cc-header {
  background: linear-gradient(90deg, #ED1C24 0%, #00A651 100%);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.cc-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf9f8;
}

.cc-msg {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}
.cc-msg.cc-user {
  align-self: flex-end;
  background: #00A651;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.cc-msg.cc-assistant {
  align-self: flex-start;
  background: #fff;
  color: #222;
  border: 1px solid #eee;
  border-bottom-left-radius: 4px;
}

.cc-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  background: #999;
  border-radius: 50%;
  animation: cc-bounce 1.2s infinite ease-in-out;
}
.cc-typing span:nth-child(2) { animation-delay: 0.15s; }
.cc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes cc-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.cc-inputrow {
  display: flex;
  border-top: 1px solid #eee;
  padding: 10px;
  gap: 8px;
}
.cc-inputrow input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  outline: none;
}
.cc-inputrow input:focus { border-color: #00A651; }
.cc-inputrow button {
  background: #ED1C24;
  color: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.cc-inputrow button:hover { background: #d4171d; }

.cc-footer {
  font-size: 10px;
  color: #999;
  text-align: center;
  padding: 4px 10px 8px;
}

@media (max-width: 480px) {
  .cc-panel { right: 12px; bottom: 84px; width: calc(100vw - 24px); }
  .cc-bubble { right: 12px; bottom: 16px; }
}
