/* Frosted Flakes Theme */
.theme-frosted-flakes .seeds-page-section .where-to-buy-cta {
  --button-background-color: #0061af;
  --title-text: #0061af;
}

/* Special K Theme */
.theme-special-k .seeds-page-section .where-to-buy-cta {
  --button-background-color: #ED1941;
  --title-text: #ED1941;
}

/* Raisin Bran Theme */
.theme-raisin-bran .seeds-page-section .where-to-buy-cta {
  --button-background-color: #64154C;
  --title-text: #64154C;
}

.theme-special-k .seeds-page-section .image-popup-btn {
  --primary-color: #ED1941;
}

.theme-raisin-bran .seeds-page-section .image-popup-btn {
  --tertiary-color: #64154C;
}

.image-model-popup:not(.where-to-buy-cta) {
  text-align: center;
  margin-bottom: 4rem;
  margin-top: 3rem;
}

.image-model-popup.where-to-buy-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  width: 350px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 10.2%);
  background: var(--button-background-color);
}

.image-model-popup.where-to-buy-cta a,
.image-model-popup.where-to-buy-cta .wtb-action {
  text-decoration: none;
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  padding: 1.25rem 2rem;
  line-height: 1.5rem;
  letter-spacing: 0%;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  margin: 0 auto;
}

@media (width < 768px) {
  .image-model-popup.where-to-buy-cta {
    width: 100%;
    margin: 0 auto;
  }

  .image-model-popup.where-to-buy-cta.safari-ios {
    bottom: 1px;
  }

  .image-model-popup.where-to-buy-cta a,
  .image-model-popup.where-to-buy-cta .wtb-action {
    min-height: 52px;
    padding: 1rem 2.25rem;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.5rem;
    letter-spacing: 0%;
  }

  .image-model-popup:not(.where-to-buy-cta) {
    margin-bottom: 4rem;
    margin-top: 2rem;
  }

}

.image-popup-btn {
    color: var(--background-color);
    background-color: var(--primary-color);
    border: 2px solid transparent;
    padding: 18px 46px;
    border-radius: 500px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 17px;
    font-weight: 600;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 0%;
    vertical-align: middle;
    text-transform: capitalize;
}

.image-popup-btn:hover {
  background-color: var(--background-color);;
  border: 2px solid var(--primary-color);
  color: var(--tertiary-color) !important;
}

.image-popup-btn p {
  margin: 0;
}

.image-popup-btn-text {
  line-height: 1;
}

.image-popup-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-popup-btn-icon svg {
  width: 24px;
  height: 24px;
}

.image-popup-btn:hover .image-popup-btn-icon svg path {
  fill: var(--tertiary-color);
}

.image-modal {
  display: none;
  margin: 0 auto;
  max-width: 100%;
}

.image-modal.show {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 56px 16px 16px;
  box-sizing: border-box;
}

.image-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0 0 0 / 70%);
  z-index: 0;
}

.image-modal-content {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 90vw;
  max-height: calc(100vh - 72px);
}

.image-modal-content .mobile-image {
  display: none;
}

.image-modal-content picture {
  display: block;
  width: fit-content;
  max-width: min(90vw, 1000px);
}

.image-modal-content img {
  width: auto;
  max-width: min(90vw, 1000px);
  max-height: calc(100vh - 72px);
  display: block;
  margin: 0 auto;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  z-index: 2;
  font-size: 28px;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.theme-special-k .image-model-popup .image-modal-close svg path {
  fill: #ED1941;
}

.theme-raisin-bran .image-model-popup .image-modal-close svg path {
  fill: #64154C;
}

@media screen and (width <= 767px) {
  .image-modal-content .desktop-image {
    display: none;
  }

  .image-modal-content .mobile-image {
    display: block;
  }

  .image-modal-content {
    max-width: 90vw;
  }

  .image-modal-close {
    top: -34px;
  }

  .image-model-popup:not(.where-to-buy-cta) { 
    margin-top: 5rem;
  }
} 