.section.afh-product-detail-block-container {
  display: flex;
  flex-flow: wrap row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 1rem;
}

.afh-product-detail-block-container .alert-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--light-light-grey);
  text-align: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  max-width: 1440px;
  width: 100%;
  width: 100vw;
  z-index: 1;
}

.afh-product-detail-block-container .alert-container.hide {
  display: none;
}

.afh-product-detail-block-container .alert-container .alert-message {
  display: inline-block;
  font-weight: 400;
  color: #c91245;
  margin: 0;
  word-break: break-word;
}

.afh-product-detail-block-container > div:not(.specs-wrapper) {
  flex-basis: 100%;
  max-width: none;
  margin: 0 0 1rem;
}

.afh-product-detail-block-container > .specs-wrapper {
  position: sticky;
  top: 8rem;
  padding: 2rem 2rem 1rem;
  border: thin solid #ccc;
  border-radius: 0.5rem;
  flex-basis: 33.333%;
  max-height: calc(100vh - 13rem);
  overflow-y: auto;
  margin: 0;
  display: none;
}

.afh-product-detail-block-container .specs-wrapper .product-headline {
   margin: -0.135rem 0 1rem;
}

.afh-product-detail-block-container .specs-wrapper h1 {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
  font-weight: 700;
}

.afh-product-detail-block-container .specs-wrapper .pack-wrapper {
  margin: 1rem 0;
  border: 2px solid var(--black);
  border-radius: .25rem;
}

.afh-product-detail-block-container .specs-wrapper .pack-wrapper > div {
  border-bottom: 2px solid var(--black);
  padding: 0.25rem 0.67rem;
  font-weight: 400;
}

.afh-product-detail-block-container .specs-wrapper .pack-wrapper > div:last-child {
  border-bottom: 0;
}

.afh-product-detail-block-container .specs-wrapper .pack-wrapper .label {
  font-weight: 700;
}

.afh-product-detail-block-container .specs-wrapper a.button {
  display: block;
  text-align: center;
}

.afh-product-detail-block {
  margin: 0 auto;
  font-weight: 400;
}

.afh-product-detail-block .details-container {
  display: flex;
  flex-direction: column;
  max-width: 48rem;
  margin: 0 auto;
}

.afh-product-detail-block .cta-container {
  display: flex;
  gap: 1rem;
  position: relative;
  background-color: var(--white);
  flex-flow: row wrap;
  padding: 1rem 0;
  order: 4;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin-bottom: 1rem;
}

.afh-product-detail-block .details-container > .specs-wrapper {
  order: 3;
  padding: 1rem 0;
}

.afh-product-detail-block .cta-container p {
  margin: 0;
}

.afh-product-detail-block .details-container .features-container,
.afh-product-detail-block .details-container .packaging-container,
.afh-product-detail-block .details-container .packaging-details {
  order: 5;
}

.afh-product-detail-block h2 {
  color: var(--black);
  padding: 1rem 0 0.5rem;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  border-bottom: 2px solid var(--primary-color);
  scroll-margin-top: 10rem;
}

.afh-product-detail-block .packaging-table {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid #ccc;
}

.afh-product-detail-block .packaging-table .spec {
  text-align: right;
  padding-left: 1rem;
}

.afh-product-detail-block .product-img-container .product-img-item {
  position: relative;
  height: auto;
}

.afh-product-detail-block .product-img-container .product-img-item::before {
  content: '';
  display: block;
  padding-top: 75%;
}

.afh-product-detail-block .product-img-container .product-img-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.afh-product-detail-block .product-thumb-container {
  display: flex;
  flex-flow: row wrap;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  gap: .5rem;
  justify-content: center;
  order: 2;
}

.afh-product-detail-block .product-thumb-item {
  border-radius: .25em;
}

.afh-product-detail-block .product-thumb-item.tns-nav-active {
  outline: 2px solid var(--primary-color);
}

.afh-product-detail-block .product-thumb-item .product-thumb {
  height: 4rem;
  margin: .33rem;
  display: block;
  cursor: pointer;
}

.afh-product-detail-block .tns-outer {
  position: relative;
  margin: 0 -1rem;
  order: 1;
}

.afh-product-detail-block .tns-controls button[aria-controls] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  user-select: none;
  background: var(--primary-color);
  font-size: 1rem;
  width: 1rem;
  height: 1rem;
  border: 0.333rem solid var(--primary-color);
  border-radius: 1em;
  margin: -0.67rem 0.5rem;
  box-sizing: content-box;
  color: transparent;
}

.afh-product-detail-block .tns-controls button[disabled] {
  opacity: .33;
}

.afh-product-detail-block .tns-controls button[data-controls="prev"] {
  left: 0;
}

.afh-product-detail-block .tns-controls button[data-controls="next"] {
  right: 0;
}

.afh-product-detail-block .tns-controls button[aria-controls]::before,
.afh-product-detail-block .tns-controls button[aria-controls]::after {
  display: block;
  content: '';
  position: absolute;
  top: 50%;
  transform: rotate(-135deg);
  background: currentcolor;
  color: #fff;
  left: 0.167em;
  font-size: 1em;
  border-radius: 0.05em;
  width: 0.667em;
  height: 0.1em;
  margin-top: -0.05em;
  transform-origin: 0.05em 0.05em;
}

.afh-product-detail-block .tns-controls button[data-controls="prev"]::before,
.afh-product-detail-block .tns-controls button[data-controls="next"]::before {
  left: 0.69em;
}

.afh-product-detail-block .tns-controls button[data-controls="prev"]::before {
  transform: rotate(-45deg);
  left: 0.167em;
}

.afh-product-detail-block .tns-controls button[data-controls="prev"]::after {
  transform: rotate(45deg);
  left: 0.167em;
}

.afh-product-detail-block .tns-controls button[data-controls="next"]::after {
  left: 0.69em;
  transform: rotate(135deg);
}

@media (width >= 1024px) {
  .section.afh-product-detail-block-container {
    padding-top: 64px;
  }

  .afh-product-detail-block .details-container {
    display: block;
    max-width: none;
    margin: 0;
  }

  .afh-product-detail-block .tns-outer {
    margin: 0;
  }

  .afh-product-detail-block-container > .specs-wrapper {
    display: block;
  }

  .afh-product-detail-block-container > div:not(.specs-wrapper) {
    flex-basis: calc(66.666% - 3rem);
    max-width: none;
    margin: 0 auto 1rem 0;
  }

  .afh-product-detail-block .product-thumb-container {
    justify-content: flex-start;
    margin: 0 1rem;
  }

  .afh-product-detail-block .cta-container {
    position: sticky;
    flex-direction: row;
    top: var(--nav-height-desktop);
    padding: 0;
    border: 0;
  }

  .afh-product-detail-block .cta-container p {
    margin: 1rem 0;
  }
}

.pbn-button button {
    min-height: 50px !important;
    padding: .5rem 1.75rem !important;
    border-radius: 4.875rem !important;
    text-decoration: none;
    text-align: center;
    background: black !important;
    border: none !important;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.15s, background 0.15s !important;
    white-space: unset !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    font-family: var(--body-font-family) !important;
	}

.partnership-tags {
  display: flex;
  gap: 0.625rem;
  flex-flow: wrap row;
}

.partnership-tags p {
  margin: 0;
}

.partnership-tags a,
.partnership-tags p {
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem 0.625rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.partnership-tags p.tag-new {
  background-color: #c81344;
}

.partnership-tags p.tag-cool-school-eligible {
  background-color: #4f8cfe;
}

.partnership-tags p.tag-discontinued {
  background-color: #3CB371;
}

/* Recommended Products starts */
.recommended-product-heading {
  text-align: center;
  margin-block: 1rem !important;
  border-top: 2px solid var(--primary-color);
  padding-top: 1rem !important;
}

.recommended-products-section {
  margin-top: 2rem;
}

.rmd-products-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1rem;
}

.recommended-product-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem 1rem;
}

.recommended-product-img-container {
  display: flex;
  justify-content: center;
}

.recommended-product-img {
  max-width: 250px;
  height: auto;
}

.recommended-product-details-container {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
  align-items: center;
  text-align: center;
}

.recommended-product-title {
  font-size: 1.25rem;
  font-weight: 700;
  white-space: normal;
  max-width: 250px;
  word-break: break-word;
}

.recommended-product-button {
  margin-top: auto;
}

/* Disabled CTA (when GTIN is missing) */
.recommended-product-button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (width >= 1024px) {
  .rmd-products-container {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
  }
}

/* Recommended Products ends */