.fe-chat {
    font-family: inherit;
}

.fe-chat * {
    box-sizing: border-box;
}

.fe-chat {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 99990;
}

body.fe-has-configurator .fe-chat {
    bottom: 92px;
}

body.woocommerce-cart .fe-chat,
body.woocommerce-checkout .fe-chat {
    right: 18px;
    bottom: 92px;
}

body.single-product .fe-chat {
    right: 18px;
    bottom: 96px;
}

.fe-chat__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border: 1px solid #1fa855;
    border-radius: 999px;
    background: #1fa855;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 8px;
    text-transform: uppercase;
    box-shadow: 0 18px 42px rgba(17, 17, 17, .2);
}

.fe-chat__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    color: #1fa855;
}

.fe-chat__button span:not(.fe-chat__icon) {
    display: none;
}

.fe-chat__icon svg,
.fe-mobile-account-menu-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.fe-mobile-account-section {
    display: none !important;
}

.fe-mobile-header-account {
    display: none !important;
}

.fe-chat__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: min(360px, calc(100vw - 32px));
    border: 1px solid #ddd8cf;
    border-radius: 8px;
    background: #fffdf8;
    color: #111;
    padding: 18px;
    box-shadow: 0 26px 70px rgba(17, 17, 17, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
}

.fe-chat.is-open .fe-chat__panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fe-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fe-chat__head p {
    margin: 0;
    color: #1fa855;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.fe-chat__head button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd8cf;
    border-radius: 999px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.fe-chat__intro {
    margin: 12px 0 16px;
    color: #4a4a4a;
    font-size: 14px;
    line-height: 1.6;
}

.fe-chat__options {
    display: grid;
    gap: 8px;
}

.fe-chat__options button,
.fe-chat__send {
    min-height: 42px;
    border: 1px solid #ddd8cf;
    border-radius: 4px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 0 12px;
    text-align: left;
    text-transform: uppercase;
}

.fe-chat__options button:hover {
    border-color: #1fa855;
}

.fe-chat__custom {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.fe-chat__custom span {
    color: #111;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fe-chat__custom textarea {
    width: 100%;
    border: 1px solid #ddd8cf;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font: inherit;
    padding: 10px;
    resize: vertical;
}

.fe-chat__send {
    width: 100%;
    margin-top: 12px;
    border-color: #1fa855;
    background: #1fa855;
    color: #fff;
    text-align: center;
}

@media (max-width: 921px) {
    .ast-header-account,
    .ast-header-account-wrap,
    .header-account,
    .account-icon,
    .account-link,
    .my-account-link,
    .elementor-location-header a[href*="my-account"],
    .elementor-location-header a[href*="log-in-register"],
    header a[href*="my-account"],
    header a[href*="log-in-register"] {
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .fe-mobile-account-section {
        display: block !important;
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin: 14px 0 0 !important;
        border-top: 1px solid rgba(221, 216, 207, .9);
        border-bottom: 1px solid rgba(221, 216, 207, .65);
        background: #fffdf8;
        box-shadow: 0 -12px 24px rgba(17, 17, 17, .04);
        padding: 13px 0 10px !important;
    }

    .fe-mobile-account-section__label {
        color: #c6a87a;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .14em;
        margin: 0 0 8px;
        padding: 0 1em;
        text-transform: uppercase;
    }

    .fe-mobile-account-section__list {
        display: grid;
        gap: 2px;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .fe-mobile-account-menu-item {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .fe-mobile-account-menu-link {
        display: flex !important;
        align-items: center;
        gap: 10px;
        min-height: 42px;
        color: #111 !important;
        text-decoration: none;
        padding: 9px 1em !important;
    }

    .fe-mobile-account-menu-icon {
        display: inline-grid;
        place-items: center;
        width: 28px;
        height: 28px;
        border: 1px solid rgba(17, 17, 17, .14);
        border-radius: 999px;
        background: #fffdf8;
        color: #111;
    }

    .fe-mobile-account-menu-item--logout .fe-mobile-account-menu-link {
        color: #8b1f1f;
    }

    .fe-mobile-header-account {
        display: inline-grid !important;
        place-items: center;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit !important;
        text-decoration: none !important;
        box-shadow: none;
        padding: 0 !important;
        margin: 0 !important;
        -webkit-tap-highlight-color: transparent;
    }

    .fe-mobile-header-actions {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
    }

    .fe-mobile-header-account.is-attached {
        position: static;
        inset: auto;
        z-index: auto;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit !important;
        box-shadow: none;
        padding: 0 !important;
        margin: 0 !important;
    }

    .fe-mobile-header-account svg {
        display: block;
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

}

@media (max-width: 620px) {
    :root {
        --fe-mobile-floating-size: 54px;
        --fe-mobile-floating-right: 16px;
        --fe-mobile-floating-bottom: calc(18px + env(safe-area-inset-bottom));
        --fe-mobile-floating-gap: 12px;
    }

    .fe-chat {
        right: var(--fe-mobile-floating-right);
        bottom: calc(var(--fe-mobile-floating-bottom) + var(--fe-mobile-floating-size) + var(--fe-mobile-floating-gap));
    }

    body.fe-has-configurator .fe-chat {
        right: var(--fe-mobile-floating-right);
        bottom: calc(var(--fe-mobile-floating-bottom) + var(--fe-mobile-floating-size) + var(--fe-mobile-floating-gap));
    }

    body.woocommerce-cart .fe-chat,
    body.woocommerce-checkout .fe-chat {
        right: var(--fe-mobile-floating-right);
        bottom: calc(var(--fe-mobile-floating-bottom) + var(--fe-mobile-floating-size) + var(--fe-mobile-floating-gap));
    }

    body.single-product .fe-chat {
        right: var(--fe-mobile-floating-right);
        bottom: calc(var(--fe-mobile-floating-bottom) + var(--fe-mobile-floating-size) + var(--fe-mobile-floating-gap));
    }

    .fe-chat__button {
        width: var(--fe-mobile-floating-size);
        height: var(--fe-mobile-floating-size);
        min-width: var(--fe-mobile-floating-size);
        min-height: var(--fe-mobile-floating-size);
    }

    .xoo-wsc-basket,
    .xoo-wsc-cart-trigger,
    .woofc-count,
    .woofc-cart-trigger,
    .fe-floating-cart,
    .fedele-floating-cart,
    .floating-cart,
    .floating-cart-button {
        right: var(--fe-mobile-floating-right) !important;
        bottom: var(--fe-mobile-floating-bottom) !important;
        width: var(--fe-mobile-floating-size) !important;
        height: var(--fe-mobile-floating-size) !important;
        min-width: var(--fe-mobile-floating-size) !important;
        min-height: var(--fe-mobile-floating-size) !important;
    }
}

@media (max-width: 620px) and (max-height: 700px) {
body.fe-has-configurator .fe-chat {
        display: none;
    }
}

/* FEDELE 2.6.196: fixed mobile floating action geometry. */
.fe-chat,
body.fe-has-configurator .fe-chat,
body.woocommerce-cart .fe-chat,
body.woocommerce-checkout .fe-chat,
body.single-product .fe-chat {
    right: 20px !important;
    bottom: 96px !important;
}

.fe-chat__button {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

.xoo-wsc-basket,
.xoo-wsc-cart-trigger,
.woofc-count,
.woofc-cart-trigger,
.fe-floating-cart,
.fedele-floating-cart,
.floating-cart,
.floating-cart-button {
    right: 20px !important;
    bottom: 20px !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
}

@media (max-width: 921px) {
    .ast-header-break-point .fe-mobile-header-actions,
    .ast-header-break-point .ast-builder-layout-element .ast-header-account-wrap,
    .ast-header-break-point .ast-builder-layout-element .ast-site-header-cart,
    .ast-header-break-point .ast-builder-layout-element .ast-header-woo-cart {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        color: #111 !important;
    }

    .ast-header-break-point .fe-mobile-header-account,
    .ast-header-break-point .ast-header-account-wrap,
    .ast-header-break-point .ast-site-header-cart .ast-cart-menu-wrap,
    .ast-header-break-point .ast-header-woo-cart .ast-cart-menu-wrap {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #111 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .ast-header-break-point .fe-mobile-header-account svg,
    .ast-header-break-point .ast-header-account-wrap svg,
    .ast-header-break-point .ast-site-header-cart svg,
    .ast-header-break-point .ast-header-woo-cart svg {
        width: 24px !important;
        height: 24px !important;
        color: #111 !important;
        fill: currentColor !important;
        stroke: currentColor !important;
    }
}

@media (max-width: 620px) {
    :root {
        --fe-mobile-floating-size: 60px;
        --fe-mobile-floating-right: 20px;
        --fe-mobile-floating-bottom: calc(20px + env(safe-area-inset-bottom));
        --fe-mobile-floating-gap: 12px;
    }

    .fe-chat,
    body.fe-has-configurator .fe-chat,
    body.woocommerce-cart .fe-chat,
    body.woocommerce-checkout .fe-chat,
    body.single-product .fe-chat {
        right: var(--fe-mobile-floating-right) !important;
        bottom: calc(var(--fe-mobile-floating-bottom) + var(--fe-mobile-floating-size) + var(--fe-mobile-floating-gap)) !important;
    }

    body.fe-has-configurator .fe-chat {
        display: block !important;
    }
}
