/* Detail-page QR utility tile */

.detail-qr-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  width: min(100%, 470px);
  margin: 1rem auto;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgb(0 0 0 / 16%);
  border-radius: 10px;
  background: rgb(255 255 255 / 42%);
}

.detail-qr-image {
  display: block;
  width: 216px;
  height: 216px;
  object-fit: contain;
}

.detail-qr-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  justify-content: center;
  margin: 0;
}

.detail-qr-actions .utility-divider {
  display: none;
}

.detail-qr-actions .utility-link {
  display: block;
  width: 100%;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

/* Deal / special exact-expiry stamp */

.deal-expiry-stamp {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 210px;
  max-width: min(92%, 300px);
  margin: 0.58rem auto 2rem;
  padding: 0.28rem 1.05rem 0.34rem;
  border: 3px solid #101010;
  border-radius: 999px;
  color: #fff !important;
  box-shadow:
    0 3px 0 #101010,
    0 8px 16px rgb(0 0 0 / 18%),
    inset 0 0 0 2px rgb(255 255 255 / 30%);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgb(0 0 0 / 36%),
    0 0 1px rgb(0 0 0 / 72%);
  text-transform: uppercase;
  transform: rotate(-1.4deg);
}

.deal-expiry-stamp::before {
  content: "";
  position: absolute;
  inset: 5px 8px;
  border: 1px dashed rgb(255 255 255 / 62%);
  border-radius: 999px;
  pointer-events: none;
}

.deal-expiry-stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      -10deg,
      rgb(255 255 255 / 12%) 0,
      rgb(255 255 255 / 12%) 2px,
      transparent 2px,
      transparent 7px
    );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.deal-expiry-stamp.is-current {
  background:
    linear-gradient(180deg, #159447 0%, #087431 100%);
}

.deal-expiry-stamp.is-expired {
  background:
    linear-gradient(180deg, #d32727 0%, #a60f0f 100%);
  transform: rotate(1.4deg);
}

.deal-expiry-stamp-label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  color: #fff !important;
}

.deal-expiry-stamp-date {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 0.08rem;
  font-size: clamp(1rem, 4.1vw, 1.42rem);
  font-weight: 950;
  letter-spacing: 0.055em;
  color: #fff !important;  
}

.deal-expiry-stamp,
.deal-expiry-stamp *,
.surfer-block .deal-expiry-stamp,
.surfer-block .deal-expiry-stamp * {
  color: #fff !important;
}

@media (width <= 480px) {
  .deal-expiry-stamp {
    min-width: 185px;
    max-width: min(94%, 270px);
    padding: 0.26rem 0.86rem 0.3rem;
    border-width: 3px;
  }

  .deal-expiry-stamp-label {
    font-size: 0.54rem;
  }

  .deal-expiry-stamp-date {
    font-size: clamp(0.96rem, 6vw, 1.22rem);
  }
}

/* Crush or Blush fullscreen interstitial */

.crush-survey-modal {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100dvh;
  height: 100dvh;
  padding: 1rem;
}

.crush-survey-modal.is-active {
  display: flex;
}

.crush-survey-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(8 8 12 / 94%);
}

.crush-survey-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(94vw, 640px);
  height: 340px;
  min-height: 0;
  max-height: calc(100dvh - 4rem);
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.crush-survey-modal-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 0;
  padding: 0;
}

.crush-survey-modal-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.crush-survey-modal-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.crush-survey-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 42px rgb(0 0 0 / 55%);
}

@media (width <= 480px) {
  .detail-qr-tile {
    width: min(100%, 390px);
    grid-template-columns: 192px 1fr;
    gap: 0.7rem;
    padding: 0.5rem 0.65rem;
  }

  .detail-qr-image {
    width: 192px;
    height: 192px;
  }

  .crush-survey-modal {
    padding: 0.75rem;
  }

  .crush-survey-modal-panel {
    width: 94vw;
    height: 320px;
    min-height: 0;
    max-height: calc(100dvh - 3rem);
  }

  .crush-survey-modal-close {
    top: -2.5rem;
  }
}