/*!
 * Platflix Booking for WordPress · Copyright (c) 2026 Spiros Konispoliatis.
 * Released under GPL-2.0-or-later (the WordPress plugin only); the Platflix platform itself is proprietary.
 */
/* Platflix chat bubble. Colour: Settings → Platflix → Chat colour (or override --pfxc-accent in the theme). */
#pfxc { --pfxc-accent: #2563eb; --pfxc-bg: #fff; --pfxc-soft: #f3f4f6; --pfxc-text: #111827; --pfxc-muted: #6b7280; --pfxc-line: #e5e7eb;
        position: fixed; right: 16px; bottom: 16px; z-index: 99990; font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--pfxc-text); }
@media (prefers-color-scheme: dark) {
    #pfxc { --pfxc-bg: #111827; --pfxc-soft: #1f2937; --pfxc-text: #f9fafb; --pfxc-muted: #9ca3af; --pfxc-line: #374151; }
}
#pfxc *, #pfxc *::before, #pfxc *::after { box-sizing: border-box; }
#pfxc [hidden] { display: none !important; }
#pfxc .pfxc-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; margin-left: auto; display: flex;
    align-items: center; justify-content: center; background: var(--pfxc-accent); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); padding: 0; }
#pfxc .pfxc-btn:hover { filter: brightness(1.08); }
#pfxc .pfxc-btn:focus-visible, #pfxc button:focus-visible { outline: 3px solid var(--pfxc-accent); outline-offset: 2px; }
#pfxc .pfxc-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #dc2626;
    color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
#pfxc .pfxc-panel { position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 110px);
    display: flex; flex-direction: column; background: var(--pfxc-bg); border: 1px solid var(--pfxc-line); border-radius: 16px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25); }
#pfxc .pfxc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--pfxc-accent); color: #fff; }
#pfxc .pfxc-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pfxc .pfxc-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; min-height: 32px; }
#pfxc .pfxc-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
#pfxc .pfxc-msg { max-width: 85%; padding: 8px 11px; border-radius: 14px; overflow-wrap: anywhere; }
#pfxc .pfxc-company { align-self: flex-start; background: var(--pfxc-soft); border-bottom-left-radius: 4px; }
#pfxc .pfxc-me { align-self: flex-end; background: var(--pfxc-accent); color: #fff; border-bottom-right-radius: 4px; }
#pfxc .pfxc-txt { white-space: pre-wrap; }
#pfxc .pfxc-at { font-size: 11px; opacity: .7; margin-top: 2px; text-align: right; }
#pfxc .pfxc-form { border-top: 1px solid var(--pfxc-line); padding: 10px; display: grid; gap: 6px; }
#pfxc .pfxc-intro { display: grid; gap: 6px; }
#pfxc .pfxc-note { margin: 0; font-size: 13px; color: var(--pfxc-muted); }
#pfxc input, #pfxc textarea { width: 100%; margin: 0; padding: 8px 10px; border: 1px solid var(--pfxc-line); border-radius: 10px; background: var(--pfxc-bg);
    color: inherit; font: inherit; font-size: 16px; min-height: 40px; }
#pfxc textarea { resize: none; min-height: 44px; }
#pfxc .pfxc-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
#pfxc .pfxc-row { display: flex; gap: 6px; align-items: flex-end; }
#pfxc .pfxc-send { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--pfxc-accent); color: #fff;
    font: inherit; font-weight: 600; cursor: pointer; }
#pfxc .pfxc-send:disabled { opacity: .6; cursor: wait; }
#pfxc .pfxc-err { color: #dc2626; font-size: 13px; }
#pfxc .pfxc-err:empty { display: none; }
@media (max-width: 480px) {
    #pfxc { right: 12px; bottom: 12px; }
    #pfxc .pfxc-panel { position: fixed; inset: 8px 8px 82px 8px; width: auto; max-width: none; height: auto; max-height: none; }
}

