@import '/assets/app/shared/styles/site/index.d82e693acc16c33.css';

/* A book order's private page on jmurphy.studio, and the library beside it
   (app/pages/store-library imports this sheet): an opening, then sections of hairline rows for
   files, the shipping address and the order summary. */

.store-page {
  max-width: 40rem;
}

.store-page .site-intro {
  margin-bottom: var(--stack-lg);
}

.store-page .site-intro h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
}

.store-section {
  margin-top: var(--section-space);
}

.store-section > h2 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-h3);
}

.store-section > p {
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
}

.store-page .notice + .store-section,
.store-page .site-intro + .store-section {
  margin-top: var(--stack-lg);
}

/* A file per row: its format and size on the left, its download button on the right. */
.store-files {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-soft);
  list-style: none;
}

.store-files > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--rule-soft);
}

.store-file-name {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.store-file-format {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  line-height: var(--leading-heading);
}

.store-files .button {
  flex: none;
}

.store-address {
  margin: 0;
  color: var(--ink);
  font-style: normal;
  line-height: var(--leading-body);
}

.store-address span {
  display: block;
}

.store-address + .meta {
  margin-top: var(--space-3);
}

/* The order summary: each line's name and amount, then shipping, discount and the total. */
.store-summary {
  margin: 0;
  border-top: 1px solid var(--rule-soft);
}

.store-summary > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--rule-soft);
}

.store-summary dt,
.store-summary dd {
  margin: 0;
}

.store-summary dt {
  font-weight: var(--weight-body);
}

.store-summary dd {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.store-summary .is-total {
  border-bottom: 0;
  color: var(--ink);
}

.store-summary .is-total :is(dt, dd) {
  font-weight: var(--weight-strong);
}

.store-page .notice {
  margin-top: var(--section-space);
}

.store-page .site-intro + .notice {
  margin-top: 0;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (max-width: 22rem) {
  .store-files > li {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-3);
  }
}
