/* One persistent purchase action, laid out for touch screens first. */
:root { --dock-clearance: calc(88px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(var(--dock-clearance) + 20px); }
body { padding-bottom: var(--dock-clearance); }
.site-footer { padding-bottom: 32px; }
.purchase-dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: block;
  width: 100%;
  padding: 12px max(20px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 -5px 26px #291e2f14;
}
.purchase-dock-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dock-info { min-width: 0; flex: 1; }
.dock-label { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dock-info strong { display: block; margin-top: 1px; color: var(--plum); font-size: 23px; line-height: 1.25; letter-spacing: -.055em; white-space: nowrap; }
.dock-info strong small { display: none; }
.purchase-dock .button { flex: 0 0 auto; min-height: 50px; max-width: none; padding: 13px 18px; gap: 12px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.purchase-dock .button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:is(a, button, summary, [tabindex]) { scroll-margin-bottom: calc(var(--dock-clearance) + 16px); }
@media (min-width: 641px) {
  :root { --dock-clearance: 124px; }
  .purchase-dock { inset: auto 28px 22px auto; width: min(440px, calc(100% - 56px)); padding: 15px 18px; border-width: 1px; border-radius: 14px; box-shadow: 0 8px 30px #291e2f24; }
  .purchase-dock-inner { gap: 24px; }
  .dock-label { font-size: 11px; }
  .dock-info strong { font-size: 25px; }
  .purchase-dock .button { padding: 14px 22px; min-height: 52px; font-size: 14px; gap: 17px; }
}
@media (min-width: 1050px) {
  .purchase-dock { width: 530px; }
  .dock-info strong small { display: inline; font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
}
@media (max-width: 359px) {
  .purchase-dock { padding-left: 16px; padding-right: 16px; }
  .purchase-dock-inner { gap: 10px; }
  .dock-label { font-size: 9px; }
  .dock-info strong { font-size: 21px; }
  .purchase-dock .button { min-height: 48px; padding: 12px 14px; font-size: 12px; gap: 10px; }
  .purchase-dock .button svg { width: 15px; height: 15px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --dock-clearance: 86px; }
  .purchase-dock { padding-top: 9px; padding-bottom: max(9px, env(safe-area-inset-bottom, 0px)); }
  .purchase-dock .button { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}
@media print { body { padding-bottom: 0; } .purchase-dock { display: none; } }
