.receipt-page .receipt-main {
  padding: 2rem 0 3rem;
}

.receipt-share-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.receipt-share-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.receipt-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.receipt-share-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.receipt-cta {
  margin-top: 2rem;
  text-align: center;
}

.receipt-cta h1 {
  margin-top: 0;
}

.receipt-cta p {
  color: var(--muted);
}

.receipt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.72);
}

.receipt-modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
}

.receipt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.receipt-modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.receipt-modal-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.receipt-modal-close:hover {
  color: var(--text);
}

.receipt-modal .receipt-share-image {
  margin-bottom: 1rem;
}

.receipt-inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.receipt-inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .receipt-share-actions .btn {
    flex: 1 1 calc(50% - 0.375rem);
  }
}
