/* Top-of-page coupon promo — custom design, Lidl × Profesia */

.mi-loyal {
  --loyal-navy: #0050aa;
  --loyal-navy-deep: #003d82;
  --loyal-yellow: #ffd400;
  --loyal-yellow-hot: #ffe14a;
  --loyal-ink: #1e1e1c;
  --loyal-muted: #5c5c58;
  --loyal-wash: #f3f6fb;
  position: relative;
  margin: 0;
  /* Clear hanging header logo tab (~34px) so urgency bar is not covered */
  padding: 42px 0 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  color: var(--loyal-ink);
  background: #fff;
  border-bottom: 1px solid #e6e6e0;
}

/* Side cues: center of left/right gutters, arrow down → scroll to search */
.mi-loyal__side {
  --loyal-content: min(1170px, calc(100% - 30px));
  --loyal-gutter: calc((100% - var(--loyal-content)) / 2);
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  z-index: 6;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  color: var(--loyal-navy-deep);
  box-shadow: 0 8px 22px rgba(0, 40, 90, 0.1);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mi-loyal__side:hover,
.mi-loyal__side:focus-visible {
  border-color: #f0d56a;
  background: #fffdf3;
  box-shadow: 0 12px 28px rgba(0, 40, 90, 0.14);
  outline: none;
  transform: translate(-50%, calc(-50% + 3px));
}

.mi-loyal__side--left {
  left: calc(var(--loyal-gutter) / 2);
}

.mi-loyal__side--right {
  left: calc(100% - var(--loyal-gutter) / 2);
}

.mi-loyal__side-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--loyal-yellow);
  color: var(--loyal-ink);
  animation: miLoyalSideBounce 1.6s ease-in-out infinite;
}

.mi-loyal__side-ico svg {
  width: 18px;
  height: 18px;
}

.mi-loyal__side-txt {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--loyal-navy-deep);
  white-space: nowrap;
}

@keyframes miLoyalSideBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@media (min-width: 1280px) {
  .mi-loyal__side {
    display: inline-flex;
  }
}

@media (min-width: 1480px) {
  .mi-loyal__side {
    padding: 14px 16px;
    gap: 10px;
  }

  .mi-loyal__side-txt {
    font-size: 13px;
  }

  .mi-loyal__side-ico {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-loyal__side-ico {
    animation: none;
  }
}

.mi-loyal *,
.mi-loyal *::before,
.mi-loyal *::after {
  box-sizing: border-box;
}

.mi-loyal__urgency {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto 12px;
  padding: 0;
  box-sizing: border-box;
}

.mi-loyal__urgency-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  padding: 9px 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, #003d82 0%, #0050aa 50%, #b71c1c 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 40, 90, 0.12);
}

.mi-loyal__urgency-left {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.mi-loyal__urgency-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mi-loyal__urgency-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd400;
  animation: miLoyalPulse 1.4s ease-out infinite;
}

.mi-loyal__urgency-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mi-loyal__urgency-timer b {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.22);
  color: #ffd400;
  text-align: center;
}

.mi-loyal__inner {
  width: min(1170px, calc(100% - 30px));
  margin: 0 auto;
  padding: 18px 0 16px;
}

.mi-loyal__stock {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff8e0 0%, #fff 55%, #f3f6fb 100%);
  border: 1px solid #f0d56a;
}

.mi-loyal__stock-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a6b00;
}

.mi-loyal__stock-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #ebe7d8;
  overflow: hidden;
}

.mi-loyal__stock-fill {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c6281a 0%, #ffd400 100%);
  transition: width 0.6s ease;
}

.mi-loyal__stock-count {
  font-size: 14px;
  font-weight: 900;
  color: #c6281a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mi-loyal__stock-count b {
  font-size: 18px;
}

.mi-loyal__mentions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.mi-loyal__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4cc;
  border: 1px solid #f0d56a;
  font-size: 12px;
  font-weight: 700;
  color: #6b4e00;
}

.mi-loyal__chip--hot {
  background: #ffe8e6;
  border-color: #f5b4ae;
  color: #a11810;
}

.mi-loyal__chip--live {
  background: var(--loyal-wash);
  border-color: #c9d7ea;
  color: var(--loyal-navy);
}

.mi-loyal__chip b {
  font-weight: 900;
}

.mi-loyal__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) auto minmax(180px, 0.7fr);
  gap: 20px 28px;
  align-items: center;
}

.mi-loyal__brands {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  max-width: 100%;
}

.mi-loyal__brands-sep {
  width: 1px;
  height: 28px;
  background: #d0d0ca;
  flex: 0 0 auto;
}

.mi-loyal__brand-p {
  display: block;
  width: 108px;
  height: 80px;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.mi-loyal__brand-l {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.mi-loyal__title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.mi-loyal__title span {
  display: block;
  color: var(--loyal-navy);
}

.mi-loyal__stroke {
  display: block;
  width: 92px;
  height: 7px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: var(--loyal-yellow);
  transform: rotate(-1.5deg);
}

.mi-loyal__lead {
  margin: 0 0 16px;
  max-width: 34rem;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--loyal-muted);
}

.mi-loyal__lead strong {
  color: var(--loyal-ink);
  font-weight: 800;
}

.mi-loyal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 4px;
}

.mi-loyal__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--loyal-yellow);
  color: var(--loyal-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, background 0.15s ease;
}

.mi-loyal__btn:hover {
  background: var(--loyal-yellow-hot);
  transform: translateY(-1px);
  color: var(--loyal-ink);
  text-decoration: none;
}

.mi-loyal__btn svg {
  width: 16px;
  height: 16px;
}

.mi-loyal__hint {
  font-size: 12px;
  color: #8a8a84;
  font-weight: 500;
}

/* Coupon ticket */
.mi-loyal__coupon {
  position: relative;
  width: 148px;
  padding: 12px 12px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d8e0ea;
  box-shadow:
    0 10px 24px rgba(0, 40, 90, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  text-align: center;
}

.mi-loyal__coupon-lidl {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.mi-loyal__coupon-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--loyal-navy);
}

.mi-loyal__coupon-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 0 0 8px;
  padding: 12px 8px;
  border-radius: 4px;
  background: var(--loyal-navy);
  color: #fff;
  line-height: 1;
}

.mi-loyal__coupon-value b {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.mi-loyal__coupon-value small {
  font-size: 15px;
  font-weight: 800;
}

.mi-loyal__coupon-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 4px;
  background: var(--loyal-yellow);
  color: var(--loyal-navy);
}

.mi-loyal__coupon-foot svg {
  width: 18px;
  height: 18px;
}

.mi-loyal__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--loyal-wash);
  box-shadow: 0 10px 28px rgba(30, 30, 28, 0.12);
}

.mi-loyal__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 20%;
}

.mi-loyal__bubble {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  border-radius: 10px 10px 10px 2px;
  background: var(--loyal-yellow);
  color: var(--loyal-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.mi-loyal__steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed #e0e0da;
  list-style: none;
  counter-reset: step;
}

.mi-loyal__step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 16px 0 0;
  counter-increment: step;
}

.mi-loyal__step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 16px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--loyal-navy), transparent);
  opacity: 0.35;
}

.mi-loyal__step-ico {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--loyal-navy);
  color: #fff;
}

.mi-loyal__step-ico svg {
  width: 16px;
  height: 16px;
}

.mi-loyal__step strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.mi-loyal__step strong::before {
  content: counter(step) ". ";
  color: var(--loyal-navy);
}

.mi-loyal__step p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--loyal-muted);
}

@media (max-width: 980px) {
  .mi-loyal__stage {
    grid-template-columns: 1fr auto;
  }

  .mi-loyal__visual {
    grid-column: 1 / -1;
    max-width: none;
    aspect-ratio: 21 / 9;
    justify-self: stretch;
    order: -1;
  }

  .mi-loyal__visual img {
    object-position: 45% 25%;
  }

  .mi-loyal__coupon {
    justify-self: start;
  }
}

@keyframes miLoyalPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 212, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 0); }
}

@media (max-width: 900px) {
  .mi-loyal {
    padding-top: 36px;
  }
}

@media (max-width: 720px) {
  .mi-loyal {
    padding-top: 28px;
  }

  .mi-loyal__urgency,
  .mi-loyal__inner {
    width: min(100% - 24px, 1170px);
  }

  .mi-loyal__urgency {
    margin-bottom: 10px;
  }

  .mi-loyal__inner {
    padding: 10px 0 12px;
  }

  .mi-loyal__stock {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mi-loyal__stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mi-loyal__coupon {
    transform: none;
    width: 100%;
    max-width: 220px;
  }

  .mi-loyal__steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mi-loyal__step:not(:last-child)::after {
    display: none;
  }

  .mi-loyal__btn {
    width: 100%;
    justify-content: center;
  }

  .mi-loyal__visual {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-loyal__btn {
    transition: none;
  }
}
