/* sites/store — the BD TECH store: prices, and the page a direct purchase opens on.
   The policy-page styles are the same as /privacy-policy/policy.css on the main
   site, copied here because a product site is self-contained. */

/* Privacy policy pages — supplements /style.css */

.pp-wrap { max-inline-size: 720px; margin-inline: auto; }

.pp-updated {
  font-size: 0.88rem; color: var(--ink-soft);
  margin-block-start: 4px; margin-block-end: 0;
}

.pp-tldr {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 18px 22px;
  margin-block: 24px 32px;
}
.pp-tldr p { margin: 0; font-size: 0.95rem; }

.pp-body h2 {
  font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em;
  border-block-end: 1px solid var(--line); padding-block-end: 6px;
  margin-block: 32px 10px;
}
.pp-body h3 { font-size: 0.97rem; font-weight: 600; margin-block: 20px 6px; }
.pp-body p { font-size: 0.95rem; color: var(--ink-soft); margin-block-end: 12px; }
.pp-body strong { color: var(--ink); }
.pp-body ul { padding-inline-start: 1.25em; margin-block-end: 12px; }
.pp-body li { font-size: 0.95rem; color: var(--ink-soft); margin-block: 4px; }
.pp-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.pp-body a:hover { opacity: 0.7; }

.pp-contact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); padding: 18px 22px;
  margin-block-start: 32px;
}
.pp-contact h2 {
  font-size: 1rem !important; border: 0 !important;
  margin: 0 0 6px !important; padding: 0 !important;
}

/* RTL section (siddurPureIntention) */
.pp-rtl { direction: rtl; text-align: right; }
.pp-lang-switcher {
  font-size: 0.88rem; color: var(--ink-soft);
  margin-block-end: 32px; display: flex; gap: 12px;
}
.pp-lang-switcher a { color: var(--ink); }
.pp-divider { border: 0; border-block-start: 1px solid var(--line); margin-block: 48px; }


.pp-body .price-list { list-style: none; padding: 0; margin-block: 8px 12px; }

.pp-body .price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 20px;
  align-items: baseline;
  padding-block: 14px;
  margin-block: 0;
  border-block-end: 1px solid var(--line);
}

.price-row h3 { font-size: 0.97rem; font-weight: 600; margin: 0; color: var(--ink); }
.price-row p { grid-column: 1; margin-block: 4px 0; }

.price-amount {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.checkout-status {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 18px;
  margin-block: 20px;
  font-size: 0.95rem;
  color: var(--ink);
}
.checkout-status[hidden] { display: none; }

/* Two views in one page. `html.pay` is set in <head> when the address names a
   product, a price or a transaction: a buyer who followed a Buy link sees the
   till for that one product and never the list of every other one. */
#pay-view { display: none; }
.pay #pay-view { display: block; }
.pay #list-view { display: none; }

/* Buy link on a price row */
.price-row .price-buy {
  grid-column: 2; grid-row: 2; justify-self: end; align-self: start;
  margin-block-start: 4px;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 6px 12px; min-block-size: 32px;
  display: inline-flex; align-items: center; gap: 6px;
}
.price-row .price-buy:hover { border-color: var(--ink); opacity: 1; }

/* ── The till ─────────────────────────────────────────────────────────────── */
.till {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-block: 24px 16px;
  max-inline-size: 560px;
}
.till-heading {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 16px;
}
.till-item {
  display: grid; grid-template-columns: auto 1fr auto;
  column-gap: 16px; align-items: start;
  padding-block-end: 20px; border-block-end: 1px solid var(--line);
}
.till-item[hidden], .till-lines[hidden] { display: none; }
.till-icon { inline-size: 56px; block-size: 56px; border-radius: var(--radius-icon); }
.till-what h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; color: var(--ink); }
.till-what p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.till .price-amount { grid-column: auto; grid-row: auto; font-size: 1rem; }

.till-lines { margin: 16px 0 0; }
.till-lines > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 6px; font-size: 0.9rem;
}
.till-lines dt { color: var(--ink-soft); }
.till-lines dd { margin: 0; color: var(--ink); text-align: end; }
.till-lines .till-total {
  margin-block-start: 10px; padding-block-start: 14px;
  border-block-start: 1px solid var(--line);
  font-size: 1.05rem; font-weight: 600;
}
.till-lines .till-total dt { color: var(--ink); }
.till-lines .till-total dd { font-family: var(--font-mono); }
.till-tax, .till-secure { font-size: 0.82rem; color: var(--ink-soft); margin: 6px 0 0; }
.till .checkout-status { margin-block: 16px 0; background: var(--bg); }
.till-actions { margin: 20px 0 0; }
.till-actions .btn { inline-size: 100%; border: 0; cursor: pointer; font-family: inherit; }
.till-actions .btn[hidden] { display: none; }

.pay-note { font-size: 0.9rem; color: var(--ink-soft); }
.pay-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 480px) {
  .till { padding: 18px; }
  .till-item { grid-template-columns: auto 1fr; row-gap: 10px; }
  .till .price-amount { grid-column: 2; }
}
