

/*========= PRODUCT CARDS ========*/

section#final-match {
    display: flex;
    justify-content: center;
}

.recommendation-container, .final_card-container {
    width: 50%;
    max-width: 450px;
    color: #171717;
    /* border-radius: 6px; */
    max-width: 410px;
    position: relative;
}

.upgrade-containers {
    width: 50%;
    padding-left: 2em;
    text-align: left;
}


.final_card-container .final_card-content > header, .why_we_chose-intro, .final_card-pricing, .why_we_chose-content {
    padding: 0 2rem;
    z-index: 3;
    position: relative;
}

.final_card-container .final_card-content > header > h2, h2.upgrade-title {
        text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 3px;
    font-weight: normal;
    margin: 1.5em 0;
    color: #083747;
}

.final_card-container .final_card-content > main{
    overflow:hidden;
    line-height:1.5;
}

.final_card-container .final_card-content > main > h3{
    position:relative;
    font-size:1.5rem;
    margin: 1rem 0;
    font-weight: normal;
    line-height: 1.25;
    display: inline-block;
    text-align: left;
}

.final_card-container .final_card-content > main > h3 .feel{
    display:block;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
    font-size: .875em;
}

span.feel:before {
    content: '';
    height: 1em;
    width: 1em;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    margin-right: 0.5rem;
    }

span.feel.firm:before{
        background: #F26D21;
}

span.feel.medium:before{
        background: #72B1C8;
}

.final_card-container .final_card-content > main > figure{
    margin: 0;
    margin-top: -6rem;
    margin-bottom: -1rem;
}

.final_card-container .final_card-content > main > figure > img{
    display:block;
    height:auto;
    width:100%;
}

.why_we_chose-intro {
    text-align: left;
}

section.final_card-pricing {}

.final_card-price .brow {
    font-size: .875em;
}

.final_card-price .price {
    font-size:2rem;
    margin: 0.5rem 0;
}


p.finance_copy {
    font-size: .875em;
    width: 17em;
    margin-right: auto;
    margin-left: auto;
}


/*========== why property ====== */

a.button {
    padding: 15px 30px;
    border: 1px solid #1b63cd;
    border-radius: 5px;
    background-color: #1b63cd;
    color: #fff;
    letter-spacing: .05em;
    text-align: center;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,.1);
    cursor: pointer;
    font-weight: 500;
    display:block;
    text-decoration:none;
    margin: 1rem auto;
}

.why-we-chose.icons {
    display: flex;
}

.why_property {
}

.why_property-visual {
    width: 10em;
    height: 10em;
}

.why_property-information, .modal-holder {
    font-size: .875em;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    color:#fff;
    display: none;
    line-height: 1.5;
    z-index:2;
}

.why_property-information > label.overlay, .modal-overlay-toggle {
    content:'';
    height:100%;
    width:100%;
    background-color:rgba(0,0,0,0.3);
    display:block;
    position:absolute;
    top:0;
    left:0;
    z-index:1;
}

section.why_we_chose-content {
    margin: 2rem 0;
}

span.why_property-category label {
    display: block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    position: relative;
    background: #858F98;
    vertical-align: middle;
    font-size: .875em;
    margin: 0 auto;
}

span.why_property-category h5 {
    /* display: inline-block; */
    margin: .5rem 0;
}

.tooltip-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.why_property-image {
    width: 5rem;
    margin: 0 auto;
    height: 5rem;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: #171717 solid 2px;
    border-radius: 50%;
}

.why_property-image > img {
    width: 100%;
    vertical-align: middle;
    display: inline-block;
}

p.why_property-information-title {}

span.why_property-copy, .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #171717;
    background: #f7f7f7;
    padding: 2rem;
    text-align: left;
    z-index: 2;
    border-radius: 10px;
}

span.why_property-copy > label.why_property-information-toggle, .modal-close-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    /* background: #fff; */
    padding: 1rem;
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
    color: #171717;
    box-shadow: 3px 3px 6px 2px rgba(163, 177, 198, 0.25), -3px -3px 6px 2px rgb(255, 255, 255);
    border: none;
}

span.why_property-copy > label.why_property-information-toggle .close-icon, .modal-close-toggle .close-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

span.why_property-copy > label.why_property-information-toggle .close-icon:after,  .modal-close-toggle .close-icon:after{
    content:'';
    font-size:1rem;
}


.modal-close-toggle .close-icon:before, 
.modal-close-toggle .close-icon:after,
span.why_property-copy > label.why_property-information-toggle .close-icon:before, 
span.why_property-copy > label.why_property-information-toggle .close-icon:after {
    content: '';
    display:inline-block;
    font-size:1rem;
    height:1em;
    width:.125em;
    background-color: #292929;
    position:absolute;
    top:50%;
    left:50%;
    border-radius:1em;
    box-shadow: inset -1px 0px 1px 0px #000000ee;
    }

   .modal-close-toggle .close-icon:before,
   span.why_property-copy > label.why_property-information-toggle .close-icon:before{
    transform:translate(-50%,-50%) rotate(45deg);
    }

    .modal-close-toggle .close-icon:after,
    span.why_property-copy > label.why_property-information-toggle .close-icon:after {
        transform:translate(-50%,-50%) rotate(-45deg)
    }

.modal-close-toggle .close-icon,
span.why_property-copy > label.why_property-information-toggle.close-icon{
    position:relative;
    width: 100%;
    height: 100%;
    display: block;
}

input[name="tooltip"]:checked + .why_property-information, .modal-input:checked + .modal-holder {
    display: block;
}

.tooltip-icon:after {content: '?';color: #fff;}


/*============ WHY UPGRADE CSS ==============*/

label.upgrade-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    background: #34829A;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0px 0px 0px 0px #F26D21;
    flex-shrink: 0;
}

.suggestions-imagery {
    height: 3rem;
    width: 3rem;
    display: block;
    position:relative;
    flex-shrink: 0;
    flex-grow: 0;
}

.suggestions-imagery .circle{
    border-radius:50%;
    padding:2px;
    background: #054255;
    display:block;
    height:100%;
}

.suggestions-imagery img{
    max-width:75%;
    height:auto;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
}

.upgrade_selected-icon {
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: #fff solid 2px;
    border-radius: 6px;
    flex-grow: 0;
    flex-shrink: 0;
}

.suggestions-content {
    padding: 0px 10px;
    width: 100%;
}

.suggestion_content-title {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.suggestion_content-title > *{
    margin:0;
    width: 100%;
}

p.upgrade_price-difference {flex-shrink: 1;text-align: right;color: #b4d9e5;}

.upgrade_suggestion-content {
    padding: 0 2rem;
    font-size: .75em;
    width: 100%;
    line-height: 1.5;
}

.upgrade-toggle {
    display: flex;
    align-items: center;
}




.modal-toggle {
    display: block;
    height: 2rem;
    width: 2rem;
    background: white;
    color: #171717;
    position: relative;
    padding: 0;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 50%;
    margin-left: 1rem;
}

.modal_toggle-icon:after {content: '?';}

.modal_toggle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 1rem;
    height: 1rem;
    text-align: center;
}

h2.upgrade-title {
    color: white;
    text-align: center;
}


/*================== Final Match Toggle ===========*/


.upgrade_holder {
    margin-bottom: 4rem;
}


.final_card-container { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    transition: all .5s 0s ease;
}

.final_card-content{
       border-radius: 6px;
    transition: all .5s 0s ease; 
}





#suggestion-input:checked ~ .recommendation-container > .final_card-container.suggestion-input .final_card-content,
#cooling-upgrade-input:checked ~ .recommendation-container > .final_card-container.cooling-upgrade-input .final_card-content,
#pressure-relief-upgrade-input:checked ~ .recommendation-container > .final_card-container.pressure-relief-upgrade-input .final_card-content,
#cooling-upgrade-input:checked + #pressure-relief-upgrade-input:checked ~ .recommendation-container article.final_card-container.pressure_relief-cooling_upgrade-input .final_card-content{
    z-index: 2;
    opacity: 1;
    background: #f7f7f7ff;
    min-height: 100%;
    top: 0%;
    left: 0rem;
    transform: none;
    width: 100%;
}

#suggestion-input:checked ~ .recommendation-container > .final_card-container.suggestion-input .final_card-content > *,
#cooling-upgrade-input:checked ~ .recommendation-container > .final_card-container.cooling-upgrade-input .final_card-content > *,
#pressure-relief-upgrade-input:checked ~ .recommendation-container > .final_card-container.pressure-relief-upgrade-input .final_card-content > *,
#cooling-upgrade-input:checked + #pressure-relief-upgrade-input:checked ~ .recommendation-container article.final_card-container.pressure_relief-cooling_upgrade-input .final_card-content > *{
    opacity: 1;
    max-height: 100%;
    visibility: visible;
    transition: visibility 0s .4s linear, opacity .2s .4s ease, max-height 0s 0s;
    }




.final_card-container .final_card-content > *,
#cooling-upgrade-input:checked + #pressure-relief-upgrade-input:checked ~ .recommendation-container article.final_card-container:not(.pressure_relief-cooling_upgrade-input) .final_card-content > *,
#cooling-upgrade-input:checked ~ .recommendation-container > .final_card-container.suggestion-input .final_card-content > *,
#pressure-relief-upgrade-input:checked ~ .recommendation-container > .final_card-container.suggestion-input .final_card-content > *
{
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    }

.final_card-container .final_card-content,
#cooling-upgrade-input:checked + #pressure-relief-upgrade-input:checked ~ .recommendation-container article.final_card-container:not(.pressure_relief-cooling_upgrade-input) .final_card-content,
#cooling-upgrade-input:checked ~ .recommendation-container > .final_card-container.suggestion-input .final_card-content,
#pressure-relief-upgrade-input:checked ~ .recommendation-container > .final_card-container.suggestion-input .final_card-content{
    background: #34829a;
    min-height: 90%;
    top: 50%;
    left: -1.5rem;
    transform: translate(0, -50%);
    width: 50%;
    opacity: 0.2;
    z-index:1;
    position: absolute;
}    


#suggestion-input:checked ~ .upgrade-containers label.upgrade-label[for="suggestion-input"] .upgrade_selected-icon,
#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"] .upgrade_selected-icon,
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"] .upgrade_selected-icon{
background:white;
transform:scale(1.1);


}

/*#suggestion-input:checked ~ .upgrade-containers label.upgrade-label[for="suggestion-input"],*/
#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"],
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"]{
    box-shadow: 0px 0px 0px 4px #F26D21;
    background: #F26D21;
}

.upgrade_price-difference{
     overflow:hidden;
}

/*#suggestion-input:checked ~ .upgrade-containers .upgrade_price-difference,*/
#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"] .upgrade_price-difference,
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"] .upgrade_price-difference{
    color: #F26D21;
}

/*#suggestion-input:checked ~ .upgrade-containers .upgrade_price-difference,*/
#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"] .suggestions-imagery .circle,
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"] .suggestions-imagery .circle{
    background-color:white;
}

.add_text{
    overflow:hidden;    
    display: inline-block;
    max-width:100%;
    vertical-align:middle;
}


#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"] .add_text,
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"] .add_text{
    max-width: 0%; 
    transition: max-width .125s 0s ease;
}


.suggestion_content-title h3{
    flex-shrink: 1;
}

.suggestion_content-title h3:after{
    content:'';
    display:inline-block;
    vertical-align:middle;
}


#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"] .suggestion_content-title h3:after,
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"] .suggestion_content-title h3:after{
content:' ADDED'
}


.upgrade_selected-icon{
    position:relative;
}

.selected-icon{
    visibility:hidden;
    opacity:0;
}

#cooling-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="cooling-upgrade-input"] .selected-icon,
#pressure-relief-upgrade-input:checked ~ .upgrade-containers label.upgrade-label[for="pressure-relief-upgrade-input"] .selected-icon{
        visibility:visible;
    opacity:1;
}

span.selected-icon:before, span.selected-icon:after {
    content:'';
  display: inline-block;
  transform: rotate(45deg) translate(-50%, -50%);
  transform-origin:top right;
  height:2em;
  width: 1em;
  border-bottom: .25em solid #034355;
  border-right: .25em solid #034355;
  position:absolute;
  top:60%;
  left:50%;
 
}



/*========== Final Match Interaction Styling =========*/

div#Category-Profile:not(.done):not(.current),
div#Category-Profile:not(.current)+.step-link-graphic {
    /* display: none; */
}

section#final-match {
    position: absolute;
    top: 0;
    left: 0%;
    transform: translateX(120%);
    width: 0%;
    opacity: 0;
    margin-top: 2rem;
    transition: position 0s linear, opacity .2s .05s ease, transform .2s .05s ease, width 0s .2s linear;
    display:none;
}

form#selector-form-submission {
    overflow: visible;
    position: relative;
}

section#Mattress-Selector.match-active #selector-questions {
    transform:translate(-110%, 0%);
    opacity:0;
    position: absolute;
    transition: position 0s 0.2s linear, opacity .2s ease, transform .2s ease, width 0s .2s;
    min-width: 0px;
    width: 0vw;
}

section#Mattress-Selector.match-active #final-match {
    transform: none;
    opacity:1;
    position: relative;
    transition: position 0s .3s linear, opacity .2s .1s ease, transform .2s .1s ease;
    display: flex;
    width: 60vw;
    max-width: 1200px;
}

section#Mattress-Selector.match-active .selector-nav.next {
    visibility:hidden;          
}


/*===== upgraded ====*/

.final_card-container span.upgraded {
    position: absolute;
    width: 100%;
    text-align: center;
    padding: 0.6rem;
    background: #F26D21;
    left: 0;
    color: #fff;
    z-index: 1;
    border-radius: 5px;

}

.final_card-container span.upgraded,
#cooling-upgrade-input:checked + #pressure-relief-upgrade-input:checked ~ .recommendation-container article.final_card-container:not(.pressure_relief-cooling_upgrade-input) span.upgraded{
    transition:top .1s 0s cubic-bezier(0.32, -0.45, 0.41, 1), visibility 0s .1s;
    visibility:hidden;
    top:0;
}

#cooling-upgrade-input:checked ~ .recommendation-container > .final_card-container.cooling-upgrade-input span.upgraded,
#pressure-relief-upgrade-input:checked ~ .recommendation-container > .final_card-container.pressure-relief-upgrade-input span.upgraded,
#cooling-upgrade-input:checked + #pressure-relief-upgrade-input:checked ~ .recommendation-container article.final_card-container.pressure_relief-cooling_upgrade-input span.upgraded{
        top: -3rem;
        transition:top .2s .6s cubic-bezier(0.63, 0.01, 0.69, 1.34), visibility 0s .55s;
        visibility:visible;
}




/*====== Response Card Styling =========*/


.reaction_holder{
        align-self: flex-start;
    top: 9em;
}

.reaction-container {
    background: #ffffff;
    color: #171717;
    /* background: #010c0f1c; */
    /* color: #fff; */
    background: #E7F3F7;
    color: #034355;
    padding: 0.5rem 1rem;
    width: 75%;
    margin: 0 auto;
    border-radius: 9px;
    line-height: 1.5;
    font-size: 1em;
    box-shadow: 0px 11px 20px 0px #03242e4d, -1px 6px 20px 12px #0536446b;
    opacity:0;
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translate(-50%, 10%);
    transition: all .4s 0s ease, visibility 0s .3s;
    visibility: hidden;
}

span.question_holder.reaction > .question {
    transform: translateY(-80%);
    transition: all .4s .1s ease, visibility 0s .5s;
    opacity: 0;
    visibility: hidden;
}

.question {
    transition: all .4s .4s ease, visibility 0s .5s;
    visibility: visible;
}

.reaction .reaction-container {transform: translate(-50%, -50%);opacity: 1;visibility: visible;transition: all .4s .2s ease, visibility 0s 0s;}


/*============= Category Steps ==========*/

.step.current{
 /* border:#fff solid 1px; */
 border-radius:6px;
 box-shadow: 0px 4px 4px 3px rgba(0, 0, 0, 0.23);
 background: #0000001c;
 transition: all .4s 0s ease;

}

.step.current, .step.done{
     color: #fff;
}

.step.current:nth-child(1){
 box-shadow: inset -1px 3px 5px 0px rgba(0, 0, 0, 0.18), inset -1px 2px 7px 0px rgba(0, 0, 0, 0.35);
}

.step.current:nth-child(3){
 box-shadow: inset -1px 3px 5px 0px rgba(0, 0, 0, 0.18), inset -1px 2px 7px 0px rgba(0, 0, 0, 0.35);
}

.step.current:nth-child(5){
 box-shadow: inset -1px 2px 5px 0px rgba(0, 0, 0, 0.18), inset 0px 2px 5px 0px rgba(0, 0, 0, 0.35);
}
.step.current:nth-child(7){
 box-shadow: inset -1px 3px 5px 0px rgba(0, 0, 0, 0.18), inset 4px 1px 7px 0px rgba(0, 0, 0, 0.35);
}
.step{
    padding: 1em;
    transition: all .2s 0s ease;
    min-width: 30%;
    color: #A2BEC6;
}

.step p{
    margin-bottom:0;
}

.step p {
    color: inherit;
}

.step.current p {
    font-weight:bold;
}

.step-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: .5em;
}



div#Category-CurrentState.done .step-image, div#Category-CurrentState.current .step-image{
   background-image:url('../assets/img/CurrentMattress-Section-Icon-current.svg')!important;
}

div#Category-Preferences.done .step-image, div#Category-Preferences.current .step-image{
    background-image:url('../assets/img/Preference-Section-Icon-current.svg')!important;
}

div#Category-Profile.done .step-image, div#Category-Profile.current .step-image{
    background-image:url('../assets/img/Profile-Section-Icon-current.svg')!important;
}

div#Category-Match.done .step-image, div#Category-Match.current .step-image{
    background-image:url('../assets/img/Match-Section-Icon-current.svg')!important;
}


/*======== TIMER ============*/


span.reaction-timer {
    display: block;
    height: .25em;
    width: 100%;
    margin-left: 0%;
    background: transparent;
    text-align: left;
    position: relative;
}

.reaction span.reaction-timer:before{transition: width 8000ms 0ms steps(8, end);width:100%;}

span.reaction-timer:before{
    content:'';
    display:inline-block;
    height:100%;
    width: 0%;
    background-color: #006481;
    position: absolute;
    top: 0;
    left: 0;
    
}

.reaction-container {
    overflow: hidden;
    padding: 0;
}

.reaction_text {
    padding: 0.5rem 1rem;
}


/*======== Make Smaller ======= */

.question .question_text {
    flex-direction: row;
    min-height: auto;
    padding: 1em 2em;
    text-align: left;
    /* align-items: flex-start; */
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    flex: 1 0 auto;
}

button.why_ask-toggle {
    color: inherit;
    margin: 0;
    /* padding-left: 0; */
    width: 3rem;
    text-align: inherit;
    height: 3rem;
    position: relative;
}

.question_text h2 {
    font-size: 1.125rem;
    text-align: inherit;
    padding: 0 1rem 0 0;
    margin: 0;
    width: 100%;
    /* line-height: 1.5; */
}

div#Mattress_Selector-Progress img {
    height: 1.7em;
}

.step p {
}

div#Category-Profile {
    /* font-size: 1rem; */
}

.step {
    font-size: 0.875em;
    line-height: 1.25;
    padding: 1em .5em .5em;
}

div#Mattress_Selector-Progress {
    margin-bottom: 1rem;
}

.title h1 {
    margin-bottom: .5em;
}

.options-container {
    width: 100%;
}

.question_text-container {
    height: auto !important;
}

span.why_ask-toggle_icon:after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

span.why_ask-toggle_icon {background: #034355;border-radius: 50%;color: #fff;width: 100%;height: 100%;display: block;}