/* Compact marketplace layout to prevent index-page scroll */

.marketplace {
  padding: clamp(16px, 3vh, 36px) clamp(16px, 3vw, 36px);
  gap: clamp(16px, 4vh, 40px);
}

.marketplace__header {
  padding-bottom: clamp(10px, 2vh, 20px);
}

.marketplace__content {
  gap: clamp(16px, 3vh, 32px);
}

.marketplace__title {
  font-size: clamp(28px, 6vw, 48px);
  letter-spacing: 0.12em;
}

/* Make logo bigger than title */
.marketplace .brand__logo {
  height: clamp(72px, 12vw, 120px);
  width: auto;
}

.marketplace__subtitle {
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 0.1em;
}

.marketplace__grid {
  gap: clamp(12px, 3vh, 24px);
  margin-top: clamp(12px, 3vh, 28px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.marketplace__card {
  padding: clamp(18px, 3.5vh, 32px) clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: visible;
}

.marketplace__card-icon {
  width: clamp(36px, 5.5vw, 60px);
  height: clamp(36px, 5.5vw, 60px);
  object-fit: contain;
  margin-bottom: clamp(10px, 2vh, 18px);
  flex-shrink: 0;
}

.marketplace__card h3 {
  font-size: clamp(12px, 2vw, 20px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin: 0;
  text-align: center;
}

.marketplace__card p {
  display: none;
}

/* Edge detection: hide inline alert log; use popup instead */
.edge-detection-module .alerts-panel {
  display: none;
}

/* Invoice success header: single-line title, hide subtitle */
.confirmation__card--invoice {
  gap: 12px;
  align-items: center;
  text-align: center;
}

.confirmation__card--invoice .confirmation__icon {
  margin: 0 auto 8px;
  width: 52px;
  height: 52px;
}

.confirmation__card--invoice h1 {
  font-size: clamp(20px, 3vw, 28px);
  white-space: nowrap;
}
.invoice-header__left h2 {
  text-align: left;
}
.confirmation__card--invoice .confirmation__icon,
.confirmation__card--invoice h1 {
 
  align-items: center;
}

.confirmation__card--invoice .confirmation__icon {
  margin: 0;
}

.confirmation__card--invoice h1 {
  margin: 0;
}

.confirmation__card--invoice .confirmation__icon + h1 {
  gap: 12px;
  justify-content: center;
  width: 100%;
}

/* Make invoice section span full width of the card */
.confirmation__card--invoice .invoice-section {
  width: 100%;
}

.confirmation__card--invoice > p {
  display: none;
}

/* Invoice meta: keep order id/date/time on one line */
.invoice-meta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.invoice-meta__row {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.invoice-meta__row span:first-child {
  min-width: auto;
}

