/*
    Common
*/

.wizard,
.tabcontrol {
    display: block;
    width: 100%;
    overflow: hidden;
}

.wizard a,
.tabcontrol a {
    outline: 0;
}

.wizard ul,
.tabcontrol ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.wizard ul > li,
.tabcontrol ul > li {
    display: block;
    padding: 0;
}

/* Accessibility */
.wizard > .steps .current-info,
.tabcontrol > .steps .current-info {
    position: absolute;
    left: -999em;
}

.wizard > .content > .title,
.tabcontrol > .content > .title {
    position: absolute;
    left: -999em;
}

/*
    Wizard
*/

.wizard > .steps {
    position: relative;
    display: block;
    width: 100%;
}

.wizard.vertical > .steps {
    display: inline;
    float: left;
    width: 30%;
}

.wizard > .steps .number {
    font-size: 1.429em;
}

.wizard > .steps > ul > li {
    /*width: 25%;*/
}

.wizard > .steps > ul > li,
.wizard > .actions > ul > li {
    display: flex;
    justify-content: center;
}

.wizard.vertical > .steps > ul > li {
    float: none;
    width: 100%;
}

.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
    display: block;
    width: auto;
    margin: 0 2px;
    padding: 10px 15px;
    text-decoration: none;

    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}

.wizard > .steps .disabled a,
.wizard > .steps .disabled a:hover,
.wizard > .steps .disabled a:active {
    background: #eee;
    color: #aaa;
    cursor: default;
}

.wizard > .steps .current a,
.wizard > .steps .current a:hover,
.wizard > .steps .current a:active {
    background: #023265;
    color: #fff;
    cursor: default;
}

.wizard > .steps .done a,
.wizard > .steps .done a:hover,
.wizard > .steps .done a:active {
    background: #839bb5;
    color: #fff;
}

.wizard > .steps .error a,
.wizard > .steps .error a:hover,
.wizard > .steps .error a:active {
    background: #ff3111;
    color: #fff;
}

.wizard > .content {
    min-height: 33em;
}

.wizard.vertical > .content {
    display: inline;
    float: left;
    margin: 0 2.5% 0.5em 2.5%;
    width: 65%;
}

.wizard > .content > .body {
    float: left;
    position: absolute;
    width: 95%;
    height: 95%;
    padding: 2.5%;
}

.wizard > .content > .body ul {
    list-style: disc !important;
}

.wizard > .content > .body ul > li {
    display: list-item;
}

.wizard > .content > .body > iframe {
    border: 0 none;
    width: 100%;
    height: 100%;
}

.wizard > .content > .body input {
    display: block;
    border: 1px solid #ccc;
}

.wizard > .content > .body input[type="checkbox"] {
    display: inline-block;
}

.wizard > .content > .body input.error {
    background: rgb(251, 227, 228);
    border: 1px solid #fbc2c4;
    color: #8a1f11;
}

.wizard > .content > .body label {
    display: inline-block;
    margin-bottom: 0.5em;
}

.wizard > .content > .body label.error {
    color: #8a1f11;
    display: inline-block;
    margin-left: 1.5em;
}

.wizard > .actions {
    position: relative;
    display: block;
    text-align: right;
    width: 100%;
    margin-top: 10px;
}

.wizard.vertical > .actions {
    display: inline;
    float: right;
    margin: 0 2.5%;
    width: 95%;
}

.wizard > .actions > ul {
    /*display: inline-block;*/
    text-align: right;
}

.wizard > .actions > ul > li {
    margin: 0 0.5em;
}

.wizard.vertical > .actions > ul > li {
    margin: 0 0 0 1em;
}

.wizard > .actions a,
.wizard > .actions a:hover,
.wizard > .actions a:active {
    color: #81100F;
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
#mattress-finder .item-previous {
    color: #aaa;
}

.wizard > .actions .disabled a,
.wizard > .actions .disabled a:hover,
.wizard > .actions .disabled a:active {
    /*background: #eee;*/
    color: #aaa;
}

.wizard > .loading {
}

.wizard > .loading .spinner {
}

.wizard > .steps {
    height: 50px;
    padding-top: 7px;
}

/*
    Tabcontrol
*/

.tabcontrol > .steps {
    position: relative;
    display: block;
    width: 100%;
}

.tabcontrol > .steps > ul {
    position: relative;
    margin: 6px 0 0 0;
    top: 1px;
    z-index: 1;
}

.tabcontrol > .steps > ul > li {
    float: left;
    margin: 5px 2px 0 0;
    padding: 1px;

    -webkit-border-top-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-topleft: 5px;
    -moz-border-radius-topright: 5px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.tabcontrol > .steps > ul > li:hover {
    background: #edecec;
    border: 1px solid #bbb;
    padding: 0;
}

.tabcontrol > .steps > ul > li.current {
    background: #fff;
    border: 1px solid #bbb;
    border-bottom: 0 none;
    padding: 0 0 1px 0;
    margin-top: 0;
}

.tabcontrol > .steps > ul > li > a {
    color: #5f5f5f;
    display: inline-block;
    border: 0 none;
    margin: 0;
    padding: 10px 30px;
    text-decoration: none;
}

.tabcontrol > .steps > ul > li > a:hover {
    text-decoration: none;
}

.tabcontrol > .steps > ul > li.current > a {
    padding: 15px 30px 10px 30px;
}

.tabcontrol > .content {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 35em;
    overflow: hidden;
    border-top: 1px solid #bbb;
    padding-top: 20px;
}

.tabcontrol > .content > .body {
    float: left;
    position: absolute;
    width: 95%;
    height: 95%;
    padding: 2.5%;
}

.tabcontrol > .content > .body ul {
    list-style: disc !important;
}

.tabcontrol > .content > .body ul > li {
    display: list-item;
}

.builder-options {
    width: 180px;
    height: 70px;
    text-align: center;
    display: inline-block;
    margin: 17px 23px;
    padding: 0 15px;
    border: 1px solid #e3e3e3;
    color: #023266;
    font-size: 18px;
    background: #f8f8f8;
    transition: background 0.1s;
    cursor: pointer;
    vertical-align: top;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.builder-options:hover {
    background: #f3f3f3;
}

#preloader img {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#preloader {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background-color: #ffffffe0;
    top: 0;
}

.builder p.note-msg {
    font-size: 20px;
    text-align: center;
    padding: 10px 0;
    color: #2184be;
}

.builder .actions.clearfix {
    font-size: 17px;
}
.builder .sli_banner{
    display: none;
}

.mattressfinder-index-index .Category__content {
    width: 100%;
}
.mattressfinder-index-index .Category__sidebar {
    display: none;
}

#product-list .products-grid {
    list-style: none;
}

div#mattress-finder {
    border: 2px solid #ccc;
    display: block;
    margin: 0.5em;
    min-height: 38em;
    overflow: hidden;
    position: relative;
    width: auto;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/*recommend step*/
.recommend-mattress .recommend-info,
.recommend-mattress .recommend-image {
    display: inline-block;
}

.recommend-image, .recommend-info {
    text-align: center;
    vertical-align: top;
    width: 45%;
}

.recommend-info .title {
    text-align: center;
    font-size: 23px;
}

.recommend-info .price {
    font-size: 25px;
    padding: 10px 0;
    font-weight: 600;
}
.recommend-info .old-price {
    font-size: 18px;
    font-weight: 400;
    color: #666666;
}

.recommend-info .button {
    text-align: center;
}

span.old-price {
    text-decoration: line-through;
}

span.red-price {
    color: #980101;
}

.recommend-button a {
    margin: 0;
    color: #000;
}

.recommend-button a:hover {
    text-decoration: none;
}

.step-recommend .builder-options {
    display: block;
}

.section-title {
    text-align: center;
    font-size: 30px;
}

span.attribute-name {
    color: #980101;
}

.section-title {
    padding: 20px 0;
    color: #023266;
}

#mattress-finder > .steps {
    display: none;
}
#mattress-finder .item-previous, .item-next {
    font-size: 15px;
}
.selected-options {
    padding-top: 8px;
    margin: 0 auto;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #ccc;
    min-width: 525px;
}

.selected-steps {
    display: inline-block;
}

.option-step {
    display: inline-block;
    border: 1px solid #000;
    vertical-align: top;
    padding: 5px;
    border-radius: 7px;
    transition: background 0.1s;
    cursor: pointer;
    background: #f7f7f7;
    margin-left: 10px;
    margin-bottom: 10px;
}

.option-step:hover {
    background: #f3f3f3;
}

span.attribute-value {
    font-weight: bold;
}

.finder-indicate-text {
    color: #81100F;
}

.finder-recommend {
    background: #58a9ef;
    color: white;
    margin: 0 10px 20px 10px;
    border-radius: 5px;
}

.option-text {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    width: 100%;
}


/* Modal */
#recommend-img {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#recommend-img:hover {
    opacity: 0.5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 30%;
    top: 15%;
    width: 31%;
    height: 72%;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

.recommend-close-img {
    position: absolute;
    top: 15px;
    right: 70px;
    color: grey;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.recommend-close-img:hover,
.recommend-close-img:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* *********** */

.recommend-product-title:hover{
    text-decoration: none;
}

.recommend-product-title {
    color: #2d72af;
    font-size: 19px;
}

.recommend-to-cart {
    width: 85%;
    font-size: 1.5rem;
    margin-top: 5%;
    position: relative;
    display: inline-block;
    float: right;
    background: #79BC50;
    box-sizing: border-box;
    padding: 11px;
    color: #ffffff;
    border-radius: 5px;
    text-align: center;
    height: 50px;
    cursor: pointer;
}
.recommend-view-detail {
    width: 85%;
    font-size: 1.5rem;
    margin-top: 3%;
    position: relative;
    display: inline-block;
    float: right;
    background: #79BC50;
    box-sizing: border-box;
    padding: 11px;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    height: 50px;
}

.best-match-logo {
    background:url(../images/finder/BestMatch_icon.svg) no-repeat;
    background-size: contain;
    width: 70px;
    height: 70px;
    position: absolute;
    top: 65%;
    left: 34%;
}

.selected-steps-wrapper {
    text-align: left;
}

.recommend-list-logo {
    margin: 15px auto;
    height: 40px;
    background: #58a9ef;
    width: 350px;
    position: relative;
    border-radius: 5px;
    display: none;
}
.recommend-list-logo span{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    font-size: 16px;
    color: white;
}

.start-over {
    border-radius: 11px;
    background: #58a9ef;
    color: white;
    font-size: 17px;
    cursor: pointer;
    transform: rotate(40deg);
    -webkit-transform: rotate(40deg);
    padding: 21px 51px 48px 45px;
    position: absolute;
    bottom: -34px;
    left: -62px;
}

/*Mobile styles*/
@media screen and (max-width: 414px) {
    .recommend-to-cart,.recommend-view-detail,.start-over-mobile {
        float: none;
        width: 85%;
        height: 50px;
        font-size: 1.3rem;
        padding-top: 13px;
    }
    .builder-options {
        width: 150px;
        height: 80px;
        text-align: center;
        display: inline-block;
        margin: 10px 10px;
        border: 1px solid #e3e3e3;
        color: #023266;
        font-size: 19px;
        background: #f8f8f8;
        transition: background 0.1s;
        cursor: pointer;
        vertical-align: top;
        overflow: hidden;
        box-sizing: border-box;
        position: relative;
    }
    .builder .actions ul {
        display: block;
    }
    .wizard > .actions a {
        float: right;
        padding: 0.6em 1em;
        margin-top: 26%;
    }
    #mattress-finder .item-previous {
        float: left;
        padding-top: 20px;
    }
    .wizard>.actions>ul>li {
        display: block;
    }
    .section-title {
        font-size: 26px;
    }
    #recommend-img {

    }
    .selected-steps {
        display: none;
    }
    #mattress-finder {
        min-height: 90em;
    }
    .recommend-image {
        display: block;
        width: 100%;
    }
    .selected-options {
        border: none;
    }
    .best-match-logo {
        top: 43%;
        left: 70%;
        width: 60px;
    }
    .recommend-info .title {
        margin-top: 6%;
    }
    .recommend-info .price {
        text-align: center;
    }
    .start-over {
        display: none;
    }
    .recommend-info {
        width: 100%;
        padding-top: 10px;
    }
    .start-over-mobile {
        width: 85%;
        font-size: 1.3rem;
        margin-top: 5%;
        position: relative;
        display: inline-block;
        background: #58a9ef;
        box-sizing: border-box;
        padding-top: 13px;
        color: #fff;
        text-align: center;
        border-radius: 5px;
    }
    #recommend-img:hover {
        opacity: 1;
    }
    .recommend-list-logo span {
        font-size: 14px;
    }
    .recommend-list-logo  {
        width: 313px;
    }
}
@media screen and (max-width: 320px) {
    .recommend-to-cart,.recommend-view-detail,.start-over-mobile {
        float: none;
        width: 85%;
        height: 50px;
        font-size: 1.3rem;
        padding-top: 13px;
    }
    .builder-options {
        width: 120px;
        height: 80px;
        font-size: 18px;
    }
    .wizard > .actions a {
        float: right;
        margin-top: 26%;
    }
    .best-match-logo {
        left: 73%;
    }
    .recommend-list-logo span {
        font-size: 13px;
    }
    .recommend-list-logo  {
        width: 286px;
    }
}
@media screen and (min-width: 414px) and (max-width: 450px) {
    .recommend-to-cart,.recommend-view-detail,.start-over-mobile {
        float: none;
        width: 85%;
        height: 50px;
        font-size: 1.3rem;
        padding-top: 13px;
    }
    .best-match-logo {
        top: 39%;
        left: 68%;
        width: 60px;
    }
    .builder-options {
        width: 165px;
    }
    #mattress-finder .item-previous, .item-next {
        font-size: 22px;
    }
    .start-over-mobile {
        padding-top: 13px;
    }

    .recommend-list-logo span {
        font-size: 16px;
    }
    .recommend-list-logo  {
        width: 350px;
    }
}