/* The website's shop: Add to cart, the cart, checkout and thank you (apps/ecommerce/checkout.py). */

.buy { max-width: 520px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.buy-price strong { font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-price span { color: var(--ink-soft); font-weight: 500; }
.buy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.buy-row select, .shop select, .shop-field input {
  font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); }
.buy-row button, .shop button, .shop .button {
  font: inherit; font-weight: 500; font-size: 1.05rem; padding: 12px 20px; border: 0; border-radius: 10px;
  background: var(--green); color: var(--on-green); cursor: pointer; text-decoration: none; display: inline-block; }
.buy-row button:hover, .shop button:hover, .shop .button:hover { background: var(--green-hover); }
.buy-note { color: var(--ink-soft); font-size: 0.92rem; margin: 12px 0 0; }

.shop { padding: 40px 0 64px; }
.shop h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.muted { color: var(--ink-soft); }
.shop-alert { background: color-mix(in srgb, var(--error) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
  border-radius: 10px; padding: 12px 14px; }
.shop-lines { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.shop-lines th, .shop-lines td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop-lines .num { text-align: right; font-variant-numeric: tabular-nums; }
.shop-lines thead th { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.shop-lines select { padding: 8px 10px; font-size: 1rem; }
.shop-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.button.link, button.link { background: none; color: var(--green-text); padding: 0; }

.checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 24px; }
.checkout-summary p { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; }
.shop-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.shop-form legend { font-weight: 500; font-size: 1.25rem; margin-bottom: 12px; }
.shop-field { margin-bottom: 12px; }
.shop-field label { display: block; font-weight: 500; margin-bottom: 4px; }
.shop-field input, .shop-field select { width: 100%; box-sizing: border-box; }
.shop-field .field-error { color: var(--error); font-weight: 500; margin: 4px 0 0; font-size: .95rem; }
@media (min-width: 640px) {
  .shop-form fieldset:first-of-type { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
  .shop-field-email, .shop-field-name, .shop-field-street, .shop-field-street2, .shop-form fieldset > p { grid-column: 1 / -1; }
}
.rates .rate { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; background: var(--surface); }
.rates .rate:has(input:checked) { border-color: var(--green); }
.rates .rate strong { margin-left: auto; }
