/* =====================================================
   ACP FLOATING ASSISTANT
   Red / Black / White Theme
===================================================== */

#sidebar,
#secondary {
    z-index: 1;
}


#acp-chat-widget {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =====================================================
   LAUNCHER
===================================================== */

#acp-chat-launcher {
    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 58px;
    height: 58px;

    border: none;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #e10600,
            #a60000
        );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 999999;

    box-shadow:
        0 10px 30px
        rgba(170, 0, 0, .28);

    transition: .25s ease;
}


#acp-chat-launcher:hover {
    transform: translateY(-2px);
}


.acp-launcher-chat {
    font-size: 23px;
}


.acp-launcher-close {
    display: none;
    font-size: 30px;
}


#acp-chat-launcher.open
.acp-launcher-chat {
    display: none;
}


#acp-chat-launcher.open
.acp-launcher-close {
    display: block;
}



/* =====================================================
   TEASER
===================================================== */

#acp-chat-teaser {

    position: fixed;

    right: 92px;
    bottom: 27px;

    display: flex;
    align-items: center;

    min-width: 275px;

    padding: 9px 34px 9px 10px;

    background: #ffffff;

    border:
        1px solid #eeeeee;

    border-radius: 14px;

    box-shadow:
        0 8px 30px
        rgba(0,0,0,.12);

    z-index: 999998;
}


#acp-chat-teaser img {

    width: 48px;
    height: 48px;

    object-fit: contain;

    margin-right: 9px;

}


.acp-teaser-text {

    display: flex;
    flex-direction: column;

}


.acp-teaser-text strong {

    color: #d50700;

    font-size: 11px;

}


.acp-teaser-text span {

    margin-top: 2px;

    color: #333;

    font-size: 12px;

}


#acp-close-teaser {

    position: absolute;

    right: 10px;
    top: 8px;

    border: 0;
    background: transparent;

    color: #666;

    cursor: pointer;

}



/* =====================================================
   PANEL
===================================================== */

#acp-chat-panel {

    position: fixed;

    right: 24px;
    bottom: 96px;

    width: 365px;
    height: 610px;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid #e7e7e7;

    border-radius: 18px;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,.20);

    z-index: 999997;

    opacity: 0;

    pointer-events: none;

    transform:
        translateY(20px)
        scale(.97);

    transform-origin:
        bottom right;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


#acp-chat-panel.open {

    opacity: 1;

    pointer-events: auto;

    transform:
        translateY(0)
        scale(1);

}



.acp-chat-screen {

    display: none;

    width: 100%;
    height: 100%;

}


.acp-chat-screen.active {

    display: flex;
    flex-direction: column;

}



/* =====================================================
   HOME HERO
===================================================== */

.acp-chat-hero {

    position: relative;

    min-height: 180px;

    padding: 25px 20px 15px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #e10600,
            #a90000
        );

    color: #ffffff;

}


.acp-chat-hero-content {

    height: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

}


.acp-chat-welcome {

    position: relative;

    z-index: 2;

    max-width: 215px;

}


.acp-chat-welcome h2 {

    margin: 0 0 4px;

    color: #ffffff;

    font-size: 24px;
    font-weight: 800;

}


.acp-chat-welcome p {

    margin: 0 0 16px;

    color:
        rgba(255,255,255,.9);

    font-size: 12px;
    line-height: 1.5;

}


#acp-start-chat {

    padding: 12px 16px;

    border: none;
    border-radius: 10px;

    background: #ffffff;

    color: #111111;

    font-weight: 600;

    cursor: pointer;

}


#acp-start-chat span {

    margin-left: 8px;

}


.acp-chat-mascot {

    position: absolute;

    right: 13px;
    bottom: 0;

    width: 118px;
    height: 150px;

    object-fit: contain;

}


.acp-chat-minimize {

    position: absolute;

    right: 14px;
    top: 13px;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 50%;

    background: #ffffff;

    color: #111;

    cursor: pointer;

    z-index: 5;

}



/* =====================================================
   HOME MENU
===================================================== */

.acp-chat-menu {

    flex: 1;

    overflow-y: auto;

    background: #ffffff;

}


.acp-chat-menu-item {

    width: 100%;

    min-height: 66px;

    padding: 12px 18px;

    display: flex;
    align-items: center;

    border: 0;
    border-bottom:
        1px solid #eeeeee;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition: .2s ease;

}


.acp-chat-menu-item:hover {

    background: #fff5f5;

}


.acp-chat-menu-item.primary {

    min-height: 82px;

}


.acp-menu-icon {

    width: 34px;

    color: #e10600;

    font-size: 22px;

}


.acp-menu-copy {

    flex: 1;

    display: flex;
    flex-direction: column;

}


.acp-menu-copy strong {

    color: #1b1b1b;

    font-size: 14px;

}


.acp-menu-copy small {

    margin-top: 3px;

    color: #777;

    font-size: 11px;

}


.acp-menu-arrow {

    color: #d50700;

    font-size: 21px;

}



/* =====================================================
   BOTTOM NAV
===================================================== */

.acp-chat-bottom-nav {

    height: 58px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        1px solid #e8e8e8;

    background: #ffffff;

}


.acp-chat-bottom-nav button {

    border: 0;

    background: transparent;

    color: #777;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 2px;

    font-size: 10px;

    cursor: pointer;

}


.acp-chat-bottom-nav button span {

    font-size: 17px;

}


.acp-chat-bottom-nav button.active {

    color: #e10600;

}



/* =====================================================
   CONVERSATION HEADER
===================================================== */

.acp-conversation-header {

    position: relative;

    height: 62px;

    padding: 0 15px;

    display: flex;
    align-items: center;

    border-bottom:
        1px solid #e9e9e9;

    background: #ffffff;

}


#acp-chat-back {

    margin-right: 12px;

    border: 0;
    background: transparent;

    font-size: 20px;

    cursor: pointer;

}


.acp-conversation-header div {

    display: flex;
    flex-direction: column;

}


.acp-conversation-header strong {

    color: #111;

    font-size: 14px;

}


.acp-conversation-header small {

    color: #888;

    font-size: 10px;

}



/* =====================================================
   MESSAGES
===================================================== */

#acp-chat-messages {

    flex: 1;

    overflow-y: auto;

    padding: 20px 16px 115px;

    background: #ffffff;

}


.acp-message-row {

    display: flex;

    margin-bottom: 15px;

}


.acp-message-row.user {

    justify-content: flex-end;

}


.acp-message {

    max-width: 78%;

    padding: 11px 13px;

    border-radius: 15px;

    color: #222;

    font-size: 13px;
    line-height: 1.45;

}


.acp-message-row.assistant
.acp-message {

    padding-left: 0;

    background: transparent;

}


.acp-message-row.user
.acp-message {

    background: #f1f1f1;

    border-bottom-right-radius: 4px;

}



/* =====================================================
   TYPING
===================================================== */

.acp-chat-typing {

    display: none;

    position: absolute;

    left: 17px;
    bottom: 98px;

    align-items: center;

    gap: 4px;

    color: #777;

}


.acp-chat-typing.visible {

    display: flex;

}


.acp-chat-typing span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #e10600;

    animation:
        acpTyping 1s
        infinite alternate;

}


.acp-chat-typing span:nth-child(2) {

    animation-delay: .15s;

}


.acp-chat-typing span:nth-child(3) {

    animation-delay: .30s;

}


.acp-chat-typing small {

    margin-left: 7px;

}


@keyframes acpTyping {

    from {
        opacity: .3;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(-4px);
    }

}



/* =====================================================
   MESSAGE COMPOSER
===================================================== */

.acp-chat-composer {

    position: absolute;

    left: 10px;
    right: 10px;
    bottom: 10px;

    min-height: 78px;

    padding: 12px;

    background: #ffffff;

    border:
        1px solid #e5e5e5;

    border-radius: 15px;

    box-shadow:
        0 5px 20px
        rgba(0,0,0,.10);

}


#acp-chat-input {

    width: 100%;
    min-height: 32px;
    max-height: 85px;

    resize: none;

    border: 0;

    outline: 0;

    background: transparent;

    color: #222;

    font-family: inherit;

    font-size: 12px;

}


.acp-chat-composer-actions {

    display: flex;
    justify-content: space-between;
    align-items: center;

}


#acp-chat-attachment,
#acp-chat-send {

    border: 0;

    background: transparent;

    cursor: pointer;

}


#acp-chat-send {

    width: 36px;
    height: 36px;

    border-radius: 10px;

    background: #e10600;

    color: #ffffff;

    font-size: 18px;

}



/* =====================================================
   MOBILE
===================================================== */

@media(max-width: 600px) {

    #acp-chat-panel {

        right: 8px;
        left: 8px;
        bottom: 80px;

        width: auto;

        height:
            calc(100vh - 100px);

        border-radius: 17px;

    }


    #acp-chat-launcher {

        right: 16px;
        bottom: 16px;

    }


    #acp-chat-teaser {

        right: 82px;
        bottom: 20px;

        min-width: 220px;

    }

}

/* =========================================
   DASHICON FIXES
========================================= */

#acp-chat-launcher .dashicons,
.acp-menu-icon .dashicons,
.acp-menu-arrow .dashicons,
.acp-chat-bottom-nav .dashicons,
#acp-chat-back .dashicons,
#acp-chat-send .dashicons,
#acp-chat-attachment .dashicons,
.acp-chat-minimize .dashicons {
    width: auto;
    height: auto;
    font-size: inherit;
    line-height: inherit;
}


/* =========================================
   LAUNCHER ICON
========================================= */

.acp-launcher-chat .dashicons {
    font-size: 22px;
    line-height: 1;
}


/* =========================================
   FALLBACK MASCOT
========================================= */

.acp-mascot-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    background: #ffffff;
    color: #e10600;
    border-radius: 16px;
}

.acp-mascot-fallback .dashicons {
    font-size: 34px;
    width: 34px;
    height: 34px;
    line-height: 34px;
}

.acp-teaser-fallback {
    width: 48px;
    height: 48px;
    margin-right: 9px;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    flex: 0 0 48px;
}

.acp-hero-fallback {
    position: absolute;
    right: 13px;
    bottom: 12px;

    width: 118px;
    height: 140px;

    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: #ffffff;
    border-radius: 18px;
}

.acp-hero-fallback .dashicons {
    font-size: 42px;
    width: 42px;
    height: 42px;
    line-height: 42px;
    color: #ffffff;
}

.acp-hero-fallback small {
    margin-top: 8px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    line-height: 1.3;
}


/* =========================================
   REAL MASCOT IMAGE
========================================= */

.acp-teaser-mascot {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-right: 9px;
}

.acp-chat-mascot {
    position: absolute;
    right: 13px;
    bottom: 0;
    width: 118px;
    height: 150px;
    object-fit: contain;
}


/* =========================================
   BUTTON / MENU ICON SIZES
========================================= */

.acp-menu-icon .dashicons {
    font-size: 22px;
    line-height: 1;
}

.acp-menu-arrow .dashicons {
    font-size: 18px;
    line-height: 1;
}

.acp-chat-bottom-nav button span.dashicons {
    font-size: 18px;
    line-height: 1;
}

#acp-chat-back .dashicons,
.acp-chat-minimize .dashicons,
#acp-chat-attachment .dashicons,
#acp-chat-send .dashicons {
    font-size: 18px;
    line-height: 1;
}

/* =====================================================
   ACP CHAT WIDGET
   PRODUCTION MOBILE FIX + PREMIUM ANIMATIONS
   Developed by Bakar Technologies
===================================================== */


/* =====================================================
   PANEL SIZE / POSITION
===================================================== */

#acp-chat-panel {
    max-height: calc(100dvh - 125px);

    transition:
        opacity .28s ease,
        transform .32s cubic-bezier(.2,.8,.2,1),
        visibility .28s ease;

    visibility: hidden;
}


#acp-chat-panel.open {
    visibility: visible;

    animation:
        acpPanelOpen .35s
        cubic-bezier(.2,.8,.2,1)
        both;
}


/* =====================================================
   PANEL OPEN ANIMATION
===================================================== */

@keyframes acpPanelOpen {

    0% {
        opacity: 0;

        transform:
            translateY(28px)
            scale(.94);
    }

    60% {
        opacity: 1;

        transform:
            translateY(-3px)
            scale(1.01);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


/* =====================================================
   LAUNCHER
===================================================== */

#acp-chat-launcher {

    isolation: isolate;

    overflow: visible;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


#acp-chat-launcher::before {

    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 50%;

    border:
        2px solid
        rgba(225,6,0,.22);

    opacity: 0;

    pointer-events: none;

    animation:
        acpLauncherPulse
        2.4s
        ease-out
        infinite;
}


#acp-chat-launcher:hover {

    transform:
        translateY(-3px)
        scale(1.04);

    box-shadow:
        0 14px 35px
        rgba(170,0,0,.34);
}


#acp-chat-launcher:active {

    transform:
        scale(.94);
}


/* Stop pulse while panel is open */

#acp-chat-launcher.open::before {

    animation: none;

    opacity: 0;
}


@keyframes acpLauncherPulse {

    0% {
        transform: scale(.85);
        opacity: 0;
    }

    20% {
        opacity: .8;
    }

    75% {
        transform: scale(1.3);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }

}


/* =====================================================
   TEASER ANIMATION
===================================================== */

#acp-chat-teaser {

    animation:
        acpTeaserEnter
        .45s
        cubic-bezier(.2,.8,.2,1)
        both;
}


@keyframes acpTeaserEnter {

    from {
        opacity: 0;

        transform:
            translateX(20px)
            scale(.96);
    }

    to {
        opacity: 1;

        transform:
            translateX(0)
            scale(1);
    }

}


/* =====================================================
   HERO
===================================================== */

.acp-chat-hero {

    position: relative;

    overflow: hidden;
}


.acp-chat-hero::before {

    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -100px;
    top: -140px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.08);

    pointer-events: none;
}


.acp-chat-hero::after {

    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    left: -100px;
    bottom: -105px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);

    pointer-events: none;
}


/* =====================================================
   MASCOT ANIMATION
===================================================== */

.acp-chat-mascot {

    transform-origin:
        center bottom;

    animation:
        acpMascotFloat
        3.4s
        ease-in-out
        infinite;

    filter:
        drop-shadow(
            0 8px 12px
            rgba(0,0,0,.12)
        );
}


@keyframes acpMascotFloat {

    0%,
    100% {

        transform:
            translateY(0)
            rotate(0deg);

    }

    50% {

        transform:
            translateY(-7px)
            rotate(1.2deg);

    }

}


/* =====================================================
   WELCOME TEXT
===================================================== */

#acp-chat-panel.open
.acp-chat-welcome {

    animation:
        acpWelcomeEnter
        .45s
        .08s
        both;
}


@keyframes acpWelcomeEnter {

    from {

        opacity: 0;

        transform:
            translateX(-14px);

    }

    to {

        opacity: 1;

        transform:
            translateX(0);

    }

}


/* =====================================================
   MINIMIZE / CLOSE BUTTON FIX
===================================================== */

.acp-chat-minimize {

    position: absolute !important;

    top: 12px !important;

    right: 12px !important;

    left: auto !important;

    bottom: auto !important;

    width: 36px !important;

    height: 36px !important;

    min-width: 36px !important;

    min-height: 36px !important;

    padding: 0 !important;

    margin: 0 !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    border:
        1px solid
        rgba(0,0,0,.08) !important;

    border-radius: 50% !important;

    background:
        rgba(255,255,255,.96) !important;

    color: #111111 !important;

    cursor: pointer;

    z-index: 50 !important;

    box-shadow:
        0 3px 12px
        rgba(0,0,0,.12);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.acp-chat-minimize:hover {

    transform:
        rotate(8deg)
        scale(1.06);

    background:
        #ffffff !important;

    box-shadow:
        0 5px 16px
        rgba(0,0,0,.17);
}


.acp-chat-minimize:active {

    transform:
        scale(.92);
}


/* Prevent theme button styles */

.acp-chat-minimize::before,
.acp-chat-minimize::after {

    display: none !important;
}


/* =====================================================
   HOME MENU
===================================================== */

.acp-chat-menu {

    overscroll-behavior:
        contain;

    -webkit-overflow-scrolling:
        touch;
}


.acp-chat-menu-item {

    position: relative;

    overflow: hidden;

    transition:
        background .2s ease,
        transform .2s ease,
        padding-left .2s ease;
}


.acp-chat-menu-item:hover {

    padding-left: 22px;

    background:
        #fff4f4;

    transform:
        translateX(2px);
}


.acp-chat-menu-item:active {

    transform:
        scale(.985);
}


/* =====================================================
   MENU ICON ANIMATION
===================================================== */

.acp-chat-menu-item
.acp-menu-icon {

    transition:
        transform .25s
        cubic-bezier(.2,.8,.2,1);
}


.acp-chat-menu-item:hover
.acp-menu-icon {

    transform:
        scale(1.12)
        rotate(-4deg);
}


.acp-chat-menu-item
.acp-menu-arrow {

    transition:
        transform .2s ease;
}


.acp-chat-menu-item:hover
.acp-menu-arrow {

    transform:
        translateX(4px);
}


/* =====================================================
   MENU ITEM ENTRANCE
===================================================== */

#acp-chat-panel.open
.acp-chat-menu-item {

    animation:
        acpMenuEnter
        .38s
        both;
}


#acp-chat-panel.open
.acp-chat-menu-item:nth-child(1) {

    animation-delay:
        .08s;

}


#acp-chat-panel.open
.acp-chat-menu-item:nth-child(2) {

    animation-delay:
        .12s;

}


#acp-chat-panel.open
.acp-chat-menu-item:nth-child(3) {

    animation-delay:
        .16s;

}


#acp-chat-panel.open
.acp-chat-menu-item:nth-child(4) {

    animation-delay:
        .20s;

}


#acp-chat-panel.open
.acp-chat-menu-item:nth-child(5) {

    animation-delay:
        .24s;

}


@keyframes acpMenuEnter {

    from {

        opacity: 0;

        transform:
            translateY(9px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =====================================================
   BOTTOM NAVIGATION
===================================================== */

.acp-chat-bottom-nav {

    flex-shrink: 0;

    box-shadow:
        0 -4px 14px
        rgba(0,0,0,.035);
}


.acp-chat-bottom-nav button {

    transition:
        color .2s ease,
        transform .2s ease,
        background .2s ease;
}


.acp-chat-bottom-nav button:hover {

    color:
        #e10600;

    background:
        #fff7f7;
}


.acp-chat-bottom-nav button:active {

    transform:
        scale(.92);
}


/* =====================================================
   CHAT MESSAGES
===================================================== */

.acp-message-row {

    animation:
        acpMessageEnter
        .25s
        cubic-bezier(.2,.8,.2,1)
        both;
}


@keyframes acpMessageEnter {

    from {

        opacity: 0;

        transform:
            translateY(8px)
            scale(.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =====================================================
   SEND BUTTON
===================================================== */

#acp-chat-send {

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


#acp-chat-send:hover {

    transform:
        translateY(-1px)
        scale(1.04);

    background:
        #c90500;

    box-shadow:
        0 5px 14px
        rgba(225,6,0,.24);
}


#acp-chat-send:active {

    transform:
        scale(.9);
}


/* =====================================================
   COMPOSER
===================================================== */

.acp-chat-composer {

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.acp-chat-composer:focus-within {

    border-color:
        rgba(225,6,0,.40);

    box-shadow:
        0 7px 24px
        rgba(225,6,0,.10);

    transform:
        translateY(-1px);
}


/* =====================================================
   MOBILE / TABLET
===================================================== */

@media
(max-width: 600px) {


    /*
    ========================================
    PANEL
    ========================================
    */

    #acp-chat-panel {

        top: auto !important;

        left: 8px !important;

        right: 8px !important;

        bottom:
            calc(
                76px +
                env(
                    safe-area-inset-bottom,
                    0px
                )
            ) !important;

        width: auto !important;

        height:
            min(
                620px,
                calc(
                    100dvh -
                    95px -
                    env(
                        safe-area-inset-bottom,
                        0px
                    )
                )
            ) !important;

        max-height:
            calc(
                100dvh -
                95px -
                env(
                    safe-area-inset-bottom,
                    0px
                )
            ) !important;

        border-radius:
            18px !important;

        transform-origin:
            bottom center;
    }


    /*
    ========================================
    HERO
    ========================================
    */

    .acp-chat-hero {

        min-height:
            165px;

        padding:
            22px
            18px
            14px;

    }


    .acp-chat-welcome {

        max-width:
            calc(
                100% - 112px
            );

    }


    .acp-chat-welcome h2 {

        font-size:
            22px;

    }


    .acp-chat-welcome p {

        font-size:
            11px;

        line-height:
            1.45;

    }


    /*
    ========================================
    MASCOT
    ========================================
    */

    .acp-chat-mascot {

        right:
            10px;

        bottom:
            2px;

        width:
            106px;

        height:
            132px;

    }


    /*
    ========================================
    CLOSE BUTTON
    ========================================
    */

    .acp-chat-minimize {

        top:
            10px !important;

        right:
            10px !important;

        left:
            auto !important;

        width:
            36px !important;

        height:
            36px !important;

    }


    /*
    ========================================
    MENU
    ========================================
    */

    .acp-chat-menu-item {

        min-height:
            58px;

        padding:
            10px
            15px;

    }


    .acp-chat-menu-item.primary {

        min-height:
            68px;

    }


    .acp-menu-icon {

        width:
            32px;

    }


    .acp-menu-copy strong {

        font-size:
            13px;

    }


    /*
    ========================================
    BOTTOM NAV
    ========================================
    */

    .acp-chat-bottom-nav {

        height:
            52px;

        min-height:
            52px;

    }


    /*
    ========================================
    LAUNCHER
    ========================================
    */

    #acp-chat-launcher {

        right:
            14px !important;

        bottom:
            calc(
                14px +
                env(
                    safe-area-inset-bottom,
                    0px
                )
            ) !important;

        width:
            56px;

        height:
            56px;

    }


    /*
    ========================================
    TEASER
    ========================================
    */

    #acp-chat-teaser {

        right:
            78px;

        bottom:
            calc(
                17px +
                env(
                    safe-area-inset-bottom,
                    0px
                )
            );

        min-width:
            0;

        width:
            min(
                245px,
                calc(
                    100vw - 105px
                )
            );

    }


    /*
    ========================================
    CONVERSATION
    ========================================
    */

    .acp-conversation-header {

        height:
            56px;

        min-height:
            56px;

    }


    #acp-chat-messages {

        padding:
            16px
            13px
            105px;

    }


    .acp-message {

        max-width:
            86%;

        font-size:
            12px;

    }


    /*
    ========================================
    COMPOSER
    ========================================
    */

    .acp-chat-composer {

        left:
            8px;

        right:
            8px;

        bottom:
            8px;

        min-height:
            72px;

        padding:
            10px;

    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media
(max-width: 380px) {


    #acp-chat-panel {

        left:
            5px !important;

        right:
            5px !important;

        border-radius:
            15px !important;

    }


    .acp-chat-hero {

        min-height:
            155px;

    }


    .acp-chat-mascot {

        width:
            92px;

        height:
            118px;

    }


    .acp-chat-welcome {

        max-width:
            calc(
                100% - 92px
            );

    }


    .acp-chat-welcome h2 {

        font-size:
            20px;

    }


    .acp-chat-menu-item {

        min-height:
            54px;

    }

}


/* =====================================================
   DESKTOP LARGER SCREENS
===================================================== */

@media
(min-width: 1200px) {


    #acp-chat-panel {

        width:
            380px;

        height:
            620px;

    }

}


/* =====================================================
   ACCESSIBILITY
   REDUCED MOTION
===================================================== */

@media
(prefers-reduced-motion: reduce) {


    #acp-chat-panel,

    #acp-chat-launcher,

    #acp-chat-teaser,

    .acp-chat-mascot,

    .acp-chat-menu-item,

    .acp-message-row,

    #acp-chat-send,

    .acp-chat-minimize {

        animation:
            none !important;

        transition:
            none !important;

    }


    #acp-chat-launcher::before {

        animation:
            none !important;

    }

}

/* =====================================================
   ACP CHAT WIDGET - COMPACT LAYOUT FIX
   Add at VERY BOTTOM of acp-chat-widget.css
===================================================== */


/* PANEL: remove unnecessary fixed empty height */
#acp-chat-panel {
    height: 505px !important;
    max-height: calc(100dvh - 110px) !important;
}


/* HERO: slightly more compact */
.acp-chat-hero {
    min-height: 160px !important;
    padding: 20px 18px 12px !important;
}


/* TITLE */
.acp-chat-welcome h2 {
    font-size: 22px !important;
}


/* CHAT BUTTON */
#acp-start-chat {
    padding: 10px 15px !important;
}


/* MASCOT */
.acp-chat-mascot {
    width: 105px !important;
    height: 132px !important;
    right: 12px !important;
}


/* MENU MUST NOT STRETCH */
.acp-chat-menu {
    flex: 0 0 auto !important;
    overflow: visible !important;
}


/* COMPACT MENU ROWS */
.acp-chat-menu-item {
    min-height: 51px !important;
    padding: 8px 16px !important;
}


/* FIRST MENU ROW */
.acp-chat-menu-item.primary {
    min-height: 61px !important;
}


/* ICON */
.acp-menu-icon {
    width: 32px !important;
}


/* MENU TEXT */
.acp-menu-copy strong {
    font-size: 13px !important;
}

.acp-menu-copy small {
    font-size: 10px !important;
}


/* BOTTOM NAV */
.acp-chat-bottom-nav {
    height: 54px !important;
    min-height: 54px !important;
    margin-top: auto !important;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    #acp-chat-panel {
        left: 10px !important;
        right: 10px !important;

        width: auto !important;

        height: 500px !important;

        max-height:
            calc(
                100dvh -
                95px -
                env(
                    safe-area-inset-bottom,
                    0px
                )
            ) !important;
    }


    .acp-chat-hero {
        min-height: 155px !important;
        padding: 18px 17px 12px !important;
    }


    .acp-chat-mascot {
        width: 98px !important;
        height: 122px !important;
    }


    .acp-chat-menu-item {
        min-height: 49px !important;
        padding: 7px 14px !important;
    }


    .acp-chat-menu-item.primary {
        min-height: 59px !important;
    }


    .acp-chat-bottom-nav {
        height: 52px !important;
        min-height: 52px !important;
    }

}


/* VERY SMALL PHONES */
@media (max-width: 380px) {

    #acp-chat-panel {
        height: 480px !important;
    }

    .acp-chat-hero {
        min-height: 145px !important;
    }

    .acp-chat-mascot {
        width: 90px !important;
        height: 112px !important;
    }

}