/* --- Це ті, які застосовуються на сайті користувача (для чат-бот, попап і блок в сайт версій) --- */

.gp-popup-hidden {
    display: none;
}

.goodpromo-chatbot{
        width: 312px;
        padding: 0;
        overflow: hidden;
        position: fixed;
        height: 0;
border-radius: 15px;
border: 0;
-webkit-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.4);
-moz-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.4);
box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.4);
        }

.goodpromo-chatbot.opened {
        z-index: 999999999;
    }

@media all and (min-width: 992px) {
.goodpromo-chatbot.opened {
    max-height: 85vh;
}
}

@media all and (max-width: 991px) {
.goodpromo-chatbot.opened {
        width: 100%;
        padding: 0;
        left:0 !important;
        right:0 !important;
        bottom:0 !important;
        top:0 !important;
        overflow: auto;
        position: fixed;
        border-radius: 0;
        border: 0;
        -webkit-box-shadow: none;
        -moz-box-shadow: unset;
        box-shadow: none;
        max-height: 100%;
        min-height: 100%;
    }
}

@media screen and (min-width: 992px) {
.goodpromo-chatbot.is--l {width: 335px;}
.goodpromo-chatbot.is--xl {width: 355px;}
.goodpromo-chatbot.is--xxl {width: 385px;}
}

.goodpromo-popup{
        width: 312px;
       padding: 0;
        overflow: hidden;
        position: fixed;
        height: 0;
border-radius: 15px;
border: 0;
-webkit-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.4);
-moz-box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.4);
box-shadow: 0px 0px 12px 0px rgba(0,0,0,0.4);
background-color: white;
z-index: 99;

        }
        

.goodpromo-popup.opened {
        padding: 0;
        overflow: auto;
        position: fixed;
        left: 0 !important;
        right:0 !important;
        bottom:0 !important;
        border: 0;
        background-color: white;
        z-index: 99999999999;
        -webkit-box-shadow:  0px 0px 0px 9999px rgba(0, 0, 0, 0.8);
        -moz-box-shadow: 0px 0px 0px 9999px rgba(0, 0, 0, 0.8);
        box-shadow:  0px 0px 0px 9999px rgba(0, 0, 0, 0.8);
        }

@media all and (max-width: 1061px) {
.goodpromo-popup.opened {
        margin: 0;
        max-height: 100%;
        min-height: 100%; 
        width: 100%;
        border-radius: 0;
        }
    
}
@media all and (min-width: 1062px) {
.goodpromo-popup.opened {
        margin: 35px;
        max-height: calc(100% - 70px);
        min-height: calc(100% - 70px);  
        width: calc(100% - 70px);
        border-radius: 20px;
        border: 7px solid #000000;
        }
    
}
	
.goodpromo-block {
border-radius: 20px;
border: 0; 
width: 100%; 
height: 100%;
        }
  
        
.gp-no-scroll:not(.gp-no-scroll-chatbot) {overflow: hidden;}

@media all and (max-width: 991px) {
.gp-no-scroll {overflow: hidden;}
}
    
.gp-seobutton {
display: inline-flex;
    align-items: center;
    border-radius: 15px; 
    cursor: pointer; font-family: "Roboto", sans-serif; font-size: 14px; font-weight: 400; line-height: 1.3; max-width: 312px; min-height: 45px; position: fixed;
    text-decoration: none; -webkit-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.4); -moz-box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.4); box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.4);
}
.gp-photo {padding: 7px 0 7px 10px; position: relative;} 
.gp-photo .gp-avatar {
background-repeat: no-repeat; background-position: center center; background-size: cover;    
width: 35px; height: 35px; border-radius: 50%; display: block; z-index: 2;
}
.gp-photo .gp-green {position: absolute; bottom: 7px; right: -4px; z-index: 3; place-self: end; min-width: 13px; max-width: 13px; min-height: 13px; max-height: 13px; width: 13px; height: 13px; background-color: rgb(140, 216, 72); border-style: solid; border-width: 2px; border-color: rgb(255, 255, 255); border-radius: 50%;
}
.gp-green.without-photo {position: static !important; bottom: unset; right: unset; display: block;} 
.gp-text {padding: 10px;} 
.gp-text.without-photo {padding: 10px 10px 10px 5px;}


/* --- new goodpromo-b --- */

.goodpromo-b {
    max-width: 312px;
    min-height: 45px;
    cursor: pointer;
    background-color: #ffc108;
    border-radius: 15px;
    padding: 7px 18px 7px 10px;
    position: fixed;
    display: inline-block;
    box-shadow: 0 0 12px rgba(0, 0, 0, .2);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
    width: fit-content;
    animation: fadeInAnimationGoodPromo ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    z-index: 99999;
}

@keyframes fadeInAnimationGoodPromo { 
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



.goodpromo-b * {box-sizing: border-box;}

.goodpromo-b-inside {
    flex-direction: row;
    align-items: center;
    display: flex;
}

.goodpromo-b-ava-block {
    width: 35px;
    height: 35px;
    background-color: #dadada;
    border-radius: 50%;
    flex: 0 auto;
    position: relative;
}

.goodpromo-b.is--without-ava .goodpromo-b-ava-block {display:none;}

.goodpromo-b.is--without-ava {
display: inline-flex; 
}

.goodpromo-b-ava-img {
    border-radius: 50%;
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.goodpromo-b-ava-green {
    width: 13px;
    height: 13px;
    background-color: #8cd848;
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: auto;
    bottom: 1px;
    left: auto;
    right: -3px;
}

.goodpromo-b-online {
    width: 17px;
    height: 17px;
    background-color: #8cd848;
    border: 2px solid #fff;
    border-radius: 50%;
    margin-left: 3px;
}

.goodpromo-b-text {
    white-space: normal;
    flex: 1;
    align-self: auto;
    margin-left: 10px;
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    line-height: 1.3;
}

.goodpromo-b-text.is--without-ava-but-online {margin-left: 6px;}

.goodpromo-b-text-p, .goodpromo-b-text-autoopen {
    color: #000;
    font-size: 14px;
    line-height: 1.3em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-font-smoothing: antialiased;
    -o-font-smoothing: antialiased;
}

.goodpromo-chatbot.is--hide {
    visibility: hidden;
}

.goodpromo-popup.is--hide {
    visibility: hidden;
}



.goodpromo-b.autoopen {
    max-width: none;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: 10px;
    width: calc(100% - 20px);
    background-color: white !important;
    border-radius: 10px;
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, .3);
}
.goodpromo-b.autoopen:hover {background-color: white !important;}

.goodpromo-b.autoopen .close-autoopen {
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    height: 30px;
    color: white;
    opacity: 0.3;
}
.goodpromo-b.autoopen .close-autoopen:hover {
  opacity: 1;
}
.goodpromo-b.autoopen .close-autoopen:before, .goodpromo-b.autoopen .close-autoopen:after {
    position: absolute;
    right: 12px;
    content: ' ';
    height: 15px;
    width: 3px;
    background-color: #333;
    top: 5px;
}
.goodpromo-b.autoopen .close-autoopen:before {
  transform: rotate(45deg);
}
.goodpromo-b.autoopen .close-autoopen:after {
  transform: rotate(-45deg);
}


.goodpromo-b.autoopen .goodpromo-b-text-p {
    display: none;
}
.goodpromo-b.autoopen .goodpromo-b-text-autoopen {
    display: inline-block;
}
.goodpromo-b.autoopen .goodpromo-b-text, .goodpromo-b.autoopen .goodpromo-b-text-autoopen {
    width: auto !important;
}



.goodpromo-b-text-autoopen {
    display: none;
}

@media screen and (min-width: 480px) {
.goodpromo-b.autoopen {
    max-width: 330px;
}
}

