:root{
	--background-compare-color: #F7F5F2;
	--primary-text: #4A5935;
	--text-color-secondary: #21261B;
	--text-color-heavy: #3A4033;
	--btn-clr: #4A5935;

	--font-family-heading: "Reckless Neue", Sans-serif;
	--font-family-para: "CentraNo 2", Sans-serif;
  --font-family-para-med: "CentraNo 2", Sans-serif;

}

.siteContent p {
	margin: 0;
}

p {
	margin-bottom: 0 !important;
}

.review.hide {
	display: none;
}

#content {
	overflow: visible;
}
.btn-block .btn > .hybrid__desc-event {
	pointer-events: none;
}

.img-box figure img.img-ratio {
	display:block;
	width: 100%;
	aspect-ratio : 4 / 3;
	border-radius: 4px;
}
@media (min-width: 1240px) {
  .compare.head {
    padding-left: 80px;
	padding-right: 80px;
	padding-top: 40px;
	padding-bottom: 40px
  }
}

@media (min-width: 1536px) {
  .compare.head {
    padding: 0;
    margin: 0 auto;
    max-width: 1456px;
	  	padding-top: 40px;
	padding-bottom: 40px
  }
}

.section-bg{
	background-color: var(--background-compare-color) ;
}
.compare {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 32px;
}
.gap > *:not(:last-child) {
	margin-bottom: 16px;
}
.compare__heading h2 {
	font-family : var(--font-family-heading);
	font-size: 28px;
	line-height: 32px;
	font-weight: 500;
	color: var(--primary-text);
	text-transform: capitalize;
}
.compare__heading p {
	color: var(--text-color-heavy);
}
.drop-down p {
	color: var(--text-color-secondary);
	font-family: var(--font-family-para);
	font-size: 14px;
	font-weight: 600;
	line-height: 160%;
}
.compare__heading p:last-child {
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
  font-family: var(--font-family-para);
}
.compare__heading p strong {
	font-family: var(--font-family-para);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
	color: var(--text-color-secondary);
}
.drop-down {
	display: flex;
	flex-direction: column;
	gap: 12px;
	position: relative;
}
.drop-down-select {
	display: flex;
	height: 49px;
}
.compare.sticky {
	padding: 0;
}
.product-selector select,
.product-selector .nice-select-dropdown .disabled,
.product-selector select:nth-of-type(3) + div {
	display: none;
}
@media (min-width: 1025px) {
	.product-selector {
		display: none;
	}
}
@media (max-width: 767px) {
	.compare.head {
		padding: 24px 16px 0px;
	}
	.compare {
		padding-left: 16px;
		padding-right: 16px;
	}
	.compare {
		display: block;
	}
	.compare__heading {
		grid-column: 1 / span 3;
	}
	.compare__content {
		grid-column: 1 / span 3;
	}
	.compare__heading h2 {
		text-align: center;
	}
	.compare__heading p:last-child {
		font-size: 14px;
		line-height: 20px;
		text-align: center;
	}
	.compare__heading p strong {
		font-size: 14px;
		line-height: 22px;
	}
	section.sticky {
		position: sticky;
		top: 0;
		z-index: 9;
		padding: 12px 0;
	}
	.product-selector {
		grid-column: 1 / span 3;
		display: flex;
		align-items: center;
		gap: 16px;
	}
	.product-selector .nice-select {
		background: #fff;
		min-height: 48px;
		display: flex;
		padding: 3px 38px 3px 12px;
	}
	.product-selector .nice-select .option,
	.product-selector .nice-select .current {
		font-size: 14px;
		font-weight: 600;
		line-height: 20px;
	}
}

/* Compare Content Foam */
.compare__content_desktop {
	display: grid;
}
.compare__content_desktop,
.compare__content_mobile {
	grid-template-columns: 1fr 1fr 1fr;
	gap: 32px;
}
.compare__content_mobile {
	display: none;
	padding-bottom: 24px
}
.img-box {
	overflow: hidden;
	position: relative;
}
.img-box figure {
	position: relative;
}

.foam-diemnsion {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #fff;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    border-radius: 4px;
	box-shadow: 0px 2px 12px rgba(0,0,0,.06);
}
p.diemension-p {
	color : var(--primary-text);
	font-size: 10px;
	font-weight: 600;
	line-height: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 !important;
  font-family: var(--font-family-para);

}
.diemension div {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
}
.diemension div span {
	color: var(--primary-text);
	font-size: 18px;
	font-weight: 600;
	line-height: 140%;
  font-family: var(--font-family-para);

}
.profile.diemension div {
	justify-content: flex-start;
}
.profile p {
	text-align: center;
}
.product-title-main {
	display:block;
	font-family : var(--font-family-heading);
	font-size: 20px;
	line-height: 140%;
	color: var(--primary-text);
	font-weight: 400;
	text-transform: capitalize;
}
.product-title-main:hover{
	color:var(--primary-text)
}
.review {
	margin-bottom: 6px !important;
}
.review-block {
	position: relative;
}
.review-box {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding-bottom: 4px;
	cursor: pointer;
		position:relative;
}
.review-block .review-box > p {
color: var(--primary-text);
	font-family: var(--font-family-compare);
    font-size: 12px;
    font-weight: 400;
    line-height: 140%;
    margin: 0;
}
.review-tooltip {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    z-index: 1;
    background: #fff;
    padding: 16px;
    border: 1px solid #d8dbe5;
    border-radius: 8px;
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.06);
}

.review-rating {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}
.rating-num span:first-child {
	color: var(--dark-blue-text);
	margin: 0px;
	font-family: var(--font-family-compare);
	font-weight: 600;
	font-size: 48px;
	line-height: 48px;
}
.rating-num span:nth-child(2) {
	color: var(--dark-blue-text);
	font-family: var(--font-family-compare);
	font-weight: 400;
	font-size: 16px;
	line-height: 140%;
}
.rating-star p {
	font-family: var(--font-family-compare);
	color: var(--dark-blue-text);
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
}
.rating-num span sub {
	font-family: var(--font-family-compare);
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	margin-left: 8px;
}
.percent-data {
	display: grid;
	grid-template-columns: 42px 1fr 32px;
	gap: 16px;
	align-items: center;
}
.percent-data .percent-data-p {
	font-family: var(--font-family-compare);
	color: var(--dark-blue-text);
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
}
.percent-bar {
	position: relative;
	background: #d8dbe5;
	height: 8px;
	border-radius: 4px;
}
.percent-bar-blue {
	height: 8px;
	background: var(--primary-blue-text);
	position: absolute;
	left: 0;
	top: 0;
	z-index: 10;
	border-radius: 4px;
	width : 50%
}
.rating-percent {
	display: grid;
	gap: 4px;
	border-bottom: 1px solid rgb(238, 234, 226);
	padding-bottom: 16px;
	margin-bottom: 16px;
}
.review-all {
	display: block;
	font-weight: 400;
	font-family: var(--font-family-compare);
	font-size: 14px;
	line-height: 20px;
	color: #586280;
	text-align: center;
	text-decoration: underline;
	cursor: pointer;
}
.close-btn {
	display: flex;
	justify-content: end;
	padding-bottom: 2px;
}
.btn-block .btn,
.shop-block .btn {
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	font-family: var(--font-family-compare);
	cursor: pointer;
	text-decoration: none;
	text-transform: capitalize;
}

a {
	text-decoration: none;
}
.btn-block .btn:hover{
	color: #133ebf;
	text-decoration: underline;
}
.btn:hover,
a:hover {
	text-decoration: underline;
}
.btn-block .btn.active {
	color: #133ebf;
	border: 1px solid #133ebf;
	background: #e8eeff;
}
.btn-block .btn span {
	font-size: 12px;
	font-weight: 400;
	line-height: 16px;
}
.btn-block {
	display: flex;
	flex-direction: row;
	flex-direction : row-reverse;
}
.des {
	font-size: 14px;
	font-weight: 400;
	line-height: 140%;
	color: var(--text-color-secondary);
	margin-bottom: 16px !important;
  font-family: var(--font-family-para);
}
.shop-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.btn.shop {
	width: 141px;
	display: inline-block;
    padding: 17px 32px;
    background: var(--btn-clr);
    border: 0;
    border-radius: 4px;
    color: #fff;
    margin: 0;
    height: 56px;
    font-family: var(--font-family-para-med);
}
.price {
	color: var(--primary-text);
	font-family: var(--font-family-para);
	font-size: 18px;
	font-weight: 600;
	line-height: 140%;
}

@media (max-width: 767px) {
	.compare__content_desktop {
		display: none;
	}
	.compare__content_mobile {
		display: grid;
	}
	.compare__content_desktop,
	.compare__content_mobile {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
	.product-title-main {
		font-size: 16px;
		line-height: 140%;
	}
	.review-box {
		padding-bottom: 8px;
	}
	.foam:nth-child(3) {
		display: none;
	}
	.img-box img {
		display: block;
		width: 100%;
	}
	.review-box img {
		width: 55px;
	}
	.foam-diemnsion,
	.btn-block {
		display: none;
	}
	.des {
		font-size: 12px;
		padding-right: 10px;
	}
	.shop-block {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.btn.shop {
		width: 100%;
	}

	.price {
	font-size: 16px;
}
}

/* Tooltip Positioning on mobile/desktop */
@media(max-width:1024px) {
	.review-tooltip{
    width: 330px;
}
	.foam:nth-child(1) .review-tooltip{
    left: 106%;
	}

	.foam:nth-child(2) .review-tooltip{
    left: -5%;
	}
}

@media(min-width:1025px){
	.review-tooltip {
    left: 50%;
    width: 396px;
}

}

/* Mobile-table */

.mattress__compare-table {
	margin: 0 auto;
}

.mattress__compare-table img {
	display: block;
	max-width: 100%;
}

.t__row-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 16px;
	margin-bottom: 32px;
}

.t__row-data {
	display: flex;
	align-items: center;
	flex-direction: column;
/* 	justify-content: center; */
	gap: 8px;
}

.row__title-main {
	color: var(--primary-text);
	font-family: var(--font-family-heading);
	font-size: 18px;
	line-height: 140%;
}
.row__title-desc {
	color: var(--text-gray);
	font-family: var(--font-family-para);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

.t__row-head-type {
	text-align: center;
}

.mattress__type-desc {
	color: var(--text-gray);
	font-family: var(--font-family-para);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
}

.type-title {
	color: var(--primary-text);
	font-family: var(--font-family-para-med);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
}

.num-value {
	color: var(--primary-text);
	font-family: var(--font-family-heading);
	font-size: 24px;
	line-height: 140%;
  font-weight: 400;
}

.text-value {
	color: var(--primary-text);
	font-family: var(--font-family-para);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	text-align: center;
}

/* Sticky CTA Mobile */

.sticky-wd{
	width: 100%;
	background: var(--background-compare-color);
	padding: 12px 24px;
	box-shadow: 0px -1px 4px 0px rgba(0, 0, 0, 0.24);
	position: fixed;
	left: 0;
	z-index: 10;
	visibility: hidden;
	transform: translateY(1000px);
	transition: 0.3s;
}
.sticky-cta{
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap:16px ;
}

.sticky-wd.active {
	visibility: visible;
	transform: translateY(0);
}

.mattress__price {
	color:var(--primary-text);
	font-family: var(--font-family-compare);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
}

.btn__CTA {
	text-align: center;
	display: inline-block;
	color: #fff;
	font-family: var(--font-family-compare);
	font-size: 16px;
	font-weight: 600;
	line-height: 22px;
	padding: 13px 0;
	background-color: var(--btn-clr);
	text-decoration : none;
	border-radius: 4px;
}

.btn__CTA:hover{
	color:#fff !important;
}


@media (max-width: 1024px) {

	.mattress__compare-table {
	padding: 24px 16px 8px;
}
	.desktop-only {
		display: none;
	}

	.type-icon img {
		margin: 0 auto 8px auto;
	}
	.t__row-head {
		grid-column: 1 / span 2;
		display: flex;
		gap: 8px;
		align-items: center;
		flex-direction: column;
		margin-bottom: 12px;
		border-bottom: 1px solid #eeeae2;
		padding-bottom: 12px;
	}
	.row__title-desc {
		text-align: center;
	}
	.mattress__price{
		margin-bottom: 16px !important;
	}

	.btn__CTA {
		width: 100%;
	}

	.prod-cta{
		display: block;
	}
	.sticky-wd {
		bottom: 0;
	}
}

/* Desktop compare table */

@media (min-width: 1025px) {
	.mattress__compare-table {
		padding-left: 80px;
		padding-right: 80px;
		margin: 0 auto;
		padding-top:40px;
	}

	.t__row-container {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 32px;
		margin-bottom: 40px;
	}

	.t__row-head {
		display: flex;
		gap: 8px;
		flex-direction: column;
		justify-content: center;
	}

	.row__title-main {
		font-size: 18px;
		line-height: 140%;
	}
	.row__title-desc {
		font-size: 14px;
		font-weight: 400;
		line-height: 22px;
	}

	.t__row-head-type {
		text-align: center;
	}

	.mattress__type {
		display: flex;
		gap: 8px;
		align-items: center;
		justify-content: center;
		margin-bottom: 8px;
	}

	.mattress__type-desc {
		font-size: 16px;
		font-weight: 400;
		line-height: 24px;
	}

	.type-title {
		font-size: 18px;
		font-weight: 500;
		line-height: 24px;
	}

	.t__row-head-type {
		flex-direction: column;
		display: flex;
		justify-content: center;
	}
	.num-value {
		font-size: 24px;
		line-height: 140%;
	}
	.text-value {
		font-size: 16px;
		line-height: 24px;
	}
	.mobile-only {
		display: none;
	}
	/* Sticky CTA Desktop */

	.mattress__price {
		font-size: 18px;
		line-height: 24px;
	}

	.btn__CTA {
		padding : 17px 32px;
	}

	.sticky-wd {
		padding: 16px;
		box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.24);
		top: 0;
		left: 0;
		visibility: hidden;
		transform: translateY(-1000px);
	}

	.sticky-cta{
		grid-template-columns: repeat(4, 1fr);
		gap : 32px;
		max-width: 1456px ;
	    margin: 0 auto;
	}

	.prod-cta{
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.prod-title{
		display: block;
		color:var(--primary-text);
		font-family: var(--font-family-heading);
		font-size: 18px;
		font-weight: 600;
		line-height: 24px;
		margin-bottom: 8px !important;
	}

	.prod-title:hover{
		color: var(--primary-blue-text);
	}


	.size-title {
		color:var(--primary-text);
		font-family: var(--font-family-compare);
		font-size: 16px;
		font-style: normal;
		font-weight: 400;
		line-height: 24px;
	}

	.sticky-cta .size .size-title span {
		color: #262b38;
		font-family: var(--font-family-compare);
		font-size: 16px;
		font-weight: 600;
		line-height: 24px;
	}
}

ul.prod-review-stars {
	list-style: none;
	display: flex;
	align-items: center;
}

ul.prod-review-stars li img {
	display: block;
	width: 11px;
	height: 10px;
}

.rating-star .prod-review-stars {
	justify-content: end;
}

/* Affrim CSS */
.affirm .affirm-as-low-as a.affirm-modal-trigger{
	text-decoration : none !important;
}
.__affirm-logo.__affirm-logo-black.__ligature__affirm_full_logo__:after {
    color: #0fa0ea !important;
}
.affirm-as-low-as{
    color: #646464;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

@media (min-width: 768px) {
	.__affirm-logo.__ligature__affirm_full_logo__ {
		font-size: 24px !important;
		margin-left: 8px;
	}
}


@media (min-width: 1536px) {
 .mattress__compare-table {
    padding: 0;
    margin: 0 auto;
    max-width: 1456px;
	  	padding-top: 40px;

  }
}