/* Account forms use OpenCart's default markup. Keep these rules isolated from checkout. */
[id^="account-"] #content {
  min-width: 0;
  padding-bottom: 70px;
}

[id^="account-"] #content > h1 {
  margin: 0 0 20px;
  color: #333;
  font-family: "ArialMT Regular", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 42px;
}

[id^="account-"] #content > p {
  max-width: 760px;
  margin-bottom: 30px;
}

[id^="account-"] form {
  width: 100%;
  max-width: 960px;
}

[id^="account-"] fieldset {
  min-width: 0;
  margin: 0 0 30px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
}

[id^="account-"] legend {
  display: block;
  width: 100%;
  margin: 0 0 28px;
  padding: 0 0 15px;
  color: #333;
  font-family: "ArialMT Regular", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  border: 0;
  border-bottom: 1px solid #f2f2f2;
}

[id^="account-"] .form-group {
  margin: 0 0 22px;
}

[id^="account-"] .form-group::after {
  display: table;
  clear: both;
  content: "";
}

[id^="account-"] .control-label {
  display: block;
  margin: 0 0 8px;
  color: #555;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
}

[id^="account-"] .form-horizontal .control-label[class*="col-"] {
  float: left;
  width: 220px;
  padding: 10px 25px 0 0;
  text-align: left;
}

[id^="account-"] .form-horizontal .form-group > [class*="col-"]:not(.control-label) {
  float: left;
  width: calc(100% - 220px);
  max-width: 650px;
  min-width: 0;
  padding: 0;
}

[id^="account-"] .form-horizontal .form-group > .col-sm-3:not(.control-label) {
  max-width: 360px;
}

[id^="account-"] .required .control-label::after {
  color: #d9534f;
  content: " *";
}

[id^="account-"] .form-control {
  display: block;
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  color: #333;
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  box-shadow: none;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 40px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

[id^="account-"] select.form-control {
  padding-right: 38px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8eb35a 50%), linear-gradient(135deg, #8eb35a 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

[id^="account-"] textarea.form-control {
  height: auto;
  min-height: 140px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 22px;
  resize: vertical;
}

[id^="account-"] .form-control:focus {
  border-color: #8eb35a;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(142, 179, 90, .16);
}

[id^="account-"] .form-control::placeholder {
  color: #aaa;
  opacity: 1;
}

[id^="account-"] .text-danger {
  margin-top: 7px;
  color: #c94d4d;
  font-size: 13px;
  line-height: 19px;
}

[id^="account-"] input[type="radio"],
[id^="account-"] input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 8px 0 0;
  accent-color: #8eb35a;
}

[id^="account-"] .radio,
[id^="account-"] .checkbox {
  margin: 0 0 10px;
}

[id^="account-"] .radio label,
[id^="account-"] .checkbox label,
[id^="account-"] .radio-inline,
[id^="account-"] .checkbox-inline {
  display: inline-flex;
  align-items: flex-start;
  min-height: 24px;
  margin: 0 20px 8px 0;
  padding: 0;
  color: #555;
  cursor: pointer;
}

[id^="account-"] .input-group {
  display: flex;
  width: 100%;
  max-width: 100%;
}

[id^="account-"] .input-group .form-control {
  flex: 1 1 auto;
  border-radius: 3px 0 0 3px;
}

[id^="account-"] .input-group-btn {
  display: flex;
  flex: 0 0 42px;
}

[id^="account-"] .input-group-btn .btn {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 0 3px 3px 0;
  font-size: 0;
}

[id^="account-"] .input-group-btn .btn::before {
  width: 18px;
  height: 18px;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

[id^="account-"] .buttons.clearfix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 35px 0 0;
}

[id^="account-"] .buttons .pull-left,
[id^="account-"] .buttons .pull-right {
  float: none !important;
}

[id^="account-"] .buttons .pull-right {
  margin-left: auto;
  text-align: right;
}

[id^="account-"] .buttons input[type="checkbox"] {
  vertical-align: middle;
}

[id^="account-"] .btn:focus-visible,
[id^="account-"] a:focus-visible,
[id^="account-"] input[type="radio"]:focus-visible,
[id^="account-"] input[type="checkbox"]:focus-visible {
  outline: 2px solid #333 !important;
  outline-offset: 3px;
}

/* Login has two equal cards instead of the unstyled default columns. */
#account-login #content > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-right: -15px;
  margin-left: -15px;
}

#account-login #content > .row > .col-sm-6 {
  display: flex;
  flex: 0 0 50%;
  width: 50%;
  max-width: 50%;
  padding: 15px;
}

#account-login .well {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(51, 51, 51, .05);
}

#account-login .well h2 {
  margin: 0 0 18px;
  color: #333;
  font-family: "ArialMT Regular", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

#account-login .well p {
  margin-bottom: 20px;
}

#account-login .well > .btn {
  align-self: flex-start;
  margin-top: auto;
}

#account-login .well form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  max-width: none;
}

#account-login .well form > .btn {
  align-self: flex-start;
  margin-top: auto;
}

#account-login .form-group a {
  display: inline-block;
  margin-top: 10px;
  color: #749545;
}

/* Return and other long forms remain readable on wide screens. */
#account-return form,
#account-register form,
#account-edit form,
#account-address form,
#account-affiliate form,
#account-voucher form {
  max-width: 960px;
}

#account-return .form-horizontal > fieldset,
#account-register .form-horizontal > fieldset,
#account-affiliate .form-horizontal > fieldset {
  box-shadow: 0 8px 28px rgba(51, 51, 51, .035);
}

@media (max-width: 767.98px) {
  [id^="account-"] #content {
    padding-bottom: 40px;
  }

  [id^="account-"] #content > h1 {
    font-size: 27px;
    line-height: 36px;
  }

  [id^="account-"] fieldset,
  #account-login .well {
    padding: 22px 20px;
  }

  [id^="account-"] legend {
    margin-bottom: 22px;
    font-size: 20px;
    line-height: 28px;
  }

  [id^="account-"] .form-horizontal .control-label[class*="col-"],
  [id^="account-"] .form-horizontal .form-group > [class*="col-"]:not(.control-label) {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  [id^="account-"] .form-horizontal .control-label[class*="col-"] {
    margin-bottom: 8px;
  }

  [id^="account-"] .buttons.clearfix {
    align-items: stretch;
    flex-direction: column-reverse;
    margin-top: 25px;
  }

  [id^="account-"] .buttons .pull-left,
  [id^="account-"] .buttons .pull-right {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  [id^="account-"] .buttons .btn,
  [id^="account-"] .buttons input[type="submit"] {
    width: 100%;
    margin-top: 12px;
  }

  #account-login #content > .row > .col-sm-6 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  #account-login .well > .btn,
  #account-login .well form > .btn {
    align-self: stretch;
    width: 100%;
  }
}

@media (max-width: 359.98px) {
  [id^="account-"] fieldset,
  #account-login .well {
    padding-right: 16px;
    padding-left: 16px;
  }

  [id^="account-"] .radio-inline,
  [id^="account-"] .checkbox-inline {
    display: flex;
    margin-right: 0;
  }
}
