/* Florcat entry controls; native Bitrix24 owns chat, callback and their forms. */
.fc-contact-enabled [data-b24-crm-button-block],
.fc-contact-enabled [data-b24-crm-button-block-button],
.fc-contact-enabled [data-b24-crm-hello-cont] { display: none !important; }
.fc-contact-icon { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.fc-contact-launcher { position: fixed; right: 24px; bottom: 28px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; color: #fff; background: #c77583; box-shadow: 0 4px 16px #5d263326; cursor: pointer; z-index: 90; }
.fc-contact-launcher .fc-contact-icon { width: 28px; height: 28px; }
.fc-contact-launcher:hover { background: #b56473; }
.fc-contact-launcher:focus-visible, .fc-contact-panel :focus-visible, .mobile_footer .fc-contact-mobile:focus-visible { outline: 3px solid #8c4052; outline-offset: 3px; }
.fc-contact-overlay { position: fixed; inset: 0; z-index: 999990; background: #25151b33; }
.fc-contact-panel { position: fixed; right: 24px; bottom: 96px; width: 340px; max-width: calc(100vw - 32px); max-height: calc(var(--fc-contact-vh, 100dvh) - 120px); overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; background: #fff; box-shadow: 0 8px 40px #3a162633; color: #333; z-index: 999991; font-family: inherit; }
.fc-contact-panel[hidden], .fc-contact-overlay[hidden] { display: none !important; }
.fc-contact-panel-head { display: flex; align-items: center; gap: 12px; padding: 22px 20px 16px; }
.fc-contact-panel-head h2 { font: inherit; font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; flex: 1; }
.fc-contact-close { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: #f8f0f2; color: #59444a; border: 0; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.fc-contact-close .fc-contact-icon { width: 20px; height: 20px; }
.fc-contact-options { display: flex; flex-direction: column; padding: 0 12px 12px; gap: 4px; }
.fc-contact-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; background: transparent; color: #333; border: 0; border-radius: 12px; text-align: left; text-decoration: none; font: inherit; font-size: 16px; line-height: 1.3; cursor: pointer; }
.fc-contact-option:hover, .fc-contact-option:focus-visible { color: #333; background: #fcf0f3; }
.fc-contact-option > .fc-contact-icon { color: #c77583; }
.fc-contact-option-text { flex: 1; }
.fc-contact-option-text small { display: block; margin-top: 3px; color: #777; font-size: 12px; }
.fc-contact-option-arrow { color: #b09da3; font-size: 20px; }
.fc-contact-status { margin: 0; padding: 0 20px 16px; font-size: 13px; color: #744654; }
.fc-contact-status:empty { display: none; }
.fc-contact-unread::after { content: ''; position: absolute; right: 8px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef476e; border: 2px solid #fff; }
.mobile_footer .fc-contact-mobile { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 5px; color: var(--color-default-60, #777); font: inherit; font-size: 10px; font-weight: 500; line-height: 12px; border: 0; background: none; padding: 0; cursor: pointer; }
.mobile_footer .fc-contact-mobile .fc-contact-icon { width: 26px; height: 26px; }
.mobile_footer .fc-contact-mobile[aria-expanded="true"] { color: #c77583; }
@media (min-width: 1200px) {
    .fc-contact-mobile-item { display: none !important; }
    .fc-contact-overlay { background: transparent; }
}
@media (max-width: 1199.98px) {
    .fc-contact-launcher { display: none; }
    .mobile_footer.fc-contact-footer { grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(70px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .fc-contact-enabled .mobile_footer-item { min-width: 0; padding-left: 4px; padding-right: 4px; }
    .fc-contact-enabled .mobile_footer-item a, .fc-contact-mobile { white-space: nowrap; }
    .fc-contact-enabled footer { padding-bottom: calc(83px + env(safe-area-inset-bottom, 0px)); }
    .fc-contact-enabled .cookie-modal { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 24px); width: 440px; left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 3px 18px #41203014; }
    .fc-contact-enabled .cookie-modal--content { flex-direction: row !important; gap: 12px; text-align: left; }
    .fc-contact-enabled .cookie-modal .btn { white-space: nowrap; padding: 8px 12px; font-size: 12px; line-height: 16px; }
    .fc-contact-panel { width: 100%; max-width: none; right: 0; bottom: 0; max-height: calc(var(--fc-contact-vh, 100dvh) - 24px); border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .fc-contact-panel-head { padding-top: 20px; }
    .fc-contact-panel-head h2 { font-size: 20px; }
    .fc-contact-options { gap: 2px; }
    .fc-contact-option { min-height: 56px; }
    .fc-contact-lock body { position: fixed; width: 100%; top: var(--fc-contact-scroll, 0); overflow: hidden; }
    /* Keep the five site navigation actions above the native widget. */
    .fc-contact-enabled .mobile_footer.fc-contact-footer { visibility: visible !important; pointer-events: auto; z-index: 1000001; }
    .fc-contact-native-open .mobile_footer.fc-contact-footer { bottom: var(--fc-contact-vbottom, 0px) !important; }
    .fc-contact-panel { bottom: calc(var(--fc-contact-nav-height, 70px) + var(--fc-contact-vbottom, 0px)); max-height: calc(var(--fc-contact-vh, 100dvh) - var(--fc-contact-nav-height, 70px) - 24px); padding-bottom: 0; }
    .fc-contact-overlay { bottom: calc(var(--fc-contact-nav-height, 70px) + var(--fc-contact-vbottom, 0px)); }
    .fc-contact-enabled .bx-livechat-wrapper { top: var(--fc-contact-vtop, 0px) !important; bottom: auto !important; right: 0 !important; left: 0 !important; width: 100% !important; height: max(0px, calc(var(--fc-contact-vh, 100dvh) - var(--fc-contact-nav-height, 70px))) !important; max-height: max(0px, calc(var(--fc-contact-vh, 100dvh) - var(--fc-contact-nav-height, 70px))) !important; z-index: 1000000 !important; border-radius: 0 !important; margin: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
    .fc-contact-panel, .fc-contact-launcher { transition: none; animation: none; }
}

/* Private review revision 2: native forms keep their own submit/consent logic. */
.fc-contact-enabled .b24-form .b24-form-field-agreement-link { color: #9a4d60; text-decoration: underline; text-underline-offset: 2px; }
.fc-contact-enabled .b24-form .b24-form-btn { background-color: #c77583; border-color: #c77583; }
.fc-contact-enabled .b24-form .b24-form-wrapper { --b24-primary-color: #c77583; }
.fc-contact-enabled .fc-native-welcome .bx-livechat-help-title { font-size: 24px; line-height: 1.25; }
.fc-contact-enabled .fc-native-welcome .bx-livechat-help-subtitle { margin-top: 10px; font-size: 15px; line-height: 1.45; max-width: 270px; }
@media (min-width: 1200px) {
    .fc-contact-enabled .bx-livechat-wrapper { width: 340px !important; height: 440px !important; max-height: calc(100dvh - 120px); right: 24px !important; bottom: 96px !important; top: auto !important; left: auto !important; margin: 0 !important; }
    .fc-contact-enabled .bx-livechat-widget-resize-handle { display: none; }
}

/* Owner review revision 5: readable chat and compact native contact collection. */
.fc-contact-enabled .bx-livechat-head .bx-livechat-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.fc-contact-enabled .bx-im-textarea-input { box-sizing: border-box; min-height: 48px; padding: 12px !important; font-size: 16px !important; line-height: 1.4 !important; }
.fc-contact-enabled .bx-im-message-text { font-size: 16px; line-height: 1.45; }
.fc-contact-enabled .bx-imopenlines-form-wrapper { max-width: 100%; margin: 8px 0; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-wrapper { min-width: 0; border-radius: 12px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-padding-side { padding-left: 12px; padding-right: 12px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-header { padding: 12px 12px 8px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-header-title { font-size: 17px; line-height: 1.3; margin: 0; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-header-description:empty { display: none; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-content { padding: 10px 12px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-field { margin-bottom: 10px; }
.fc-contact-enabled .bx-imopenlines-form-content input.b24-form-control { min-height: 44px; height: 44px; font-size: 16px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-control-label { font-size: 16px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-control-desc { font-size: 12px; line-height: 1.4; }
.fc-contact-enabled .bx-imopenlines-form-content input[type="checkbox"] { width: 14px; height: 14px; margin: 2px 6px 0 0; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-btn { min-height: 42px; padding: 10px 16px; font-size: 15px; }
.fc-contact-enabled .bx-imopenlines-form-content .b24-form-btn-container { padding-top: 0; }
@media (max-width: 1199.98px) {
    .mobile_footer.fc-contact-footer .fc-contact-mobile-item { grid-column: 3; grid-row: 1; }
}

/* Callback30 only: native validation, consent and success visibility are retained. */
.fc-contact-enabled #b24-b24-site-button-form-30 { --b24-primary-color: #c77583; --b24-primary-text-color: #fff; --b24-text-color: #342b30; --b24-background-color: #fff; --b24-field-background-color: #fcf8f9; --b24-field-border-color: #e8dce0; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-wrapper { border-radius: 20px; overflow: hidden; font-family: inherit; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-header { padding: 24px 52px 12px 24px; border-bottom: 0; text-align: left; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-header-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: #342b30; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-header-description { margin-top: 8px; font-size: 14px; line-height: 1.45; color: #72646b; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-content { padding: 8px 24px 20px; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-field { margin-bottom: 12px; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-control-string .b24-form-control { border-radius: 10px; height: 52px; font-size: 16px; font-family: inherit; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-control-string .b24-form-control:focus { border-color: #a35468; box-shadow: 0 0 0 3px #c775831a; outline: none; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-control-desc { font-size: 12px; line-height: 1.5; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-field-agreement-link { color: #8c4052; }
.fc-contact-enabled #b24-b24-site-button-form-30 input[type="checkbox"] { width: 16px; height: 16px; accent-color: #a35468; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-btn-container { padding-top: 4px; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-btn { min-height: 48px; padding: 12px 20px; border-radius: 12px; background: #a35468; border-color: #a35468; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-btn:hover { background: #8c4052; border-color: #8c4052; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-btn:focus-visible { outline: 3px solid #8c4052; outline-offset: 3px; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-wrapper.b24-from-state-on { min-height: 300px; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success { background: #fcf0f3; color: #59333e; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success .b24-form-state-inner { position: relative; top: auto; max-width: 100%; padding: 32px 24px; transform: none; box-sizing: border-box; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success-icon { position: relative; width: 72px; height: 72px; margin: 0 0 24px; border-radius: 50%; background: #fff; background-image: none; box-shadow: 0 0 0 10px #ffffff66; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success-icon::after { content: ''; position: absolute; left: 27px; top: 19px; width: 14px; height: 26px; border: solid #a35468; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success .b24-form-state-text { margin: 0; color: #59333e; opacity: 1; font-size: 17px; line-height: 1.5; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success .b24-form-state-text p { margin: 0; }
.fc-contact-enabled #b24-b24-site-button-form-30 .b24-form-success .b24-form-state-text p + p:not(:empty) { margin-top: 8px; }
@supports selector(:has(*)) {
    .fc-contact-enabled .b24-window-widget:has(#b24-b24-site-button-form-30) { border-radius: 20px; box-shadow: 0 12px 44px #43222e29; max-width: calc(100vw - 24px); }
    .fc-contact-enabled .b24-window-widget:has(#b24-b24-site-button-form-30)::after { display: none; }
    .fc-contact-enabled .b24-window-widget:has(#b24-b24-site-button-form-30) > .b24-window-close { top: 16px; right: 16px; width: 32px; height: 32px; background-color: #a35468; opacity: 1; }
}

/* One aligned welcome identity; do not inherit the native stacked operator grid. */
.fc-contact-enabled .fc-native-welcome .fc-chat-identity { display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; max-width: 100%; margin: 0; text-align: left; }
.fc-contact-enabled .fc-chat-identity .bx-livechat-user-icon { display: flex; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; }
.fc-contact-enabled .fc-chat-identity .bx-livechat-user-info { display: block; flex: 0 1 auto; margin: 0; }
.fc-contact-enabled .fc-chat-identity .bx-livechat-user-name { margin: 0; font-size: 16px; line-height: 1.4; }
/* During a user-requested resume keep only the close action and loading status. */
.fc-contact-panel[data-fc-chat-resume] .fc-contact-options { display: none; }
