.cst-productmenu-split{
    width:100%;
    height:100%;
    display:flex;
}

.cst-productmenu-list{
    overflow: auto;
    padding: 8px;
}

.cst-choice-cell-item.entity-shadow,
.cst-productmenu-product-chosen.entity-shadow,
.cst-productmenu-product.entity-shadow{
    /* margin-right:8px; */
    /* margin-left:2px; */
}
.cst-productmenu-product-chosen.entity-shadow,
.cst-productmenu-product.entity-shadow{
    width:98%;
}

.cst-choice-cells-scrollable.two-columns,
.cst-choice-cells-scrollable.three-columns,
.cst-choice-cells-scrollable.four-columns,
.cst-productmenu-list.two-columns,
.cst-productmenu-list.three-columns,
.cst-productmenu-list.four-columns{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content:space-evenly;
    max-height:98%;
    margin: 5px -10px 0 -10px;
}

.two-columns .cst-productmenu-product,
.two-columns .cst-productmenu-product-chosen {
    width: 46%;
    height: 242px;
    background: var(--entity-bg-color) no-repeat center / cover;
    padding: 0 0 50px 0;
    background-origin: content-box;
}

.three-columns .cst-choice-cell-item,
.four-columns .cst-choice-cell-item,
.three-columns .cst-productmenu-product,
.four-columns .cst-productmenu-product{
    flex-direction:column;
    text-align:center;
    align-items:center;
}

.three-columns .cst-choice-cell-item,
.four-columns .cst-choice-cell-item{
    flex-direction:column-reverse;
    height:100%;
}

.three-columns .cst-choice-cell,
.three-columns .cst-productmenu-product,
.three-columns .cst-productmenu-product-chosen{
    width:30%;
    height:260px;
}

.four-columns .cst-choice-cell,
.four-columns .cst-productmenu-product,
.four-columns .cst-productmenu-product-chosen{
    width:24%;
    height:300px;
}

.two-columns .cst-productmenu-product-chosen .cst-product-selected {
    display: none;
}

.two-columns .cst-product-list-picture {
    position: absolute;
    top:10px;
    right:10px;
    bottom:60px;
    left:10px;
    width: auto;
    min-height: unset;
    height: unset;
    background-size: contain;
}

.three-columns .cst-choice-cell,
.four-columns .cst-choice-cell{
    padding:0;
}

.three-columns .cst-choice-cell-illustration,
.four-columns .cst-choice-cell-illustration,
.three-columns .cst-product-list-picture,
.four-columns .cst-product-list-picture{
    width:100%;
    height:160px;
    position:initial;
    padding:0;
}

.three-columns .cst-choice-cell-info,
.four-columns .cst-choice-cell-info,
.three-columns .cst-product-block,
.four-columns .cst-product-block{
    flex:1;
    padding:0;
}

.three-columns .cst-choice-cell-info,
.four-columns .cst-choice-cell-info{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
}

.three-columns .cst-choice-cell-title,
.three-columns .cst-choice-cell-title-initial,
.four-columns .cst-choice-cell-title,
.four-columns .cst-choice-cell-title-initial{
    line-height:1.2;
}

.three-columns .cst-choice-cell-picture,
.four-columns .cst-choice-cell-picture{
    position:initial;
    width:100%;
    height:100%;
    margin-top:-10px;
}

.three-columns .cst-product-info,
.four-columns .cst-product-info{
    padding:0;
    margin-bottom:-10px;
}

.three-columns .cst-productmenu-product-name > span:first-of-type,
.four-columns .cst-productmenu-product-name > span:first-of-type{
    display:block;
    max-height:110px;
    overflow:hidden;
    line-height:110%;
}

.three-columns .cst-productmenu-product-name,
.four-columns .cst-productmenu-product-name{
    font-size:25px;
}

.three-columns .cst-productmenu-product-info,
.four-columns .cst-productmenu-product-info{
    display:none;
}

.two-columns .cst-product-block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--entity-name-bg-color);
}

.two-columns .cst-productmenu-product-info {
    display: none;
}

.two-columns .cst-product-info {
    width: 100%;
    padding: 0;
}

.two-columns .cst-productmenu-product-name {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 26px;
    line-height: .9;
}
/*

.cst-productmenu-list > *:first-of-type{
    margin-top:0;
}
.cst-productmenu-list > *:last-of-type{
    margin-bottom:0;
}
*/

/*
.cst-productmenu-list.has-scroll{
    padding-right:20px;
}
.rtl .cst-productmenu-list.has-scroll{
    padding-right:0;
    padding-left:20px;
}
*/
.cst-productmenu-product,
.cst-productmenu-product-chosen{
    border: 1px solid var(--entity-border-color);
    border-radius: 20px;
    padding:20px;
    margin-bottom: 20px;
    font-size:26px;
    display:flex;
    justify-content:flex-start;
    flex-wrap:nowrap;
    width:99%;
    position:relative;
    transition: border-color .4s ease-out;
    overflow: hidden;
}

.cst-productmenu-product-chosen {
    border: 6px solid var(--focus-color);
    padding: 15px;
}

.cst-product-info,
.cst-product-chosen{
    padding-right:20px;
}
.cst-productmenu-product-name,
.cst-checkmark{
    font-size:35px;
    color:var(--product-name-color);
}
.cst-checkmark{
    font-family: var(--heading-font), sans-serif;
}
.cst-cart-reviewed .cst-checkmark{
    color:var(--focus-color);
}

.cst-product-block{
    padding:0 20px;
}
.cst-product-block{
    flex:9;
}
.cst-product-list-picture{
    width:150px;
    min-height:120px;
    height:100%;
}

.cst-product-add{
    width: 140px;
}

.cst-product-selected {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    right: 0;
    top: 0;
    bottom: 0;
    width: 160px;
    background: var(--focus-color) var(--bg-icon-checked) no-repeat center / cover;
    border-radius: 0 30px 30px 0;
    background-origin: content-box;
    box-sizing: border-box;
    padding: 20px;
    transition: opacity .4s ease-out;
}

html.rtl .cst-product-selected {
    left: 0;
    right: auto;
    border-radius: 30px 0 0 30px;
}

.cst-productmenu-product-chosen .cst-product-selected {
    opacity: 1;
}

.three-columns .cst-product-selected,
.four-columns .cst-product-selected{
    display:none;
}

@keyframes twist-fadeout {
    70% {
        transform:rotate(45deg);
    }
    100% {
        opacity:0;
    }
}

/*
.cst-productmenu-product-chosen .cst-product-add-button{
    animation:twist-fadeout 1s;
}*/

@keyframes appear {
    100% {
        display:flex;
    }
}

.cst-productmenu-product-chosen .cst-product-chosen-check{
    animation:appear 1s;
}

.cst-product-chosen-check,
.cst-product-add-button{
    height:70px;
    width:70px;
    border-radius:50%;
    font-size:46px;
    background-color:var(--focus-color);
    color:var(--secondary-text-color);
}

.cst-product-chosen-checkmark{
    width:30px;
    height:30px;
}

.cst-productmenu-categories{
    overflow-y:auto;
    overflow-x:hidden;
    /* Padding and margin are to prevent scrollbar in Chrome when not needed */
    padding: 1px;
    margin: -1px;
}

.cst-productmenu-categories-container{
    padding-right:40px;
    align-items:flex-start;
    justify-content:center;
    height:98%;
}

.rtl .cst-productmenu-categories-container{
    padding-right:0;
    padding-left:40px;
}

.handicapped .cst-productmenu-categories-container{
    overflow-y:auto;
    overflow-x:hidden;
}

.cst-productmenu-category{
    width: 134px;
    min-height: 126px;
    border: 1px solid var(--entity-border-color);
    background:var(--tab-bg-color);
    box-sizing: border-box;
    padding: 10px;
    margin-bottom: -1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cst-productmenu-category:last-of-type{
    margin-bottom:0;
}

.cst-productmenu-category-open{
    background-color:var(--focus-color);
}

.cst-productmenu-category-icon{
    width:95px;
    height:95px;
    margin: 0 auto;
}

.cst-productmenu-category-name {
    text-align: center;
    padding-top: 10px;
    color: var(--tab-text-color);
}

.arrow_box {
    position: relative;
}
.arrow_box:after {
    display: none; /* totally hide it as it is broken now */
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-left-color: var(--focus-color);
    border-width: 20px;
    margin-top: -20px;
}

.rtl .arrow_box:after{
    right:100%;
    border-left:0;
    border-right-color: var(--focus-color);
}

.cst-choice-cells,
.cst-choice-cells-scrollable,
.cst-choice-cells-scrollable-partial{
    display:flex;
    align-content:flex-start;
    flex-flow:row wrap;
    box-sizing:border-box;
    margin:0 -20px;
    overflow:visible;
    justify-content:center;
    padding: 10px;
}

.cst-choice-cells-scrollable-partial,
.cst-choice-cells-scrollable {
    /*
    max-height: 100%;
    overflow: hidden;
    */
}

.cst-choice-cells-scrollable-partial{
    margin-top:20px;
    height:1200px;
}

.cst-choice-cell{
    background:transparent;
    box-sizing:border-box;
    width: 100%;
    margin:0 10px;
    margin-bottom:15px;
    border-radius: 20px;
}

.two-columns.cst-choice-cell,
.two-columns .cst-choice-cell{
    width: 50%;
}

.cst-choice-cell.cat-size-1 {
    width: calc(50% - 20px);
}

.cst-choice-cell.cat-size-2 {
    width: 100%;
}

.cst-choice-cell.cat-size-3 {
    width: 100%;
}

.cat-text-align-center .cst-choice-cell-info {
    text-align: center;
    align-items: center;
    min-width: 100%;
    max-width: 100%;
}

.cat-text-align-start {
    text-align: start;
}

.cat-text-align-end {
    text-align: end;
}

.cst-choice-cell-item{
    box-sizing:border-box;
    border-radius:20px;
    overflow: hidden;
    padding:20px;
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    height:175px;
    position:relative;
    border: 1px solid var(--entity-border-color);
}

.entity-shadow {
    box-shadow:5px 5px 10px var(--popup-shadow-color);
}

.cat-size-3 .cst-choice-cell-item {
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
}

.cat-size-3 .cst-choice-cell-title {
    font-size: calc(var(--product-title-font-size) * 2.4);
}

.product-cell-photo-only .cst-choice-cell-item
{
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    height: auto !important;
    padding: 0 !important;

    /*outline: 1px solid red;*/
}

.product-cell-photo-only .choice-illustration,
.product-cell-photo-only .cst-choice-cell-picture
{
    display: block;
    width: 100%;
}

.product-cell-photo-only .cst-choice-cell-info
{
    display: none !important;
}

.two-columns .product-cell-photo-only:nth-child(even) .cst-choice-cell-picture
{
    text-align: right;
}

.two-columns .product-cell-photo-only:nth-child(odd) .cst-choice-cell-picture
{
    text-align: left;
}

.two-columns .product-cell-photo-only.cst-choice-cell
{
    padding: 0 20px 0 20px !important;
    margin: 20px 0 20px 0 !important;
}

.cst-choice-cell-picture-image
{
    max-width:100%;
    max-height:100%;
}

.product-cell-alt .cst-choice-cell-title,
.category-cell-alt .cst-choice-cell-title {
    font-size: calc(var(--product-title-font-size) * 0.8);
}

.product-cell-alt.cat-size-3 .cst-choice-cell-title,
.category-cell-alt.cat-size-3 .cst-choice-cell-title {
    font-size: var(--product-title-font-size);
}

.product-cell-alt .cst-choice-cell-item,
.category-cell-alt .cst-choice-cell-item {
    height: 250px;
    padding: 0 0 50px 0;
    background-origin: content-box !important;
}

.product-cell-alt.cat-size-3 .cst-choice-cell-item,
.category-cell-alt.cat-size-3 .cst-choice-cell-item {
    height: 340px;
    padding-bottom: 60px;
}

.cat-size-3 .cst-choice-cell-picture {
    --height: 100%;
    --offset-x: 0;
    width: 260px;
}

.handicapped .cst-choice-cell-item{
    padding:10px;
    min-height:130px;
}

.cst-choice-cell-info{
    line-height: 1;
    width:100%;
}

.product-cell-alt .cst-choice-cell-info,
.category-cell-alt .cst-choice-cell-info {
    display: flex;
    justify-content:center;
    align-items:center;
    position: absolute;
    bottom: 0;
    background: var(--entity-name-bg-color);
    padding: 0 20px;
    left: 0;
    right: 0;
    text-align: center;
    min-width: unset;
    max-width: unset;
    border-radius: 0 0 20px 20px;
    height: 50px;
}

.product-cell-alt.with-initial .cst-choice-cell-info,
.category-cell-alt.with-initial .cst-choice-cell-info{
    align-items:flex-end;
}

.cat-size-3.product-cell-alt .cst-choice-cell-info,
.cat-size-3.category-cell-alt .cst-choice-cell-info {
    height: 60px;
}

.product-cell-alt .cst-choice-cell-info{
    text-align:start;
}
.product-cell-alt .cst-choice-cell-title{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    width:calc(100% - 50px);
}

.cst-bundle-title,
.cst-bundle-title-initial,
.cst-choice-cell-title,
.cst-choice-cell-title-initial,
.cst-productmenu-product-name{
    color:var(--product-name-color);
    font-size: var(--product-title-font-size);
    font-family: var(--heading1-font), var(--title-font), sans-serif;
    font-weight:bold;
    overflow:hidden;
    width:100%;
}
.cst-bundle-title-initial:first-letter,
.cst-choice-cell-title-initial:first-letter{
    font-size:100px;
    color:var(--focus-color);
}
.handicapped .cst-choice-cell-title-initial:first-letter{
    font-size:60px;
}

.cst-choice-cell-title.category-title,
.cst-choice-cell-title-initial.category-title {
    color: var(--category-name-color);
}

.category-description {
    font-family: var(--subheading1-font), sans-serif;
    font-size: 26px;
    margin-top: 10px;
}

.cat-size-3 .category-description {
    font-size: 32px;
}

.cst-choice-cell-info .cst-product-price{
    font-weight:bold;
}

.cst-choice-cell-picture{
    height:100%;
    width:230px;
    transition:all 0.1s ease-in-out;
    text-align: center;
}

html.rtl .cst-choice-cell-picture {
    left: var(--offset-x);
    right: auto;
}

.category-cell-alt .cst-choice-cell-picture {
    display: none;
}

.product-cell-alt .choice-illustration {
    width:100%;
}
.product-cell-alt .cst-choice-cell-picture{
    width:100%;
}

.category-chosen .img-bg:first-child{
    transform:scale(2);
}
.cst-productmenu-stretch{
    background:transparent;
    justify-content:center;
    width:100%;
}

.minmax{
    font-family: var(--base-font), sans-serif;
    text-transform:lowercase;
    font-size:50%;
    width: 100%;
    margin-top: -8px;
    height: 44px;
}
.minmax span:first-of-type{
    text-transform:capitalize;
}
.minmax span + span:before{
    content:", ";
}

.attention{
    animation:pulsate 2s ease-in-out infinite;
}

.step_title.attention,
.minmax.attention{
    color:red;
}

.cst-preview-additional-section {
    background-color: var(--secondary-dialog-bg-color);
    margin:0 -30px;
    padding:0 30px;
    padding-top:1px;
    padding-bottom:30px;
    border-radius: 0 0 var(--popup-border-radius) var(--popup-border-radius);
}

.upsale-item-cells{
    flex-wrap:wrap;
    margin-bottom:-20px;
}

.upsale-item-cell {
    display:flex;
    width:49%;
    align-items: center;
    justify-content: space-between;
    padding:10px;
    margin-bottom:30px;
    border-radius:10px;
    background:#FFF;
    box-sizing:border-box;
}

.upsale-picture{
    height:120px;
    width:120px;
}

.cst-subcats {
    zoom:.8;
    display:flex;
    flex-direction:column;
    align-items:center;
}
