/* Shared support assistant: WordFarm and Island Koala. */
.wfs-support-main { font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: #292929; }
.wfs-support-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
.wfs-support-heading { background: #f6f5f3; padding: 44px 0 36px; }
.wfs-support-heading h1 { font-size: clamp(34px, 4vw, 47.6px); line-height: 1.15; margin: 0 0 12px; }
.wfs-support-heading p { font-size: 1.2em; max-width: 40em; margin-block: 1em; }
.wfs-support-section { padding: 56px 0; }
@media (max-width: 760px) { .wfs-support-section { padding: 36px 0; } }
.wfs-chat {
    --wfs-red: #d62311;
    --wfs-red-deep: #a91b0d;
    --wfs-white: #fff;
    --wfs-neutral: #f6f5f3;
    --wfs-gray: #616161;
    --wfs-border: #d9d9d9;
    --wfs-radius: 16px;
}
.wfs-chat, .wfs-chat * { box-sizing: border-box; }
.wfs-chat a { color: var(--wfs-red-deep); }
.wfs-chat .wfs-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wfs-chat-form .wfs-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
    border: 2px solid var(--wfs-red); border-radius: 999px; background: var(--wfs-red); color: var(--wfs-white);
    font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.wfs-chat-form .wfs-button:hover { background: var(--wfs-red-deep); border-color: var(--wfs-red-deep); }
.wfs-chat-form .wfs-button:disabled { opacity: 0.6; cursor: default; }
.wfs-chat-header img { display: block; flex: none; width: 44px; height: 44px; }
.wfs-chat { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.wfs-chat-log {
    list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px;
    min-height: 220px; max-height: 60vh; overflow-y: auto; border: 1px solid var(--wfs-border);
    border-radius: var(--wfs-radius); background: var(--wfs-neutral);
}
.wfs-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; line-height: 1.5; }
.wfs-msg.is-greeting { white-space: normal; }
.wfs-msg.is-assistant { align-self: flex-start; background: var(--wfs-white); border: 1px solid var(--wfs-border); }
.wfs-msg.is-visitor { align-self: flex-end; background: var(--wfs-red); color: var(--wfs-white); }
.wfs-msg.is-typing { display: flex; gap: 5px; padding: 14px; }
.wfs-msg.is-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--wfs-gray); animation: wfs-typing 1.2s infinite ease-in-out; }
.wfs-msg.is-typing span:nth-child(2) { animation-delay: 0.2s; }
.wfs-msg.is-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wfs-typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.wfs-chat-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.wfs-chat-form textarea {
    flex: 1 1 260px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--wfs-border); border-radius: 12px;
    font: inherit; resize: vertical;
}
.wfs-chat-form textarea:focus { outline: 2px solid var(--wfs-red); outline-offset: 1px; }
.wfs-chat-captcha { flex-basis: 100%; }
.wfs-chat-status { margin: 0; color: var(--wfs-gray); }
.wfs-chat-status.is-error { color: var(--wfs-red-deep); font-weight: 600; }
.wfs-chat-tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.wfs-link-button {
    border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--wfs-red-deep);
    text-decoration: underline; cursor: pointer;
}
.wfs-link-button.is-suggested { background: #fff4f2; padding: 4px 10px; border-radius: 999px; text-decoration: none; }
.wfs-chat-rate { color: var(--wfs-gray); display: inline-flex; gap: 8px; align-items: center; }
.wfs-chat-rate.is-done .wfs-rate { opacity: 0.5; }
.wfs-rate {
    border: 1px solid var(--wfs-border); border-radius: 999px; background: var(--wfs-white); padding: 2px 12px;
    font: inherit; cursor: pointer;
}
.wfs-handoff { border: 1px solid var(--wfs-border); border-radius: var(--wfs-radius); padding: 20px; max-width: none; }
.wfs-handoff h2 { margin: 0; font-size: 1.3rem; }
.wfs-handoff p { margin: 0; }
.wfs-handoff-actions { display: flex; gap: 16px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .wfs-msg.is-typing span { animation: none; } }
.wfs-chat [hidden], .wfs-support-main [hidden] { display: none !important; }

/* A bounded conversation panel keeps the composer in view as messages arrive. */
.wfs-chat { max-width: 900px; margin-inline: auto; }
.wfs-chat-window { border: 1px solid var(--wfs-border); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(41,41,41,0.06); }
.wfs-chat-header { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--wfs-white); border-bottom: 1px solid var(--wfs-border); }
.wfs-chat-header img { border-radius: 12px; }
.wfs-chat-header strong, .wfs-chat-header span { display: block; }
.wfs-chat-header span { font-size: 0.85rem; color: var(--wfs-gray); margin-top: 2px; }
.wfs-chat-log { height: clamp(280px, 44vh, 480px); min-height: 280px; max-height: none; border: 0; border-radius: 0; padding: 24px; gap: 20px; background: #faf8f6; }
.wfs-msg { max-width: 82%; overflow-wrap: anywhere; padding: 12px 16px; box-shadow: 0 2px 4px rgba(0,0,0,0.03); }
.wfs-msg::before { content: attr(data-speaker); display: block; font-size: 0.72rem; font-weight: 700; opacity: 0.72; margin-bottom: 4px; }
.wfs-msg.is-assistant { border-radius: 4px 16px 16px; }
.wfs-msg.is-visitor { border-radius: 16px 4px 16px 16px; }
.wfs-msg.is-typing::before { display: none; }
.wfs-chat-form { padding: 16px; border-top: 1px solid var(--wfs-border); background: var(--wfs-white); }
.wfs-chat-form textarea { flex-basis: 200px; max-height: 140px; }
.wfs-chat-status, .wfs-chat-contact { padding: 8px 20px; }
.wfs-chat-tools { justify-content: space-between; padding: 4px 6px; }
@media (max-width: 760px) {
    .wfs-chat-header { padding: 14px; }
    .wfs-chat-log { padding: 16px; height: 45vh; }
    .wfs-msg { max-width: 92%; }
    .wfs-chat-form { flex-wrap: nowrap; gap: 8px; }
    .wfs-chat-form:has(.wfs-chat-captcha:not([hidden])) { flex-wrap: wrap; }
    .wfs-chat-form textarea { min-width: 0; }
    .wfs-chat-tools { gap: 12px; }
}

.wfs-support-main .ik-support-wrap { margin-top: 20px; }
