/* =========================================================
   IntegraDomy.pl — Mobile Offer Pill Switcher
   Wariant: piguła z obrysem, aktywna zakładka wypełniona.
   ========================================================= */

.id-mobile-offer-pill,
.id-mobile-offer-pill * {
  box-sizing: border-box;
}

.id-mobile-offer-pill {
  --id-red: #ed1c24;
  --id-red-dark: #d61017;
  --id-gold: #c89146;
  --id-gold-dark: #a97935;
  --id-navy: #07111f;
  --id-muted: #8a93a3;
  --id-line: rgba(17, 24, 39, .10);

  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147482000;
  display: none;
  justify-content: center;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom));
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(112%);
  transition:
    opacity .28s ease,
    transform .46s cubic-bezier(.2,.8,.2,1);
}

.id-mobile-offer-pill.is-ready {
  display: flex;
}

.id-mobile-offer-pill.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.id-mobile-offer-pill__shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid rgba(200,145,70,.38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)),
    radial-gradient(circle at 50% -40%, rgba(200,145,70,.13), transparent 48%);
  box-shadow:
    0 -18px 52px rgba(15,23,42,.12),
    0 12px 34px rgba(15,23,42,.10),
    inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.id-mobile-offer-pill__tab {
  position: relative;
  min-width: 0;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 10px;
  background: transparent;
  color: #a07232;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition:
    transform .20s ease,
    background-color .24s ease,
    color .24s ease,
    box-shadow .24s ease,
    opacity .24s ease;
}

.id-mobile-offer-pill__tab:not(.is-active) {
  opacity: .82;
}

.id-mobile-offer-pill__tab.is-active {
  color: #fff;
  background:
    linear-gradient(135deg, var(--id-red), var(--id-red-dark));
  box-shadow:
    0 14px 34px rgba(237,28,36,.24),
    inset 0 1px 0 rgba(255,255,255,.18);
  animation: idMobilePillPulseRed 2.4s ease-in-out infinite;
}

.id-mobile-offer-pill__tab--finish.is-active {
  background:
    linear-gradient(135deg, var(--id-gold), var(--id-gold-dark));
  box-shadow:
    0 14px 34px rgba(200,145,70,.25),
    inset 0 1px 0 rgba(255,255,255,.20);
  animation: idMobilePillPulseGold 2.4s ease-in-out infinite;
}

.id-mobile-offer-pill__tab:active {
  transform: scale(.985);
}

.id-mobile-offer-pill__tab:focus-visible {
  outline: 2px solid rgba(237,28,36,.34);
  outline-offset: 2px;
}

.id-mobile-offer-pill__tab--finish:focus-visible {
  outline-color: rgba(200,145,70,.45);
}

.id-mobile-offer-pill__icon {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.id-mobile-offer-pill__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.id-mobile-offer-pill__text {
  display: block;
  min-width: 0;
}

.id-mobile-offer-pill__text strong {
  display: block;
  color: currentColor;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes idMobilePillPulseRed {
  0%, 100% {
    box-shadow:
      0 14px 34px rgba(237,28,36,.22),
      0 0 0 0 rgba(237,28,36,0),
      inset 0 1px 0 rgba(255,255,255,.18);
  }
  50% {
    box-shadow:
      0 14px 34px rgba(237,28,36,.28),
      0 0 0 4px rgba(237,28,36,.075),
      inset 0 1px 0 rgba(255,255,255,.18);
  }
}

@keyframes idMobilePillPulseGold {
  0%, 100% {
    box-shadow:
      0 14px 34px rgba(200,145,70,.22),
      0 0 0 0 rgba(200,145,70,0),
      inset 0 1px 0 rgba(255,255,255,.20);
  }
  50% {
    box-shadow:
      0 14px 34px rgba(200,145,70,.29),
      0 0 0 4px rgba(200,145,70,.08),
      inset 0 1px 0 rgba(255,255,255,.20);
  }
}

body.id-mobile-offer-pill-padding {
 /* padding-bottom: calc(84px + env(safe-area-inset-bottom));*/
}

@media (min-width: 861px) {
  .id-mobile-offer-pill,
  .id-mobile-offer-pill.is-ready {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .id-mobile-offer-pill {
    padding-left: 9px;
    padding-right: 9px;
  }

  .id-mobile-offer-pill__shell {
    min-height: 60px;
    gap: 5px;
    padding: 6px;
  }

  .id-mobile-offer-pill__tab {
    min-height: 48px;
    gap: 7px;
  }

  .id-mobile-offer-pill__icon,
  .id-mobile-offer-pill__icon svg {
    width: 21px;
    height: 21px;
  }

  .id-mobile-offer-pill__text strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .id-mobile-offer-pill,
  .id-mobile-offer-pill *,
  .id-mobile-offer-pill__tab.is-active {
    transition: none !important;
    animation: none !important;
  }
}
