/*
Блок выбора модификации
 */
#modification-selector {
    clear: both;
    border-radius: 6px;
    border: 1px solid var(--Unactive, #DCDCDC);
    padding: 25px;
    margin: 25px 0;
}

#modification-selector .version {
    /*margin: 40px 0 20px;*/
    margin-bottom: 20px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

#modification-selector > label {
    display: block;
}

#modification-selector > label + label {
    margin-top: 20px;
}

#modification-selector .mod_info {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

#modification-selector .title {
    flex-grow: 1;
    padding-right: 10px;
}

#modification-selector .price {
    white-space: nowrap;
    line-height: 140%;
}

#modification-selector .price .oldPrice {
    line-height: 1em;
    display: block;
    text-decoration: line-through;
    color: var(--color-secondary);
}

#modification-selector .info {
    color: var(--color-secondary);
}

#modification-selector .cart_info {
    color: var(--color-green);
    display: none;
}

#modification-selector .cart_info.incart {
    display: block;
}

/*
Блок сведений о модификации
 */
#modificationinfo {
    opacity: 1;
    -webkit-transition: opacity 500ms ease;
    -moz-transition: opacity 500ms ease;
    -ie-transition: opacity 500ms ease;
    transition: opacity 500ms ease;
}

#modificationinfo.loading {
    opacity: 0.1;
}

#modificationinfo .artikul {
    color: var(--color-secondary);
}

#modificationinfo .fldprice {
    margin-top: 20px;
}

#modificationinfo .fldprice .dec {
    font-size: 0.75em;
    color: var(--color-secondary);
    font-weight: normal;
}

#modificationinfo .available,
.helper[rel$=addproducttocart] .available {
    color: var(--color-green);
    margin: 10px 0;
}

.helper[rel$=addproducttocart] .available {
    text-align: center;
    font-size: 14px;
}

#modificationinfo .not.available,
.helper[rel$=addproducttocart] .not.available {
    color: var(--color-secondary);
}

.reviewstars {
    color: var(--pallete5);
}

table.properties {
    width: 100%;
}

table.properties td {
    vertical-align: top;
    padding: 8px 0;
    text-align: left;
}

table.properties tr td:first-child {
    padding-right: 20px;
}

.helper[rel$=addproducttocart] table.properties {
    display: block;
    margin-top: 1em;
}

.helper[rel$=addproducttocart] table.properties tr {
    display: block;
    padding: 0;
}

.helper[rel$=addproducttocart] table.properties td {
    display: inline;
    padding: 0 !important;
}

.fldprice {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: baseline;
}

.fldprice label {
    font-size: 0.5em;
    line-height: 0.5em;
    margin: 0 0 -0.3em 0;
    display: none;
}

.fldprice.hasvariants:before {
    content: 'от';
    font-size: 0.6em;
    opacity: 0.9;
    margin-right: -5px;
}

.fldprice.noPrice .price:before {
    content: 'под заказ';
}

.fldprice:not(.noPrice):after {
    /*content: '₽';*/
    /*margin-left: -3px;*/
}

.fldprice.zero:after {
    display: none;
}

.fldprice.zero:before {
    content: 'под заказ';
    font-size: 0.75em;
}

.fldprice .oldPrice {
    text-decoration: line-through;
    font-weight: 400;
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 5px;
}


.s_products .product:hover .discount span {
    font-size: 1.5em;
}

.button .cartcount {
    display: none;
}

.button.incart .addtocart {
    display: none;
}

.button.incart .cartcount {
    min-width: 20px;
    height: 20px;
    line-height: 22px !important;
    border: 1px solid var(--button-color);
    box-sizing: content-box;
    display: inline-block;
    background-color: #fff;
    border-radius: 100%;
    color: var(--button-color);
    right: 0;
    margin: 0px 0px 0 0;
    position: absolute;
    padding: 0;
    letter-spacing: 0px;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    top: 0;
}

.button.big.incart .cartcount {
    margin: -10px 0 0 0;
}

.crosslight .cartcount {
    display: none;
}

.crosslight .incart {
    z-index: 1;
}

.crosslight .incart .cartcount {
    display: block;
    min-width: 1.5em;
    height: 1.5em;
    display: inline-block;
    background-color: #67B443;
    border-radius: 100%;
    color: #FFF;
    line-height: 1.5em !important;
    z-index: 0;
    margin: 0px 0px 0px 1px;

    padding: 0;
    letter-spacing: 0px;
    font-weight: bold;
    font-family: "arial";
    font-size: 1em;
    text-align: center;
}


.button.small.incart .cartcount {
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    line-height: 20px !important;
    margin: -5px 0px 0px 0;
}

.button.small.incart.notext .cartcount {
    margin-right: -0.8em;
}

.productitem table.variants {
    font-size: 1em;
    width: 100%;
    margin: 1em 0;

}

.productitem table.variants th, .productitem table.variants td {
    text-align: center;
    border-bottom: 1px solid var(--color-unactive);
    vertical-align: middle;
    padding: 0.5em;
    line-height: 1.2em;
}

.productitem table.variants th {
    padding: 1em 0.5em;
    /*background-color: #f0f0f0;*/
    color: var(--color-secondary);
}

.productitem table.variants td s {
    margin: 0 0.5em;
    color: #999;
}

.productitem table.variants td s + span {
    color: #ef1e67;
}

.visited_products .properties {
    display: none;
}

.visited_products .bottominfo {
    display: none;
}

.visited_products .s_products .product {
    min-width: 180px;
    width: 16.66%;
    line-height: 1em;
    /*background-image: -moz-linear-gradient(to right, #5e42a6, #5052b5);
    background-image: -webkit-linear-gradient(to right, #5e42a6, #5052b5);
    background-image: -ms-linear-gradient(to right, #5e42a6, #5052b5);
    background-image: linear-gradient(to right bottom, rgba(255,255,255,0.1), rgba(255,255,255,0.2));*/
    font-size: 1em;
    display: -moz-flex;
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    -moz-flex-direction: column;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -moz-justify-content: space-between;
    -webkit-justify-content: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
    -moz-align-items: stretch;
    -webkit-align-items: stretch;
    -ms-align-items: stretch;
    align-items: stretch;

    -moz-transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;

    margin: 10px -1px 10px 0;
    text-align: center;
    opacity: 1;
    -moz-transition: opacity 1s ease, -moz-transform 1s ease;
    -webkit-transition: opacity 1s ease, -webkit-transform 1s ease;
    -ms-transition: opacity 1s ease, -ms-transform 1s ease;
    transition: opacity 1s ease, transform 1s ease;

    -moz-transform: translateX(0) translateY(0);
    -webkit-transform: translateX(0) translateY(0);
    -ms-transform: translateX(0) translateY(0);
    transform: translateX(0) translateY(0);
    /*border-bottom: 1px solid #e0e0e0;*/
}

.visited_products .s_products .product .bottominfo {
    display: block;
    padding: 0px 20px
}

.visited_products .s_products .product .bottominfo .fldprice {
    text-align: center;
    margin: 0.5em 0;
    font-size: 1.2em;
    line-height: 1em;
}

.visited_products .s_products .product .bottominfo .fldprice s {
    display: inline-block;
}

.visited_products .s_products .product .bottominfo .button {
    font-size: 0.9em;
}

@media screen and (max-width: 1200px) {
    .visited_products .s_products .product {
        width: 20%;
        min-width: unset;
    }
}

@media screen and (max-width: 942px) {
    .visited_products .s_products .product {
        width: 25%;
    }
}

@media screen and (max-width: 742px) {
    .visited_products .s_products .product {
        width: 33%;
    }
}

@media screen and (max-width: 542px) {
    .visited_products .s_products .product {
        width: 50%;
    }
}

.visited_products .s_products .product .discount {
    display: none;
}

.visited_products .s_products .product {
    font-size: 0.9em
}

.visited_products .s_products .product .img .wrapper {
    display: inline-block;
    font-size: 0em;
    background-color: #fff;
    padding: 0px;
    height: 100px;
    width: 100%;
    /*line-height: 220px;*/
    text-align: center;
    /*border-radius: 5px;*/
    overflow: hidden;
    -moz-transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    transition: all 0.2s ease;
    border: none;
    /*max-width: 100px;*/

}

.visited_products .s_products .product .img {
    padding: 0 0px;
}

.visited_products .s_products .product .title {
    padding: 0 0px;
}

.visited_products .s_products .product:hover .img .wrapper img {
    max-height: 100%;
    max-width: 100%;
}

.visited_products .s_products .product:hover .textwrapper {
    background: none;
}

.visited_products .s_products .product .img .wrapper {
    height: 100px;
    line-height: 100px;
}

.visited_products .s_products .product .img .wrapper img {
    max-height: 100%;
    max-width: 100%;
}

@media screen and (min-width: 100px) and (max-width: 480px) {
    .visited_products .s_products .product {
        width: 50%;
    }

    .visited_products .s_products .product .img .wrapper img {
        max-height: 80px;
        line-height: 80px;
    }

    .visited_products .s_products .product:hover .img .wrapper img {
        max-height: 80px;
        max-width: 100%;
    }
}