html {
  /* 16px base everywhere: mobile needs this at least as large as desktop for
     readability, and inputs below 16px trigger iOS Safari's zoom-on-focus. */
  font-size: 16px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Shopping list: quick-add stays the obvious primary action, and every
   tappable control meets the ~44px minimum touch target size. */
.shopping-list-quick-add input {
  min-height: 3rem;
  font-size: 1.1rem;
}

.shopping-list-quick-add button {
  min-height: 3rem;
  font-size: 1.1rem;
}

.shopping-list-item {
  gap: 0.5rem;
}

.shopping-list-item-actions {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.shopping-list-item-actions .btn {
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.5rem 0.9rem;
}

@media (max-width: 575.98px) {
  .shopping-list-item {
    flex-direction: column;
    align-items: stretch !important;
  }
}