/* FSC live chat widget — styled after the GoDaddy Conversations look */
[hidden] { display: none !important; }
.fsc-lightbox { position: fixed; inset: 0; z-index: 2147483001; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; }
.fsc-lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.fsc-lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.3rem; line-height: 1; }
.fsc-lightbox button:hover { background: rgba(255,255,255,.3); }
.fsc-lb-close { top: 18px; right: 18px; font-size: 1.7rem !important; }
.fsc-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.fsc-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

:root { --fsc-accent: #97b83b; --fsc-accent-dark: #86a532; }

.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 2147483000; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: #2f3640; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 3px 14px rgba(0,0,0,.22); transition: transform .15s; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; display: block; }

.chat-panel { position: fixed; right: 22px; bottom: 96px; z-index: 2147483000; width: 370px; max-width: calc(100vw - 44px); height: 560px; max-height: calc(100vh - 130px); background: #f3f4f5; border-radius: 14px; box-shadow: 0 12px 44px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
@media (max-width: 640px) {
  .chat-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 78vh; max-height: 78vh; border-radius: 0; }
  .chat-fab { right: 16px; bottom: 16px; }
}

.chat-head { background: #fff; color: #333; padding: 14px 16px 8px; text-align: center; position: relative; }
.chat-head-title { font-weight: 600; font-size: 1rem; color: #404040; }
.chat-head button { position: absolute; right: 10px; top: 10px; background: none; border: none; color: #8a8f98; cursor: pointer; padding: 4px; }
.chat-head button:hover { color: #404040; }

.chat-sub { background: #fff; text-align: center; padding: 2px 16px 14px; border-bottom: 1px solid #ececec; }
.chat-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--fsc-accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.chat-sub-text { font-size: .82rem; color: #8a8f98; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; }

.chat-greet { background: #fff; border-radius: 20px; padding: 12px 16px; font-size: .92rem; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,.08); display: inline-block; max-width: 90%; }
.chat-greet-meta { font-size: .74rem; color: #9aa0a8; margin: 6px 0 16px 6px; }

.chat-start input, .chat-start textarea { width: 100%; box-sizing: border-box; border: 1px solid #e2e4e7; background: #fff; border-radius: 10px; padding: 11px 13px; margin-bottom: 10px; font-family: inherit; font-size: .9rem; color: #333; }
.chat-start input:focus, .chat-start textarea:focus { outline: none; border-color: var(--fsc-accent); }
.chat-start textarea { resize: vertical; min-height: 70px; }
.chat-btn { width: 100%; border: none; background: var(--fsc-accent); color: #fff; padding: 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.chat-btn:hover { background: var(--fsc-accent-dark); }

.chat-thread .msg { margin-bottom: 4px; max-width: 85%; padding: 11px 15px; border-radius: 20px; font-size: .92rem; white-space: pre-wrap; word-break: break-word; }
.chat-thread .msg.visitor { background: var(--fsc-accent); color: #fff; margin-left: auto; border-bottom-right-radius: 6px; margin-bottom: 10px; }
.chat-thread .msg.admin { background: #fff; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,.08); border-bottom-left-radius: 6px; }
.chat-thread .meta { font-size: .72rem; color: #9aa0a8; margin: 3px 0 12px 6px; }
.chat-thread .sys { text-align: center; font-size: .76rem; color: #9aa0a8; margin: 10px 0; }

.chat-inputrow { display: flex; align-items: center; gap: 8px; background: #fff; border-top: 1px solid #ececec; padding: 8px 10px; margin: 0; }
.chat-inputrow input { flex: 1; border: none; padding: 11px 6px; font-size: .92rem; outline: none; font-family: inherit; background: transparent; color: #333; }
.chat-inputrow button { border: none; background: var(--fsc-accent); width: 38px; height: 38px; min-width: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-inputrow button:hover { background: var(--fsc-accent-dark); }

.chat-foot { background: #fff; text-align: center; padding: 5px; }
.chat-foot button { background: none; border: none; color: #9aa0a8; font-size: .76rem; cursor: pointer; }
.chat-foot button:hover { color: #333; }

.chat-teaser { position: fixed; right: 22px; bottom: 96px; z-index: 2147483000; width: 300px; max-width: calc(100vw - 44px); background: #fff; border-radius: 14px; box-shadow: 0 10px 36px rgba(0,0,0,.28); padding: 16px; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .35s; }
.chat-teaser-in { opacity: 1; transform: translateY(0); }
.chat-teaser-title { font-weight: 700; font-size: .95rem; color: #333; margin-bottom: 4px; }
.chat-teaser-text { font-size: .88rem; color: #666; margin-bottom: 12px; }
.chat-teaser-actions { display: flex; gap: 8px; }
.chat-teaser-actions button { flex: 1; border-radius: 8px; padding: 9px 8px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.chat-teaser-yes { background: var(--fsc-accent); color: #fff; border: none; }
.chat-teaser-yes:hover { background: var(--fsc-accent-dark); }
.chat-teaser-no { background: #fff; color: #666; border: 1px solid #ddd; }
.chat-teaser-no:hover { background: #f2f2f2; }
