/* Customer chat: equal-width consultation and promotional carousel. */
.pc_customerServer .pc_customerServer_container_footer_copyright,
.pc_customerServer .pc_customerServer_container_advertisement .copyright,
.mobel_customerServer_container_footer .crmchat_link {
    display: none !important;
}

html,
body,
#app,
.pc_customerServer {
    background: transparent !important;
}

.pc_customerServer_container.max-width_advertisement {
    width: 100% !important;
    max-width: 840px !important;
}

.pc_customerServer_container.max-width_advertisement .layout_content {
    display: flex !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.pc_customerServer_container.max-width_advertisement .layout_content > .layout_customerServer_content {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.pc_customerServer_container.max-width_advertisement .pc_customerServer_container_content {
    min-height: 0 !important;
}

.pc_customerServer_container.max-width_advertisement .layout_content > .pc_customerServer_container_advertisement {
    width: 260px !important;
    max-width: 260px !important;
    flex: 0 0 260px !important;
    min-height: 0 !important;
}

.pc_customerServer_container_advertisement {
    position: relative;
    min-width: 0;
    overflow: hidden !important;
    padding: 0 !important;
    background: #f4f7fb;
}

.pc_customerServer_container_advertisement > :first-child:not(.btx-chat-carousel) { display: none !important; }

.pc_customerServer .pc_customerServer_container_header {
    position: relative;
    overflow: visible !important;
    box-sizing: border-box;
    min-height: 64px !important;
    height: 64px !important;
    padding: 14px 16px 14px 86px !important;
}

.pc_customerServer .pc_customerServer_container_header_title {
    position: static !important;
}

.pc_customerServer .pc_customerServer_container_header_title::before {
    display: none;
}

.pc_customerServer .pc_customerServer_container_header_title img {
    position: absolute;
    z-index: 2;
    top: 5px;
    left: 18px;
    width: 52px !important;
    height: 52px !important;
    margin: 0 !important;
    border: 0;
    border-radius: 50% !important;
    box-sizing: border-box;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(9, 66, 153, .28);
    animation: btx-chat-avatar-breathe 2.6s ease-in-out infinite;
}

.pc_customerServer .pc_customerServer_container_footer {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 28px minmax(0, 1fr) 34px;
    gap: 6px 12px;
    align-items: stretch;
    box-sizing: border-box;
    min-height: 180px !important;
    height: 180px !important;
    padding: 10px 12px 12px !important;
}

.pc_customerServer .pc_customerServer_container_footer_header {
    grid-row: 1;
    grid-column: 1 / 3;
    min-width: 0;
}

.pc_customerServer .pc_customerServer_container_footer_input {
    grid-row: 2;
    grid-column: 1 / 3;
    min-width: 0;
    min-height: 0;
}

.pc_customerServer .pc_customerServer_container_footer_input > div,
.pc_customerServer .pc_customerServer_container_footer_input-textarea {
    box-sizing: border-box;
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
}

.pc_customerServer .pc_customerServer_container_footer_input > div {
    padding: 8px 10px;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
}

.pc_customerServer .pc_customerServer_container_footer_input-textarea {
    padding-top: 8px !important;
}

.pc_customerServer .pc_customerServer_container_footer_handle {
    grid-row: 3;
    grid-column: 2;
    height: 34px !important;
    min-height: 34px !important;
    align-self: center;
    margin-bottom: 0 !important;
}

.pc_customerServer .pc_customerServer_container_footer_handle_send {
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box;
    margin: 0 !important;
}

@keyframes btx-chat-avatar-breathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.035); }
}

@keyframes btx-chat-avatar-ring {
    0% { opacity: .62; transform: scale(.9); }
    70%, 100% { opacity: 0; transform: scale(1.18); }
}

.pc_customerServer .pc_customerServer_container_footer_emoji {
    position: absolute;
    z-index: 6;
    bottom: 38px;
    left: 0;
    width: 360px;
    padding: 10px !important;
    border: 1px solid #e2e7ee;
    box-shadow: 0 6px 18px rgba(23, 40, 61, .12);
}

.btx-chat-carousel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.btx-chat-carousel__media {
    position: relative;
    height: 300px;
    flex: 0 0 300px;
    overflow: hidden;
    background: #edf3fb;
}

.btx-chat-carousel__link,
.btx-chat-carousel__slide { display: block; width: 100%; height: 100%; }

.btx-chat-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(18px) scale(1.015);
    transition: opacity .55s ease, transform .7s ease;
    pointer-events: none;
}

.btx-chat-carousel__slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 1;
}

.btx-chat-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.btx-chat-carousel__control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 41, 82, .48);
    font-size: 25px;
    line-height: 34px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .2s ease;
}

.btx-chat-carousel__control:hover,
.btx-chat-carousel__control:focus-visible { background: rgba(10, 75, 190, .9); outline: none; }
.btx-chat-carousel__control--prev { left: 14px; }
.btx-chat-carousel__control--next { right: 14px; }

.btx-chat-carousel__dots {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 18px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.btx-chat-carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .42);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.btx-chat-carousel__dot.is-active { width: 24px; border-radius: 5px; background: #fff; }

.btx-chat-company {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 20px 16px;
    overflow-y: auto;
    color: #26364a;
    background: #fff;
}

.btx-chat-company__name {
    margin: 0 0 7px;
    color: #17283d;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

.btx-chat-company__phone {
    display: inline-block;
    margin-bottom: 13px;
    color: #1764d9;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    text-decoration: none;
}

.btx-chat-company__summary {
    margin: 0 0 13px;
    color: #637083;
    font-size: 13px;
    line-height: 1.65;
}

.btx-chat-company__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.btx-chat-company__fact { min-width: 0; }
.btx-chat-company__fact strong { display: block; color: #17283d; font-size: 17px; line-height: 1.3; }
.btx-chat-company__fact span { display: block; margin-top: 2px; color: #8b96a6; font-size: 12px; line-height: 1.35; }

@media (max-width: 760px) {
    .pc_customerServer_container.max-width_advertisement { width: 100% !important; }
    .pc_customerServer_container.max-width_advertisement .layout_content > .layout_customerServer_content {
        width: 100% !important;
        flex-basis: 100% !important;
    }
    .pc_customerServer_container.max-width_advertisement .layout_content > .pc_customerServer_container_advertisement { display: none !important; }

    .pc_customerServer .pc_customerServer_container_footer {
        min-height: 150px !important;
        height: 150px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc_customerServer .pc_customerServer_container_header_title::before,
    .pc_customerServer .pc_customerServer_container_header_title img,
    .btx-chat-carousel__slide,
    .btx-chat-carousel__dot { transition: none; }

    .pc_customerServer .pc_customerServer_container_header_title::before,
    .pc_customerServer .pc_customerServer_container_header_title img { animation: none; }
}
