/* Account pages receive these styles from their own layout. Simple also renders
   inside checkout dialogs, so its rules require the standalone account wrapper. */
.nd-customer-form,
.nd-customer-simple,
.nd-customer-addresses {
  --nd-field-border: #c9c7c5;
  --nd-ink: #151515;
  --nd-radius: 10px;
  width: 100%;
  min-width: 0;
  color: var(--nd-ink);
}
.nd-customer-form--compact { max-width: 460px; }
.nd-customer-form--wide,
.nd-customer-simple,
.nd-customer-addresses { max-width: 760px; }

.nd-customer-form fieldset,
.nd-customer-simple fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.nd-customer-form fieldset + fieldset,
.nd-customer-simple fieldset + fieldset {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #e8e7e5;
}
.nd-customer-form legend,
.nd-customer-simple legend {
  float: none;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--nd-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.nd-customer-form__intro,
.nd-customer-simple .simpleregister-have-account {
  max-width: 540px;
  margin: 0 0 24px;
  color: #494745;
  font-size: 15px;
  line-height: 1.6;
}
.nd-customer-form .form-group,
.nd-customer-simple .form-group {
  position: relative;
  min-width: 0;
  margin: 0 0 16px;
}
.nd-customer-form .form-group::before,
.nd-customer-form .form-group::after,
.nd-customer-simple .form-group::before,
.nd-customer-simple .form-group::after { display: none; }
.nd-customer-form .form-group > [class*="col-sm-"],
.nd-customer-simple .form-group > [class*="col-sm-"] {
  float: none;
  width: 100%;
  min-width: 0;
  padding: 0;
}
.nd-customer-form .form-group > .control-label,
.nd-customer-simple .form-group > .control-label {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  color: var(--nd-ink);
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.nd-customer-form .form-control,
.nd-customer-simple .form-control {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--nd-field-border);
  border-radius: var(--nd-radius);
  background-color: #fff;
  color: var(--nd-ink);
  box-shadow: none;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
/* Give native registration selects a full text area on mobile WebKit. */
:is(.nd-account--register, .nd-account--simpleregister) select.form-control:not([multiple]):not([size]) {
  height: 3em;
  padding-top: 0;
  padding-bottom: 0;
  line-height: normal;
}
.nd-customer-form textarea.form-control,
.nd-customer-simple textarea.form-control { height: auto; resize: vertical; }
.nd-customer-form .form-control:focus,
.nd-customer-simple .form-control:focus {
  outline: 2px solid var(--nd-ink);
  outline-offset: 1px;
  border-color: var(--nd-ink);
  box-shadow: none;
}
.nd-customer-form .form-control[aria-invalid="true"],
.nd-customer-simple .has-error .form-control { border-color: #9d3334; }
.nd-customer-form .text-danger,
.nd-customer-simple .text-danger { margin-top: 5px; color: #8e2a2b; font-size: 13px; }
.nd-customer-form .radio-inline,
.nd-customer-simple .radio-inline,
.nd-customer-form .radio label,
.nd-customer-form .checkbox label,
.nd-customer-simple .radio label,
.nd-customer-simple .checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 0 0;
  padding: 4px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
}
.nd-customer-form input[type="radio"],
.nd-customer-form input[type="checkbox"],
.nd-customer-simple input[type="radio"],
.nd-customer-simple input[type="checkbox"] {
  position: static;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #151515;
}
.nd-customer-form .nd-newsletter-options,
.nd-customer-simple #register_newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
}
.nd-customer-simple #register_newsletter .radio { margin: 0; }
.nd-customer-simple #register_newsletter label {
  /* Simple sets display: inline-block !important on registration labels. */
  display: inline-flex !important;
}
.nd-customer-form .nd-newsletter-options .radio-inline,
.nd-customer-simple #register_newsletter label {
  align-items: center;
  min-height: 44px;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.nd-customer-form .nd-newsletter-options input:focus-visible,
.nd-customer-simple #register_newsletter input:focus-visible {
  outline: 2px solid var(--nd-ink);
  outline-offset: 2px;
}
.nd-customer-form .buttons,
.nd-customer-form__actions,
.nd-customer-simple .simpleregister-button-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}
.nd-customer-form .buttons::after,
.nd-customer-form .buttons::before { display: none; }
.nd-customer-form .buttons > div,
.nd-customer-simple .simpleregister-button-right { float: none !important; }
.nd-customer-form .btn,
.nd-customer-simple .btn,
.nd-customer-addresses .btn {
  display: inline-flex;
  min-height: 46px;
  min-width: 0;
  width: auto;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border: 1px solid var(--nd-ink);
  border-radius: var(--nd-radius);
  box-shadow: none;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  font: inherit;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
}
.nd-customer-form .btn-primary,
.nd-customer-simple .btn-primary,
.nd-customer-addresses .btn-primary { background: var(--nd-ink); color: #fff; }
.nd-customer-form .btn-default,
.nd-customer-simple .btn-default,
.nd-customer-addresses .btn-default { border-color: var(--nd-field-border); background: #fff; color: var(--nd-ink); }
.nd-customer-form .btn:hover,
.nd-customer-simple .btn:hover,
.nd-customer-addresses .btn:hover { border-color: #151515; }
.nd-customer-form .btn-primary:hover,
.nd-customer-simple .btn-primary:hover,
.nd-customer-addresses .btn-primary:hover { background: #303030; }
.nd-customer-form__forgotten,
.nd-customer-form__intro a,
.nd-customer-addresses__actions a,
.nd-customer-form__agreement a,
.nd-customer-simple .simpleregister-have-account a,
.nd-customer-simple .agree {
  color: #282727;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nd-customer-form__forgotten { font-size: 14px; }
.nd-customer-form__agreement {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 9px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.nd-customer-form__agreement input { margin-top: 1px; }
.nd-customer-form--compact .nd-customer-form__actions > .btn { flex: 1 1 140px; }
.nd-customer-simple.simple-content { margin: 0; padding: 0; }
.nd-customer-simple .simpleregister,
.nd-customer-simple .simpleregister-block-content,
.nd-customer-simple .simpleregister-button-right { width: 100%; margin: 0; padding: 0; text-align: left; }
.nd-customer-simple #agreement_checkbox { display: block; margin: 0 0 14px; }
.nd-customer-addresses__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(245px,100%), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nd-customer-addresses__list > li {
  padding: 18px;
  border: 1px solid #dfdddb;
  border-radius: 12px;
}
.nd-customer-addresses address { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.nd-customer-addresses__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: 14px; }
.nd-customer-addresses__empty { margin: 0; color: #555; }
@media (min-width: 760px) {
  .nd-customer-form--wide fieldset,
  .nd-customer-simple .simpleregister-block-content > fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }
  .nd-customer-form--wide fieldset > legend,
  .nd-customer-form--wide .custom-field,
  .nd-customer-simple fieldset > .form-group:not([class*="row-"]),
  .nd-customer-simple .row-register_email,
  .nd-customer-simple .row-register_telephone,
  .nd-customer-simple .row-register_address_1,
  .nd-customer-simple .row-register_newsletter { grid-column: 1 / -1; }
}
