/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2021   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/
@flb-width: 850px;
@pd: 20px;
@border-radius: 6px;

.floating-block {
    
    .position-fixed {
        position: sticky;
        top: 0;
        width: 100%;
        background: fade(lighten(@base, 5%), 95%);
        z-index: 1000;
        
        .ab__pc_block_data {
            padding-bottom: @pd;
        }
    }
    
    .container-fluid {
        padding: 0;
    }
    
    .ab__pc {
        &_block_data, &_main_content {
            padding: @pd @pd 0 @pd;
        }
    }
    
    .item {
        position: fixed;
        right: 0;
        top: 0;
        width: @flb-width;
        max-width: 100%;
        transition: .2s;
        z-index: 1000;
        
        .content {
            display: none;
            height: 100vh;
            overflow-x: auto;
            
            &::-webkit-scrollbar { 
                display: none; 
            }
        }
        &.open {
            display: block;
            transform: translateX(0);
            
            .content {
                display: block;
                position: relative;
                background: @general_bg_color;
                box-shadow: -2px 2px 4px 0 rgba(0,0,0,0.4), 0 0 0 10000px rgba(0,0,0,0.5);
            }                          
            .ab__pc_layout_control-close {
                display: inline-block;
            }
        }
        
        .ab__pc_layout_control-label {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            align-items: center;
            text-align: center;
            width: 26px;
            padding: 26px 1px 10px 1px;
            position: absolute;
            writing-mode: vertical-lr;
            white-space: nowrap;
            right: 0;
            left: auto;
            top: 200px;
            color: white;
            background-color: @primary_button;            
            cursor: pointer;
            border-radius: @border-radius 0 0 @border-radius;
            border-radius: 6px 0 0 6px;
            border: 2px solid @content_bg;
            border-width: 2px 0 2px 2px;
            box-shadow: 0 2px 4px 0 rgba(0,0,0,0.4);
            z-index: 0;
            
            background-image: url('../css/addons/ab__product_configurator/fonts/wp-arrow.svg');
            background-repeat: no-repeat;
            background-position: center 10px;
            background-size: 13px;
            transition: all .5s ease;
            
            &:hover {
                background-color: lighten(@primary_button, 3%);
            }
        }
        .ab__pc_layout_control-close {
            display: none;
            position: absolute;
            right: @pd - 8;
            top: @pd;
            transition: all .2s linear;
            cursor: pointer;
            opacity: .5;
            z-index: 1001;
            padding: 8px;

            &:before {
                content: "\f102";
                font-family: "pc-icons";
                font-size: 24px;
            }
            &:hover {
                opacity: 1;
            }
            @media screen and (max-width: 768px) {
                padding: 0 8px;

                &:before {
                    font-size: 20px;
                }
            }
        }

        @media screen and (min-width: @flb-width) {
            transform: translateX(@flb-width);

            .ab__pc_layout_control-label {
                left: -28px;
                right: auto;
                z-index: -1;
            }
        }
    }
}


@wp-block-text-color: white;
@wp-block-bt-bg-color: @primary_button;

.wp_block {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;

    video {
        min-width: 100%;
        min-height: 100vh;
        position: absolute;
        left: 49.99%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    &--content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 102;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 10%;
        box-sizing: border-box;
        background: rgba(0,0,0,0.4);

        button.ty-btn {
            margin-top: 20px;
            padding: 10px 12px 10px 38px;
            background-image: url('../css/addons/ab__product_configurator/fonts/wp-arrow.svg');
            background-repeat: no-repeat;
            background-position: 12px center;
            background-size: 16px;
            font-weight: bold;
            transition: all .2s linear;
            opacity: .9;

            &:hover {
                opacity: 1;
                box-shadow: 0 2px 4px 0 rgba(0,0,0,0.4);
            }
        }
    }
    &--title {
        font-size: 46px;
        font-weight: 700;
        color: @wp-block-text-color;

        &-inset {
            font-size: 16px;
            color: @wp-block-text-color;
            opacity: .7;
            margin-top: -10px;
            margin-bottom: 10px;
        }
    }
    &--descr {
        font-size: 24px;
        color: @wp-block-text-color;
    }

    @media screen and (max-width: 1024px) {
        &--title {
            font-size: 40px;

            &-inset {

            }
        }
        &--descr {
            font-size: 24px;
        }
    }
    @media screen and (max-width: 768px) {
        &--title {
            font-size: 32px;

            &-inset {

            }
        }
        &--descr {
            font-size: 20px;
        }
    }
}

.ab__pc {

    &_configurator_welcome_page {
        text-align: center;
        text-align: -webkit-center;
        text-align: -moz-center;
    }

    &_block_data, &_main_content {
        padding-top: @pd;

        h1 {
            font-size: 32px;
            font-family: @headings_font;
            font-weight: bold;
            margin-bottom: 0;
            padding-right: 60px;

            & + p {
                opacity: .7;

                &:last-of-type {
                    margin-bottom: -6px;
                }
            }
        }
        h2 {
            margin-bottom: 0;

            &:before {
                content: "\f100";
                font-family: "pc-icons";
                margin-right: @pd/2;
            }
        }
        @media screen and (max-width: 768px) {
            h1 {
                font-size: 24px;
                line-height: 100%;

                & + p {
                    padding-top: 0;
                }
            }
        }
    }

    &_configurator_controls {

        &.ab__pc_block_data {
            padding-bottom: @pd*2;
        }

        > form {
            display: flex;
        }

        .ty-btn {
            width: 100%;
            box-sizing: border-box;


            &.ty-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                margin: 5px 0;

                + .ty-btn {
                    margin-left: @pd;
                }
            }
        }
    }

    &_step_description {
        p:empty {
            padding: 0;
        }
    }

    &_steps_list {
        position: relative;

        > div {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            transition: all 0.5ms;
            padding: 0 0 @pd/2;
            margin: 0 0 @pd/2;
            -webkit-overflow-scrolling: touch;

            &:after {
                content: "";
                border-right: @pd solid transparent;
            }

            @media screen and (max-width: 768px) {
                margin: 0 -@pd @pd/2;
                padding: 0 @pd @pd/2;
            }
            &::-webkit-scrollbar {
                transition: opacity ease 0.3s;
                height: 5px;
                opacity: 0;
                z-index: 1;
                position: relative;
            }
            &::-webkit-scrollbar-track {
                border-radius: 5px;
                -webkit-box-shadow: inset 0 0 4px transparent;
            }
            &::-webkit-scrollbar-thumb {
                border-radius: 5px;
                background: transparent;
            }
            &:hover {
                &::-webkit-scrollbar {
                    opacity: 1;
                }
                &::-webkit-scrollbar-track {
                    -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.1);
                }
                &::-webkit-scrollbar-thumb {
                    background: @base;
                }
            }
        }

        a {
            align-self: auto;
            min-width: 200px;
            padding: @pd/2;
            margin: 0 3px;
            border-radius: @border-radius;
            font-size: 16px;
            border: 1px solid @base;
            cursor: pointer;
            outline: none;
            -webkit-overflow-scrolling: touch;

            &.active, &:hover {
                color: @links;
                border-style: solid;
                border-color: @links;
                cursor: default;
            }
        }

        &:after, &:before {
            content: "";
            position: absolute;
            top: 0;
            width: 20px;
            height: 100%;
            transition: opacity ease 0.3s;
            pointer-events: none;
        }
        &:after {
            right: 0;
            background: linear-gradient(to left, white, rgba(255,255,255,0));
        }
        &:before {
            left: -@pd;
            background: linear-gradient(to right, white, rgba(255,255,255,0));
        }
        @media screen and (max-width: 768px) {
            &:after {
                right: -@pd;
            }
            &:before {
                left: -@pd;
            }
        }
    }

    &_step_is_required:before {
        content: "*";
        color: @links;
    }

    &_navigation_buttons {
        margin: 0 -5px @pd/2;

        a {
            display: flex;
            align-items: center;
            position: relative;
            margin: 0 5px;
            color: @links;
            opacity: .8;
            border-bottom: 1px dotted;

            i {
                color: @links;
                display: none;
            }
            &.prev_step i {
                margin-right: 5px;
            }
            &.next_step i {
                margin-left: 5px;
            }

            &:hover, &:hover i {
                color: @links;
                transition: all .2s ease;
                display: inline-block;
                opacity: 1;
            }
        }
    }

    &_progress_bar {

        > div {
            position: relative;
            background: @base;
            background-blend-mode: difference;
            border-radius: @border-radius*2;
            box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
            padding: 0;
            overflow: hidden;

            span {
                display: block;
                height: 10px;
                min-width: 40px;
                font-size: @body_font_size;
                color: white;
                background-color: @primary_button;
                position: relative;
                overflow: hidden;
                text-align: center;
                transition: width .5s ease-in-out;

                @media screen and (max-width: 768px) {
                    font-size: 12px;
                }

                &:not(:empty) {
                    height: 100%;
                }
            }
        }
    }

    &_sos_conditions_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        position: relative;
        width: calc(~'100% + 10px');
        padding: @pd 0;
        margin: 0 -5px;

        @media screen and (max-width: 768px) {
            flex-wrap: nowrap;
            overflow-x: auto;

            -webkit-overflow-scrolling: touch;

            margin: 0 -20px;
            width: calc(~'100% + 25px');
            padding-left: 15px;

            &:after {
                content: "";
                border-right: @pd solid transparent;
            }

            &::-webkit-scrollbar {
                height: 0;
            }
        }
    }
    &_sos_condition {
        max-width: 260px;
        padding: @pd 5px 0 5px;
        flex: 1 0 auto;
        align-self: auto;
        flex-basis: calc(~'33.3333% - 10px');

        @media screen and (max-width: 480px) {
            flex-basis: calc(~'50% - 20px');
        }

        > form {
            height: calc(~'100% - 10px');
            padding: 1px;
            background: fade(@base, 70%);
            border: 2px solid transparent;
            border-radius: @border-radius;

            &:hover {
                border-color: @base;

                a {
                    color: @font;
                }
            }
        }

        a {
            display: inline-flex;
            flex-direction: column;
            text-align: center;
            height: 100%;

            > span {
                padding: @pd/2;
                line-height: 1;
            }
        }
        &.active > form {
            border-color: @primary_button;
            
            @media screen and (min-width: 768px) {
                position: relative;
                background: @content_bg;
                
                &:before {
                    font-family: "pc-icons";
                    content: "\f106";
                    position: absolute;
                    top: 10px;
                    right: 11px;
                    color: @primary_button;
                    font-size: 24px;
                }
            }
        }
        .ty-pict {
            min-width: 140px;
            border-radius: @border-radius - 1;
        }
    }
    &_prompt_toggler {
        display: inline-block;
        margin: @pd @pd @pd @pd - 2;
        color: @links;
        border-bottom: 1px dotted fade(@links, 50%);
        cursor: pointer;

        &.ab__pc_help-icon, &.ab__pc_back-icon {
            position: relative;

            &:before {
                font-family: "pc-icons";
                position: absolute;
                left: -18px;
                top: 3px;
            }
        }
        &.ab__pc_help-icon:before { content: "\f105"; }
        &.ab__pc_back-icon:before { content: "\f104"; }
    }
    &_step_prompt {
        padding: @pd 0;
        line-height: 1.45;
    }

    &_selected_products, &_selected_soses {
        &_item {
            display: flex;
            align-items: center;

            i {
                display: inherit;
                margin-left: 5px;
                color: fade(@font, 30%);

                &:hover {
                    color: @links;
                }
            }
        }
    }
}

[id*="configurator_products"],
[id*="configurator_soses"] {
    .ab__pc_block_data {
        padding: 0;

        .ab__pc_selected_products, .ab__pc_selected_soses {
            border: 1px solid @base;
            padding: @pd;
            margin: @pd @pd 0;
        }
    }
}



@font-face {
  font-family: "pc-icons";
  src: url("../css/addons/ab__product_configurator/fonts/pc-icons.eot");
  src: url("../css/addons/ab__product_configurator/fonts/pc-icons.eot?#iefix") format("embedded-opentype"),
       url("../css/addons/ab__product_configurator/fonts/pc-icons.woff2") format("woff2"),
       url("../css/addons/ab__product_configurator/fonts/pc-icons.woff") format("woff"),
       url("../css/addons/ab__product_configurator/fonts/pc-icons.ttf") format("truetype"),
       url("../css/addons/ab__product_configurator/fonts/pc-icons.svg#Flaticon") format("svg");
  font-weight: normal;
  font-style: normal;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: "pc-icons";
    src: url("../css/addons/ab__product_configurator/fonts/pc-icons.svg#pc-icons") format("svg");
  }
}

[class^="pc-icons-"]:before, [class*=" pc-icons-"]:before,
[class^="pc-icons-"]:after, [class*=" pc-icons-"]:after {   
    font-family: pc-icons;
    font-style: normal;
}

.pc-icons-right-arrow:before { content: "\f100"; }
.pc-icons-left-arrow:before { content: "\f101"; }
.pc-icons-cross:before { content: "\f102"; }
.pc-icons-info:before { content: "\f105"; }
.pc-icons-back:before { content: "\f104"; }
.pc-icons-setting:before { content: "\f103"; }
.pc-icons-check:before { content: "\f106"; }
