#mattress-lp,
#popup-quiz {
    font-size: 16px;
    --red: #EC182B;
    --gray: #C7C7C7;
    --yellow: #FEF235;
    --blue: #00AEEF;
}
#mattress-lp .container {
    width: 1310px;
    max-width: 100%;
}
#mattress-hero {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(../images/mattresses/back.jpg);
    background-image: -webkit-image-set(url("../images/mattresses/back.jpg") 1x, url("../images/mattresses/back@2x.jpg") 2x);
}
#mattress-hero .mh-inner {
    column-gap: 32px;
}
#mattress-hero .mh-left {
    flex-basis: 578px;
    flex-grow: 0;
}
#mattress-hero h1 {
    font-size: 80px;
    line-height: 1;
    text-shadow: -3px 5px 1px rgba(0, 0, 0, 0.29);
}
#mattress-hero h1 .f-yellow {
    font-size: 95%;
}
#mattress-hero p {
    font-size: 22px;
    line-height: 34px;
}
#mattress-hero .mh-button {
    column-gap: 20px;
}
#mattress-hero .mh-button .button {
    width: 190px;
    height: 40px;
    border-radius: 20px;
    font-size: 17px;
}
#mattress-hero .mh-button .button.border {
    border-width: 2px;
    width: 160px;
}
#mattress-hero .mh-right {
    margin-top: 71px;
    margin-bottom: 40px;
}
#mattress-hero .mh-right .cloud-top {
    top: 2.024291%;
    right: -7.943925%;
    max-width: 23.364486%;
}
#mattress-hero .mh-right .cloud {
    bottom: -8.097166%;
    left: -17.133956%;
    max-width: 55.607477%;
}
#mattress-featured {
    padding-top: 46px;
    padding-bottom: 77px;
}
#mattress-featured h2 {
    margin-bottom: 25px;
    column-gap: 11px;
    font-size: 36px;
}
#mattress-featured .swiper-button-next, 
#mattress-featured .swiper-button-prev {
    width: 35px;
    height: 35px;
    margin-top: -92px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(../images/mattresses/slider-arrow.png);
    background-image: -webkit-image-set(url("../images/mattresses/slider-arrow.png") 1x, url("../images/mattresses/slider-arrow@2x.png") 2x);
}
#mattress-featured .swiper-button-next {
    right: -44px;
}
#mattress-featured .swiper-button-prev {
    transform: scaleX(-1);
    left: -44px;
}
#mattress-featured .swiper-navigation-icon {
    display: none;
}
#mattress-featured .product-item {
    width: 100%;
    margin: 0;
}
#mattress-featured .product-item .product-details {
    padding-top: 16px;
    padding-bottom: 0;
}
#mattress-featured .product-item .product-details .title {
    margin-bottom: 4px;
}
#mattress-featured .product-item .product-details .title a {
    text-decoration: underline;
}
#mattress-featured .product-item .product-details .price {
    margin-top: 0;
    line-height: 1;
    font-size: 20px;
}
#mattress-featured .special-offer-trigger {
    margin-top: 5px;
}
#mattress-featured .special-offer-trigger span {
    font-size: 12px;
}
#mattress-featured .product-item .product-details .view-details button.button {
    margin-top: 23px;
}
#mattress-find {
    padding-top: 77px;
    padding-bottom: 56px;
}
.mf-inner {
    column-gap: 38px;
}
.mf-text {
    flex-basis: 430px;
    flex-grow: 0;
}
.mf-text h3 {
    font-size: 40px;
    line-height: 1.05;
    margin-bottom: 12px;
}
.mf-text p {
    font-size: 18px;
    line-height: 1.5555;
    margin-bottom: 10px;
}
.mf-text .button {
    width: 204px;
    height: 40px;
    border-radius: 20px;
    margin-top: 20px;
    font-size: 17px;
}
.cloud-find {
    right: -55px;
    bottom: -25px;
    max-width: 48.029557%;
}
.moon-find {
    left: -42px;
    bottom: -20px;
    max-width: 14.53202%;
}
#mattress-perfect {
    padding-top: 26px;
    padding-bottom: 33px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url(../images/mattresses/perfect-back.jpg);
    background-image: -webkit-image-set(url("../images/mattresses/perfect-back.jpg") 1x, url("../images/mattresses/perfect-back@2x.jpg") 2x);
}
.mp-left {
    margin-left: -2.760417vw;
}
.mp-right {
    margin-right: -2.760417vw;
}
.mp-left,
.mp-right {
    flex: 1;
    width: calc((100% - 423px) / 2 + 2.760417vw);
}
.mp-left {
    margin-left: -2.760417vw;
    margin-right: 0;
}
.mp-right {
    margin-right: -2.760417vw;
    margin-left: 0;
}
.mp-middle {
    flex: 0;
    flex-basis: auto;
    margin: 0 50px;
}
.mp-middle .button {
    flex: 0;
    margin-top: 12px;
    width: 204px;
    height: 40px;
    border-radius: 20px;
    font-size: 17px;
}
.mpi-icon {
    flex-shrink: 0;
}
.mpi-text {
    margin-left: 18px;
}
.mpi-text p {
    font-size: 18px;
    line-height: 24px;
}
.mpi-text p.avenir-cond-bold {
    font-size: 19px;
    line-height: 24px;
}
.perfect-cloud-left {
    bottom: -53px;
    left: -36px;
}
.perfect-cloud-right {
    bottom: -53px;
    right: -39px;
}
#mattress-frame {
    padding-top: 79px;
    padding-bottom: 129px;
}
.frame-stars {
    right: 71px;
    top: -22px;
    max-width: 14.901478%;
}
.frame-cloud {
    left: -72px;
    bottom: -31px;
    max-width: 52.70936%;
}
#popup-quiz {
    z-index: 9999;
    --swiper-pagination-bullet-size: 37px;
}
#popup-quiz .quiz {
    top: 29px;
    left: 28px;
    max-width: 13.1%;
}
#popup-quiz .quiz-nav {
    top: 53px;
    column-gap: 36px;
}
#popup-quiz .swiper-button-next, 
#popup-quiz .swiper-button-prev {
    background-repeat: no-repeat;
    background-size: auto;
    position: relative;
    top: unset;
    left: inherit;
    right: inherit;
    margin: 0;
    width: auto;
    height: auto;
    flex: 1;
    justify-content: flex-start;
    flex-grow: 0;
    padding-top: 0.2em;
}
#popup-quiz .swiper-button-next {
    padding-right: 17px;
    background-position: right center;
    background-image: url(../images/mattresses/arrow.png);
    background-image: -webkit-image-set(url("../images/mattresses/arrow.png") 1x, url("../images/mattresses/arrow@2x.png") 2x);
}
#popup-quiz .swiper-button-prev {
    padding-left: 17px;
    background-position: left center;
    background-image: url(../images/mattresses/arrow-left.png);
    background-image: -webkit-image-set(url("../images/mattresses/arrow-left.png") 1x, url("../images/mattresses/arrow-left@2x.png") 2x);
}
#popup-quiz .swiper-button-next:before,
#popup-quiz .swiper-button-prev:after {
    font-family: "Avenir-Black" !important;
    font-size: 17px;
    color: #fff;
    line-height: 1;
}
#popup-quiz .swiper-button-next:before {
    content: 'NEXT';
    margin-right: 9px;
}
#popup-quiz .swiper-button-prev:after {
    content: 'PREVIOUS';
    margin-left: 9px;
}
#popup-quiz .swiper-navigation-icon {
    display: none;
}
#popup-quiz .swiper-pagination {
    display: flex;
    column-gap: 34px;
    position: relative;
    flex: 0;
    top: unset;
    bottom: unset;
    left: unset;
    z-index: 1;
}
#popup-quiz .swiper-pagination:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -1px;
    width: 100%;
    z-index: -1;
    height: 2px;
    background-color: #fff;
}
#popup-quiz .swiper-pagination-bullet {
    font-size: 20px;
    border-width: 2px;
    border-color: #fff;
    background: #7C94F3;
    opacity: 1;
    color: #fff;
    padding-top: 0.2em;
    margin: 0;
}
#popup-quiz .swiper-pagination-bullet-active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #000;
}
#popup-quiz .popup-overlay{
    background-color: rgba(0,0,0,.85);
}
#popup-quiz .popup-content {
    border-radius: 15px;
}
#popup-quiz .popup-inner {
    width: 1000px;
    min-height: 550px;
    max-height: 100%;
    padding: 0 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
#popup-quiz .popup-inner.popup-default {
	background-image: url(../images/mattresses/popup-back.jpg);
	background-image: -webkit-image-set(url("../images/mattresses/popup-back.jpg") 1x, url("../images/mattresses/popup-back@2x.jpg") 2x);
}
#popup-quiz .popup-inner.popup-results {
    height: 610px;
	background-image: url(../images/mattresses/results-back.jpg);
	background-image: -webkit-image-set(url("../images/mattresses/results-back.jpg") 1x, url("../images/mattresses/results-back@2x.jpg") 2x);
}
#popup-quiz .popup-content .popup-close:before,
#popup-quiz .popup-content .popup-close:after {
    display: none;
}
#popup-quiz .popup-content .popup-close {
    width: auto;
    height: auto;
    padding: 17px 21px;
    top: 0;
    right: 0;
}
#popup-quiz .swiper {
    padding-bottom: 150px;
    margin-top: 150px;
}
.quiz-step p {
    font-size: 26px;
    line-height: 34px;
    margin-bottom: 41px;
}
.quiz-step .quiz-fields {
    column-gap: 104px;
}
.quiz-step .q-field p {
    position: absolute;
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
    white-space: nowrap;
    bottom: 0;
    font-weight: normal;
    transform: translateY(calc(100% + 15px));
}
.quiz-step input:checked + label .circle {
    background-color: var(--yellow);
}
.quiz-step input:checked + label p {
    font-family: "Avenir-Black" !important;
    text-decoration: underline;
}
.quiz-step input:checked + label .circle img {
    filter: brightness(0) saturate(100%);
}
.quiz-step .circle {
    width: 88px;
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: #fff;
}
.popup-results .result {
    padding-top: 57px;
    padding-left: 24px;
    column-gap: 30px;
}
.popup-results .result .result-image {
    width: 450px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    border: 1px solid #707070;
}
.popup-results .result .result-cloud {
    right: -43px;
    bottom: -33px;
}
.popup-results .result .result-cloud-2 {
    left: -140px;
    bottom: -103px;
}
.popup-results .result .button {
    width: 176px;
    height: 40px;
    border-radius: 20px;
    margin-top: 25px;
    font-size: 17px;
}
.result-quiz {
    bottom: 30px;
    right: 31px;
}
.result-quiz span {
    margin-top: 9px;
}
.result-title {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 30px;
    line-height: 36px;
}
.result-brand {
    font-size: 16px;
    line-height: 17px;
    margin-bottom: 10px;
    color: #fff;
}
.result-price {
    font-size: 38px;
}
.result-details li {
    font-size: 19px;
    line-height: 36px;
    padding-left: 38px;
    position: relative;
}
.result-details li:before {
    content: '';
    display: block;
    width: 25px;
    height: 25px;
    left: 0;
    top: 5px;
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
	background-image: url(../images/mattresses/checkmark.png);
	background-image: -webkit-image-set(url("../images/mattresses/checkmark.png") 1x, url("../images/mattresses/checkmark@2x.png") 2x);
}
#trending .title p {
    font-size: 34px;
    line-height: 53px;
}
#trending .swiper-navigation-icon {
    display: none;
}
#trending .image {
    flex-grow: 0;
    height: 155px;
    width: 100%;
    flex-grow: 0;
}
#trending div.h4 {
    font-size: 12px;
    line-height: 1.2;
}
@media screen and (max-width: 1499px) {
    .mp-left,
    .mp-right {
        margin-right: 0;
        margin-left: 0;
    }
}
@media screen and (max-width: 991px) {
    #mattress-hero {
        background-position: right;
    }
    .mh-inner {
        padding-top: 14px;
        padding-bottom: 45px;
    }
    .mh-left {
        flex-direction: column;
        align-items: center;
        display: flex;
    }
    #mattress-hero .mh-right {
        margin-top: 0;
        margin-bottom: 23px;
    }
    #mattress-featured .product-item .product-details .view-details button.button {
        width: 106px;
        height: 30px;
        line-height: 30px;
        border-radius: 15px;
        font-size: 12px;
        margin-top: 19px;
    }
    .mf-inner {
        flex-direction: column-reverse;
    }
    .mp-middle {
        flex: 1;
        margin-left: auto;
        margin-right: auto;
    }
    #mattress-frame .mf-inner {
        flex-direction: column;
    }
    .mf-text {
        flex-basis: auto;
        margin-top: 42px;
    }
    #popup-quiz .popup-inner.popup-default {
        flex-direction: column;
    }
    #popup-quiz .quiz {
        position: relative;
        top: inherit;
        left: inherit;
        max-width: 131px;
        margin: 17px auto 21px;
    }
    #popup-quiz .quiz-nav {
        position: relative;
        top: inherit;
        margin-bottom: 17px;
    }
    #popup-quiz .swiper {
        padding-bottom: 0;
        margin-top: 0;
        width: 100%;
    }
    .quiz-step p {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 30px;
    }
    .quiz-step .quiz-fields {
        column-gap: 0;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 20px;
        margin-bottom: 20px;
        width: 100%;
    }
    .q-field {
        flex-direction: column;
        align-items: center;
        flex-basis: 33.333%;
    }
    .quiz-step .q-field p {
        position: relative;
        margin-bottom: 0;
        white-space: normal;
        bottom: inherit;
        font-weight: normal;
        transform: none;

    }
}
@media screen and (max-width: 767px) {
    #popup-quiz .popup-inner.popup-results {
        height: auto;
    }
    .popup-results .result {
        flex-direction: column;
        padding-left: 0;
        padding-top: 35px;
        width: 100%;
        padding-bottom: 56px;
    }
    .result-perfect {
        margin: 0 auto 19px;
    }
    .popup-results .result .result-image {
        /*
        width: 360px;
        height: 220px;
        aspect-ratio: unset;
        margin: 0 auto;
        */
        max-width: 100%;
    }
    .result-title {
        font-size: 28px;
    }
    .result-price {
        font-size: 30px;
    }
    .popup-results .result .button {
        margin-top: 10px;
        margin-bottom: 28px;
        width: 148px;
        height: 34px;
        border-radius: 17px;
        font-size: 14px;
    }
    .result-quiz {
        position: relative;
        right: inherit;
        bottom: inherit;
        margin: 0 auto 60px;
        width: 138px;
    }
}
@media screen and (max-width: 567px) {
    #mattress-hero {
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        background-image: url(../images/mattresses/back-m.jpg);
        background-image: -webkit-image-set(url("../images/mattresses/back-m.jpg") 1x, url("../images/mattresses/back-m@2x.jpg") 2x);
    }
    #mattress-hero h1 {
        font-size: 60px;
    }
    #mattress-hero p {
        font-size: 19px;
        line-height: 26px;
    }
    #mattress-hero .mh-button {
        column-gap: 18px;
    }
    #mattress-hero .mh-button .button {
        width: 171px;
        height: 36px;
        border-radius: 18px;
        font-size: 15px;
    }
    #mattress-hero .mh-button .button.border {
        width: 144px;
    }
    #mattress-hero .mh-right .cloud {
        bottom: -17px;
        left: inherit;
        right: -70px;
        max-width: 100%;
    }
    #mattress-featured {
        padding-top: 50px;
        padding-bottom: 34px;
    }
    #mattress-featured .container > .relative{
        margin-left: -15px;
        margin-right: -15px;
    }
    #mattress-featured h2 {
        column-gap: 5px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    #mattress-featured .title-icon {
        width: 42px;
    }
    #mattress-featured .special-offer-trigger span {
        font-size: 10px;
    }
    #mattress-find {
        padding-top: 34px;
    }
    .cloud-find {
        right: -84px;
        bottom: -9px;
        max-width: 100%;
    }
    .moon-find {
        left: -22px;
        bottom: -16px;
        max-width: 100%;
    }
    .mf-text h3 {
        font-size: 36px;
        line-height: 38px;
        margin-bottom: 18px;
    }
    .mf-text .button {
        width: 163px;
        height: 34px;
        border-radius: 17px;
        font-size: 14px;
    }
    #mattress-frame {
        padding-top: 100px;
        padding-bottom: 70px;
    }
    .frame-cloud {
        left: -32px;
        bottom: -14px;
        max-width: 100%;
    }
    .frame-stars {
        right: 32px;
        top: -10px;
        max-width: 100%;
    }
    .quiz-step p br {
        display: none;
    }
    .q-field {
        flex-basis: 50%;
    }
    #product-categories {
    }
    #trending .title p {
        font-size: 24px;
        line-height: 28px;
    }
    #popup-quiz {
        align-items: flex-start;
        overflow: auto;
    }
}
@media screen and (max-height: 750px) {
    /*
    #popup-quiz {
        --swiper-pagination-bullet-size: 30px;
    }
    #popup-quiz .quiz {
        max-width: 100px;
        margin: 15px auto;
    }
    #popup-quiz .quiz-nav {
        margin-bottom: 10px;
    }
    #popup-quiz .swiper-pagination-bullet {
        font-size: 16px;
    }
    .quiz-step p {
        font-size: 17px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    .quiz-step .circle {
        width: 70px;
    }
    .quiz-step .circle img {
        max-width: 60%;
    }
    .quiz-step .q-field p {
        margin-top: 10px;
        font-size: 14px;
        line-height: 1.2;
    }
        */
}