/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 .pisol-fsnw-close{
    position: absolute;
    right: 0px;
    top: 0px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index:2;
    text-decoration: none;
 }

 .pisol-fsnw-close:hover{
     text-decoration:none;
 }

 .pisol_shortcodes{
     font-weight:light;
 }

 #pi-progress-circle{
     position:fixed;
     z-index:99999999999999;
     background-position: center;
     background-size:50px 50px;
     background-repeat: no-repeat;
     cursor:pointer;
 }

 .pisol-bar-container:after{
     content:"";
     width:100%;
     height:6px;
     position: absolute;
     bottom:0;
     left:0;
 }

 .ui-progressbar-value{
    height: 6px;
    opacity:0.6;
    position: absolute;
    bottom: 0;
    left: 0;
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
 }

 /* overwrite jquery-ui styling */

 .pisol-bar-container{
    box-sizing:border-box;
 }

 .pisol-bar-container.ui-widget-content{
    background-image:none !important;
 }

 .pisol_icon{
     display:inline-block
 }

 .mfp-close{
     background-color: transparent !important;
 }

 .pisol-popup{
    background-color:#cccccc; 
    color:#fff;
    width:60%;
    padding:10px 50px 10px 20px;
    margin:auto;
    position: relative;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
 }

 .pisol-popup .pisol_shortcodes{
     color:inherit;
 }

 @media (max-width:768px){
    .pisol-popup{
        width: 100%;
    }
}

.pi-fsnw-container{
    background-color: #cccccc;
    border-radius:6px;
    position:relative;
    overflow:hidden;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .7) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, .7) 75%, transparent 75%, transparent);
    background-size: 30px 30px;
    animation: progress-bar-move 2s linear infinite reverse;
}

@-webkit-keyframes progress-bar-move {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 30px 30px
    }
}

@keyframes progress-bar-move {
    0% {
        background-position: 0 0
    }

    100% {
        background-position: 30px 30px
    }
}

.pi-fsnw-cart-message{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif
}

.pi-fsnw-container .pi-inner-content{
    position:absolute;
    width:100%;
    text-align:center;
    color:#000000;
    font-size:16px;
    line-height: 24px;;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    z-index:10;
}

.pi-fsnw-container-progress{
    background-color: #ff0000;
    opacity:0.9;
    border-radius:6px;
    z-index:9;
}

.pisol-fsnw-on-cart-block-before-shipping .wc-block-components-shipping-rates-control, .pisol-fsnw-on-checkout-block-before-shipping .wc-block-components-shipping-rates-control{
    display:flex;
    flex-direction: column;
}

.pisol-fsnw-on-cart-block-before-shipping #pi-fsnw-progress-block, .pisol-fsnw-on-checkout-block-before-shipping #pi-fsnw-progress-block{
    order:-1;
}

#pi-fsnw-progress-block{
    margin-bottom:20px;
    margin-top:20px;
}

#pi-fsnw-row, #pi-fsnw-progress-block{
    border:1px solid #ccc;
    & .pi-fsnw-cart-message{
        margin-bottom:10px;
    }
}

/** Product page progress */
.pisol-free-shipping-product-progress {
    margin: 15px 0;
    padding: 10px 15px;
    border-radius: 6px;
    background: var(--pisol-fs-background, #f7f8fa);
}

.pisol-free-shipping-product-message-container {
    display: flex;
    align-items: center;
    justify-content: var(--pisol-fs-text-align, flex-start);
    margin-bottom: 10px;
}

.pisol-free-shipping-product-message {
    font-size: 1rem;
    line-height: 18px;
    color: var(--pisol-fs-text-color, #444);
}

.pisol-free-shipping-product-message .pisol_shortcodes {
    color: var(--pisol-fs-text-color, #444);
}

.pisol-free-shipping-product-message .pisol_shortcodes.pisol_icon{
    display:none !important;
}


.pisol-free-shipping-product-message-container img {
    margin-right: 10px;
    height:30px !important;
    width:auto !important;
}


.pisol-free-shipping-product-progress-bar {
    width: 100%;
    height: var(--pisol-fs-bar-thickness, 6px);
    overflow: hidden;
    border-radius: 4px;
    background: var(--pisol-fs-bar-background, #e8e8e8);
}

.pisol-free-shipping-product-progress-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 4px;
    background: var(--pisol-fs-bar-color, #16a34a);
    transition: width 0.4s ease;
}
/* end product page progress */