@import url("/brand.css");
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-400-normal.woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-700-normal.woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-800-normal.woff2");
  font-weight: 800;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.65 Inter,
    Arial,
    sans-serif;
}
header,
main {
  max-width: 850px;
  margin: auto;
  padding: 24px;
}
header img {
  width: 200px;
  height: auto;
}
h1,
h2,
h3 {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  line-height: 1.2;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1px;
}
a {
  color: var(--violet);
}
button {
  font:
    700 16px/1.4 Inter,
    Arial,
    sans-serif;
  cursor: pointer;
  border: 1px solid var(--violet);
  background: var(--violet);
  color: white;
  padding: 14px 20px;
  min-height: 48px;
  border-radius: 8px;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:hover:not(:disabled) {
  background: #494498;
}
input,
select,
textarea {
  font: inherit;
  padding: 12px;
  border: 1px solid #9d9cae;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  width: 100%;
  min-height: 48px;
}
label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
}
form,
section {
  margin: 26px 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
form p {
  min-height: 20px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}
.search {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.listing {
  display: block;
  text-align: left;
  width: 100%;
  margin: 12px 0;
  background: var(--paper);
  color: var(--ink);
}
.listing:hover:not(:disabled) {
  background: var(--soft);
}
.listing[aria-pressed="true"] {
  border: 2px solid var(--violet);
  background: var(--soft);
}
.listing span {
  display: block;
  font-weight: 400;
  font-size: 14px;
}
.fine {
  font-size: 14px;
  color: var(--muted);
}
.links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 28px 0;
}
.error {
  color: var(--error);
}
table {
  width: 100%;
  border-collapse: collapse;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.orders {
  overflow: auto;
}
.stockgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
summary {
  cursor: pointer;
  padding: 14px;
  font-weight: 700;
}
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 16px 0;
  background: white;
}
.orderbody {
  padding: 20px;
}
.orderbody label {
  margin-top: 15px;
}
textarea {
  resize: none;
  min-height: 120px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.row input {
  width: 24px;
  min-height: 24px;
  height: 24px;
}
.row label {
  font-weight: 400;
  margin: 0;
}
.linkbutton {
  display: inline-block;
  color: var(--violet);
  padding: 12px 0;
}
.legal {
  white-space: pre-line;
}
#status {
  min-height: 26px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 550px) {
  header,
  main {
    padding: 18px;
  }
  .stockgrid {
    grid-template-columns: 1fr;
  }
  form,
  section {
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
.maps-attribution {
  height: 18px;
  width: auto;
  display: block;
  margin: 20px 10px 10px;
}
article p {
  overflow-wrap: anywhere;
}
footer {
  max-width: 850px;
  margin: 20px auto;
  padding: 24px;
}

/* Admin table owns horizontal scrolling; forms retain natural document height. */
.admin-page header,
.admin-page main {
  max-width: 1240px;
}
.order-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.order-filters .search-filter {
  grid-column: span 2;
}
.order-filters .search {
  margin: 0;
}
.order-filters .search input {
  min-width: 0;
}
.table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  min-height: 190px;
}
.table-scroll table {
  border-collapse: collapse;
  min-width: 1040px;
  width: 100%;
  text-align: left;
  font-size: 14px;
}
.table-scroll th,
.table-scroll td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-scroll th {
  background: var(--soft);
  color: var(--navy);
  font-weight: 700;
}
.table-scroll small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  max-width: 210px;
  overflow-wrap: anywhere;
}
.table-scroll tr:hover {
  background: var(--paper);
}
button.secondary {
  background: white;
  color: var(--violet);
}
button.secondary:hover:not(:disabled) {
  background: var(--soft);
}
button:disabled {
  cursor: not-allowed;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.orderbody {
  overflow-wrap: anywhere;
}
.links {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .order-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  .order-filters {
    grid-template-columns: 1fr;
  }
  .order-filters .search-filter {
    grid-column: auto;
  }
  .admin-page header,
  .admin-page main {
    padding: 16px;
  }
}
