:root {
  --pay-focus: #f1d5a8;
  --pay-success: #b7f7da;
  --pay-warning: #ffd88a;
}

:where(a, button):focus-visible {
  outline: 3px solid var(--pay-focus);
  outline-offset: 4px;
}

.back,
.pay-button,
.help-action,
.review-link {
  min-height: 48px;
}

.back,
.review-link,
.help-action {
  display: inline-flex;
  align-items: center;
}

.invoice-hint {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(241,213,168,.24);
  border-radius: 15px;
  background: rgba(2,10,18,.42);
  color: #c4cfd4;
  font-size: 13px;
  line-height: 1.55;
}

.invoice-hint strong {
  color: var(--text);
}

.invoice-panel[aria-live] {
  scroll-margin-top: 90px;
}

.pay-button {
  text-align: center;
}

.help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.help-action,
.review-link {
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(241,213,168,.28);
  border-radius: 12px;
  color: var(--gold-light);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.payment-status {
  margin-top: 18px;
  color: #aebcc4;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 780px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .back {
    flex: 0 0 auto;
  }

  main {
    padding-bottom: 54px;
  }

  .card-main,
  .aside {
    padding: 24px 20px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 55px);
  }

  .help-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .help-action,
  .review-link {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .header-inner {
    width: calc(100% - 20px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .brand strong {
    font-size: 10.5px;
  }

  .back {
    padding-inline: 9px;
    font-size: 9px;
  }
}
