/* Maple Chat: support chat for Maple Canada. Matches the site's dark red theme. */
.mc-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  background: #e63946; color: #fff; border: 0; border-radius: 999px;
  padding: 13px 20px; font: 700 16px/1 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,.45); cursor: pointer;
}
.mc-launcher:active { transform: scale(.97); }
.mc-launcher .mc-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: none; }
.mc-launcher.has-new .mc-dot { display: inline-block; }

.mc-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 36px));
  background: #141920; border: 1px solid #2c3440; border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
  display: none; flex-direction: column; overflow: hidden; color: #fff;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.mc-panel.open { display: flex; }
.mc-panel.inline {
  position: static; display: flex; width: 100%; max-width: 560px; height: 620px; margin: 0 auto; box-shadow: none;
}
.mc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #1a2029; border-bottom: 1px solid #2c3440; }
.mc-head .mc-title { font-weight: 800; font-size: 17px; line-height: 1.2; }
.mc-head .mc-sub { color: #9aa0a6; font-size: 12.5px; }
.mc-head .mc-x { margin-left: auto; background: none; border: 0; color: #9aa0a6; font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.mc-panel.inline .mc-x { display: none; }

.mc-body { flex: 1; overflow-y: auto; padding: 16px; -webkit-overflow-scrolling: touch; }
.mc-intro { color: #c9d1d9; font-size: 15px; margin-bottom: 14px; }
.mc-form label { display: block; font-size: 14px; color: #c9d1d9; margin: 12px 0 5px; font-weight: 600; }
.mc-form label .mc-opt { color: #6b7280; font-weight: 400; }
/* 16px inputs stop iPhones and iPads from zooming in on the text box. */
.mc-form input, .mc-form select, .mc-form textarea, .mc-compose textarea {
  width: 100%; font-size: 16px; color: #fff; background: #0e1116;
  border: 1px solid #2c3440; border-radius: 12px; padding: 11px 12px; font-family: inherit;
}
.mc-form textarea { min-height: 76px; resize: vertical; }
.mc-form input:focus, .mc-form select:focus, .mc-form textarea:focus, .mc-compose textarea:focus { outline: 2px solid #e63946; border-color: transparent; }
.mc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mc-privacy { color: #6b7280; font-size: 12.5px; margin-top: 12px; }
.mc-btn { display: block; width: 100%; margin-top: 14px; background: #e63946; color: #fff; border: 0; border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 700; cursor: pointer; }
.mc-btn[disabled] { opacity: .6; cursor: default; }
.mc-err { color: #ff7b86; font-size: 14px; margin-top: 10px; min-height: 1em; }

.mc-msg { max-width: 85%; margin: 0 0 10px; }
.mc-msg .mc-who { font-size: 11.5px; color: #6b7280; margin: 0 4px 3px; }
.mc-msg .mc-text { padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.mc-msg.visitor { margin-left: auto; }
.mc-msg.visitor .mc-who { text-align: right; }
.mc-msg.visitor .mc-text { background: #e63946; color: #fff; border-bottom-right-radius: 5px; }
.mc-msg.ai .mc-text, .mc-msg.auto .mc-text { background: #1f2630; color: #e6e8eb; border-bottom-left-radius: 5px; }
.mc-msg.mike .mc-text { background: #23324a; color: #fff; border-bottom-left-radius: 5px; border: 1px solid #36507a; }
.mc-typing { color: #6b7280; font-size: 13px; margin: 0 4px 10px; display: none; }
.mc-typing.on { display: block; }
.mc-status { text-align: center; color: #6b7280; font-size: 12.5px; margin: 4px 0 12px; }

.mc-compose { display: none; gap: 8px; padding: 10px 12px; border-top: 1px solid #2c3440; background: #141920; align-items: flex-end; }
.mc-compose.on { display: flex; }
.mc-compose textarea { min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; }
.mc-compose button { background: #e63946; color: #fff; border: 0; border-radius: 12px; padding: 0 16px; height: 44px; font-weight: 700; font-size: 15px; cursor: pointer; }
.mc-foot { display: none; justify-content: space-between; padding: 0 14px 10px; font-size: 12.5px; color: #6b7280; }
.mc-foot.on { display: flex; }
.mc-foot button { background: none; border: 0; color: #9aa0a6; font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }

@media (max-width: 560px) {
  .mc-panel:not(.inline) { right: 0; bottom: 0; width: 100vw; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .mc-launcher { right: 12px; bottom: 12px; }
}
