/* Meowchi - Playmochi's assistant widget (chatbot-spec-v2).
   Palette matches the live site: cream #FCF9F3, borders #E4DBCD,
   brand orange #E8572A (hover #C94620), lavender #D4D1F5. */

.mw-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #E8572A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(60, 40, 20, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}
.mw-launcher:hover { background: #C94620; transform: scale(1.05); }
.mw-launcher svg { width: 30px; height: 30px; }

.mw-panel {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 9999;
  width: calc(100vw - 32px);
  max-width: 372px;
  max-height: 72vh;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #FCF9F3;
  border: 1px solid #E4DBCD;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(60, 40, 20, 0.22);
  font-family: inherit;
}
.mw-panel.mw-open { display: flex; }

.mw-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #F7F2EA;
  border-bottom: 1px solid #E4DBCD;
}
.mw-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #D4D1F5;
  color: #3C3489;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mw-avatar svg { width: 20px; height: 20px; }
.mw-head-name { font-weight: 600; font-size: 14px; color: #453A32; margin: 0; }
.mw-head-sub { font-size: 11.5px; color: #8A7E72; margin: 0; }

.mw-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}
.mw-row { display: flex; gap: 8px; align-items: flex-start; }
.mw-row .mw-avatar { width: 26px; height: 26px; }
.mw-row .mw-avatar svg { width: 15px; height: 15px; }
.mw-bubble {
  background: #F7F2EA;
  color: #453A32;
  border-radius: 14px 14px 14px 4px;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 88%;
}
.mw-bubble a { color: #C94620; text-decoration: underline; }
.mw-user {
  align-self: flex-end;
  background: #E8572A;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 9px 12px;
  font-size: 13.5px;
  max-width: 85%;
}

.mw-card {
  background: #fff;
  border: 1px solid #E4DBCD;
  border-radius: 12px;
  padding: 12px 14px;
  margin-left: 34px;
}
.mw-card-ctx { font-size: 11.5px; color: #8A7E72; margin: 0 0 6px; }
.mw-card-label { font-size: 12px; color: #8A7E72; margin: 0; }
.mw-card-band { font-size: 22px; font-weight: 600; color: #C94620; margin: 2px 0 8px; }
.mw-card-note { font-size: 11.5px; color: #8A7E72; line-height: 1.5; margin: 0; }

.mw-chips {
  padding: 12px 14px;
  border-top: 1px solid #E4DBCD;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #FCF9F3;
}
.mw-chip {
  border: 1px solid #E4DBCD;
  background: #fff;
  color: #453A32;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.mw-chip:hover { border-color: #E8572A; }
.mw-door {
  width: 100%;
  text-align: left;
  border: 1px solid #E4DBCD;
  background: #fff;
  color: #453A32;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease;
  font-family: inherit;
}
.mw-door:hover { border-color: #E8572A; }

.mw-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #E8572A;
  color: #fff !important;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  margin: 8px 0 0 34px;
  transition: background 0.15s ease;
}
.mw-cta:hover { background: #C94620; }

.mw-date {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #E4DBCD;
  background: #fff;
  color: #453A32;
  padding: 0 10px;
  font-size: 13px;
  flex: 1;
  font-family: inherit;
}
.mw-back {
  border: none;
  background: none;
  color: #8A7E72;
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  margin: 6px auto 0;
  display: block;
  font-family: inherit;
}
