/*
Theme Name: Media theme
Description: This is a child theme for Flatsome Theme
Author: https://www.facebook.com/nguyenvannam2372/
Template: flatsome
Version: 3.0
*/
/* Pc      --------------------------------------------- */
@media(min-width: 766px){

}
@media (width: 1024px){

}
@media (max-width: 1024px){

}
@media (min-width: 990px) and (max-width: 1100px){

}
/*************** ------------------------PC và Tablet  --------------------------  ***************/
@media (min-width: 740px){

}
/*************** ------------------------Tablet  --------------------------  ***************/
@media (min-width: 740px) and (max-width: 1023px){

}
@media (max-width:990px){

}
/*************** ------------------------Mobile và Tablet --------------------------  ***************/
@media (max-width: 1023px){

}

 /*************** ------------------------ Mobile   --------------------------  ***************/
@media screen and (max-width: 549px){

}
.ybai-widget-iframe #ybai-widget-iframe{
    display: none;
}
.ybai-widget-overlay {
    background-color: #00000080;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10
}

.ybai-widget {
    align-items: center;
    display: flex;
    position: fixed;
    text-decoration: none;
    z-index: 99999
}

.ybai-widget .quick-circle-text {
    background-image: linear-gradient(90deg,#a531cf 0,#762de6);
    border: 1px solid #fff;
    box-shadow: 0 2px 1px -1px #00000033,0 1px 1px 0 #00000024,0 1px 3px 0 #0000001f;
    color: #fff;
    display: block;
    font-size: 15px;
    margin-right: -20px;
    padding: 5px 10px;
    position: absolute;
    white-space: nowrap
}

.ybai-widget.left .quick-circle-text {
    border-radius: 0 35px 35px 0;
    left: 66px;
    margin-left: -25px;
    order: 1;
    padding-left: 15px
}

.ybai-widget.right .quick-circle-text {
    border-radius: 35px 0 0 35px;
    margin-right: -25px;
    padding-right: 15px;
    right: 66px
}

.ybai-widget .widget-button {
    background: url(https://embed.ybai.me/images/icon-share.svg) no-repeat 50%;
    background-size: 30px;
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 1px -1px #00000033,0 1px 1px 0 #00000024,0 1px 3px 0 #0000001f;
    cursor: pointer;
    height: 50px;
    text-align: center;
    width: 50px;
    z-index: 9998
}

.ybai-widget .widget-iframe {
    animation-duration: .3s;
    background-color: #fff;
    border-radius: 1rem;
    bottom: 70px;
    box-shadow: 0 4px 12px 0 #00000026;
    display: none;
    height: 520px;
    position: absolute;
    transition-timing-function: ease-in;
    width: 375px;
    z-index: 99999
}

.ybai-widget.left .widget-iframe {
    left: 0
}

.ybai-widget.right .widget-iframe {
    right: 0
}

.ybai-widget .widget-iframe .widget-iframe-content {
    border-radius: 1rem;
    box-shadow: 0 4px 12px 0 #00000026
}

.ybai-widget .widget-iframe .close-widget-iframe {
    background: url(https://embed.ybai.me/images/close-icon.svg) no-repeat 50%;
    background-size: 30px;
    cursor: pointer;
    height: 30px;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px
}

#ybai-widget-button.loading {
    border: none;
    position: relative
}

#ybai-widget-button.loading:before {
    animation: spin 1s linear infinite;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: #fff;
    bottom: 0;
    content: "";
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 0
}

@media only screen and (max-width: 600px) {
    .ybai-widget .widget-iframe {
        bottom:0;
        display: none;
        left: 0!important;
        position: fixed;
        right: 0!important;
        width: 100vw
    }

    .ybai-widget .widget-iframe .widget-iframe-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        width: 100vw
    }

    .ybai-widget .quick-circle-text {
        display: none
    }
}
