.store-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-badges-center { align-items: center; text-align: center; }
.store-badges-start { align-items: flex-start; text-align: left; }

.store-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.store-badges-center .store-badges-row { justify-content: center; }

.store-badge {
  display: block;
  border-radius: 10px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

/* Same height for both official badges, natural width (no stretching). */
.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.store-qr {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass-sm);
}

.store-qr span {
  max-width: 7.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: left;
}

.store-qr-placeholder {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  background: var(--surface-alt);
}

.store-badges-other {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}

.store-badges-light .store-badges-other { color: var(--text-secondary); }
.store-badges-dark .store-badges-other { color: rgba(255, 255, 255, 0.9); }
.ymodal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: ymodal-fade 160ms ease-out;
}

.ymodal {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: 2rem;
  animation: ymodal-rise 200ms cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.ymodal-sm { max-width: 440px; }
.ymodal-md { max-width: 560px; }

.ymodal-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--surface-alt);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ymodal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}

.ymodal-head {
  padding-right: 2.5rem;
  margin-bottom: 1.5rem;
}

.ymodal-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.ymodal-head p {
  color: var(--text-secondary);
  margin-top: 0.375rem;
}

@keyframes ymodal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ymodal-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .ymodal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .ymodal {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    max-height: 92dvh;
    padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  }
}
