/**
 * Style FAB i okna czatu na froncie. CHAT-VISUAL-SETUP-PLAN.md.
 * Zmienne wyglądu (jak w Helper) – można nadpisać w motywie.
 * Aura FAB, ikona po środku, animacje otwarcia/zamknięcia okna.
 */
.drone-flow-chat-widget {
    --drone-flow-chat-primary: #2271b1;
    --drone-flow-chat-primary-hover: #135e96;
    --drone-flow-chat-header-bg: #1d2327;
    --drone-flow-chat-bubble-user: #2271b1;
    --drone-flow-chat-bubble-bot: #f0f0f1;
    --drone-flow-chat-voice-btn-bg: #f0f0f1;
    --drone-flow-chat-voice-btn-active: #d63638;
    --drone-flow-chat-fab-aura-color: var(--drone-flow-chat-primary, #2271b1);
    --drone-flow-chat-fab-aura-scale: 1.8;
    --drone-flow-chat-window-open-duration: 0.28s;
    --drone-flow-chat-window-close-duration: 0.22s;
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    font-size: 14px;
    contain: layout style;
    border: none !important;
}
.drone-flow-chat-pos-bottom-right {
    bottom: 20px;
    right: 20px;
}
.drone-flow-chat-pos-bottom-left {
    bottom: 20px;
    left: 20px;
}
.drone-flow-chat-pos-top-right {
    top: 20px;
    right: 20px;
}
.drone-flow-chat-pos-top-left {
    top: 20px;
    left: 20px;
}

/* FAB wrapper – stały rozmiar = przycisk (bez wpływu whitespace/inline-block), aura w wrap */
.drone-flow-chat-fab-wrap {
    --drone-flow-chat-fab-wrap-side: calc(var(--drone-flow-chat-fab-padding, 14px) * 2 + var(--drone-flow-chat-fab-icon-size, 24px));
    position: relative;
    display: block;
    width: var(--drone-flow-chat-fab-wrap-side);
    height: var(--drone-flow-chat-fab-wrap-side);
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: visible;
    border: none !important;
}
/* Aura – pseudo wypełnia wrap (wrap = rozmiar przycisku), transform-origin: center = środek przycisku */
.drone-flow-chat-widget[data-fab-aura="1"] .drone-flow-chat-fab-wrap::before,
.drone-flow-chat-widget[data-fab-aura="1"] .drone-flow-chat-fab-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
    pointer-events: none;
}
.drone-flow-chat-widget[data-fab-aura="1"] .drone-flow-chat-fab-wrap::before {
    transform: scale(var(--drone-flow-chat-fab-aura-scale, 1.8));
    transform-origin: center center;
    background: var(--drone-flow-chat-fab-aura-color);
    opacity: 0.35;
    animation: drone-flow-chat-aura-pulse 2.2s ease-in-out infinite;
}
.drone-flow-chat-widget[data-fab-aura="1"] .drone-flow-chat-fab-wrap::after {
    transform: scale(calc(var(--drone-flow-chat-fab-aura-scale, 1.8) * 0.85));
    transform-origin: center center;
    box-shadow: 0 0 0 0 var(--drone-flow-chat-fab-aura-color);
    opacity: 0.25;
    animation: drone-flow-chat-aura-ring 2.5s ease-out infinite;
}
@keyframes drone-flow-chat-aura-pulse {
    0%, 100% { opacity: 0.25; transform: scale(var(--drone-flow-chat-fab-aura-scale, 1.8)); }
    50% { opacity: 0.45; transform: scale(calc(var(--drone-flow-chat-fab-aura-scale, 1.8) * 1.08)); }
}
@keyframes drone-flow-chat-aura-ring {
    0% { box-shadow: 0 0 0 0 var(--drone-flow-chat-fab-aura-color); opacity: 0.3; }
    70% { box-shadow: 0 0 0 18px transparent; opacity: 0; }
    100% { box-shadow: 0 0 0 0 transparent; opacity: 0; }
}

.drone-flow-chat-widget .drone-flow-chat-fab,
.drone-flow-chat-widget button.drone-flow-chat-fab {
    --drone-flow-chat-fab-side: calc(var(--drone-flow-chat-fab-padding, 14px) * 2 + var(--drone-flow-chat-fab-icon-size, 24px));
    position: relative;
    z-index: 1;
    width: var(--drone-flow-chat-fab-side);
    height: var(--drone-flow-chat-fab-side);
    min-width: var(--drone-flow-chat-fab-side);
    min-height: var(--drone-flow-chat-fab-side);
    padding: var(--drone-flow-chat-fab-padding, 14px);
    border: none;
    border-radius: var(--drone-flow-chat-fab-radius, 9999px) !important;
    background: var(--drone-flow-chat-fab-bg);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.1);
    transition: background .25s ease, box-shadow .25s ease, transform .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}
.drone-flow-chat-widget .drone-flow-chat-fab:hover,
.drone-flow-chat-widget button.drone-flow-chat-fab:hover {
    background: var(--drone-flow-chat-primary-hover, #135e96);
    box-shadow: 0 6px 20px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
    transform: scale(1.03);
}
.drone-flow-chat-widget .drone-flow-chat-fab:active,
.drone-flow-chat-widget button.drone-flow-chat-fab:active {
    transform: scale(0.98);
}
.drone-flow-chat-widget .drone-flow-chat-fab:focus-visible,
.drone-flow-chat-widget button.drone-flow-chat-fab:focus-visible {
    outline: 2px solid var(--drone-flow-chat-primary, #2271b1);
    outline-offset: 2px;
}
/* Przycisk wypełnia wrap (po ogólnych regułach FAB), centrum = centrum aury */
.drone-flow-chat-widget .drone-flow-chat-fab-wrap > .drone-flow-chat-fab {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}
.drone-flow-chat-fab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--drone-flow-chat-fab-icon-size, 24px);
    height: var(--drone-flow-chat-fab-icon-size, 24px);
    background: var(--drone-flow-chat-fab-icon-bg);
    border-radius: var(--drone-flow-chat-fab-icon-bg-radius, 50%);
    font-size: calc(var(--drone-flow-chat-fab-icon-size, 24px) * 0.9);
    line-height: 1;
}
.drone-flow-chat-fab-icon-img {
    width: var(--drone-flow-chat-fab-icon-size, 24px);
    height: var(--drone-flow-chat-fab-icon-size, 24px);
}
.drone-flow-chat-fab-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.drone-flow-chat-fab-label {
    white-space: nowrap;
}
.drone-flow-chat-widget .drone-flow-chat-fab-type-icon_only .drone-flow-chat-fab {
    padding: var(--drone-flow-chat-fab-padding, 14px);
}

.drone-flow-chat-window {
    position: absolute;
    bottom: 64px;
    width: 388px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: 72vh;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 6px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Animacje: domyślnie ukryte (przed otwarciem) */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.92);
    transition: opacity var(--drone-flow-chat-window-close-duration) ease,
                transform var(--drone-flow-chat-window-close-duration) ease,
                visibility 0s linear var(--drone-flow-chat-window-close-duration);
}
/* Punkt odniesienia animacji – żeby okno nie „uciekało” */
.drone-flow-chat-pos-bottom-right .drone-flow-chat-window {
    right: 0;
    transform-origin: 100% 100%;
}
.drone-flow-chat-pos-bottom-left .drone-flow-chat-window {
    left: 0;
    transform-origin: 0 100%;
}
.drone-flow-chat-pos-top-right .drone-flow-chat-window {
    right: 0;
    bottom: auto;
    top: 60px;
    transform-origin: 100% 0;
}
.drone-flow-chat-pos-top-left .drone-flow-chat-window {
    left: 0;
    bottom: auto;
    top: 60px;
    transform-origin: 0 0;
}
/* Stan: otwarte – płynne wejście */
.drone-flow-chat-window.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity var(--drone-flow-chat-window-open-duration) ease,
                transform var(--drone-flow-chat-window-open-duration) ease,
                visibility 0s linear 0s;
}
/* Animacje wg typu: slide_up / slide_down – nadpisanie transform */
.drone-flow-chat-window-anim-slide_up-open.drone-flow-chat-window:not(.is-open) {
    transform: translateY(20px) scale(1);
}
.drone-flow-chat-window-anim-slide_down-open.drone-flow-chat-window:not(.is-open) {
    transform: translateY(-20px) scale(1);
}
.drone-flow-chat-window-anim-fade-open.drone-flow-chat-window:not(.is-open) {
    transform: scale(1);
}
.drone-flow-chat-window-anim-none-open.drone-flow-chat-window:not(.is-open),
.drone-flow-chat-window-anim-none-open.drone-flow-chat-window.is-open {
    transition-duration: 0.08s;
}

.drone-flow-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 var(--drone-flow-chat-header-padding-r, 10px) 0 var(--drone-flow-chat-header-padding-l, 10px);
    background: var(--drone-flow-chat-header-bg, #1d2327);
    color: #fff;
    border: none;
    border-bottom: 1px solid var(--drone-flow-chat-header-border-color, rgba(255,255,255,.08));
    flex-shrink: 0;
}
.drone-flow-chat-header button, .drone-flow-chat-input-field button { margin-bottom: 0em; }
.drone-flow-chat-previous-list button { margin-right: 0em; }
select.country-code-select, .drone-flow-chat-lead-wrap input  { min-height: 40px; }
.drone-flow-chat-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.3;
    flex-shrink: 0;
}
.drone-flow-chat-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
}
.drone-flow-chat-header .drone-flow-chat-header-toolbar-btn,
.drone-flow-chat-header .drone-flow-chat-header-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 28px;
    min-height: 28px;
    padding: 0 4px;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--drone-flow-chat-header-icon-color, #fff);
    font-size: var(--drone-flow-chat-header-font-size, 14px);
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}
.drone-flow-chat-header .drone-flow-chat-header-link:hover,
.drone-flow-chat-header .drone-flow-chat-header-toolbar-btn:hover {
    color: var(--drone-flow-chat-header-icon-hover, rgba(255,255,255,0.85));
    background: transparent !important;
}
.drone-flow-chat-header-toolbar-icon {
    width: var(--drone-flow-chat-header-icon-size, 22px);
    height: var(--drone-flow-chat-header-icon-size, 22px);
    object-fit: contain;
    vertical-align: middle;
    display: block;
}
/* Ikona z biblioteki (Dashicons) w pasku nagłówka */
.drone-flow-chat-header-actions .dashicons.drone-flow-chat-header-toolbar-icon {
    width: auto;
    height: auto;
    font-size: var(--drone-flow-chat-header-icon-size, 22px);
    display: inline-block;
}
.drone-flow-chat-header-link-text {
    display: none;
}
.drone-flow-chat-header .drone-flow-chat-previous {
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.drone-flow-chat-header .drone-flow-chat-previous:hover {
    opacity: 0.9;
}
.drone-flow-chat-header .drone-flow-chat-close {
    min-width: 36px;
    min-height: 36px;
    margin: var(--drone-flow-chat-header-close-margin-t, 0) var(--drone-flow-chat-header-close-margin-r, 0) var(--drone-flow-chat-header-close-margin-b, 0) var(--drone-flow-chat-header-close-margin-l, 0);
    padding: var(--drone-flow-chat-header-close-padding-t, 0) var(--drone-flow-chat-header-close-padding-r, 0) var(--drone-flow-chat-header-close-padding-b, 0) var(--drone-flow-chat-header-close-padding-l, 0);
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--drone-flow-chat-header-close-icon-color, #fff);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.drone-flow-chat-header .drone-flow-chat-close:hover {
    opacity: 0.9;
}
.drone-flow-chat-header-close-icon {
    width: var(--drone-flow-chat-header-close-icon-size, 22px);
    height: var(--drone-flow-chat-header-close-icon-size, 22px);
    object-fit: contain;
    vertical-align: middle;
}
/* Ikona z biblioteki (Dashicons) przycisku zamknięcia */
.drone-flow-chat-header .drone-flow-chat-close .dashicons.drone-flow-chat-header-close-icon {
    width: auto;
    height: auto;
    font-size: var(--drone-flow-chat-header-close-icon-size, 22px);
    display: inline-block;
}
.drone-flow-chat-tts-mute[data-muted="true"] .drone-flow-chat-header-toolbar-icon {
    opacity: 0.6;
}
.drone-flow-chat-header .drone-flow-chat-end-btn {
    padding: 4px 10px;
    margin-right: 4px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.drone-flow-chat-header .drone-flow-chat-end-btn:hover {
    background: rgba(255,255,255,0.15);
}
.drone-flow-chat-previous-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 1;
    padding: 8px 0;
}
.drone-flow-chat-previous-list p {
    margin: 0;
    padding: 12px 16px;
    color: #646970;
    font-size: 13px;
}
.drone-flow-chat-prev-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    color: #1d2327;
    cursor: pointer;
}
.drone-flow-chat-prev-item:hover {
    background: #f0f0f1;
}

.drone-flow-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}
.drone-flow-chat-messages::-webkit-scrollbar {
    width: 8px;
}
.drone-flow-chat-messages::-webkit-scrollbar-track {
    background: #f0f0f1;
    border-radius: 4px;
}
.drone-flow-chat-messages::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 4px;
}
.drone-flow-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #8c8f94;
}
.drone-flow-chat-msg {
    display: flex;
    align-items: flex-end;
    gap: var(--drone-flow-chat-avatar-gap, 10px);
    flex-wrap: wrap;
}
.drone-flow-chat-msg-user {
    align-self: flex-end;
    max-width: 85%;
    flex-direction: row-reverse;
}
.drone-flow-chat-msg-bot {
    align-self: flex-start;
    max-width: 85%;
}
.drone-flow-chat-avatar {
    flex-shrink: 0;
    width: var(--drone-flow-chat-avatar-size, 36px);
    height: var(--drone-flow-chat-avatar-size, 36px);
    border-radius: var(--drone-flow-chat-avatar-radius, 50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--drone-flow-chat-avatar-size, 36px) * 0.55);
    line-height: 1;
}
.drone-flow-chat-avatar-bot {
    background: var(--drone-flow-chat-avatar-bot-bg, #4f32e6);
    color: #fff;
}
.drone-flow-chat-avatar-user {
    background: var(--drone-flow-chat-avatar-user-bg, #00bf6c);
    color: #fff;
}
.drone-flow-chat-avatar-inner {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}
.drone-flow-chat-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}
.drone-flow-chat-agent-label {
    display: block;
    width: 100%;
    font-size: 11px;
    color: #646970;
    margin-bottom: 4px;
    font-weight: 500;
}
.drone-flow-chat-bubble {
    padding: 12px 16px;
    border-radius: 0px 18px 0px 18px;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 14px;
}
.drone-flow-chat-msg-user .drone-flow-chat-bubble {
    background: var(--drone-flow-chat-bubble-user, #2271b1);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.drone-flow-chat-msg-bot .drone-flow-chat-bubble {
    background: var(--drone-flow-chat-bubble-bot, #f0f0f1);
    color: #1d2327;
    box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.drone-flow-chat-bubble.drone-flow-chat-error {
    background: #fcf0f1;
    color: #b32d2e;
}
.drone-flow-chat-retry {
    display: block;
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid #b32d2e;
    border-radius: 4px;
    background: #fff;
    color: #b32d2e;
    cursor: pointer;
    font-size: 13px;
}
.drone-flow-chat-retry:hover {
    background: #fcf0f1;
}

.drone-flow-chat-typing {
    padding: 8px 12px;
    color: #646970;
    font-style: italic;
}

/* Footer form – flex, odstęp 5px między polem a przyciskiem Wyślij */
.drone-flow-chat-input-wrap {
    --drone-flow-chat-recognition-icon-size: 20px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    padding: 10px 14px;
    margin: 0;
    border: none;
    border-top: 1px solid #dcdcde;
    background: #fafafa;
    position: relative;
    flex-shrink: 0;
}
/* Pole tekstowe – obramowanie głównym kolorem, ten sam promień co przycisk Wyślij, bez cienia */
.drone-flow-chat-input-field {
    flex: 1;
    display: flex;
    width: 100%;
    min-height: 44px;
    position: relative;
    box-shadow: none;
    background: #fff;
}
/* Przycisk mikrofonu – absolute po lewej, w jednej linii z pierwszą linią tekstu */
.drone-flow-chat-voice-btn.drone-flow-chat-bot-button-recognize {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(2.5 * var(--drone-flow-chat-recognition-icon-size));
    background: transparent !important;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(10px + (1.45 * 14px) / 2 - (1.2 * var(--drone-flow-chat-recognition-icon-size)) / 2);
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
    margin: 0;
    border: none;
    box-shadow: none;
    cursor: pointer;
    color: #1d2327;
}
.drone-flow-chat-voice-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(1.4 * var(--drone-flow-chat-recognition-icon-size));
    height: calc(1.4 * var(--drone-flow-chat-recognition-icon-size));
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    background: var(--drone-flow-chat-voice-btn-bg, #f0f0f1);
    transition: background 0.2s ease, transform 0.25s ease;
}
.drone-flow-chat-voice-btn:hover .drone-flow-chat-voice-btn-inner {
    background: #e0e0e0;
    transform: scale(1.06);
}
.drone-flow-chat-voice-btn[data-in-progress="true"] .drone-flow-chat-voice-btn-inner {
    background: var(--drone-flow-chat-voice-btn-active, #d63638);
    color: #fff;
    animation: drone-flow-chat-voice-pulse 1.2s ease-in-out infinite;
}
.drone-flow-chat-voice-btn .drone-flow-chat-icon-mic {
    display: block;
    pointer-events: none;
}
@keyframes drone-flow-chat-voice-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(214, 54, 56, 0.4); }
    50% { opacity: 0.95; box-shadow: 0 0 0 8px rgba(214, 54, 56, 0); }
}
.drone-flow-chat-tts-mute {
    min-width: 36px;
    min-height: 36px;
    padding: 0 6px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    margin-right: 2px;
}
.drone-flow-chat-tts-mute:hover {
    background: rgba(255,255,255,0.15);
}
.drone-flow-chat-tts-mute[data-muted="true"] {
    opacity: 0.7;
}
/* Pole tekstowe – padding-left pod miejsce mikrofonu, promień z prawej jak obramowanie */
.drone-flow-chat-form-with-recognize .drone-flow-chat-input {
    flex: 1;
    min-height: 44px;
    padding: 10px 14px 10px 0;
    padding-left: calc(2.25 * var(--drone-flow-chat-recognition-icon-size, 20px)) !important;
    border: none;
    border-radius:7px;
	border: 1px solid var(--drone-flow-chat-primary, #2271b1);
    background: transparent;
    resize: none;
    font-size: 14px;
    line-height: 1.45;
    outline: none;
}
.drone-flow-chat-input::placeholder {
    color: #757575;
}
.drone-flow-chat-send.drone-flow-chat-bot-button {
    display: flex;
    align-items: center;
    justify-content: center;
}
.drone-flow-chat-send {
    flex-shrink: 0;
    min-width: 48px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--drone-flow-chat-primary, #2271b1);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    transition: background .2s ease, box-shadow .2s ease;
}
.drone-flow-chat-send .drone-flow-chat-icon-send {
    display: block;
    pointer-events: none;
}
.drone-flow-chat-send:hover:not(:disabled) {
    background: var(--drone-flow-chat-primary-hover, #135e96);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.drone-flow-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.drone-flow-chat-footer {
    padding: 12px 16px;
    font-size: 12px;
    color: #646970;
    border-top: 1px solid #dcdcde;
    background: #fafafa;
    flex-shrink: 0;
}
.drone-flow-chat-footer a {
    color: #2271b1;
}

/* Powitalne okienko nad FAB */
.drone-flow-chat-welcome-popup {
    position: absolute;
    bottom: 100%;
    margin-bottom: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s, transform 0.25s ease;
}
.drone-flow-chat-pos-bottom-right .drone-flow-chat-welcome-popup { right: 0; }
.drone-flow-chat-pos-bottom-left .drone-flow-chat-welcome-popup { left: 0; }
.drone-flow-chat-pos-top-right .drone-flow-chat-welcome-popup { right: 0; bottom: auto; top: 100%; margin-top: 12px; margin-bottom: 0; }
.drone-flow-chat-pos-top-left .drone-flow-chat-welcome-popup { left: 0; bottom: auto; top: 100%; margin-top: 12px; margin-bottom: 0; }
.drone-flow-chat-welcome-popup.drone-flow-chat-welcome-popup-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s linear 0s, transform 0.25s ease;
}
.drone-flow-chat-welcome-popup-anim-slide_up.drone-flow-chat-welcome-popup-visible { transform: translateY(0); }
.drone-flow-chat-welcome-popup-anim-slide_up { transform: translateY(10px); }
.drone-flow-chat-welcome-popup-anim-fade.drone-flow-chat-welcome-popup-visible { transform: none; }
.drone-flow-chat-welcome-popup-inner { position: relative; }
.drone-flow-chat-welcome-popup-content { font-size: 14px; line-height: 1.45; color: #1d2327; }
.drone-flow-chat-welcome-popup-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1d2327;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.drone-flow-chat-welcome-popup-close:hover { background: #2c3338; }

.drone-flow-chat-name-wrap {
    padding: 14px 14px 16px;
    border-bottom: 1px solid #dcdcde;
    background: #f9f9f9;
    font-size: 13px;
}
.drone-flow-chat-name-intro {
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 14px;
}
.drone-flow-chat-name-wrap .drone-flow-chat-lead-name {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 13px;
}
.drone-flow-chat-name-title-row {
    margin-bottom: 10px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.drone-flow-chat-name-title-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
}
.drone-flow-chat-name-submit {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}
.drone-flow-chat-name-submit:hover {
    background: #135e96;
}

.drone-flow-chat-lead-wrap,
.drone-flow-chat-rating-wrap {
    padding: 12px 14px;
    border-top: 1px solid #dcdcde;
    background: #f9f9f9;
    font-size: 13px;
}
.drone-flow-chat-lead-intro,
.drone-flow-chat-rating-intro {
    margin: 0 0 10px 0;
    font-weight: 600;
    font-size: 14px;
}
.drone-flow-chat-lead-wrap input[type="email"],
.drone-flow-chat-lead-wrap input[type="tel"] {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 13px;
}
.drone-flow-chat-lead-submit,
.drone-flow-chat-rating-submit {
    padding: 8px 14px;
    margin-top: 8px;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}
.drone-flow-chat-lead-submit:hover,
.drone-flow-chat-rating-submit:hover {
    background: #135e96;
}

.drone-flow-chat-exit-capture-wrap {
    margin-bottom: 12px;
}
.drone-flow-chat-exit-capture-hint {
    margin: 0 0 8px 0;
    font-weight: 500;
}
.drone-flow-chat-exit-capture-input {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 13px;
}
.drone-flow-chat-exit-capture-submit {
    margin-right: 10px;
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}
.drone-flow-chat-exit-capture-submit:hover {
    background: #135e96;
}
.drone-flow-chat-exit-capture-skip {
    font-size: 13px;
    color: #2271b1;
}

/* Inline formularz leadu w strumieniu wiadomości (jedna przycisk Wyślij poniżej) */
.drone-flow-chat-inline-lead {
    padding: 10px 12px;
    margin: 6px 0 10px 0;
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    font-size: 13px;
}
.drone-flow-chat-inline-lead-hint {
    margin: 0 0 8px 0;
    color: #1d2327;
    font-weight: 500;
}
.drone-flow-chat-inline-lead-input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 13px;
}
.drone-flow-chat-inline-lead-input:focus {
    border-color: var(--drone-flow-chat-primary, #2271b1);
    outline: none;
}
.drone-flow-chat-inline-lead-submit {
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.drone-flow-chat-rating-thumbs {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    justify-content: center;
}
.drone-flow-chat-thumb {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid #dcdcde;
    border-radius: 50%;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, transform 0.1s;
}
.drone-flow-chat-thumb:hover {
    border-color: #8c8f94;
    transform: scale(1.05);
}
.drone-flow-chat-thumb.drone-flow-chat-thumb-selected {
    border-color: #2271b1;
    background: #f0f6fc;
}
.drone-flow-chat-thumb-up.drone-flow-chat-thumb-selected {
    border-color: #00a32a;
    background: #edfaef;
}
.drone-flow-chat-thumb-down.drone-flow-chat-thumb-selected {
    border-color: #d63638;
    background: #fcf0f1;
}
.drone-flow-chat-rating-comment {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 13px;
}
.drone-flow-chat-lead-thanks,
.drone-flow-chat-rating-thanks {
    margin: 0;
    padding: 8px 0;
    color: #00a32a;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 480px) {
    .drone-flow-chat-window {
        width: calc(100vw - 24px);
        height: 70vh;
        left: 12px;
        right: 12px;
        bottom: 56px;
    }
    .drone-flow-chat-pos-top-right .drone-flow-chat-window,
    .drone-flow-chat-pos-top-left .drone-flow-chat-window {
        top: 56px;
    }
}
