.stickyElement {
    position: fixed;
    bottom: -250px;
    width: 100%;
    z-index: 99999;
    visibility: visible;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-sizing: border-box;
    --max-width: 1020px;
}
.stickyElement * {
    box-sizing: border-box;
}
.stickyElement:not(.--image) {
    padding: 0 20px;
}
.stickyElement.--opened {
    bottom: 0;
}
.stickyElement .stickyElement__row {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 16px;
    padding-bottom: 16px;
}
.stickyElement .stickyElement__image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.stickyElement .stickyElement__content {
    padding: 0 1rem;
}
.stickyElement .stickyElement__code {
    margin-left: auto;
    border: thin solid rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .5rem .5rem .5rem 2rem;
    border-radius: .25rem;
}
.stickyElement .stickyElement__code.--blur span:not(.stickyElement__button) {
    filter: blur(5px);
}
.stickyElement .stickyElement__close {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: rgba(0, 0, 0, .7);
    position: absolute;
    right: 0;
    top: -23px;
    font-family: 'Roboto', sans-serif;
    font-size: 13.33px;
    line-height: 1;
    color: white;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    z-index: 10000000;
}
.stickyElement .advancedStickyClose {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
    background-color: #FFF;
    position: absolute;
    right: 1rem !important;
    top: 0;
    transform: translateY(-50%);
    padding: 0.25rem;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 5px rgba(0,0,0,.1);
    background-size: 1rem;
    transition: filter .3s;
    cursor: pointer;
    font-family: unset;
    font-size: unset;
    line-height: unset;
    color: unset;
    border: unset;
    z-index: unset;
}
.stickyElement .advancedStickyClose:hover {
    filter: invert(1);
}

/* Default sticky element type */
.stickyElement.--sticky_el:not(.--autowidth),
.stickyElement.--sticky_el.--autowidth .stickyElement__row {
    background-color: #FFF;
    box-shadow: 0 -4px 12px 0 rgba(0, 0, 0, .05);
}
/* End of default sticky element */

/* Image sticky element  */

.stickyElement.--image .stickyElement__row {
    max-width: 100%;
    justify-content: center;
    padding: 0;
}
.stickyElement.--image .stickyElement__imageAd {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.stickyElement.--image .stickyElement__imageAdLink {
    display: flex;
}
/* End of image sticky element */

/* Advanced sticky element */
.stickyElement.--advanced_sticky {
    --max-width: 768px;
}

.stickyElement.--advanced_sticky .stickyElement__row {
    position: relative;
}

.stickyElement.--advanced_sticky .stickyElement__headerTag {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-99.5%);
    display: flex;
    background-color: var(--tag_bg_color, #FFF);
    color: var(--tag_text_color, #000);
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    align-items: center;
    border-radius: 0.25rem 0.25rem 0 0;
    gap: 0.25rem;
    font-size: .9rem;
    line-height: 1;
}

.stickyElement:not(.--autowidth) {
    background-color: var(--popup_bg, #FFF);
}

.stickyElement.--advanced_sticky .stickyElement__code {
    background-color: var(--code_bg_color, #FFF);
}

.stickyElement.--advanced_sticky .stickyElement__code span {
    color: var(--code_text_color, #000);
    font-weight: bold;
}

.stickyElement.--advanced_sticky .stickyElement__code {
    display: flex;
    /*justify-content: center;*/
    /*flex: 1 1 auto;*/
    font-size: 1.25rem;
    width: 100%;
}

.stickyElement.--advanced_sticky .stickyElement__codeContent {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
}

.stickyElement.--advanced_sticky .stickyElement__footerLinkWrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 2.5rem;
}

.stickyElement.--advanced_sticky .stickyElement__close {
    right: 0;
}
.stickyElement.--advanced_sticky span.stickyElement__button {
    /*position: absolute;*/
    right: -1.25rem;
    /*top: 50%;*/
    position: relative;
    background-color: var(--button_bg_color, #000);
    color: var(--button_text_color, #FFF);
    font-size: .9rem;
    border-radius: .25rem;
    padding: .25rem .5rem;
    flex: 0 0 auto;
    /*transform: translateY(-50%);*/
}
.stickyElement.--advanced_sticky .stickyElement__code {
    position: relative;
    gap: 0;
}
/* add css triangle to left side of element .sticky_Element__button */
.stickyElement.--advanced_sticky .stickyElement__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--button_bg_color, #000);
}
.stickyElement.--advanced_sticky .stickyElement__footerLink {
    color: var(--popup_text_color, #000);
    text-decoration: underline;
    font-size: .9rem;
}
.stickyElement.--advanced_sticky .stickyElement__footerLink:hover,
.stickyElement.--advanced_sticky .stickyElement__footerLink.--nolink {
    text-decoration: none;
}
/* End of advanced sticky element */

/* Sticky element attributes */
.stickyElement.--autowidth {
    display: flex;
    width: auto;
    left: 0;
    right: 0;
}

.stickyElement.--autowidth .stickyElement__row {
    width: 100%;
    position: relative;
}
.stickyElement.--autowidth.--image .stickyElement__row {
    width: auto;
    box-shadow: none;
    background-color: transparent;
}

.stickyElement.--autowidth.--sticky_el
.stickyElement.--autowidth.--advanced_sticky {
    width: 100%;
    max-width: var(--max-width);
}

.stickyElement.--autowidth.--advanced_sticky {
    padding: 0;
}

.stickyElement.--autowidth.--advanced_sticky .stickyElement__row {
    /*padding: 0 20px;*/
    padding-right: 20px;
    padding-left: 20px
}

.stickyElement.--advanced_sticky.--autowidth .stickyElement__row {
    background-color: var(--popup_bg, #FFF);
}
.stickyElement.--content-maxwidth {
    --max-width: 760px;
}
/* End of sticky element attributes */
@media (max-width: 767px) {
    .stickyElement .stickyElement__image {
        width: 45px;
        height: 45px;
    }
    .stickyElement.--sticky_el .stickyElement__heading {
        font-size: .9rem;
    }
}
@media (max-width: 568px) {

    .stickyElement.--advanced_sticky .stickyElement__close {
        right: .25rem;
    }

    .stickyElement .stickyElement__row {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: .5rem;
        /*padding: 8px 0;*/
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .stickyElement.--advanced_sticky .stickyElement__row {
        padding-top: 16px;
    }
    .stickyElement:not(.--image) {
        /*padding: 0 10px;*/
        padding-left: 10px;
        padding-right: 10px;
    }
    .stickyElement.--autowidth.--advanced_sticky {
        padding: 0;
    }
    .stickyElement.--autowidth.--advanced_sticky .stickyElement__row {
        /*padding: 0 20px;*/
        padding-left: 20px;
        padding-right: 20px;
    }
    .stickyElement__code {
        margin: 0 auto;
        font-size: .85rem;
    }
    .stickyElement.--advanced_sticky .stickyElement__row {
        flex-direction: column;
    }
    .stickyElement.--advanced_sticky .stickyElement__code {
        width: 95%;
    }
    .stickyElement.--advanced_sticky span.stickyElement__button {
        right: -1rem;
    }
}

