/* Nicco Offers Popup — WordPress-style promotional modal */
.nicco-offers-popup {
  --offers-orange: #f2520d;
  --offers-orange-rgb: 242, 82, 13;
  --offers-ink: #131313;
  --offers-muted: #6b7280;
  position: fixed;
  inset: 0;
  z-index: 999980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  font-family: "Kumbh Sans", system-ui, sans-serif;
}

.nicco-offers-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nicco-offers-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.nicco-offers-popup__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateY(28px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.nicco-offers-popup.is-open .nicco-offers-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.nicco-offers-popup__visual {
  position: relative;
  min-height: 320px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-color: #0e0e0e;
  background-image:
    linear-gradient(
      165deg,
      rgba(8, 8, 10, 0.35) 0%,
      rgba(8, 8, 10, 0.2) 40%,
      rgba(8, 8, 10, 0.72) 100%
    ),
    url("/images/offers/offers-popup-visual.png");
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.nicco-offers-popup__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 35%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.nicco-offers-popup__orb {
  display: none;
}

.nicco-offers-popup__discount {
  position: relative;
  z-index: 1;
}

.nicco-offers-popup__percent {
  display: block;
  font-size: clamp(64px, 9vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 18px 40px rgba(0, 0, 0, 0.45);
}

.nicco-offers-popup__off-label {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--offers-orange-rgb), 0.95);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nicco-offers-popup__content {
  position: relative;
  padding: 40px 36px 32px;
  display: flex;
  flex-direction: column;
}

.nicco-offers-popup__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--offers-orange);
}

.nicco-offers-popup__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--offers-ink);
  letter-spacing: -0.02em;
}

.nicco-offers-popup__text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--offers-muted);
}

.nicco-offers-popup__perks {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nicco-offers-popup__perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.45;
}

.nicco-offers-popup__perks li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2l2.8 2.8 6.2-6.2' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 10px no-repeat,
    var(--offers-orange);
}

.nicco-offers-popup__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6a2b 0%, var(--offers-orange) 55%, #d94408 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(var(--offers-orange-rgb), 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nicco-offers-popup__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(var(--offers-orange-rgb), 0.42);
  filter: brightness(1.03);
}

.nicco-offers-popup__cta:focus-visible {
  outline: 2px solid var(--offers-orange);
  outline-offset: 3px;
}

.nicco-offers-popup__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.nicco-offers-popup__cta:hover svg {
  transform: translateX(3px);
}

.nicco-offers-popup__timer {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.nicco-offers-popup__timer span {
  color: var(--offers-orange);
  font-variant-numeric: tabular-nums;
}

.nicco-offers-popup__dismiss {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nicco-offers-popup__dismiss:hover {
  color: var(--offers-ink);
}

.nicco-offers-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 19, 19, 0.06);
  color: var(--offers-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nicco-offers-popup__close:hover {
  background: rgba(var(--offers-orange-rgb), 0.12);
  color: var(--offers-orange);
  transform: rotate(90deg);
}

body.nicco-offers-popup-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .nicco-offers-popup__dialog {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow: auto;
  }

  .nicco-offers-popup__visual {
    min-height: 188px;
    padding: 28px 24px 22px;
    background-position: center 30%;
  }

  .nicco-offers-popup__percent {
    font-size: 56px;
  }

  .nicco-offers-popup__content {
    padding: 28px 24px 24px;
  }

  .nicco-offers-popup__title {
    font-size: 24px;
  }

  .nicco-offers-popup__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.92);
    color: #131313;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    font-size: 20px;
  }

  .nicco-offers-popup__close:hover {
    background: #fff;
    color: var(--offers-orange);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nicco-offers-popup,
  .nicco-offers-popup__dialog,
  .nicco-offers-popup__cta,
  .nicco-offers-popup__close {
    transition: none;
  }
}
