.mgf-original-product-detail-page .mgf-original-product-detail {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  color: #333;
  background: #fff;
  font-family: Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
}

.mgf-original-product-detail-page .mgf-original-product-detail *,
.mgf-original-product-detail-page .mgf-original-product-detail *::before,
.mgf-original-product-detail-page .mgf-original-product-detail *::after {
  box-sizing: border-box;
}

.mgf-original-product-detail-page .mgf-original-product-detail a {
  color: inherit;
}

.mgf-reference-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.mgf-reference-breadcrumb {
  display: block !important;
  width: 100% !important;
  height: 31px !important;
  min-height: 31px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #7b858f;
  background: #fff;
  font-size: 12px;
  line-height: 18px;
}

.mgf-reference-breadcrumb .mgf-reference-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  height: 31px;
  padding: 2px 10px;
  white-space: nowrap;
  overflow: hidden;
}

.mgf-reference-breadcrumb a {
  color: #6c7680;
  text-decoration: none;
}

.mgf-reference-breadcrumb span {
  color: #b6bdc4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgf-reference-hero {
  width: 100%;
  min-height: 546px;
  padding: 48px 0;
  background: #f2f4f5;
}

.mgf-reference-hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 450px;
}

.mgf-reference-hero__media,
.mgf-reference-hero__copy {
  min-width: 0;
  padding: 10px;
}

.mgf-reference-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.mgf-reference-hero__image {
  display: block;
  width: 100%;
  max-width: 610px;
  max-height: 610px;
  object-fit: contain;
}

.mgf-reference-hero__media .mgf-original-product-detail__source-note {
  min-height: 360px;
}

.mgf-reference-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.mgf-reference-hero__copy h1 {
  margin: 0 0 20px;
  color: #0d1525;
  font-family: Montserrat, Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.mgf-reference-hero__copy h3 {
  margin: 0 0 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.mgf-reference-hero__lead {
  max-width: 620px;
  margin: 0 0 20px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.mgf-reference-hero__features {
  display: grid;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.mgf-reference-hero__features li {
  padding: 8px 0;
  border-top: 1px solid #dfe4e7;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.mgf-reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.mgf-reference-actions .mgf-original-product-detail__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 20px;
  border: 1px solid #d45734;
  color: #fff !important;
  background: #d45734;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.mgf-reference-actions .mgf-original-product-detail__button + .mgf-original-product-detail__button {
  color: #d45734 !important;
  background: transparent;
}

.mgf-reference-actions .mgf-original-product-detail__button[href*="/resources/guides/screen-materials/"] {
  color: #0d1525 !important;
  background: #c89b45;
  border-color: #c89b45;
}

.mgf-reference-section {
  width: 100%;
  padding: 0;
  background: #fff;
}

.mgf-reference-section--gray {
  background: #f7f7f7;
}

.mgf-reference-section__heading {
  padding: 48px 10px 16px;
}

.mgf-reference-section__heading h2,
.mgf-reference-final-cta h2 {
  margin: 0;
  color: #0d1525;
  font-family: Montserrat, Inter, Helvetica Neue, Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.mgf-reference-section__heading h2 {
  font-size: 26px;
  text-align: center;
}

.mgf-reference-final-cta h2 {
  font-size: 30px;
}

.mgf-reference-section__heading p {
  max-width: 760px;
  margin: 14px auto 0;
  text-align: center;
  color: #5f6872;
  font-size: 15px;
  line-height: 1.6;
}

.mgf-reference-applications {
  padding: 0 0 64px;
}

.mgf-reference-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mgf-reference-application-card {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #e1e5e8;
  background: #fff;
  text-decoration: none;
}

.mgf-reference-application-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.mgf-reference-application-card > h3 {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 0;
  padding: 0 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  justify-content: center;
  text-align: center;
}

.mgf-reference-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 10px 64px;
}

.mgf-reference-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 0 10px 64px;
}

.mgf-reference-feature-layout .mgf-reference-feature-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 0;
}

.mgf-reference-feature-layout .mgf-reference-feature {
  position: relative;
  min-height: 0;
  padding: 14px 16px 14px 56px;
  border: 0;
  background: transparent;
}

.mgf-reference-feature-layout .mgf-reference-feature::before {
  position: absolute;
  top: 18px;
  left: 16px;
  color: #c89b45;
  content: '☰';
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.mgf-reference-feature-layout .mgf-reference-feature:nth-child(2)::before {
  content: '◀';
}

.mgf-reference-feature-layout .mgf-reference-feature:nth-child(3)::before {
  content: '☷';
}

.mgf-reference-feature-layout .mgf-reference-feature h3 {
  margin: 0 0 8px;
  text-align: left;
}

.mgf-reference-feature-layout .mgf-reference-feature p {
  margin: 0;
  color: #888;
  line-height: 1.6;
}

.mgf-reference-feature-video {
  min-height: 100%;
  background: #fff;
}

.mgf-reference-feature-video iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
}

.mgf-reference-feature {
  min-height: 190px;
  padding: 28px 30px;
  border: 1px solid #e1e5e8;
  background: #fff;
}

.mgf-reference-feature h3,
.mgf-reference-two-column h3,
.mgf-reference-detail-card h3,
.mgf-reference-related-card h3 {
  margin: 0 0 10px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.mgf-reference-feature p,
.mgf-reference-two-column p,
.mgf-reference-two-column li,
.mgf-reference-download-item span,
.mgf-reference-faq-list p,
.mgf-reference-final-cta p {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.mgf-reference-table-wrap {
  padding: 0 10px 64px;
  overflow-x: auto;
}

.mgf-reference-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-top: 1px solid #0d1525;
  border-collapse: collapse;
}

.mgf-reference-table-wrap th,
.mgf-reference-table-wrap td {
  padding: 14px 18px;
  border-bottom: 1px solid #dfe4e7;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.mgf-reference-table-wrap th {
  width: 32%;
  color: #333;
  font-weight: 600;
  background: #f7f7f7;
}

.mgf-reference-details {
  background: #f7f7f7;
}

.mgf-reference-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 240px));
  gap: 16px;
  justify-content: start;
  padding: 0 10px 64px;
}

.mgf-reference-details .mgf-reference-detail-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  justify-content: flex-start;
  overflow-x: auto;
  padding-right: 10px;
  padding-bottom: 64px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.mgf-reference-details .mgf-reference-detail-card {
  flex: 0 0 calc((100% - 64px) / 5);
  scroll-snap-align: start;
}

.mgf-reference-details .mgf-reference-detail-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
}

.mgf-reference-detail-card {
  min-width: 0;
}

.mgf-reference-detail-image {
  display: block;
  width: 240px;
  height: 260px;
  object-fit: contain;
  background: #fff;
}

.mgf-reference-detail-card h3 {
  min-height: 20px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 20px;
}

.mgf-reference-materials .mgf-reference-detail-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mgf-reference-materials .mgf-reference-detail-image {
  width: 100%;
  height: 220px;
}

.mgf-material-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 0 10px 24px;
}

.mgf-material-selector-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border: 1px solid #e1e5e8;
  color: #333;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.mgf-material-selector-card.is-selected {
  border: 2px solid #e5ad2f;
}

.mgf-material-selector-image {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f7f7f7;
}

.mgf-material-selector-card__name,
.mgf-material-selector-card__detail,
.mgf-material-selector-card__link {
  display: block;
  padding: 0 16px;
}

.mgf-material-selector-card__name {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.mgf-material-selector-card__detail {
  min-height: 44px;
  margin-top: 8px;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.mgf-material-selector-card__link {
  margin: 12px 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.mgf-material-selector-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 10px 64px;
  padding: 20px;
  border: 1px solid #e1e5e8;
  background: #fff;
}

.mgf-material-selector-summary strong {
  display: block;
  min-width: 0;
  font-size: 16px;
  line-height: 1.45;
}

.mgf-material-selector-summary .mgf-original-product-detail__button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 232px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #e5ad2f;
  color: #111 !important;
  background: #e5ad2f;
  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 20px !important;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.mgf-reference-video {
  padding: 0 10px 64px;
  text-align: center;
}

.mgf-reference-video video {
  display: block;
  width: min(960px, 100%);
  max-height: 560px;
  margin: 0 auto;
  background: #111;
}

.mgf-reference-source-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: 0 10px 64px;
  padding: 20px 24px;
  border: 1px dashed #b6bec5;
  color: #666;
  background: #fff;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.mgf-reference-accessories[hidden] {
  display: none !important;
}

.mgf-reference-installation {
  background: #f7f7f7;
}

.mgf-reference-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 10px 64px;
}

.mgf-reference-two-column > div {
  min-height: 150px;
  padding: 0 0 0 0;
}

.mgf-reference-two-column ul {
  margin: 0;
  padding-left: 20px;
}

.mgf-reference-downloads {
  background: #fff;
}

.mgf-reference-download-list {
  display: grid;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.mgf-reference-download-item {
  display: grid;
  grid-template-columns: 220px minmax(360px, 1fr) 180px;
  align-items: center;
  gap: 32px;
  min-height: 78px;
  padding: 14px 0;
  border-bottom: 1px solid #dfe4e7;
}

.mgf-reference-download-item strong {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}

.mgf-reference-download-item .mgf-original-product-detail__button {
  justify-self: end;
  width: 180px;
  text-align: center;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 18px;
}

.mgf-reference-faq-list {
  padding: 0 10px 64px;
  border-top: 1px solid #dfe4e7;
}

.mgf-reference-faq-list details {
  padding: 18px 0;
  border-bottom: 1px solid #dfe4e7;
}

.mgf-reference-faq-list summary {
  cursor: pointer;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.mgf-reference-faq-list p {
  max-width: 760px;
  margin-top: 12px;
}

.mgf-reference-related {
  background: #f7f7f7;
}

.mgf-reference-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 0 10px 64px;
}

.mgf-reference-related-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.mgf-reference-related-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: #7b858d;
  background: #fff;
  font-size: 13px;
  text-align: center;
}

.mgf-reference-related-card > img.mgf-reference-related-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.mgf-reference-related-card h3 {
  margin: 0;
}

.mgf-reference-related-card > span:last-child {
  color: #d45734;
  font-size: 14px;
  font-weight: 600;
}

.mgf-reference-final-cta {
  min-height: 320px;
  padding: 64px 0;
  color: #fff;
  background: #0d1525;
}

.mgf-reference-final-cta .mgf-reference-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mgf-reference-final-cta h2 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
}

.mgf-reference-final-cta p {
  max-width: 680px;
  margin: 16px auto 0;
  color: #d8dde0;
}

.mgf-reference-final-cta .mgf-reference-actions {
  justify-content: center;
  margin-top: 32px;
}

.mgf-reference-final-cta .mgf-original-product-detail__button + .mgf-original-product-detail__button {
  color: #fff !important;
  border-color: #fff;
}

body.page-id-8084 .mgf-original-product-detail,
body.page-id-8103 .mgf-original-product-detail {
  width: calc(100% + 48px);
  margin-left: -24px !important;
  margin-right: 0 !important;
}

@media (max-width: 767px) {
  .mgf-reference-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mgf-reference-breadcrumb .mgf-reference-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mgf-reference-hero {
    min-height: 0;
    padding: 32px 0;
  }

  .mgf-reference-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .mgf-reference-hero__media {
    min-height: 260px;
    padding: 0 16px;
  }

  .mgf-reference-hero__media .mgf-original-product-detail__source-note {
    min-height: 240px;
  }

  .mgf-reference-hero__copy {
    padding: 30px 16px 0;
  }

  .mgf-reference-hero__copy h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .mgf-reference-hero__lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .mgf-reference-actions {
    margin-top: 20px;
  }

  .mgf-reference-section__heading {
    padding: 36px 16px 12px;
  }

  .mgf-reference-section__heading h2 {
    font-size: 22px;
    line-height: 1.25;
  }

  .mgf-reference-final-cta h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .mgf-reference-applications {
    padding-bottom: 48px;
  }

  .mgf-reference-application-grid,
  .mgf-reference-feature-grid,
  .mgf-reference-feature-layout,
  .mgf-reference-detail-grid,
  .mgf-reference-two-column,
  .mgf-reference-related-grid {
    grid-template-columns: 1fr;
    padding-right: 16px;
    padding-left: 16px;
  }

  .mgf-reference-details .mgf-reference-detail-grid {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 48px;
  }

  .mgf-reference-details .mgf-reference-detail-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .mgf-reference-application-card {
    grid-template-rows: auto auto;
  }

  .mgf-reference-application-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .mgf-reference-application-card > h3 {
    min-height: 56px;
    margin: 0;
    padding: 0 16px;
    font-size: 17px;
    line-height: 21px;
  }

  .mgf-reference-feature-grid,
  .mgf-reference-table-wrap,
  .mgf-reference-faq-list {
    padding-bottom: 48px;
  }

  .mgf-reference-feature {
    min-height: 0;
    padding: 22px;
  }

  .mgf-reference-feature-layout {
    display: grid;
    gap: 20px;
    padding-bottom: 48px;
  }

  .mgf-reference-feature-video iframe {
    min-height: 240px;
    height: 240px;
  }

  .mgf-reference-feature-layout .mgf-reference-feature {
    padding-left: 48px;
  }

  .mgf-reference-table-wrap {
    padding-right: 16px;
    padding-left: 16px;
    overflow-x: auto;
  }

  .mgf-reference-source-panel {
    min-height: 160px;
    margin-right: 16px;
    margin-bottom: 48px;
    margin-left: 16px;
  }

  .mgf-reference-detail-grid,
  .mgf-reference-two-column,
  .mgf-reference-related-grid {
    padding-bottom: 48px;
  }

  .mgf-reference-materials .mgf-reference-detail-grid {
    grid-template-columns: 1fr;
  }

  .mgf-material-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mgf-material-selector-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .mgf-material-selector-summary .mgf-original-product-detail__button {
    width: 100%;
    white-space: normal;
  }

  .mgf-reference-detail-image,
  .mgf-reference-related-image {
    width: 100%;
    height: auto;
    min-height: 190px;
  }

  .mgf-reference-download-list {
    padding: 0 16px 48px;
  }

  .mgf-reference-download-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 14px 0;
  }

  .mgf-reference-download-item .mgf-original-product-detail__button {
    justify-self: start;
    width: auto;
  }

  .mgf-reference-final-cta {
    min-height: 0;
    padding: 48px 0;
  }

  .mgf-reference-final-cta .mgf-reference-actions {
    margin-top: 32px;
  }
}
