/* aimsg example section for /product/aimsg #setalk. 2026-11-22 v2 */
.aimsg-ex-banner {
  display: block;
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 2px solid #071833;
  border-radius: 12px;
  background: #fff4cc;
  color: #071833;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: center;
}
.aimsg-ex {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.55fr);
  gap: 16px;
  align-items: start;
  margin-top: 24px;
}
.aimsg-ex figure {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ai-line);
}
.aimsg-ex figcaption { margin-top: 12px; }
.aimsg-ex figcaption p { margin-bottom: 6px; color: var(--ai-muted); }
.aimsg-ex-app,
.aimsg-ex-phone { position: relative; }
.aimsg-ex-ribbon {
  display: block;
  padding: 7px 12px;
  border: 0;
  border-bottom: 2px solid #071833;
  border-radius: 0;
  background: #fff4cc;
  color: #071833;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.02em;
}
.aimsg-ex-app {
  display: grid;
  grid-template-columns: 56px 200px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  height: 620px;
  border: 1px solid #d5deea;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f7fb;
  font-size: 12.5px;
  line-height: 1.45;
  color: #1a2330;
}
.aimsg-ex-app > .aimsg-ex-ribbon { grid-column: 1 / -1; }
.aimsg-ex-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
  background: #0b1f3a;
  color: #fff;
}
.aimsg-ex-rail__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ff6b2c;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.aimsg-ex-rail__btn {
  width: 44px;
  min-height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}
.aimsg-ex-rail__btn.is-on { background: rgba(255,255,255,0.14); color: #fff; }
.aimsg-ex-rail__me {
  margin-top: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}
.aimsg-ex-side {
  background: #f7f9fc;
  border-right: 1px solid #e2e8f0;
  overflow: hidden;
  padding: 12px 10px;
}
.aimsg-ex-side__head strong {
  display: block;
  font-size: 12.5px;
  letter-spacing: -0.03em;
}
.aimsg-ex-side__head span {
  display: block;
  color: #4a5b6c;
  font-size: 11px;
  margin: 2px 0 8px;
}
.aimsg-ex-side__sec {
  margin: 12px 0 6px;
  color: #4a5b6c;
  font-size: 11px;
  font-weight: 800;
}
.aimsg-ex-ch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px;
  padding: 7px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}
.aimsg-ex-ch.is-on { background: #eff4ff; }
.aimsg-ex-ch__name { font-weight: 700; font-size: 12.5px; }
.aimsg-ex-ch__meta { color: #4a5b6c; font-size: 10px; }
.aimsg-ex-ch__preview {
  grid-column: 1 / -1;
  color: #4a5b6c;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aimsg-ex-chat { display: flex; flex-direction: column; background: #fff; min-width: 0; }
.aimsg-ex-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  min-height: 52px;
}
.aimsg-ex-chat__head strong { display: block; font-size: 15px; letter-spacing: -0.03em; }
.aimsg-ex-chat__head span { color: #4a5b6c; font-size: 11.5px; }
.aimsg-ex-assign {
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff4ff;
  color: #1d4e9f;
  font-size: 11px;
  font-weight: 800;
}
.aimsg-ex-push {
  margin: 0;
  padding: 8px 14px;
  background: #071833;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.aimsg-ex-chat__body {
  flex: 1;
  overflow: visible;
  padding: 8px 16px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aimsg-ex-day {
  align-self: center;
  margin: 4px 0;
  color: #4a5b6c;
  font-size: 11px;
  font-weight: 700;
}
.aimsg-ex-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-items: start; }
.aimsg-ex-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1d4e9f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aimsg-ex-av--b { background: #0f766e; }
.aimsg-ex-msg__meta { margin: 0 0 4px; color: #4a5b6c; font-size: 11px; }
.aimsg-ex-msg__meta time { margin-left: 6px; }
.aimsg-ex-bubble {
  margin: 0;
  max-width: 78%;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #f1f5f9;
  color: #1a2330;
  font-size: 13px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.aimsg-ex-bubble.is-open { box-shadow: 0 0 0 2px #2563eb; }
.aimsg-ex-quote {
  margin: 0 0 6px;
  max-width: 78%;
  padding: 6px 8px;
  border-left: 3px solid #2563eb;
  border-radius: 6px;
  background: #f8fafc;
  color: #4a5b6c;
  font-size: 11.5px;
}
.aimsg-ex-react {
  margin: 4px 0 0;
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}
.aimsg-ex-menu {
  margin-top: 6px;
  position: relative;
  z-index: 3;
  width: min(180px, 100%);
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(11, 31, 74, 0.16);
  overflow: hidden;
}
.aimsg-ex-menu__title {
  margin: 0;
  padding: 8px 12px 6px;
  color: #4a5b6c;
  font-size: 11px;
  font-weight: 800;
}
.aimsg-ex-menu ul { list-style: none; margin: 0; padding: 0 0 6px; }
.aimsg-ex-menu li {
  margin: 0;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1a2330;
}
.aimsg-ex-composer, .aimsg-ex-phone__input {
  position: relative;
  z-index: 1;
  margin: 8px 12px 12px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  color: #4a5b6c;
  background: #fff;
  font-size: 12.5px;
}
.aimsg-ex-phone {
  width: min(100%, 300px);
  margin: 0 auto;
  height: 560px;
  border: 1.5px solid #c5d0de;
  border-radius: 36px;
  box-shadow: 0 16px 40px rgba(11, 31, 74, 0.12);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #1a2330;
}
.aimsg-ex-phone__head {
  padding: 12px 16px;
  background: #0b1f3a;
  color: #fff;
}
.aimsg-ex-phone__head strong { display: block; font-size: 15px; letter-spacing: -0.03em; }
.aimsg-ex-phone__head span { color: rgba(255,255,255,0.76); font-size: 11.5px; }
.aimsg-ex-hours {
  margin: 0;
  padding: 8px 14px;
  background: #fff4cc;
  color: #6b5200;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  word-break: keep-all;
  line-height: 1.45;
}
.aimsg-ex-phone__body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #e7edf5;
}
.aimsg-ex-cmsg--in { align-self: flex-end; max-width: 86%; }
.aimsg-ex-cmsg--out { align-self: flex-start; max-width: 86%; }
.aimsg-ex-cmsg__meta { margin: 0 0 4px; color: #4a5b6c; font-size: 11px; }
.aimsg-ex-cmsg--in .aimsg-ex-cmsg__meta { text-align: right; }
.aimsg-ex-cbubble {
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #0b1f4a;
  color: #fff;
  word-break: keep-all;
}
.aimsg-ex-cbubble--in {
  border-radius: 14px 14px 4px 14px;
  background: #fff;
  color: #1a2330;
  border: 1px solid #d9e1ee;
}
.aimsg-ex-feat-title {
  margin: 36px 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .aimsg-ex { grid-template-columns: 1fr; }
  .aimsg-ex-app { height: auto; min-height: 620px; }
  .aimsg-ex-phone { height: 520px; }
}
@media (max-width: 700px) {
  .aimsg-ex-app { grid-template-columns: 1fr; height: auto; }
  .aimsg-ex-rail, .aimsg-ex-side { display: none; }
  .aimsg-ex-chat__body { min-height: 320px; }
}
