/* Layout Styles
======================================= */
.hn-main-container {
  max-width: 100%;
  margin-bottom: 0;
  padding: 0 12px 40px;
}

.tempur-container {
  margin: 32px auto;
  max-width: 1160px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tempur-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.tempur-logo {
  width: 220px;
}

.tempur-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tempur-info > div {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  gap: 0;
}

.tempur-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.tempur-card-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f3f4f5;
  height: 100%;
  flex: 1 1 auto;
}

.tempur-compare {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

.tempur-compare {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tempur-compare summary {
  cursor: pointer;
}

.tempur-compare-content {
  display: flex;
  flex-direction: column;
}

.tempur-compare-columns {
  display: flex;
  padding: 16px 0;
}

.tempur-compare-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 8px;
  align-items: center;
  text-align: center;
}

.tempur-highlight {
  color: #008199;
}

.tempur-compare-column ul {
    margin-bottom: 16px;
}

.tempur-compare-column ul li {
    margin-bottom: 16px;
}

.tempur-compare-header-image {
  width: 100%;
}

/* Spec Grid */
.tempur-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 32px;
  flex-wrap: wrap;

}

.tempur-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 140px;
}

.tempur-spec-icon {
  width: 40px;
}

.tempur-compare-expand {
  display: inline-block;
  margin: 0 auto;
  text-decoration: underline;
  font-weight: bold;
  padding: 0.25em 0.5em;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 8px;
}


.tempur-compare-expand.show img {
  transform: rotate(180deg);
}

.tempur-compare-specs {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.tempur-ottoman,
.tempur-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tempur-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.tempur-price-match {
  display: flex;
  flex-direction: column;
  background-color: #f3f4f5;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px;
}

.tempur-shop {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tempur-shop-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.tempur-shop-card h3 {
  color: white;
}

.tempur-shop img {
  width: 100%;
}

.tempur-shop-card-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: end;
  justify-content: center;
  padding-bottom: 16px;
  transition: all .2s ease-in-out;
}

.tempur-nasa {
  background: #09081a;
  position: relative;
}

.tempur-nasa-image {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}

.tempur-nasa-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 32px;
  padding-top: 100px;
  color: white;
  position: relative;
  z-index: 1;
}

.tempur-nasa-content h2 {
  color: white;
  text-shadow: -2px 8px 16px rgba(0,0,0,.8);
}

.tempur-nasa-content img {
  width: 200px;
}

.tempur-shop-button {
  font-size: 1.143em;
  line-height: 1em;
  font-weight: 600;
  width: max-content;
  padding: 1em 2em;
  border-radius: 4px;
  color: #fff;
  background: #323333;
  display: inline-block;
  transition: background-color .2s ease-in-out;
}

.tempur-shop-button:hover {
  background: #53565A;
}

.hn-border-end {
    border-right: 1px solid #dee2e6;
}

/* Font Styles
======================================= */
span,
p,
li,
strong {
  font-size: 1rem;
  line-height: 1.4;
}

h1, h2, h3 {
  line-height: 1.2;
}

h3.tempur-title {
  font-size: 18px;
  line-height: 1.5;
}

h4.tempur-title {
  font-size: 14px;
  line-height: 1.2;
}

@media screen and (min-width: 768px) {
  h3.tempur-title {
    font-size: 28px;
  }

  h4.tempur-title {
    font-size: 18px;
  }
}

/* Media Queries
======================================= */
@media screen and (min-width: 768px) {
  .tempur-info {
    flex-direction: row;
  }

  .tempur-ottoman {
    flex-direction: row-reverse;
  }

  .tempur-form {
    flex-direction: row;
  }

  .tempur-ottoman > *,
  .tempur-form > * {
    width: 50%;
  }

  .tempur-shop {
    flex-direction: row;
  }

  .tempur-shop-card {
    width: 50%;
  }

.tempur-compare-column {
  padding: 0 16px;
}
}
