/* SIB chat: the texting-style contact used on the SIB pages (same look as the Lowman Weddings chat). */
.chat {
  --c-green: #1E3A2B; --c-green-deep: #14281D; --c-gold: #C2A066; --c-cream: #F6F1E6; --c-white: #FFFDF8;
  --c-ink: #1B1F1C; --c-ink-soft: #4A5550; --c-mist: #D9CFB8; --c-brown: #5A4A2A;
  background: var(--c-cream); border: 1px solid var(--c-mist); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; text-align: left; color: var(--c-ink);
  box-shadow: 0 18px 40px rgba(20, 40, 29, .18);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--c-green); color: var(--c-cream); }
.chat-head strong { display: block; font-family: 'Libre Caslon Text', Georgia, serif; font-weight: 400; font-size: 18px; line-height: 1.2; }
.chat-head span { font-size: 13px; color: var(--c-mist); }
.chat p.chat-who { max-width: none; text-align: left; margin: 0; padding: 10px 18px; font-size: 13.5px; line-height: 1.45; color: var(--c-ink-soft); background: var(--c-white); border-bottom: 1px solid var(--c-mist); }
.chat-log { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-height: 260px; max-height: 380px; overflow-y: auto; }
.chat .msg { max-width: 82%; padding: 10px 15px; border-radius: 20px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; animation: sib-msg-in .25s ease-out both; }
.chat .row-them { align-self: flex-start; display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.chat .row-them svg { flex: none; }
.chat .row-them .msg { max-width: none; }
.chat .msg.them { align-self: flex-start; background: var(--c-green); color: var(--c-cream); border-bottom-left-radius: 6px; }
.chat .msg.me { align-self: flex-end; background: var(--c-gold); color: var(--c-green-deep); border-bottom-right-radius: 6px; }
.chat .msg.typing { display: flex; gap: 5px; padding: 14px 16px; }
.chat .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-mist); animation: sib-dot 1s infinite ease-in-out; }
.chat .msg.typing i:nth-child(2) { animation-delay: .15s; } .chat .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sib-msg-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sib-dot { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chat .msg, .chat .msg.typing i { animation: none; } }
.chat .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 0 18px 12px; }
.chat .chips:empty { display: none; }
.chat .chip { background: var(--c-white); color: var(--c-green); border: 1.5px solid var(--c-green); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.chat .chip:hover, .chat .chip.on { background: var(--c-green); color: var(--c-cream); }
.chat .chip:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
.chat-bar { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--c-mist); background: var(--c-white); margin: 0; }
.chat-bar input { flex: 1; min-width: 0; margin: 0; background: var(--c-cream); color: var(--c-ink); border: 1px solid var(--c-mist); border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 16px; }
.chat-bar input::placeholder { color: var(--c-ink-soft); }
.chat-bar input:focus { outline: 2px solid var(--c-gold); outline-offset: 1px; border-color: transparent; }
.chat-bar input:disabled { opacity: .6; }
.chat .send { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--c-green); color: var(--c-cream); display: grid; place-items: center; cursor: pointer; padding: 0; }
.chat .send:hover { background: var(--c-green-deep); }
.chat .send:disabled { opacity: .35; cursor: default; }
.chat p.chat-error { max-width: none; margin: 0; padding: 0 18px 10px; font-size: 14px; color: var(--c-brown); }
.chat p.chat-error:empty { display: none; }
.chat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat a.msg-link { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; background: var(--c-gold); color: var(--c-green-deep); }
.chat a.msg-link:hover { background: #CDAE78; }
/* Embedded 17hats form: one card in the conversation */
.chat-embed .chat-log { max-height: none; }
.chat .msg-form { align-self: stretch; background: var(--c-white); border: 1px solid var(--c-mist); border-radius: 18px; overflow: hidden; animation: sib-msg-in .25s ease-out both; }
.chat .msg-form iframe { display: block; width: 100%; height: 600px; border: 0; background: var(--c-white); }
