/* brain_zero checkout dialog + legal links. Uses the tokens from styles.css. */
.product-details-links { margin-block: 9px; color: var(--muted); font-size: 12px; }
.purchase-options .buy img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 3px; margin-bottom: 5px; }
.product-details-links a, .product-header > a:last-child, .product-page a {
  color: var(--green); text-decoration: underline; text-underline-offset: 3px;
}
.product-header { border-bottom: 1px solid var(--line); }
.product-page { padding-block: clamp(24px, 6vw, 80px); gap: clamp(22px, 5vw, 72px); }
.product-image { border-radius: 12px; overflow: hidden; background: #e8ece2; }
.product-image img { width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.product-page h1 { margin-block: 12px; }
.product-region, .product-policies { color: var(--muted); font-size: 13px; }
.product-description { font-size: 18px; }
.product-offer { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.product-offer p { margin: 3px 0; }
.product-price { font-size: 30px; font-weight: 700; }
.product-buy { display: inline-block; margin-top: 14px; padding: 12px 28px; background: var(--green); color: var(--paper); font-size: 16px; }
.product-buy:hover { background: #2c5744; }
.product-buy:disabled { opacity: .55; cursor: default; }
@media (max-width: 760px) {
  main.product-page { display: flex; flex-direction: column; align-items: stretch; }
  .product-image img { max-height: 330px; }
}
.shop-preferences { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-bottom: .65rem; }
.price-market { display: flex; align-items: center; gap: .6em; color: var(--ink); font-size: .85rem; }
.price-market select { font: inherit; color: inherit; padding: .25rem .4rem; }
.order-dialog h2 { font-size: 24px; margin-bottom: 8px; }
.order-dialog .order-desc { margin: 0 0 20px; }
.order-dialog form { margin: 0; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.order-row label { font-size: 12px; font-weight: 600; color: var(--ink); }
.order-row select, .order-row input { font: inherit; font-size: 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 7px 9px; }
.order-row select { max-width: 60%; }
.order-row select:focus-visible, .order-row input:focus-visible, .qty-btn:focus-visible { outline: 3px solid #6ba47c; outline-offset: 2px; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty input { width: 52px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--green); font-size: 16px; line-height: 1; }
.qty-btn:hover { background: #e6eee3; }
.order-dialog .order-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.order-total strong { font-size: 20px; color: var(--green); }
.order-dialog .order-vat { margin: 0 0 14px; font-size: 11px; }
.order-dialog .order-legal { margin: 0 0 16px; font-size: 11px; line-height: 1.7; }
.order-legal a, .order-closed a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.order-dialog .order-error { margin: 0 0 14px; padding: 8px 10px; border-radius: 5px; background: #f8e3dd; color: #7a2a17; font-size: 12px; }
.order-dialog .dialog-action:disabled { opacity: .6; cursor: progress; }
.order-closed p { margin-bottom: 18px; }
[hidden] { display: none !important; }
footer .powered-by { margin-bottom: 8px; }
footer .powered-by a { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--ink); }
footer .powered-by a:hover { color: var(--green); }
footer .powered-by img { width: 18px; height: 18px; border-radius: 4px; }
footer .legal-links { margin-bottom: 6px; font-size: 10px; }
footer .legal-links a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 480px) {
  .order-row { flex-wrap: wrap; }
  .order-row select { max-width: 100%; width: 100%; }
}
