.ib-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.ib-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 48px;
  min-height: 48px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 10px;
}

.ib-store-badge-link {
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ib-store-badge-link:hover {
  transform: translateY(-2px);
}

.ib-store-badge-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.ib-store-badge-disabled {
  cursor: default;
  opacity: 0.68;
}

.ib-store-badge-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Google Play's official PNG includes more transparent/internal padding than
   Apple's badge. These language-specific scales equalize the visible badge
   height while preserving the same 160x48 (145x44 on mobile) layout box. */
.ib-store-badge--google-play .ib-store-badge-image {
  transform: scale(1.21);
  transform-origin: center;
}

.ib-store-badges[data-language="en"] .ib-store-badge--google-play .ib-store-badge-image {
  transform: scale(1.31);
}

.ib-store-badge-coming-soon {
  position: relative;
}

.ib-store-badge-coming-soon::after {
  content: attr(data-coming-soon);
  position: absolute;
  right: 7px;
  bottom: -7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font: 600 9px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

@media (max-width: 520px) {
  .ib-store-badges {
    gap: 12px;
    margin-top: 20px;
  }

  .ib-store-badge {
    width: 145px;
    height: 44px;
    min-height: 44px;
  }
}
