/* ============================================ */
/*        Thanksgiving Offer Popup (Oct 12)     */
/* Extends the template's .popup-container /    */
/* .popup-content / .close-popup styles.        */
/* ============================================ */

.thanksgiving-popup.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.thanksgiving-popup .popup-content {
  /* Square image: fit both the viewport width and height */
  width: min(88vw, calc(100vh - 80px), 560px);
  width: min(88vw, calc(100dvh - 80px), 560px);
  max-width: none;
  margin: 0;
}

.thanksgiving-popup .popup-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.thanksgiving-popup .close-popup {
  z-index: 2;
}

/* Clickable area over the "ORDER NOW" button in the image */
.thanksgiving-popup-order {
  position: absolute;
  /* Offsets include the 10px .popup-content padding */
  left: calc(10px + (100% - 20px) * 0.365);
  top: calc(10px + (100% - 20px) * 0.85);
  width: calc((100% - 20px) * 0.27);
  height: calc((100% - 20px) * 0.075);
  border-radius: 999px;
  cursor: pointer;
}

.thanksgiving-popup-order:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .thanksgiving-popup .popup-content {
    margin: 0;
  }
}
