.sp-popup-lock {
  overflow: hidden;
}

.sp-popup {
  --sp-ink: #222222;
  --sp-muted: #555555;
  --sp-panel: rgba(255, 255, 255, 0.96);
  --sp-accent: #D00000;
  --sp-accent-dark: #9b0000;
  --sp-line: #e0e5eb;
  --sp-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--sp-ink);
  font-family: inherit;
}

.sp-popup[hidden] {
  display: none;
}

.sp-popup__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.30), rgba(36, 47, 58, 0.25)),
    rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(3px);
}

.sp-popup__dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-columns: minmax(360px, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--sp-line);
  border-top: 5px solid var(--sp-accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 250, 0.98)),
    var(--sp-panel);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.52) inset;
}

.sp-popup__dialog::before {
  content: "";
  position: absolute;
  top: 0;
  left: -35%;
  width: 35%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  animation: sp-popup-sweep 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes sp-popup-sweep {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(390%);
  }
}

.sp-popup__media {
  position: relative;
  min-height: 430px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
  padding: 18px 18px 22px;
  background:
    linear-gradient(135deg, rgba(208, 0, 0, 0.86), rgba(17, 17, 17, 0.88)),
    #111111;
}

.sp-popup__product {
  min-height: 0;
}

.sp-popup__media::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px 18px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #D00000, #ffffff, #9b0000);
  opacity: 0.8;
}

.sp-popup__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sp-popup__media.is-empty {
  display: grid;
  place-items: center;
  padding: 28px;
}

.sp-popup__media.is-empty::before {
  content: "IBS SPECIAL";
  display: inline-grid;
  place-items: center;
  width: min(280px, 78%);
  min-height: 150px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 5px solid #ffffff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  font-size: clamp(1.65rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
}

.sp-popup__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  padding: clamp(24px, 4vw, 42px);
}

.sp-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.sp-popup__close:hover,
.sp-popup__close:focus-visible {
  transform: translateY(-1px);
  border-color: #111111;
  background: #f7f7f7;
}

.sp-popup__brand-block {
  width: min(100%, 420px);
  max-width: calc(100% - 52px);
  margin-bottom: 6px;
}

.sp-popup__brand-kicker {
  position: relative;
  z-index: 1;
  width: min(360px, 92%);
  margin: 0;
  padding: 0.55rem 0.9rem;
  overflow: hidden;
  border-left: 5px solid #D00000;
  border-radius: 6px;
  background: linear-gradient(135deg, #111111, #333333);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(208, 0, 0, 0.30);
  font-size: clamp(1.25rem, 3vw, 2.15rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.sp-popup__brand-kicker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 70%);
  transform: translateX(-120%);
  animation: sp-popup-kicker-shine 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sp-popup-kicker-shine {
  0%,
  45% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.sp-popup__price {
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 2px;
  min-width: min(100%, 340px);
  margin-top: -10px;
  padding: 0.58rem 1rem 0.72rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(51, 51, 51, 0.96)),
    #111111;
  color: #ffffff;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(208, 0, 0, 0.25) inset,
    -10px 0 24px rgba(0, 255, 255, 0.55),
    10px 0 24px rgba(255, 0, 255, 0.50),
    0 10px 24px rgba(255, 255, 0, 0.45);
  animation: sp-popup-price-cmy-glow 1.9s ease-in-out infinite;
}

@keyframes sp-popup-price-cmy-glow {
  0%,
  100% {
    box-shadow:
      0 12px 24px rgba(0, 0, 0, 0.18),
      0 0 0 1px rgba(208, 0, 0, 0.22) inset,
      -15px 0 28px rgba(0, 255, 255, 0.38),
      15px 0 28px rgba(255, 0, 255, 0.34),
      0 8 18px rgba(255, 255, 0, 0.32);
  }

  50% {
    box-shadow:
      0 14px 30px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.34) inset,
      -25px 0 48px rgba(0, 255, 255, 0.70),
      25px 0 48px rgba(255, 0, 255, 0.62),
      0 22px 44px rgba(255, 255, 0, 0.56);
  }
}

.sp-popup__price-value {
  display: block;
  font-size: clamp(3.2rem, 6.2vw, 5.25rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.sp-popup__price-note {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.92;
}

.sp-popup__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 52px);
  margin-bottom: 4px;
}

.sp-popup__logo {
  width: 125px;
  height: auto;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.sp-popup__brand-text {
  color: #D00000;
  font-family: "Times New Roman", Times, serif;
  font-size: 140px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.sp-popup__eyebrow {
  width: fit-content;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--sp-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sp-popup__eyebrow-logo {
  width: min(230px, 66%);
  height: auto;
  display: block;
  object-fit: contain;
}

.sp-popup__headline {
  max-width: 14ch;
  margin: 0;
  color: #111111;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.sp-popup__headline-sub {
  display: block;
  margin-top: 0.18rem;
  color: #D00000;
  font-size: 0.52em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.sp-popup__message {
  max-width: 38rem;
  margin: 0;
  color: var(--sp-muted);
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  line-height: 1.48;
}

.sp-popup__note {
  width: fit-content;
  max-width: 100%;
  padding: 0.58rem 0.78rem;
  border-left: 4px solid #D00000;
  border-radius: 6px;
  background: #f6f8fa;
  color: #222222;
  box-shadow: 0 8px 18px rgba(20, 31, 43, 0.06);
  font-size: 0.92rem;
  font-weight: 700;
}

.sp-popup__button {
  width: fit-content;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--sp-accent), var(--sp-accent-dark));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(208, 0, 0, 0.28);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sp-popup__button:hover,
.sp-popup__button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e00000, #a80000);
  box-shadow: 0 14px 28px rgba(208, 0, 0, 0.34);
}

@media (max-width: 740px) {
  .sp-popup {
    padding: 14px;
  }

  .sp-popup__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .sp-popup__media {
    min-height: 230px;
  }

  .sp-popup__content {
    padding: 28px;
  }

  .sp-popup__brand-block {
    width: 100%;
    max-width: 100%;
  }

  .sp-popup__headline {
    max-width: 10ch;
  }
}