/* Ask Myra — lightweight on-page assistant (Phase 3). */
.myra-fab {
  position: fixed;
  right: 15px;
  bottom: 75px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #364757;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.myra-fab:hover { background: #2a3947; }
.myra-fab i { color: #ee9002; font-size: 18px; }

.myra-panel {
  position: fixed;
  right: 15px;
  bottom: 135px;
  z-index: 99991;
  width: 360px;
  max-width: calc(100vw - 30px);
  max-height: min(560px, calc(100vh - 160px));
  display: none;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e0dc;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
.myra-panel.open { display: flex; }

.myra-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #364757;
  color: #ffffff;
}
.myra-head .myra-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ee9002;
  color: #1d1918;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.myra-head h2 { font-size: 16px; font-weight: 700; margin: 0; color: #fff; }
.myra-head p { font-size: 12px; margin: 0; opacity: 0.8; }
.myra-close {
  margin-left: auto;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.myra-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf7f4;
}
.myra-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
}
.myra-msg.bot {
  background: #ffffff;
  border: 1px solid #eee6df;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.myra-msg.user {
  background: #364757;
  color: #ffffff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.myra-msg a { color: #9c5f00; font-weight: 600; }
.myra-msg ul { margin: 6px 0 0; padding-left: 18px; }

.myra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: #faf7f4;
}
.myra-chip {
  border: 1px solid #d9cfc6;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #473d3a;
  cursor: pointer;
}
.myra-chip:hover { border-color: #ee9002; color: #9c5f00; }

.myra-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee6df;
  background: #ffffff;
}
.myra-form input {
  flex: 1;
  min-height: 44px;
  border: 1px solid #d9cfc6;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}
.myra-form button {
  min-width: 48px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: #ee9002;
  color: #1d1918;
  font-size: 18px;
  cursor: pointer;
}
.myra-form button:hover { background: #c77800; color: #fff; }

@media (max-width: 480px) {
  .myra-panel { right: 8px; left: 8px; width: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .myra-panel.open { animation: myra-in 0.18s ease-out; }
  @keyframes myra-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
