.customer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin-block: 2rem;
  padding-block: 1rem;
  border-block: 1px solid var(--color-border);
}

.customer-nav [aria-current="page"] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.customer-intro {
  max-width: 56rem;
  margin-bottom: 2rem;
}

.customer-feedback,
.customer-import,
.customer-notice {
  margin-block: 1.5rem;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--color-primary);
  background: rgb(87 113 95 / 6%);
  overflow-wrap: anywhere;
}

.customer-feedback[hidden],
.customer-import[hidden] {
  display: none;
}

.selection-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.selection-control {
  margin: 0;
}

.selection-button {
  min-height: 2.75rem;
  padding: 0.3rem 0;
  border: 0;
  color: var(--color-text);
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.selection-button[aria-pressed="true"] {
  color: var(--color-primary);
  font-weight: 700;
}

.selection-button:disabled {
  opacity: 0.55;
}

.selection-toolbar,
.address-card__heading,
.address-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.selection-toolbar {
  margin-block: 1rem;
}

.selection-unavailable,
.address-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.selection-unavailable h2,
.address-card h2 {
  font-size: 1.5rem;
}

.comparison-scroll {
  max-width: 100%;
  margin-bottom: 3rem;
  overflow-x: auto;
}

.comparison-table {
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.comparison-table caption {
  padding-block: 1rem;
  text-align: start;
}

.comparison-table th,
.comparison-table td {
  min-width: 15rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.comparison-table th {
  width: 15rem;
  font-weight: 500;
}

.comparison-table th:first-child {
  width: 11rem;
  min-width: 11rem;
}

.comparison-table img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  object-fit: cover;
}

.comparison-table .cart-add {
  flex-wrap: wrap;
}

.address-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.address-card__heading {
  margin-bottom: 1rem;
}

.address-card__heading h2 {
  margin: 0;
}

.address-badge {
  padding: 0.25rem 0.6rem;
  color: var(--color-primary);
  background: rgb(87 113 95 / 6%);
  font-size: 0.85rem;
}

.address-actions {
  justify-content: flex-start;
}

.address-actions form {
  margin: 0;
}

.customer-editor {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.checkout-address select {
  margin-block: 0.5rem 1rem;
}

.checkout-address .shop-note {
  margin-top: 1rem;
}

.repeat-lines {
  display: grid;
  gap: 1.5rem;
  margin-block: 2rem;
}

.repeat-line {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.repeat-line img {
  width: min(100%, 15rem);
  height: auto;
}

.repeat-line h2 {
  font-size: 1.5rem;
}

.repeat-line .form-control {
  max-width: 8rem;
  margin-top: 0.5rem;
}

@media (width >= 576px) {
  .repeat-line {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}

@media (width >= 992px) {
  .address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
