/* ---------------------------------------------------------------------------
   Baby Registry — styles

   Typography is self-hosted (see fonts/) so no visitor data is sent to a
   third-party font CDN and the site still renders offline.
   Fraunces carries the headings; Nunito Sans handles everything else.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("../fonts/nunito-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg-top: #fdf7f2;
  --bg-bottom: #f6e9df;
  --surface: #fffdfc;
  --text: #2f2a27;
  --muted: #6d6159;
  --primary: #c2607a;
  --primary-dark: #a44a62;
  --primary-soft: #fbeef1;
  --accent: #7fa98a;
  --accent-soft: #eaf2ec;
  --available: #2f7350;
  --partial: #9a6420;
  --claimed: #a2452a;
  --border: #ecdcd0;
  --border-strong: #ddc7b8;

  --shadow-sm: 0 1px 2px rgba(79, 54, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(79, 54, 40, 0.08);
  --shadow-lg: 0 18px 48px rgba(79, 54, 40, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --page-max: 1060px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Class rules below set `display` on elements that are also toggled via the
   `hidden` attribute (.lock-screen, .claim-list, .checkbox-inline …). A class
   rule beats the user-agent `[hidden] { display: none }`, which would leave
   those elements laid out — and in the lock screen's case, covering the page
   and swallowing every click. Keep this rule above them. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  /* Solid colour underneath so a long page never shows an unpainted band, and
     no `background-attachment: fixed` — it janks badly on iOS Safari. */
  background-color: var(--bg-bottom);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-repeat: no-repeat;
  min-height: 100vh;
  /* Nothing in this layout is meant to scroll sideways. */
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Long product names, pasted URLs and unbroken strings must never widen a
   container — this is what previously blew the cards open. */
h1,
h2,
h3,
p,
li,
a,
span,
td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- kumai watermark -------------------------------------------------------
   Subtle attribution, aligned to the left edge of the boxed page content —
   same top offset and containing block as .header-admin-controls on the
   right (both sit in .page-header, which is position: relative). */

.kumai-watermark {
  position: absolute;
  top: 0.85rem;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.kumai-watermark:hover {
  opacity: 1;
}

.kumai-watermark-icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.7;
}

.kumai-watermark a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Lock screen ---------------------------------------------------------- */

.lock-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  background: linear-gradient(160deg, #fdf7f2 0%, #f1ddd0 100%);
  z-index: 50;
}

.lock-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 6vw, 2.5rem);
  width: min(400px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lock-mark,
.header-mark {
  font-size: 2.25rem;
  line-height: 1;
}

.lock-card h1 {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 1.9rem);
}

.lock-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lock-card input {
  font: inherit;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.2em;
  padding: 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  width: 100%;
}

.btn-block {
  width: 100%;
}

/* --- Header --------------------------------------------------------------- */

.page-header {
  position: relative;
  text-align: center;
  padding: clamp(1.75rem, 6vw, 3rem) var(--gutter) 0.5rem;
  max-width: var(--page-max);
  margin: 0 auto;
}

.header-admin-controls {
  position: absolute;
  top: 0.85rem;
  right: var(--gutter);
  left: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.badge-sm {
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
}

.btn-link {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0.3rem 0.1rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.page-header h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.85rem, 7vw, 2.6rem);
}

.subtitle {
  margin: 0 auto;
  color: var(--muted);
  max-width: 34ch;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
}

.progress-wrap {
  max-width: 420px;
  margin: 1.4rem auto 0;
}

.progress-track {
  height: 10px;
  background: #eeddd1;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(79, 54, 40, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #6d9c79);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.progress-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- Toolbar -------------------------------------------------------------- */

.toolbar {
  max-width: var(--page-max);
  margin: 1.5rem auto 0;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toolbar-filters,
.toolbar-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* Lets these flex containers shrink below their content width instead of
     forcing the page to scroll sideways. */
  min-width: 0;
}

.search-input,
.select-input {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  min-width: 0;
  max-width: 100%;
}

.search-input {
  flex: 1 1 15rem;
  max-width: 22rem;
}

.select-input {
  flex: 0 1 12rem;
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 auto;
  min-width: 0;
}

.price-input {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  width: 6.5rem;
  min-width: 0;
}

.price-filter-sep {
  color: var(--muted);
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  min-width: 0;
}

.checkbox-inline input {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
  margin: 0;
}

.badge {
  background: var(--accent-soft);
  color: #2c5c3c;
  border: 1px solid #cfe0d4;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 1.75rem var(--gutter) 3rem;
}

.empty-state,
.error-state {
  text-align: center;
  color: var(--muted);
  margin-top: 2.5rem;
}

.error-state {
  color: var(--claimed);
  font-weight: 600;
}

/* --- Categories & cards --------------------------------------------------- */

.category-section {
  margin-bottom: 2.25rem;
}

.category-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.products {
  display: grid;
  /* min(100%, …) keeps a single column from exceeding a narrow viewport. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1.15rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-favorite {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(79, 54, 40, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 252, 0.85);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.card-favorite:hover {
  background: var(--surface);
  transform: scale(1.08);
}

.card-favorite.is-favorite {
  color: var(--primary);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.detail-title-row h3 {
  margin: 0;
}

.favorite-btn {
  flex: none;
  border: none;
  background: transparent;
  padding: 0.2rem;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.favorite-btn:hover {
  color: var(--primary);
}

.favorite-btn.is-favorite {
  color: var(--primary);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card.is-archived {
  opacity: 0.62;
}

.card-clickable {
  cursor: pointer;
}

.card-image-wrap {
  aspect-ratio: 4 / 3;
  background: #f8f1ea;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-body {
  padding: 1rem 1.15rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.card-badges:empty {
  display: none;
}

.card-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.chip-must {
  background: var(--primary-soft);
  color: #93304a;
}

.chip-nice {
  background: var(--accent-soft);
  color: #2c5c3c;
}

.chip-archived {
  background: #eee6e0;
  color: #5f5249;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  min-width: 0;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}

.card-title a:hover,
.card-title a:focus-visible {
  background-size: 100% 1.5px;
}

.card-price {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
}

/* Fetched shop descriptions can be long — show a readable excerpt rather than
   letting one card tower over its neighbours. Full text stays in the title
   attribute for anyone who wants it. */
.card-notes {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.card-status {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.card-status.available {
  color: var(--available);
}

.card-status.claimed {
  color: var(--claimed);
}

.card-status.partial {
  color: var(--partial);
}

.mini-track {
  height: 6px;
  background: #eeddd1;
  border-radius: 999px;
  overflow: hidden;
}

.mini-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.claim-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  min-width: 0;
}

.claim-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #faf3ed;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.55rem;
  min-width: 0;
}

.claim-who {
  color: var(--muted);
  min-width: 0;
  flex: 1 1 8rem;
}

.claim-row-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-tiny {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  background: #fff;
  color: var(--text);
  white-space: nowrap;
}

.btn-tiny:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.thanked-mark {
  color: var(--available);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0 1.15rem 1.15rem;
  min-width: 0;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.55rem 1rem;
  cursor: pointer;
  /* Comfortable tap target on touch devices. */
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* A quieter, smaller variant for secondary actions that shouldn't compete
   with the primary action next to them — e.g. "Go to Webshop" beside
   "Claim this". */
.btn-sm {
  font-size: 0.78rem;
  padding: 0.35rem 0.7rem;
  min-height: 2.1rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.btn-danger {
  background: #fceae5;
  color: #8f2d16;
  border-color: #f2cfc5;
}

.btn-danger:hover:not(:disabled) {
  background: #f8d6cd;
}

/* --- Dialogs -------------------------------------------------------------- */

dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  width: min(430px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  color: var(--text);
  background: var(--surface);
  overflow: hidden;
}

dialog.dialog-wide {
  width: min(560px, calc(100vw - 2rem));
}

dialog::backdrop {
  background: rgba(58, 38, 28, 0.45);
  backdrop-filter: blur(2px);
}

.dialog-form {
  padding: clamp(1.15rem, 4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  min-width: 0;
}

.dialog-form h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* One consistent field shape. Previously `.dialog-form > label` also caught
   .checkbox-inline and stacked the box above centred text, and turned the
   required asterisk into its own flex line. */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.field-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  min-width: 0;
}

.field-row .field {
  flex: 1 1 7.5rem;
}

.dialog-form input[type="text"],
.dialog-form input[type="password"],
.dialog-form input[type="url"],
.dialog-form input[type="number"],
.dialog-form select,
.dialog-form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: #fff;
}

.dialog-form textarea {
  resize: vertical;
  min-height: 3.5rem;
}

.dialog-form input:focus,
.dialog-form select:focus,
.dialog-form textarea:focus {
  border-color: var(--primary);
}

/* Exact price / price range toggle in the add/edit product form — a small
   segmented control, same bordered-input look as the rest of the form. */
.price-mode-toggle {
  display: flex;
  width: fit-content;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.price-mode-btn {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
  border: none;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.price-mode-btn + .price-mode-btn {
  border-left: 1px solid var(--border-strong);
}

.price-mode-btn:hover:not(.is-active) {
  background: var(--primary-soft);
}

.price-mode-btn.is-active {
  background: var(--primary);
  color: #fff;
}

.price-range-fields {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.price-range-fields input {
  min-width: 0;
  flex: 1 1 0;
}

.price-range-sep {
  color: var(--muted);
  flex: none;
}

.field-with-button {
  display: flex;
  gap: 0.5rem;
  min-width: 0;
}

.field-with-button input {
  flex: 1 1 auto;
  min-width: 0;
}

.field-with-button .btn {
  flex: none;
  padding-inline: 0.75rem;
}

.field-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  min-width: 0;
}

.field-hint code {
  background: #f4eae2;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.required-mark {
  color: var(--primary);
}

.detail-image-wrap {
  border-radius: var(--radius-md);
}

.detail-notes {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.claim-quantity-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.confirm-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.image-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.image-preview img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: block;
  background: #f8f1ea;
}

.dialog-error {
  color: var(--claimed);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 700;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

/* --- Toasts --------------------------------------------------------------- */

.toast-region {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 100;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  background: #3a2f29;
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: toast-in 0.2s ease;
  overflow-wrap: anywhere;
}

.toast.toast-error {
  background: #8f2d16;
}

.toast.toast-success {
  background: #2f6640;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 var(--gutter) 2.5rem;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 640px) {
  .toolbar-filters,
  .toolbar-actions {
    justify-content: stretch;
  }

  /* Full-width controls read better than a cramped row on a phone. */
  .search-input,
  .select-input {
    flex: 1 1 100%;
    max-width: none;
  }

  .price-filter {
    flex: 1 1 100%;
  }

  .price-input {
    flex: 1 1 0;
    width: auto;
  }

  .checkbox-inline {
    flex: 1 1 100%;
    padding: 0.15rem 0;
  }

  .toolbar-actions .btn {
    flex: 1 1 auto;
  }

  .card-actions .btn {
    flex: 1 1 auto;
  }

  .dialog-actions .btn {
    flex: 1 1 auto;
  }

  .claim-row {
    align-items: flex-start;
  }
}

@media (min-width: 641px) {
  .card-actions .btn {
    flex: 0 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card:hover {
    transform: none;
  }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .toolbar,
  .card-actions,
  .page-footer,
  .toast-region,
  .lock-screen,
  .progress-wrap {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .products {
    display: block;
  }

  .card {
    break-inside: avoid;
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
    margin-bottom: 0.6rem;
  }

  .card-image-wrap {
    display: none;
  }

  .card-notes {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
  }

  .card-title a::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
    font-weight: normal;
    overflow-wrap: anywhere;
  }
}
