/* iambymia chat widget — floating assistant for iambymia.com.
   Brand kit (finalized 2026-07-12, teal-led):
     Studio Teal #8CB8AE · Hunter Green #3E6660 · Rose Pink #E8699A
     Cream #FAF5ED · Espresso #1A1816 · Gold #BFA264
   Fonts: Playfair Display (headings), Raleway/DM Sans (body) — assumed loaded
   by the host site; the widget falls back gracefully if not. */

.imb-chat, .imb-chat * { box-sizing: border-box; }

.imb-chat {
  position: fixed; bottom: 24px; right: 24px; z-index: 2147483000;
  font-family: 'Raleway', 'DM Sans', -apple-system, Arial, sans-serif;
}

/* Launcher bubble */
.imb-chat-launcher {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: #3E6660; color: #FAF5ED;
  box-shadow: 0 6px 20px rgba(26, 24, 22, 0.28);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}
.imb-chat-launcher:hover { transform: translateY(-2px); background: #8CB8AE; color: #1A1816; }
.imb-chat-launcher svg { width: 28px; height: 28px; }
.imb-chat-launcher.imb-hidden { display: none; }

/* Panel */
.imb-chat-panel {
  position: absolute; bottom: 0; right: 0;
  width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 48px);
  background: #FAF5ED; border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 44px rgba(26, 24, 22, 0.32);
  display: none; flex-direction: column;
}
.imb-chat-panel.imb-open { display: flex; }

.imb-chat-header {
  background: #3E6660; color: #FAF5ED; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.imb-chat-header h3 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  margin: 0; font-size: 17px; line-height: 1.2;
  color: #BFA264; /* Antique Gold wordmark — the elevated/luxury accent */
}
.imb-chat-header p { margin: 2px 0 0; font-size: 12px; opacity: 0.85; }
.imb-chat-close {
  background: none; border: none; color: #FAF5ED; cursor: pointer;
  font-size: 22px; line-height: 1; padding: 4px; opacity: 0.85;
}
.imb-chat-close:hover { opacity: 1; }

/* Messages */
.imb-chat-log {
  flex: 1; overflow-y: auto; padding: 18px 16px; display: flex;
  flex-direction: column; gap: 12px;
}
.imb-chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.imb-chat-msg.imb-bot { background: #fff; color: #1A1816; border: 1px solid #e6ddcf; align-self: flex-start; border-bottom-left-radius: 4px; }
.imb-chat-msg.imb-user { background: #8CB8AE; color: #1A1816; align-self: flex-end; border-bottom-right-radius: 4px; }

.imb-chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; }
.imb-chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #8CB8AE;
  animation: imb-bounce 1.2s infinite ease-in-out;
}
.imb-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.imb-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes imb-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Composer */
.imb-chat-composer { border-top: 1px solid #e6ddcf; padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: #FAF5ED; }
.imb-chat-input {
  flex: 1; resize: none; border: 1px solid #d9cfbe; border-radius: 12px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; color: #1A1816;
  background: #fff; max-height: 120px; line-height: 1.4;
}
.imb-chat-input:focus { outline: none; border-color: #8CB8AE; }
.imb-chat-send {
  border: none; border-radius: 12px; cursor: pointer; padding: 0 16px; height: 42px;
  background: #E8699A; color: #fff; font-weight: 600; font-size: 14px;
  transition: background 0.15s ease;
}
.imb-chat-send:hover:not(:disabled) { background: #d1568a; }
.imb-chat-send:disabled { opacity: 0.5; cursor: default; }

.imb-chat-disclaimer { font-size: 10.5px; color: #8a8580; text-align: center; padding: 0 12px 10px; background: #FAF5ED; }
