/**
 * Gearbest Affiliate Plugin public-facing functionality
 */

/* Font Awesome */
@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Poppins */
@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-stretch: normal; }

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-stretch: normal; }

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-stretch: normal; }

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-stretch: normal; }

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-stretch: normal; }

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-stretch: normal; }

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins/Poppins-Black.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
    font-stretch: normal; }

.gapi_admin_content {
    font-family: Poppins;
}

.gapi_products_vertical_col_1 {
    margin-bottom: 10px;
}

.gapi_product_desc,
.gapi_product_title {
    margin-top: 10px;
}

.gapi_horizontal .gapi_product_image {
    margin-right: 10px;
}

.gapi_horizontal .gapi_product_discount {
    height: 2em;
    margin-top: 10px;
}

.gapi_products_flex {
    display: flex;
    flex-wrap: wrap;
}

.gapi_products_iblock {
    /* display: inline-block; */
    /* flex-wrap: wrap; */
    /* margin-left: 3%; */
}

.gapi_column_separator {
    display: none;
}

.gapi_products_col_1,
.gapi_products_col_2,
.gapi_products_col_3,
.gapi_products_col_4,
.gapi_products_col_5,
.gapi_products_col_6 {
    width: 100%;
    display: -ms-grid;
    display: inline-grid;
    column-gap: 20px;
    row-gap: 10px;
    margin-bottom: 10px;
}

.center_list.gapi_product_desc {
    display: none;
}

.center_list.gapi_product_discount {
    margin-top: 25px;
}

.center_list.gapi_product_title {
    float: left;
    width: 36%;
    transform: translateY(35%);
}

.center_list.gapi_product_title a {
    display: table-cell;
    vertical-align: middle;
}

@media (min-width:320px) {

    .gapi_products_col_1,
    .gapi_products_col_2,
    .gapi_products_col_3,
    .gapi_products_col_4,
    .gapi_products_col_5,
    .gapi_products_col_6 {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr) );
    }

}

@media (min-width:425px) {

    .gapi_products_col_1 {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr) );
    }

    .gapi_products_col_2,
    .gapi_products_col_3,
    .gapi_products_col_4,
    .gapi_products_col_5,
    .gapi_products_col_6 {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr) );
    }

}

@media (min-width:768px) {

    .gapi_products_col_1 {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr) );
    }

    .gapi_products_col_2 {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr) );
    }

    .gapi_products_col_3,
    .gapi_products_col_4,
    .gapi_products_col_5,
    .gapi_products_col_6 {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr) );
    }

}

@media (min-width:1024px) {

    .gapi_products_col_1 {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr) );
    }

    .gapi_products_col_2 {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr) );
    }

    .gapi_products_col_3 {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr) );
    }

    .gapi_products_col_4 {
        -ms-grid-columns: minmax(20%, 1fr);
        grid-template-columns: repeat(auto-fill, minmax(20%, 1fr) );
    }

    .gapi_products_col_5,
    .gapi_products_col_6 {
        grid-template-columns: repeat(auto-fill, minmax(16%, 1fr) );
    }

}

@media (min-width:1440px) {


    .gapi_products_col_1 {
        grid-template-columns: repeat(auto-fill, minmax(50%, 1fr) );
    }

    .gapi_products_col_2 {
        grid-template-columns: repeat(auto-fill, minmax(40%, 1fr) );
    }

    .gapi_products_col_3 {
        grid-template-columns: repeat(auto-fill, minmax(30%, 1fr) );
    }

    .gapi_products_col_4 {
        grid-template-columns: repeat(auto-fill, minmax(20%, 1fr) );
    }

    .gapi_products_col_5 {
        grid-template-columns: repeat(auto-fill, minmax(16%, 1fr) );
    }

    .gapi_products_col_6 {
        grid-template-columns: repeat(auto-fill, minmax(14%, 1fr) );
    }

}

.gapi_product {
    border: 1px solid #ececec;
    padding: 9px;
}

.gapi_product_title,
.gapi_product_title a {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gapi_product_discount {
    height: 3.5em;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    color: red;
}

.gapi_buy_button {
    background: #222;
    color: #f9f9f9;
    display: block;
    margin: 0;
    /*width: 100%;*/
    border-radius: 3px;
    border: 1px solid #ececec;
    padding: 7px 12px 6px 12px;
    background: linear-gradient(to top, #222, #444) repeat scroll 0 0 rgba(0,0,0,0);
    text-align: center;
}

.gapi_buy_button:hover {
    background: #000;
    color: #f9f9f9;
}

.gapi_buy_button:before {
    /*position: relative;
    content: '';
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;*/
    font-family: FontAwesome;
    content: "\f07a";
    /*background-size: 14px 14px;*/
    padding-right: 4px;
}

.gapi_products_vertical_col_5 .gapi_buy_button {
    font-size: smaller;
}

.gapi_products_vertical_col_6 .gapi_buy_button {
    font-size: x-small;
}

.gapi_sale_price {
    float: right;
    font-size: large;
    font-weight: bold;
}

.gapi_product_image {
    margin: auto 0;
    width: 100%;
}

.gapi_horizontal .gapi_product_image {
    width: 30%;
    float: left;
}

.gapi_horizontal .gapi_buy_button {
    /*width: 30%;*/
    margin-left:70%;
}

.gapi_horizontal .gapi_product_discount {
    width: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left:70%;
}

.gapi_horizontal .gapi_original_price {
    /* width: 30%; */
    margin-left:70%;
    color: red;
}

.gapi_horizontal .gapi_clear {
    clear: both;
}

.gapi_product.gapi_horizontal {
    /* margin-left: -2%; */
}

.gapi_product_desc,
.gapi_product_desc a {
    overflow: hidden;
    text-overflow: ellipsis;
}

.gapi_original_price {
    text-decoration: line-through;
    font-size: small;
    /*line-height: 2em;*/
    height: 2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: red;
    white-space: nowrap;
}

@media (max-width: 760px) {

    .center_list.gapi_product_title {
        float: left;
        width: 26%;
    }

    .gapi_horizontal .gapi_buy_button,
    .gapi_horizontal .gapi_product_discount {
        width: 40%;
        margin-left: 60%;
    }

    .gapi_horizontal .gapi_original_price {
        margin-left: 60%;
    }

}

@media (max-width: 535px) {

    .gapi_horizontal .gapi_product_image {
        width: 100%;
        float: none;
    }

    .center_list.gapi_product_title {
        float: none;
        transform: unset;
        width: 100%;
    }

    .gapi_horizontal .gapi_buy_button,
    .gapi_horizontal .gapi_product_discount {
        width: 100%;
        margin-left: unset;
    }

    .gapi_horizontal .gapi_original_price {
        margin-left: unset;
    }

}

.gapi_product_desc a,
.gapi_product_desc a:hover,
.gapi_product_title a,
.gapi_product_title a:hover {
    text-decoration: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

a.gapi_buy_button,
a.gapi_buy_button:hover
{
    text-decoration: none;
}

a.gapi_products_link,
a.gapi_products_link:hover {
    box-shadow: unset;
    text-decoration: none;
}

@media (min-width: 992px) {

    .gapi_widget .gapi_buy_button {
        display: none;
    }

    .gapi_widget .gapi_product_discount {
        height: 20px;
        visibility: collapse;
    }

    .gapi_widget.list_preview .gapi_product_title {
        font-weight: bold;
        font-size: 14px;
        line-height: 14px;
        height: 14px;
        width: 66%;
    }

    .gapi_widget.list_preview .gapi_product_title a {
        font-size: 14px;
        line-height: 12px;
        height: 14px;
        width: 100%;
        white-space: nowrap;
        margin-left: 7px;
        text-overflow: ellipsis;
        display: block;
    }

    .gapi_widget .gapi_original_price {
        margin-left: 30%;
    }

    .gapi_widget .gapi_product_image {
        width: 25%;
    }

    .gapi_widget .gapi_sale_price {
        font-size: small;
    }

    .gapi_widget .gapi_original_price,
    .gapi_widget .gapi_sale_price {
        line-height: 1em;
        height: 1em;
    }

    .gapi_widget .gapi_product_title {
        margin-top: 15px;
    }

}
