.foundation-product-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 22px;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.foundation-mobile-flow .calculator-header {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  font: inherit;
  text-align: left;
}

.foundation-product-badge {
  min-height: 48px;
  padding: 14px 12px;
  border-right: 1px solid #e9ecef;
  color: #4d5968;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.foundation-product-badge:last-child {
  border-right: 0;
}

.foundation-summary {
  margin: 14px 0 18px;
  padding: 16px;
  border: 1px solid #e2e7ed;
  border-radius: 10px;
  background: #f8fafc;
}

.foundation-summary-grid,
.foundation-trust-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.foundation-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #4d5968;
  font-size: 13px;
}

.foundation-summary-item strong {
  color: #081a30;
  text-align: right;
}

.foundation-trust-block {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e2e7ed;
  border-radius: 10px;
  background: #fff;
  color: #3e4b5b;
  font-size: 13px;
}

.foundation-trust-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 9px;
  align-items: start;
}

.foundation-trust-icon {
  display: inline-flex;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #19376d;
  background: #eef3fa;
}

.foundation-trust-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.foundation-trust-item > span:not(.foundation-trust-icon) {
  display: block;
}

.foundation-trust-block strong {
  display: block;
  margin-bottom: 2px;
  color: #081a30;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.foundation-trust-block a,
.foundation-installation-cta a,
.foundation-context-links a {
  color: #19376d;
  font-weight: 700;
}

.foundation-mobile-flow .product-tabs {
  margin-bottom: 0;
}

.foundation-mobile-flow .foundation-installation-cta,
.foundation-mobile-flow .king-installation-cta {
  margin-top: 0;
}

.foundation-installation-cta {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid #19376d;
  border-radius: 0 8px 8px 0;
  background: #f4f7fb;
}

.foundation-installation-cta h3 {
  margin: 0 0 7px;
  color: #081a30;
  font-size: 18px;
}

.foundation-installation-cta p {
  margin: 0 0 12px;
  color: #4d5968;
  line-height: 1.55;
}

.foundation-context-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  font-size: 13px;
}

.foundation-error {
  margin: 10px 0 0;
  color: #9b1c1c;
  font-size: 13px;
  font-weight: 600;
}

.foundation-why-product {
  max-width: 620px;
  margin: 10px 0 14px;
  color: #3e4b5b;
  font-size: 14px;
  line-height: 1.55;
}

.foundation-why-product strong {
  color: #081a30;
}

.foundation-best-for {
  margin: 0 0 14px;
  color: #4d5968;
  font-size: 13px;
  line-height: 1.5;
}

.foundation-best-for strong {
  color: #081a30;
}

.foundation-warranty-inline {
  margin: 12px 0 5px;
  color: #19376d;
  font-size: 13px;
  font-weight: 700;
}

.foundation-availability {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 0 14px;
  color: #3e4b5b;
  font-size: 13px;
}

.foundation-availability strong {
  color: #1a7a3c;
  letter-spacing: .03em;
}

.foundation-sample-note {
  margin: 8px 0 0;
  color: #4d5968;
  font-size: 12px;
  line-height: 1.5;
}

.foundation-sample-note strong {
  color: #b42318;
  font-size: 13px;
}

.foundation-top-financing {
  padding: 42px 0;
  border-bottom: 1px solid #e2e7ed;
  background: #f8f8f8;
}

.foundation-top-financing .foundation-financing {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 18px 34px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.foundation-top-financing .foundation-financing-banner {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 700px;
  margin: 0;
}

.foundation-post-product {
  padding: 58px 0 72px;
  background: #f8f8f8;
}

.foundation-post-product .foundation-conversion-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.foundation-conversion-stack {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.foundation-financing,
.foundation-customer-review,
.foundation-pro-pricing,
.foundation-buyer-guidance {
  border: 1px solid #e2e7ed;
  border-radius: 8px;
  background: #fff;
}

.foundation-financing {
  padding: 18px;
  background: #fff;
}

.foundation-financing-copy h3,
.foundation-customer-review h3,
.foundation-pro-pricing h3,
.foundation-faq h3 {
  margin: 0 0 8px;
  color: #081a30;
  font-size: 18px;
  line-height: 1.25;
}

.foundation-financing-copy p:not(.foundation-eyebrow),
.foundation-customer-review blockquote,
.foundation-pro-pricing p,
.foundation-faq p,
.foundation-returns p {
  color: #4d5968;
  line-height: 1.55;
}

.foundation-financing-copy p:not(.foundation-eyebrow),
.foundation-pro-pricing p {
  margin: 0 0 14px;
}

.foundation-eyebrow {
  margin: 0 0 7px;
  color: #19376d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.foundation-financing-banner {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 14px auto;
}

.foundation-financing-banner img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  object-fit: contain;
}

.foundation-secondary-cta,
.foundation-all-colors-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #081a30;
  border-radius: 25px;
  color: #fff;
  background: #081a30;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
}

.foundation-secondary-cta:hover,
.foundation-secondary-cta:focus-visible,
.foundation-all-colors-link:hover,
.foundation-all-colors-link:focus-visible {
  background: #19376d;
  color: #fff;
}

.foundation-customer-review,
.foundation-pro-pricing {
  padding: 18px;
}

.foundation-customer-review {
  padding: 28px;
  border: 0 !important;
  border-radius: 12px;
  background: #081a30 !important;
  color: #fff !important;
  box-shadow: none;
}

.foundation-customer-review h3 {
  color: #fff !important;
  font-size: 24px;
  font-weight: 400;
}

.foundation-customer-review .foundation-eyebrow {
  color: #c9a84c;
}

.foundation-review-stars {
  color: #f4b942;
  font-size: 21px;
  letter-spacing: 2px;
  line-height: 1;
}

.foundation-customer-review blockquote {
  max-width: 760px;
  margin: 12px 0 8px;
  color: #e8eaf0 !important;
  font-size: 15px;
  font-style: italic;
}

.foundation-review-attribution {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
}

.foundation-review-attribution span {
  color: #b0bec5 !important;
  font-weight: 400;
}

.foundation-customer-review > a {
  display: inline-block;
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}

.foundation-buyer-guidance {
  margin-top: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
}

.foundation-returns {
  margin: 0 auto;
  max-width: 900px;
  padding: 0;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.foundation-returns summary,
.foundation-faq details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  cursor: pointer;
  color: #081a30;
  font-size: 18px;
  font-weight: 500;
}

.foundation-returns summary::-webkit-details-marker,
.foundation-faq details summary::-webkit-details-marker {
  display: none;
}

.foundation-returns summary::marker,
.foundation-faq details summary::marker {
  content: '';
}

.foundation-returns summary::after,
.foundation-faq details summary::after {
  flex: 0 0 auto;
  color: #081a30;
  content: '+';
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s ease;
}

.foundation-returns[open] summary::after,
.foundation-faq details[open] summary::after {
  transform: rotate(45deg);
}

.foundation-returns p {
  margin: 0;
  padding: 0 25px 20px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.foundation-returns a {
  display: inline-block;
  margin: 0 25px 20px;
  color: #081a30;
  font-size: 12px;
  font-weight: 800;
}

.foundation-faq {
  max-width: 900px;
  margin: 52px auto 0;
  padding: 0;
}

.foundation-faq .foundation-eyebrow,
.foundation-faq h3 {
  text-align: center;
}

.foundation-faq h3 {
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: 300;
}

.foundation-faq details {
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: box-shadow .3s ease;
}

.foundation-faq details:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.foundation-returns summary,
.foundation-faq details summary {
  padding: 20px 25px;
}

.foundation-faq details:first-of-type {
  margin-top: 0;
}

.foundation-faq p {
  margin: 0;
  padding: 0 25px 20px;
  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.foundation-faq a {
  color: #19376d;
  font-weight: 700;
}

.foundation-category-link {
  margin: 20px 0 0;
  color: #4d5968;
  font-size: 13px;
  text-align: center;
}

.foundation-all-colors-link {
  margin-top: 18px;
}

.product-swatches .swatch-image .image-room {
  object-position: center center;
}

.product-swatches .swatch-image .image-closeup {
  object-position: center 88%;
}

@media (max-width: 600px) {
  .foundation-summary-grid,
  .foundation-trust-block {
    grid-template-columns: 1fr;
  }

  .foundation-summary-item {
    font-size: 12px;
  }

  .foundation-product-badge {
    font-size: 11px;
  }

  .foundation-product-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foundation-product-badge:nth-child(2) {
    border-right: 0;
  }

  .foundation-product-badge:nth-child(-n + 2) {
    border-bottom: 1px solid #e9ecef;
  }

  .foundation-financing,
  .foundation-customer-review,
  .foundation-pro-pricing,
  .foundation-buyer-guidance {
    padding: 15px;
  }

  .foundation-top-financing {
    padding: 16px 0;
  }

  .foundation-top-financing .foundation-financing {
    display: block;
  }

  .foundation-top-financing .foundation-financing-banner {
    margin: 14px auto;
  }

  .foundation-post-product {
    padding: 22px 0 36px;
  }

  .foundation-post-product .foundation-conversion-stack {
    grid-template-columns: 1fr;
  }

  .foundation-customer-review blockquote {
    font-size: 14px;
  }

  .foundation-customer-review {
    padding: 24px;
  }

  .foundation-faq h3 {
    font-size: 28px;
  }

  .foundation-secondary-cta,
  .foundation-all-colors-link {
    width: 100%;
  }
}

.foundation-order-helper {
  margin: 12px 0 14px;
  color: #4d5968;
  font-size: 14px;
  line-height: 1.5;
}

.foundation-contingency-note {
  display: block;
  margin: 7px 0 0 25px;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
}

.foundation-contingency-note.is-active {
  color: #19376d;
  font-weight: 600;
}

.foundation-mobile-order-summary {
  display: none;
}

.foundation-mobile-order-summary-card {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
  color: #3e4b5b;
  font-size: 13px;
}

.foundation-mobile-order-summary-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.foundation-mobile-order-summary-card strong {
  color: #081a30;
  text-align: right;
}

.foundation-mobile-order-summary-card .foundation-mobile-order-coverage {
  color: #19376d;
}

.foundation-mobile-order-summary-card .foundation-mobile-order-shipping {
  padding-top: 8px;
  border-top: 1px solid #d9e2ec;
}

@media (max-width: 760px) {
  .foundation-mobile-flow .product-layout {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .foundation-mobile-flow .product-left-column,
  .foundation-mobile-flow .product-info,
  .foundation-mobile-flow .product-header {
    display: contents;
  }

  .foundation-mobile-flow .product-header > .product-collection {
    order: 1;
    margin: 0;
  }

  .foundation-mobile-flow .product-header > h1 {
    order: 2;
    margin: 0;
  }

  .foundation-mobile-flow .product-header > h1 + p {
    display: none !important;
  }

  .foundation-mobile-flow .product-header > p:not(.foundation-why-product):not(.foundation-best-for):not(.foundation-order-helper) {
    order: 3;
    margin: 0;
  }

  .foundation-mobile-flow .product-pricing {
    order: 3;
    margin: 0;
    padding: 0.25rem 0 0.75rem;
    gap: 0.35rem;
    border-bottom: 0;
  }

  .foundation-mobile-flow .product-pricing .foundation-sample-note {
    display: none !important;
  }

  .foundation-mobile-flow .product-pricing .product-size-inline {
    display: inline !important;
  }

  .foundation-mobile-flow .product-pricing .price-per-sqft {
    font-size: 20px;
  }

  .foundation-mobile-flow .product-pricing .price-per-box {
    color: #4d5968;
    font-size: 15px;
  }

  .foundation-mobile-flow .product-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    order: 5;
  }

  .foundation-mobile-flow .product-gallery .main-image {
    order: 1;
  }

  .foundation-mobile-flow .product-gallery .mobile-product-ctas {
    order: 2;
  }

  .foundation-mobile-flow .product-gallery .thumbnail-gallery {
    order: 3;
  }

  .foundation-mobile-flow .foundation-product-badges,
  .foundation-mobile-flow .king-product-badges {
    order: 6;
    margin: 0.25rem 0 0.5rem;
  }

  .foundation-mobile-flow .foundation-top-financing {
    order: 7;
    width: 100%;
    margin: 0;
    padding: 12px 0;
  }

  .foundation-mobile-flow .foundation-top-financing .container {
    padding: 0 1rem;
  }

  .foundation-mobile-flow .foundation-top-financing .foundation-financing {
    padding: 12px;
  }

  .foundation-mobile-flow .foundation-top-financing .foundation-financing-copy h3 {
    font-size: 16px;
  }

  .foundation-mobile-flow .foundation-top-financing .foundation-financing-copy p:not(.foundation-eyebrow) {
    font-size: 13px;
  }

  .foundation-mobile-flow .foundation-top-financing .foundation-financing-banner {
    margin: 8px auto;
  }

  .foundation-mobile-flow .foundation-top-financing .foundation-financing-banner img {
    max-height: 72px;
    object-fit: contain;
  }

  .foundation-mobile-flow .calculator-section {
    order: 8;
    margin-top: 0;
  }

  .foundation-mobile-flow .project-details-section {
    display: flex;
    flex-direction: column;
    order: 9;
    margin-top: 0.5rem;
  }

  .foundation-mobile-flow .project-details-section .foundation-order-helper,
  .foundation-mobile-flow .project-details-section .king-order-helper {
    order: 1;
  }

  .foundation-mobile-flow .project-details-section .project-size-section {
    order: 2;
  }

  .foundation-mobile-flow .project-details-section .quantity-section {
    order: 3;
  }

  .foundation-mobile-flow .project-details-section .contingency-section {
    order: 4;
  }

  .foundation-mobile-flow .project-details-section .foundation-mobile-order-summary,
  .foundation-mobile-flow .project-details-section .king-mobile-order-summary {
    display: block;
    order: 5;
  }

  .foundation-mobile-flow .project-details-section .action-buttons {
    order: 6;
    margin-top: 0;
  }

  .foundation-mobile-flow .project-details-section .foundation-summary,
  .foundation-mobile-flow .project-details-section .king-summary {
    order: 7;
  }

  .foundation-mobile-flow .project-details-section .subtotal-section {
    order: 8;
  }

  .foundation-mobile-flow .project-details-section .delivery-section {
    order: 9;
  }

  .foundation-mobile-flow .project-details-section .foundation-error,
  .foundation-mobile-flow .project-details-section .king-error,
  .foundation-mobile-flow .project-details-section #quantity-error {
    order: 10;
  }

  .foundation-mobile-flow .project-details-section .foundation-trust-block,
  .foundation-mobile-flow .project-details-section .king-trust-block {
    order: 11;
  }

  .foundation-mobile-flow .product-tabs {
    display: flex;
    flex-direction: column;
    order: 10;
  }

  .foundation-mobile-flow .foundation-installation-cta,
  .foundation-mobile-flow .king-installation-cta {
    order: 12;
    width: 100%;
  }

  .foundation-mobile-flow .product-tabs .tab-headers,
  .foundation-mobile-flow .product-tabs .tab-content {
    display: contents;
  }

  .foundation-mobile-flow .product-tabs .tab-pane[hidden] {
    display: none !important;
  }

  .foundation-mobile-flow .product-tabs .tab-pane:not([hidden]) {
    display: block;
    max-height: 2000px;
    overflow: visible;
  }

  .foundation-mobile-flow .product-tabs .tab-btn {
    order: 0;
  }

  .foundation-mobile-flow .product-tabs .tab-btn[data-tab="description"] { order: 1; }
  .foundation-mobile-flow .product-tabs #tab-description { order: 2; }
  .foundation-mobile-flow .product-tabs .tab-btn[data-tab="specs"] { order: 3; }
  .foundation-mobile-flow .product-tabs #tab-specs { order: 4; }
  .foundation-mobile-flow .product-tabs .tab-btn[data-tab="warranties"] { order: 5; }
  .foundation-mobile-flow .product-tabs #tab-warranties { order: 6; }
  .foundation-mobile-flow .product-tabs .tab-btn[data-tab="highlights"] { order: 7; }
  .foundation-mobile-flow .product-tabs #tab-highlights { order: 8; }
  .foundation-mobile-flow .product-tabs .tab-btn[data-tab="resources"] { order: 9; }
  .foundation-mobile-flow .product-tabs #tab-resources { order: 10; }

  .foundation-mobile-flow .lifestyle-images,
  .foundation-mobile-flow .color-swatches,
  .foundation-mobile-flow .product-swatches {
    order: 11;
  }

  .foundation-mobile-flow .foundation-why-product,
  .foundation-mobile-flow .foundation-best-for,
  .foundation-mobile-flow .foundation-warranty-inline,
  .foundation-mobile-flow .foundation-availability {
    order: 20;
  }

  .foundation-mobile-flow .mobile-product-cta-sample {
    overflow-wrap: anywhere;
  }
}

@media (min-width: 761px) {
  /*
   * The shared product stylesheet makes the gallery column sticky at z-index 50.
   * Give the Foundation information column its own higher stacking level so
   * the in-description installation CTA cannot disappear behind gallery images.
   */
  .foundation-mobile-flow .product-info {
    position: relative;
    z-index: 60;
  }
}