/* Oyemau Chatbot */

.oym-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f4630a;
  border: none;
  cursor: pointer;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(244,99,10,0.45);
  z-index: 99999;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.oym-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(244,99,10,0.6);
}

.oym-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #0d0d0d;
  border: 1px solid rgba(244,99,10,0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 99998;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.22s, transform 0.22s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.oym-window.oym-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.oym-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-bottom: 1px solid rgba(244,99,10,0.2);
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.oym-avatar {
  width: 38px;
  height: 38px;
  background: rgba(244,99,10,0.15);
  border: 1.5px solid rgba(244,99,10,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.oym-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oym-info strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.oym-info span {
  color: #6ee7b7;
  font-size: 0.72rem;
}
.oym-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.oym-close:hover { color: #fff; }

.oym-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244,99,10,0.3) transparent;
}
.oym-msgs::-webkit-scrollbar { width: 4px; }
.oym-msgs::-webkit-scrollbar-thumb { background: rgba(244,99,10,0.3); border-radius: 4px; }

.oym-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
}
.oym-msg.oym-bot {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e0e0e0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.oym-msg.oym-user {
  background: #f4630a;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.oym-msg.oym-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
  align-self: flex-start;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
}
.oym-msg.oym-typing span {
  width: 7px;
  height: 7px;
  background: #f4630a;
  border-radius: 50%;
  display: inline-block;
  animation: oym-bounce 1.2s infinite;
}
.oym-msg.oym-typing span:nth-child(2) { animation-delay: 0.2s; }
.oym-msg.oym-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes oym-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.oym-qr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 10px;
}
.oym-q {
  background: rgba(244,99,10,0.1);
  border: 1px solid rgba(244,99,10,0.3);
  color: #f4630a;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.oym-q:hover { background: rgba(244,99,10,0.22); }

.oym-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.oym-input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 0.84rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.oym-input:focus { border-color: rgba(244,99,10,0.5); }
.oym-input::placeholder { color: #555; }
.oym-send {
  background: #f4630a;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.oym-send:hover { background: #d95500; }

@media (max-width: 480px) {
  .oym-window { right: 12px; left: 12px; width: auto; bottom: 90px; }
  .oym-trigger { right: 16px; bottom: 20px; }
}
