.ecommerce-form h2 {
  font-size: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ecommerce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .7fr);
  gap: 26px;
  align-items: start;
}

.table-card {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(13, 19, 32, .06);
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.inline-form {
  display: inline-flex;
}

.inline-form button {
  font: inherit;
}

.nav-logout {
  display: inline-flex;
  margin: 0;
}

.nav-logout button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.customer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.customer-tabs a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font-weight: 800;
}

.customer-section {
  margin-top: 28px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.summary-strip span,
.ticket-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.customer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ticket-thread {
  display: grid;
  gap: 12px;
}

.ticket-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.ticket-message.is-admin {
  border-color: rgba(217, 154, 18, .45);
  background: #fff8e8;
}

@media (max-width: 900px) {
  .form-row,
  .ecommerce-grid,
  .checkout-layout,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .inline-form {
    display: block;
    width: 100%;
  }

  .inline-form .btn {
    width: 100%;
  }
}
