.hero h1 {
  text-align: center;
}
.hero p {
  margin-bottom: 2em;
}

[hidden] {
  display: none !important;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-nav-brand {
  font-weight: bold;
  text-decoration: none;
}

@keyframes flash-dismiss {
  0%,
  75% {
    opacity: 1;
    max-height: 10em;
  }
  100% {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }
}

.flash {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 280px;
  max-width: 400px;
  z-index: 50;
  animation: flash-dismiss 6s ease forwards;
}

.flash-info {
  background: #e0f0ff;
  border: 1px solid #90c0f0;
  color: #1a4a7a;
}

.flash-error {
  background: #fde8e8;
  border: 1px solid #f0a0a0;
  color: #7a1a1a;
}

.flash button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
}

.flash button:hover {
  opacity: 1;
}

.list-item-checked td {
  opacity: 0.4;
  text-decoration: line-through;
}

.sort-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

.field-error {
  color: var(--color-error, #c00);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.header-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.table-actions {
  white-space: nowrap;
}

.table-actions-inner {
  display: flex;
  gap: 1rem;
}

.row-clickable {
  cursor: pointer;
}

.icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
}

.spinner {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  vertical-align: middle;
  margin-left: 0.25rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.cart-table th:first-child,
.cart-table td:first-child {
  width: 2rem;
  padding-right: 0;
}

.cart-table th:last-child,
.cart-table td:last-child {
  width: 2rem;
  padding-left: 0;
}

.cart-table td:nth-child(2) {
  min-width: 10rem;
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cart-totals {
  margin: 0.25rem 0 0;
  color: var(--color-muted, #666);
}

.cart-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cart-action {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius, 4px);
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.cart-action:hover {
  background: var(--color-bg-alt, #f5f5f5);
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted, #999);
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.remove-btn:hover {
  color: var(--color-error, #c00);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: inherit;
}

td.price {
  white-space: nowrap;
}

.qty-input {
  width: 4rem;
}
.subtotal-label {
  text-align: right;
}
.subtotal-amount {
  white-space: nowrap;
}
.import-action {
  margin-top: 1rem;
}

.auth-form {
  max-width: 28rem;
  margin: 4rem auto;
}
.resend-hint {
  margin-top: 2rem;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none;
  }
  table {
    font-size: 0.85rem;
  }
}
