.customer-deliverycontent {
  margin-top: 0;
}

.customer-content h1 {
  margin-bottom: 2rem;
}

.delivery-address-default-option {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: fit-content;
  cursor: pointer;
}

.delivery-form
input[type="checkbox"][data-default-shipping] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;

  display: inline-block;

  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;

  flex: 0 0 18px;

  margin: 0;
  padding: 0 !important;

  border: initial;
  border-radius: initial;
  background: initial;
  box-shadow: none;

  opacity: 1;
  pointer-events: auto;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.delivery-address-default-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;

  color: var(--color-accent);
  background: color-mix(
    in srgb,
    var(--color-accent) 10%,
    transparent
  );

  font-size: 0.85rem;
  font-weight: 700;
}

.delivery-address-card {
  margin-bottom: 1.5rem;
  margin-left: 0;
  border-radius: 12px;
}

.delivery-address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.delivery-address-heading h2 {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;

  margin: 0;

  font-size: 1.2rem;
  font-weight: 700;
}

.delivery-address-heading svg {
  width: 30px;
  height: 30px;
  margin-left: .5rem;
  margin-top: .07rem;

}

.delivery-address-heading svg:hover {
  color: #ff0098;
}

.delivery-address-heading__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.delivery-address-list-heading {
  margin: 2rem 0 1.5rem;
  font-size: 1.2rem;
}

.delivery-address-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;

  min-width: 0;
  flex: 1;
}

.delivery-address-title h2 {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;

  overflow-wrap: anywhere;
}

.delivery-address-name-editor {
  width: min(420px, 100%);
  min-width: 0;
}

.delivery-address-name-editor[hidden] {
  display: none;
}

.delivery-address-name-editor input {
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.8rem;

  border: 1px solid var(--color-accent);
  border-radius: 8px;

  background: #fff;
  font: inherit;
  font-weight: 700;
}

.delivery-address-name-editor input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 0, 152, 0.12);
}

.delivery-form select.selectorbox {
  width: 100%;
  min-height: 48px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding-right: 2.5rem;
  cursor: pointer;
}

.delivery-invoice-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;

  border: 1px solid var(--border);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;

  background: #fff;
}

.delivery-invoice-option[hidden] {
  display: none;
}

.delivery-invoice-option__content {
  min-width: 0;
}

.delivery-invoice-option__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;

  margin-bottom: 0.35rem;
}

.delivery-invoice-option__heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.delivery-invoice-option__address {
  margin: 0;

  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.edit-delivery {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);

  cursor: pointer;
}

.edit-delivery:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.edit-delivery svg {
  width: 19px;
  height: 19px;
  margin: 0;
}

/* Grid */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Felder */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.full-width {
  display: grid;
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 400;
}

.form-group input,
.form-group select {
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff0098;
}

.button-row {
  width: calc(50% - 0.75rem);

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;


  margin-top: 2rem;
}

.use-invoice-address-button {
  flex-shrink: 0;

  min-height: 42px;
  padding: 0.65rem 0.9rem;

  border: 1px solid var(--color-accent);
  border-radius: 8px;

  background: #fff;
  color: var(--color-accent);

  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;

  cursor: pointer;
}

.use-invoice-address-button[hidden] {
  display: none;
}

.use-invoice-address-button:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(255, 0, 152, 0.04);
  color: var(--color-accent);
}

.use-invoice-address-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.delivery-address-buttons {
  width: calc(50% - 0.75rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#delivery-address-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

#delivery-address-list .delivery-address-card {
  margin-bottom: 0;
}

.add-address-field {
  grid-column: 1 / -1;

  width: 100%;
  min-width: 0;
  min-height: 52px;

  padding: 0.8rem 1rem;

  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  font: inherit;
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;
}

.add-address-field:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.add-address-field svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  fill: currentColor;
}

.save-button:disabled {
  background-color: #d1d5db;
  color: #6b7280;

  cursor: not-allowed;
  opacity: 0.75;

  transform: none;
}

.save-button:disabled:hover,
.save-button:disabled:active {
  background-color: #d1d5db;
  transform: none;
}

@media (max-width: 768px) {
  .delivery-invoice-option {
    flex-direction: column;
    align-items: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-width {
    grid-column: auto;
  }

  .button-row,
  .delivery-address-buttons {
    width: 100%;
  }
}