/* ==========================================================================
   Buy Steps - "Що буде після заявки" (3 кроки)
   ========================================================================== */

.buy-steps {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
}

.buy-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.buy-steps__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 175, 80, 0.9);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  line-height: 1;
}

.buy-steps__text {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* === TABLET === */

@media (width >= 768px) and (width < 1024px) {
  .buy-steps {
    gap: 0.5rem;
  }

  .buy-steps__item {
    padding: 0.5rem 0.6rem;
  }

  .buy-steps__text {
    font-size: 0.75rem;
  }
}

/* === MOBILE === */

@media (width < 768px) {
  .buy-steps {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .buy-steps__item {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
  }

  .buy-steps__number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .buy-steps__text {
    font-size: 0.8rem;
  }
}

/* === VERY SMALL MOBILE === */

@media (width < 360px) {
  .buy-steps__item {
    padding: 0.4rem 0.6rem;
  }

  .buy-steps__text {
    font-size: 0.75rem;
  }
}

/* === iOS Safari fix === */

@supports (-webkit-touch-callout: none) {
  .buy-steps__item {
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

/* === REDUCED MOTION === */

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

/* === FALLBACK === */

@supports not (backdrop-filter: blur(6px)) {
  .buy-steps__item {
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
