/* Supplementary styles for pages that don't exist in the original mainLanding
   site (product pay pages, invoices, the terms modal). Kept separate from
   site.css so that file stays an untouched, byte-for-byte port. */

dialog.terms-modal {
  border: none;
  border-radius: 18px;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 40px);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}

dialog.terms-modal::backdrop {
  background: rgba(10, 8, 20, .55);
}

.terms-modal__inner {
  padding: 28px;
  max-height: 78vh;
  overflow-y: auto;
  position: relative;
}

.terms-modal__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.terms-modal__content {
  margin-top: 16px;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.product-card {
  display: grid;
  gap: 28px;
  max-width: 640px;
  margin-inline: auto;
}

.product-card__image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
  font-size: 1.6rem;
}

.product-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: .92rem;
}

.invoice-table th,
.invoice-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: start;
}

.invoice-table tfoot td {
  font-weight: 700;
}
