/* ========================================== */
/* 1. RESET TYLKO DLA SIDEBARA CZATU          */
/* ========================================== */
#cp_ai_sidebar button, #cp_ai_sidebar input, #cp_ai_sidebar textarea {
    all: revert;
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: normal !important;
    font-size: 14px !important;
    color: inherit !important;
    outline: none !important;
}

#cp_ai_sidebar svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
#cp_ai_send svg { stroke: #ffffff !important; fill: none !important; }
#cp_ai_close svg { stroke: #333333 !important; }
#cp_ai_sidebar .cp_ai_avatar svg { stroke: #ffffff !important; }

/* ========================================== */
/* 2. MINIMALISTYCZNY FLOATING UI BANKMONEY  */
/* ========================================== */
#back_to_top, .gt3_back2top { display: none !important; }

/* Zakładka promocji: przyklejona do prawej krawędzi, niezależnie od czatu */
#bm_contact_pill {
    position: fixed !important;
    right: 0 !important;
    bottom: 118px !important;
    z-index: 99997 !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 16px 0 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #dce4eb !important;
    border-right: 0 !important;
    border-radius: 11px 0 0 11px !important;
    background: #f8fafc !important;
    box-shadow: 0 3px 16px rgba(20, 38, 62, .09) !important;
    color: #233954 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    transform: translateX(0) !important;
    transition: background-color .22s ease, border-color .22s ease,
                box-shadow .22s ease, transform .30s cubic-bezier(.22, 1, .36, 1) !important;
}
#bm_contact_pill:hover {
    background: #fff !important;
    border-color: #c5d1dc !important;
    box-shadow: 0 5px 20px rgba(20, 38, 62, .13) !important;
    transform: translateX(-3px) !important;
}
#bm_contact_pill:active { transform: translateX(-1px) scale(.98) !important; }
#bm_contact_pill:focus-visible {
    outline: 2px solid #426b92 !important;
    outline-offset: 3px !important;
}
#bm_contact_pill .bm_pill_icon {
    width: 18px !important;
    height: 18px !important;
    display: inline-flex !important;
    flex: 0 0 18px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #557494 !important;
}
#bm_contact_pill .bm_pill_icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
}
#bm_contact_pill .bm_pill_text {
    display: inline-block !important;
    color: #233954 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

/* Wspólna kotwica - brak zmiany miejsca całego widgetu podczas przewijania */
#bm_floating_container {
    --bm-float-size: 46px;
    --bm-float-shift: 56px;
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 102px !important;
    height: var(--bm-float-size) !important;
    z-index: 99997 !important;
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#bm_floating_container .bm_buttons_row {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#bm_floating_container #bm_chat_btn,
#bm_floating_container #bm_simple_btt {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: var(--bm-float-size) !important;
    height: var(--bm-float-size) !important;
    min-width: var(--bm-float-size) !important;
    min-height: var(--bm-float-size) !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #262d35 !important;
    border-radius: 50% !important;
    background: #20252b !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(15, 26, 37, .15) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}
#bm_floating_container #bm_chat_btn svg,
#bm_floating_container #bm_simple_btt svg {
    width: 21px !important;
    height: 21px !important;
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
}

/* iOS-like: przesunięcie wyłącznie transformacją, dzięki temu bez skoków układu */
#bm_floating_container #bm_chat_btn {
    z-index: 2;
    --bm-chat-x: 0px;
    transform: translate3d(var(--bm-chat-x), 0, 0) scale(1) !important;
    transition: transform .48s cubic-bezier(.22, 1.12, .35, 1),
                background-color .2s ease, box-shadow .2s ease !important;
    will-change: transform;
}
#bm_floating_container.is-scrolled #bm_chat_btn { --bm-chat-x: calc(0px - var(--bm-float-shift)); }
#bm_floating_container #bm_chat_btn:hover,
#bm_floating_container #bm_chat_btn:focus-visible {
    background: #303841 !important;
    transform: translate3d(var(--bm-chat-x), 0, 0) scale(1.05) !important;
}
#bm_floating_container #bm_chat_btn:active {
    transform: translate3d(var(--bm-chat-x), 0, 0) scale(.96) !important;
}

/* Back to top zachowuje dotychczasowy próg przewinięcia 300 px */
#bm_floating_container #bm_simple_btt {
    z-index: 1;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate3d(0, 10px, 0) scale(.94) !important;
    transition: opacity .26s ease, transform .38s cubic-bezier(.22, 1, .36, 1),
                visibility .26s ease, background-color .2s ease !important;
}
#bm_floating_container #bm_simple_btt.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}
#bm_floating_container #bm_simple_btt.is-visible:hover,
#bm_floating_container #bm_simple_btt.is-visible:focus-visible {
    background: #303841 !important;
    transform: translate3d(0, -2px, 0) scale(1.04) !important;
}
#bm_floating_container #bm_simple_btt.is-visible:active {
    transform: translate3d(0, 0, 0) scale(.96) !important;
}
#bm_floating_container #bm_chat_btn:focus-visible,
#bm_floating_container #bm_simple_btt:focus-visible {
    outline: 2px solid #6793c0 !important;
    outline-offset: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
    #bm_contact_pill, #bm_floating_container #bm_chat_btn,
    #bm_floating_container #bm_simple_btt { transition-duration: .01ms !important; }
}

/* ========================================== */
/* 2.5 NOWY MEGA MODAL PROMOCJI (SIDEBAR)     */
/* ========================================== */
#bm_promo_modal_overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    z-index: 99998; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
#bm_promo_modal_overlay.is-active { opacity: 1; visibility: visible; }

/* Zmiana na panel boczny wyjeżdżający z prawej strony */
#bm_promo_modal {
    position: fixed; top: 0; right: -900px; 
    width: 900px; max-width: 100vw; height: 100vh;
    background: #ffffff; border-radius: 0;
    box-shadow: none; z-index: 99999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#bm_promo_modal.is-open { right: 0; box-shadow: -15px 0 50px rgba(0,0,0,0.2); }

#bm_close_modal {
    position: absolute; top: 16px; right: 16px; background: #f0f0f0; border: none; 
    border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: #333; 
    z-index: 10; display: flex; justify-content: center; align-items: center; 
    transition: all 0.2s ease; padding: 0;
}
#bm_close_modal svg { width: 20px; height: 20px; }
#bm_close_modal:hover { background: #e0e0e0; transform: rotate(90deg); }

.bm_modal_grid { display: grid; grid-template-columns: 320px 1fr; height: 100vh; }

/* Lewa kolumna — BankMoney / Corporate Minimal */
.bm_modal_left {
    background: #f5f7fa;
    padding: 40px 24px;
    color: #18253b;
    border-right: 1px solid #e1e7ee;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.bm_modal_left h3 {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.35px;
    color: #18253b;
    line-height: 1.3;
}
.bm_modal_left .bm_modal_menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bm_modal_left .bm_menu_item,
.bm_modal_left .bm_menu_item:visited {
    display: flex;
    align-items: center;
    min-height: 49px;
    padding: 11px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-bottom-color: #e2e7ed;
    border-radius: 7px;
    box-shadow: none;
    color: #27364b;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .13s ease, border-color .13s ease;
}
.bm_modal_left .bm_menu_icon {
    width: 19px;
    height: 19px;
    margin-right: 13px;
    flex: 0 0 19px;
    color: #385a79;
    transition: none;
}
.bm_modal_left .bm_menu_icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
}
.bm_modal_left .bm_menu_text {
    flex: 1;
    min-width: 0;
    color: #27364b;
    font-size: 14px;
    font-weight: 550;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
    transition: none;
}
.bm_modal_left .bm_menu_arrow {
    margin-left: 8px;
    color: #8997a8;
    font-size: 14px;
    font-weight: 400;
    transition: none;
}
.bm_modal_left .bm_menu_item:hover,
.bm_modal_left .bm_menu_item:focus-visible {
    background: #fff;
    border-color: #dce4ec;
    box-shadow: none;
    transform: none;
}
.bm_modal_left .bm_menu_item:hover .bm_menu_icon,
.bm_modal_left .bm_menu_item:focus-visible .bm_menu_icon { color: #244568; }
.bm_modal_left .bm_menu_item:hover .bm_menu_text,
.bm_modal_left .bm_menu_item:focus-visible .bm_menu_text { color: #142b48; }
.bm_modal_left .bm_menu_item:hover .bm_menu_arrow,
.bm_modal_left .bm_menu_item:focus-visible .bm_menu_arrow { color: #385a79; transform: none; }
.bm_modal_left .bm_menu_item:focus-visible { outline: 2px solid #7794b4; outline-offset: 1px; }

/* Jedyny mocniejszy akcent — katalog promocji */
.bm_modal_left .bm_menu_separator {
    height: 1px;
    margin: 12px 0 10px;
    background: #dae1e9;
}
.bm_modal_left .bm_menu_item_special,
.bm_modal_left .bm_menu_item_special:visited {
    min-height: 48px;
    background: #192b47;
    border: 1px solid #192b47;
    border-radius: 8px;
    box-shadow: none;
}
.bm_modal_left .bm_menu_item_special .bm_menu_icon { color: #d8ee92 !important; }
.bm_modal_left .bm_menu_item_special .bm_menu_text {
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}
.bm_modal_left .bm_menu_item_special .bm_menu_arrow { color: #d8ee92 !important; }
.bm_modal_left .bm_menu_item_special:hover,
.bm_modal_left .bm_menu_item_special:focus-visible {
    background: #253e61;
    border-color: #253e61;
    box-shadow: none;
    transform: none;
}
.bm_modal_left .bm_menu_item_special:hover .bm_menu_text,
.bm_modal_left .bm_menu_item_special:focus-visible .bm_menu_text { color: #fff !important; }
.bm_modal_left .bm_menu_item_special:hover .bm_menu_icon,
.bm_modal_left .bm_menu_item_special:focus-visible .bm_menu_icon { color: #d8ee92 !important; }
.bm_modal_left .bm_menu_item_special:hover .bm_menu_arrow,
.bm_modal_left .bm_menu_item_special:focus-visible .bm_menu_arrow { color: #d8ee92 !important; transform: none; }

/* Prawa Kolumna (Promocje Image Cards) */
.bm_modal_right { padding: 40px 30px; background: #fff; display: flex; flex-direction: column; max-height: 100vh; overflow-y: auto; }
.bm_popup_header { padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.bm_popup_header h4 { margin: 0 0 4px 0; font-size: 22px; color: #111; font-weight: 700; line-height: 1.2; }
.bm_popup_header p { margin: 0; font-size: 14px; color: #666; }
.bm_popup_body { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.bm_promo_item { 
    position: relative; border-radius: 16px; overflow: hidden; height: 220px; 
    display: block; text-decoration: none !important; box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bm_promo_item:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }

.bm_promo_bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; transition: transform 0.5s ease;
}
.bm_promo_item:hover .bm_promo_bg { transform: scale(1.08); }

.bm_promo_overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.95) 100%);
}

.bm_promo_content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    display: flex; flex-direction: column; align-items: flex-start;
    box-sizing: border-box; z-index: 2;
}

.bm_promo_bank {
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 4px 8px; border-radius: 6px; margin-bottom: 8px; letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.1);
}

.bm_promo_title {
    color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 12px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.bm_promo_btn {
    background: #dcf763; color: #1a1a1a; font-size: 13px; font-weight: 700;
    padding: 8px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
    transition: background 0.2s, transform 0.2s;
}
.bm_promo_item:hover .bm_promo_btn { background: #fff; transform: translateY(-2px); }
.bm_promo_btn svg { width: 16px; height: 16px; stroke-width: 2.5; }

/* ========================================== */
/* 3. CSS CZATU AI                            */
/* ========================================== */
/* POPRAWKA: Overlay czatu AI ujednolicony z overlayem promocji */
#cp_ai_overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); z-index: 99998; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
#cp_ai_overlay.is-active { opacity: 1; visibility: visible; }

/* POPRAWKA: max-width: 100vw dodane dla spójności */
#cp_ai_sidebar { position: fixed; top: 0; right: -450px; width: 400px; max-width: 100vw; height: 100vh; max-height: 100vh; background: #ffffff; box-shadow: none; z-index: 99999; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
#cp_ai_sidebar.is-open { right: 0; box-shadow: -10px 0 40px rgba(0,0,0,0.1); }

.cp_ai_header { padding: 20px 24px; border-bottom: 1px solid #eaeaea; display: flex; justify-content: space-between; align-items: center; background: #ffffff; z-index: 20; position: relative; flex-shrink: 0; }
.cp_ai_header_info { display: flex; align-items: center; gap: 12px; }
.cp_ai_avatar { width: 36px; height: 36px; background: #1a1a1a; border-radius: 50%; display: flex; justify-content: center; align-items: center; padding: 8px; box-sizing: border-box; }
.cp_ai_header_text h3 { margin: 0; font-size: 15px; font-weight: 600; color: #111; line-height: 1.2; }
.cp_ai_header_text span { font-size: 12px; color: #666; }
#cp_ai_close { width: 32px !important; height: 32px !important; border-radius: 50% !important; cursor: pointer !important; transition: background 0.2s !important; padding: 6px !important; display: flex !important; justify-content: center !important; align-items: center !important; }
#cp_ai_close:hover, #cp_ai_close:focus-visible { background: #f0f0f0 !important; }

#cp_ai_chat_view { display: flex; flex-direction: column; flex: 1; overflow: hidden; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }

.cp_ai_chat_area { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; background: #fafafa; }
.cp_ai_msg { max-width: 85%; display: flex; flex-direction: column; animation: cpFadeIn 0.3s ease; }
@keyframes cpFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.cp_ai_msg_bot { align-self: flex-start; }
.cp_ai_msg_user { align-self: flex-end; }

.cp_ai_msg_content { padding: 12px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; color: #111; word-wrap: break-word; white-space: pre-wrap; }

.cp_ai_msg_bot .cp_ai_msg_content { background: #ffffff; border: 1px solid #eaeaea; border-bottom-left-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.cp_ai_msg_bot .cp_ai_msg_content ul { margin: 8px 0; padding-left: 20px; }
.cp_ai_msg_bot .cp_ai_msg_content li { margin-bottom: 4px; }
.cp_ai_msg_bot .cp_ai_msg_content strong { color: #000; font-weight: 600; }
.cp_ai_msg_bot .cp_ai_msg_content a { color: #0066ff; text-decoration: underline; }
.cp_ai_msg_user .cp_ai_msg_content { background: #1a1a1a; color: #ffffff; border-bottom-right-radius: 4px; }

.bm-ai-inline-btn {
    display: inline-flex; align-items: center; background-color: #1a1a1a !important; color: #ffffff !important;
    padding: 6px 12px; border-radius: 6px; text-decoration: none !important; font-size: 12px; font-weight: 600;
    margin-top: 8px; transition: background-color 0.2s; border: none;
}
.bm-ai-inline-btn:hover { background-color: #333 !important; }

.cp_ai_pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cp_ai_pill { background: #ffffff !important; border: 1px solid #ddd !important; padding: 6px 14px !important; border-radius: 20px !important; font-size: 12px !important; color: #333 !important; cursor: pointer !important; transition: all 0.2s !important; font-weight: 500 !important; }
.cp_ai_pill:hover, .cp_ai_pill:focus-visible { border-color: #1a1a1a !important; background: #f9f9f9 !important; }
.cp_ai_pill:active { transform: scale(0.95) !important; }

.cp_ai_input_area { flex-shrink: 0; padding: 16px 24px 20px 24px; border-top: 1px solid #eaeaea; background: #ffffff; }
.cp_ai_input_wrapper { display: flex; align-items: center; background: #f4f4f5; border: 1px solid transparent; border-radius: 24px; padding: 4px 4px 4px 16px; transition: border-color 0.3s, background 0.3s; }
.cp_ai_input_wrapper:focus-within { border-color: #ccc; background: #fff; }
.cp_ai_powered_by {
    text-align: center;
    font-size: 11px;
    color: #999999;
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cp_ai_powered_by a {
    color: #0066ff !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: color 0.2s ease;
}
.cp_ai_powered_by a:hover {
    color: #004cbf !important;
    text-decoration: underline !important;
}
#cp_ai_input { flex: 1 !important; font-size: 14px !important; color: #111 !important; }

#cp_ai_sidebar #cp_ai_send { 
    background: #1a1a1a !important; 
    width: 42px !important; 
    height: 32px !important; 
    min-width: 42px !important;
    border-radius: 20px !important; 
    display: flex !important; 
    justify-content: center !important; 
    align-items: center !important; 
    cursor: pointer !important; 
    padding: 0 !important; 
    border: none !important;
    margin: 0 !important;
}
#cp_ai_sidebar #cp_ai_send svg { 
    width: 16px !important; 
    height: 16px !important;
    stroke: #ffffff !important; 
    fill: none !important; 
    margin-left: -2px !important; 
}
#cp_ai_sidebar #cp_ai_send:hover, #cp_ai_sidebar #cp_ai_send:focus-visible { background: #1a1a1a !important; }
#cp_ai_sidebar #cp_ai_send:active { transform: scale(0.95) !important; }
#cp_ai_sidebar #cp_ai_send:disabled { background: #cccccc !important; cursor: not-allowed !important; transform: none !important; }

.cp_typing { display: flex; gap: 4px; padding: 6px 4px; }
.cp_dot { width: 6px; height: 6px; background: #999; border-radius: 50%; animation: cpBlink 1.4s infinite both; }
.cp_dot:nth-child(1) { animation-delay: 0.2s; }
.cp_dot:nth-child(2) { animation-delay: 0.4s; }
.cp_dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes cpBlink { 0% { opacity: 0.2; } 20% { opacity: 1; } 100% { opacity: 0.2; } }

/* ========================================== */
/* 4. MOBILE RESPONSIVE                       */
/* ========================================== */
@media (max-width: 768px) {
    #bm_floating_container {
        --bm-float-size: 44px;
        --bm-float-shift: 54px;
        width: 98px !important;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        right: 16px !important;
    }
    #bm_contact_pill {
        bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 13px 0 11px !important;
    }
    .bm_modal_grid { grid-template-columns: 1fr; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
    .bm_modal_left { padding: 30px 20px; flex-shrink: 0; }
    .bm_modal_right { padding: 30px 20px; flex: 1; overflow-y: visible; max-height: none; }
    .bm_popup_body { grid-template-columns: 1fr; }
    
    #bm_promo_modal { width: 100%; max-height: 100dvh; right: -100%; border-radius: 0; }
    #bm_promo_modal.is-open { right: 0; transform: none; }
    
    /* POPRAWKA: Logika wysuwania czatu AI identyczna z modalem promocji */
    #cp_ai_sidebar {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        right: -100%;
        border-radius: 0;
    }
    #cp_ai_sidebar.is-open {
        right: 0;
        transform: none;
    }
    .cp_ai_chat_area {
        padding: 16px;
    }
    .cp_ai_input_area {
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) 16px;
    }
}
