.customer-detail-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.customer-edit-feedback {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(30, 58, 95, 0.16);
  border-radius: 12px;
  background: rgba(30, 58, 95, 0.06);
  color: var(--secondary);
}

.customer-edit-feedback p {
  margin: 0;
  overflow-wrap: anywhere;
}

.customer-edit-feedback .btn {
  flex: 0 0 auto;
}

.customer-edit-panel {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f7f9fc);
  box-shadow: var(--shadow);
}

.customer-edit-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.customer-edit-heading h4 {
  margin-bottom: 5px;
  color: var(--secondary);
  font-size: 18px;
}

.customer-edit-heading p,
.customer-edit-help {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.customer-edit-heading > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(227, 25, 55, 0.08);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
}

.customer-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.customer-edit-grid .form-group {
  min-width: 0;
  margin-bottom: 0;
}

.customer-edit-tags {
  grid-column: 1 / -1;
}

.customer-edit-help {
  margin-top: 7px;
}

.customer-edit-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

#customerEditDisplayName:focus-visible,
#customerEditBirthday:focus-visible,
#customerEditPreferredLocale:focus-visible,
#customerEditTags:focus-visible,
#customerEditButton:focus-visible,
#customerEditCancel:focus-visible,
#customerEditSubmit:focus-visible {
  outline: 3px solid rgba(227, 25, 55, 0.22);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .customer-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .customer-edit-name,
  .customer-edit-tags {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .customer-detail-toolbar-actions,
  .customer-edit-heading,
  .customer-edit-feedback {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-detail-toolbar-actions .btn,
  .customer-edit-feedback .btn {
    width: 100%;
  }

  .customer-edit-panel {
    padding: 18px 16px;
  }

  .customer-edit-grid {
    grid-template-columns: 1fr;
  }

  .customer-edit-name,
  .customer-edit-tags {
    grid-column: auto;
  }

  .customer-edit-actions {
    flex-direction: column-reverse;
  }

  .customer-edit-actions .btn {
    width: 100%;
  }
}
