/* Bañoweb · registro de cliente y contraseña segura · 2026-09-04 */

.bw-register-shell,
.bw-register-shell * {
  box-sizing: border-box;
}

.bw-register-shell {
  --bw-account-accent: #009db7;
  --bw-account-accent-dark: #007f96;
  --bw-account-ink: #1d2d32;
  --bw-account-muted: #5d6d72;
  --bw-account-soft: #eef7f8;
  --bw-account-line: #d5e5e8;
  --bw-account-success: #2f8f52;
  --bw-account-warning: #b76e14;
  --bw-account-danger: #c94355;
  width: 100%;
  padding: 8px 0 42px;
  color: var(--bw-account-ink);
}

body#authentication.bw-registration-page #wrapper {
  background: linear-gradient(180deg, #f4fafb 0, #fff 620px);
}

body#authentication.bw-registration-page .page-header {
  max-width: 820px;
  margin: 0 auto 20px;
  text-align: center;
}

body#authentication.bw-registration-page .page-header .page-title {
  margin: 0;
  color: var(--bw-account-ink, #1d2d32);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}

.bw-register-card {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--bw-account-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(29, 75, 84, 0.11);
}

.bw-register-card__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.bw-register-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 16px;
  background: var(--bw-account-soft);
  color: var(--bw-account-accent-dark);
  font-size: 26px;
}

.bw-register-card__eyebrow {
  margin: 0 0 5px;
  color: var(--bw-account-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bw-register-card__header h2 {
  margin: 0 0 7px;
  color: var(--bw-account-ink);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.18;
  text-wrap: balance;
}

.bw-register-card__header > div > p:last-child {
  max-width: 590px;
  margin: 0;
  color: var(--bw-account-muted);
  font-size: 15px;
  line-height: 1.5;
}

.bw-register-login {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  padding: 13px 16px;
  border-radius: 11px;
  background: var(--bw-account-soft);
  color: #3f555b;
  font-size: 15px;
  line-height: 1.4;
}

.bw-register-login > i {
  color: var(--bw-account-success);
  font-size: 18px;
}

.bw-register-login a {
  color: var(--bw-account-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.bw-register-card #customer-form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.bw-register-card #customer-form > div > .form-group,
.bw-register-card #customer-form > div > .field-password-policy,
.bw-register-card #customer-form > div > script {
  grid-column: 1 / -1;
}

.bw-register-card #customer-form > div > .form-field-firstname {
  grid-column: 1;
}

.bw-register-card #customer-form > div > .form-field-lastname {
  grid-column: 2;
}

.bw-register-card #customer-form .form-group {
  display: block;
  margin: 0;
}

.bw-register-card #customer-form .form-group > label,
.bw-register-card #customer-form .form-group > .js-input-column,
.bw-register-card #customer-form .form-group > .form-control-comment,
.bw-register-card #customer-form .g-recaptcha {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.bw-register-card #customer-form .form-group > label {
  display: block;
  margin: 0 0 7px;
  color: #31464c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.bw-register-card #customer-form .form-group > label.required::after {
  color: var(--bw-account-danger);
}

.bw-register-card #customer-form .form-group > .form-control-comment:last-child {
  display: none;
}

.bw-register-card #customer-form .form-control,
.bw-register-card #customer-form .custom-select2 .form-control {
  min-height: 52px;
  border: 1px solid #bdced2;
  border-radius: 11px;
  background-color: #fff;
  color: var(--bw-account-ink);
  font-size: 16px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bw-register-card #customer-form .form-control:hover {
  border-color: #91adb3;
}

.bw-register-card #customer-form .form-control:focus {
  border-color: var(--bw-account-accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.16) !important;
  outline: 0;
}

.bw-register-card #customer-form .form-control.border-danger,
.bw-register-card #customer-form .has-error .form-control {
  border-color: var(--bw-account-danger) !important;
}

.bw-register-card #customer-form .form-control.border-success {
  border-color: var(--bw-account-success) !important;
}

.bw-register-card #customer-form .js-input-column > .form-control-comment {
  display: block;
  margin-top: 6px;
  color: var(--bw-account-muted);
  font-size: 12px;
  line-height: 1.4;
}

.bw-register-card #customer-form .input-group-append .btn {
  display: grid;
  min-width: 52px;
  min-height: 52px;
  place-items: center;
  border: 1px solid #bdced2;
  border-left: 0;
  border-radius: 0 11px 11px 0;
  background: #f7fafb;
  color: var(--bw-account-accent-dark);
}

.bw-register-card #customer-form .input-group-append .btn:hover,
.bw-register-card #customer-form .input-group-append .btn:focus-visible {
  background: var(--bw-account-soft);
  color: var(--bw-account-accent-dark);
}

.bw-register-card #customer-form .input-group-append .btn:focus-visible,
.bw-register-card a:focus-visible,
.bw-register-card button:focus-visible,
#checkout .bw-password-feedback a:focus-visible,
#checkout .btn-password-toggle:focus-visible {
  outline: 3px solid rgba(0, 157, 183, 0.34) !important;
  outline-offset: 2px;
}

.bw-register-card #customer-form .radio-inline {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 15px;
  border: 1px solid #c8dadd;
  border-radius: 999px;
  background: #f9fcfc;
  color: #40545a;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.bw-register-card #customer-form .form-field-id_gender .js-input-column {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bw-register-card #customer-form .radio-inline:hover,
.bw-register-card #customer-form .radio-inline:has(input:checked) {
  border-color: var(--bw-account-accent);
  background: var(--bw-account-soft);
  color: var(--bw-account-accent-dark);
}

.bw-register-card #customer-form .radio-inline:has(input:focus-visible) {
  outline: 3px solid rgba(0, 157, 183, 0.34);
  outline-offset: 2px;
}

.bw-register-card #customer-form .custom-radio input {
  accent-color: var(--bw-account-accent-dark);
}

.bw-register-card #customer-form .custom-checkbox {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #deeaec;
  border-radius: 10px;
  background: #fbfdfd;
}

.bw-register-card #customer-form .custom-checkbox > input,
.bw-register-card #customer-form .custom-checkbox > span {
  grid-column: 1;
  grid-row: 1;
  margin-top: 1px;
}

.bw-register-card #customer-form .custom-checkbox > span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #8faeb4;
  border-radius: 5px;
  background: #fff;
}

.bw-register-card #customer-form .custom-checkbox > input:checked + span {
  border-color: var(--bw-account-accent-dark);
  background: var(--bw-account-accent-dark);
}

.bw-register-card #customer-form .custom-checkbox > input:focus-visible + span {
  outline: 3px solid rgba(0, 157, 183, 0.34);
  outline-offset: 2px;
}

.bw-register-card #customer-form .custom-checkbox .checkbox-checked {
  color: #fff;
}

.bw-register-card #customer-form .custom-checkbox > label {
  grid-column: 2;
  margin: 0;
  color: #40545a;
  font-size: 13px;
  line-height: 1.5;
}

.bw-register-card #customer-form .custom-checkbox > label a {
  color: var(--bw-account-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bw-register-card #customer-form .form-footer {
  margin-top: 26px;
  padding: 0;
}

.bw-register-card #customer-form .form-control-submit {
  min-width: min(100%, 300px);
  min-height: 52px;
  border: 1px solid var(--bw-account-accent-dark);
  border-radius: 999px;
  background: var(--bw-account-accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 127, 150, 0.2);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.bw-register-card #customer-form .form-control-submit:hover {
  background: #006d80;
  box-shadow: 0 10px 24px rgba(0, 127, 150, 0.25);
  transform: translateY(-1px);
}

.bw-register-card #customer-form .form-control-submit:active {
  transform: translateY(0);
}

.bw-register-secure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--bw-account-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.bw-register-secure i {
  margin-top: 1px;
  color: var(--bw-account-accent-dark);
}

/* Indicador compartido: registro normal y alta dentro del checkout. */
.bw-password-feedback {
  --bw-password-color: #91a3a7;
  margin-top: 11px;
  padding: 14px;
  border: 1px solid #dce8ea;
  border-radius: 11px;
  background: #f8fbfb;
  color: #40545a;
}

.bw-password-feedback[data-level="weak"] {
  --bw-password-color: #c94355;
}

.bw-password-feedback[data-level="fair"] {
  --bw-password-color: #b76e14;
}

.bw-password-feedback[data-level="good"] {
  --bw-password-color: #007f96;
}

.bw-password-feedback[data-level="strong"] {
  --bw-password-color: #2f8f52;
}

.bw-password-feedback__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
  font-size: 13px;
}

.bw-password-feedback__head > span {
  color: #40545a;
  font-weight: 600;
}

.bw-password-feedback__status {
  color: var(--bw-password-color);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.bw-password-feedback__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 11px;
}

.bw-password-feedback__bar span {
  height: 5px;
  border-radius: 999px;
  background: #dce6e8;
}

.bw-password-feedback__bar span.is-active {
  background: var(--bw-password-color);
}

.bw-password-feedback__requirements {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bw-password-feedback__requirements li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #5d6d72;
  font-size: 12px;
  line-height: 1.4;
}

.bw-password-feedback__requirements i {
  width: 15px;
  flex: 0 0 15px;
  margin-top: 1px;
  color: #8c9b9f;
  font-size: 13px;
  text-align: center;
}

.bw-password-feedback__requirements li.is-valid {
  color: #276f42;
}

.bw-password-feedback__requirements li.is-valid i {
  color: var(--bw-account-success, #2f8f52);
}

.bw-register-card .password-strength-feedback,
#checkout #opc-customer-registration-wrapper .password-strength-feedback {
  display: none !important;
}

#opc-customer-registration-wrapper .password-requirements,
#checkout .opc-password-popover {
  display: none !important;
}

#checkout #opc-customer-registration-wrapper .bw-password-feedback {
  margin-top: 10px;
  padding: 12px;
  border-color: #d6e6e8;
  background: #f3f9fa;
}

#checkout #opc-customer-registration-wrapper .bw-checkout-account-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid #d6e6e8;
  border-radius: 11px;
  background: #eef7f8;
  color: #40545a;
  font-size: 13px;
  line-height: 1.45;
}

#checkout #opc-customer-registration-wrapper .bw-checkout-account-note i {
  margin-top: 2px;
  color: #007f96;
  font-size: 17px;
}

#checkout #opc-customer-registration-wrapper .btn-password-toggle {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 767px) {
  body#authentication.bw-registration-page .page-header {
    margin-bottom: 15px;
  }

  body#authentication.bw-registration-page .page-header .page-title {
    font-size: 30px;
  }

  .bw-register-shell {
    padding: 0 0 28px;
  }

  .bw-register-card {
    padding: 22px 18px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(29, 75, 84, 0.09);
  }

  .bw-register-card__header {
    gap: 13px;
    margin-bottom: 18px;
  }

  .bw-register-card__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
    font-size: 22px;
  }

  .bw-register-card__header h2 {
    font-size: 21px;
  }

  .bw-register-card__header > div > p:last-child {
    font-size: 14px;
  }

  .bw-register-login {
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 12px 13px;
  }

  .bw-register-card #customer-form > div {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bw-register-card #customer-form > div > .form-field-firstname,
  .bw-register-card #customer-form > div > .form-field-lastname {
    grid-column: 1;
  }

  .bw-register-card #customer-form .form-control-submit {
    width: 100%;
    min-width: 0;
  }

  .bw-password-feedback__head {
    align-items: flex-start;
  }
}

@media (max-width: 360px) {
  .bw-register-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .bw-register-card__icon {
    display: none;
  }

  .bw-register-card .g-recaptcha {
    height: 66px;
    transform: scale(0.84);
    transform-origin: left top;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-register-card #customer-form .form-control,
  .bw-register-card #customer-form .form-control-submit {
    transition: none;
  }
}

/* Dirección estándar de Mi cuenta cuando no interviene el render del OPC. */
body#address,
body#addresses {
  --bw-account-accent: #009db7;
  --bw-account-accent-dark: #007f96;
  --bw-account-ink: #1d2d32;
  --bw-account-muted: #5d6d72;
  --bw-account-soft: #eef7f8;
  --bw-account-line: #d5e5e8;
  --bw-account-success: #2f8f52;
  --bw-account-danger: #c94355;
}

body#address #wrapper,
body#addresses #wrapper {
  background: linear-gradient(180deg, #f4fafb 0, #fff 620px);
}

body#address .address-form,
body#address .js-address-form {
  box-sizing: border-box;
}

body#address .address-form {
  width: min(100%, 820px);
  margin: 0 auto 40px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid var(--bw-account-line);
  border-radius: 18px;
  background: #fff;
  color: var(--bw-account-ink);
  box-shadow: 0 18px 46px rgba(29, 75, 84, 0.11);
}

body#address .js-address-form *,
body#address .js-address-form *::before,
body#address .js-address-form *::after {
  box-sizing: border-box;
}

body#address .js-address-form .form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

body#address .js-address-form .form-group {
  display: block;
  grid-column: 1 / -1;
  margin: 0;
}

body#address .js-address-form .form-field-firstname,
body#address .js-address-form .form-field-postcode,
body#address .js-address-form .form-field-id_country {
  grid-column: 1;
}

body#address .js-address-form .form-field-lastname,
body#address .js-address-form .form-field-city,
body#address .js-address-form .form-field-id_state {
  grid-column: 2;
}

body#address .js-address-form .form-group > label,
body#address .js-address-form .form-group > .js-input-column,
body#address .js-address-form .form-group > .form-control-comment {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

body#address .js-address-form .form-group > label {
  display: block;
  margin: 0 0 7px;
  color: #31464c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

body#address .js-address-form .form-group > label.required::after {
  color: var(--bw-account-danger);
}

body#address .js-address-form .form-group > .form-control-comment:last-child {
  display: none;
}

body#address .js-address-form .form-control,
body#address .js-address-form .form-control-select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #bdced2;
  border-radius: 11px;
  background-color: #fff;
  color: var(--bw-account-ink);
  font-size: 16px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body#address .js-address-form textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

body#address .js-address-form .form-control:hover,
body#address .js-address-form .form-control-select:hover {
  border-color: #91adb3;
}

body#address .js-address-form .form-control:focus,
body#address .js-address-form .form-control-select:focus {
  border-color: var(--bw-account-accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.16) !important;
}

body#address .js-address-form .form-control:focus-visible,
body#address .js-address-form .form-control-select:focus-visible,
body#address .js-address-form button:focus-visible,
body#address .js-address-form a:focus-visible {
  outline: 3px solid rgba(0, 157, 183, 0.34) !important;
  outline-offset: 2px;
}

body#address .js-address-form .js-input-column > .form-control-comment {
  display: block;
  margin-top: 6px;
  color: var(--bw-account-muted);
  font-size: 12px;
  line-height: 1.4;
}

body#address .js-address-form .form-error,
body#address .js-address-form .help-block {
  margin-top: 6px;
  color: var(--bw-account-danger);
  font-size: 12px;
  line-height: 1.4;
}

body#address .js-address-form .form-footer {
  margin-top: 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--bw-account-line);
}

body#address .js-address-form .form-control-submit {
  width: min(100%, 320px);
  min-height: 52px;
  border: 1px solid var(--bw-account-accent-dark);
  border-radius: 999px;
  background: var(--bw-account-accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 127, 150, 0.2);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

body#address .js-address-form .form-control-submit:hover {
  border-color: #006d80;
  background: #006d80;
  box-shadow: 0 10px 24px rgba(0, 127, 150, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  body#address .address-form {
    margin-bottom: 28px;
    padding: 22px 18px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(29, 75, 84, 0.09);
  }

  body#address .js-address-form .form-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body#address .js-address-form .form-group,
  body#address .js-address-form .form-field-firstname,
  body#address .js-address-form .form-field-lastname,
  body#address .js-address-form .form-field-postcode,
  body#address .js-address-form .form-field-city,
  body#address .js-address-form .form-field-id_country,
  body#address .js-address-form .form-field-id_state {
    grid-column: 1;
  }

  body#address .js-address-form .form-control-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-register-card #customer-form .radio-inline,
  body#address .js-address-form .form-control,
  body#address .js-address-form .form-control-select,
  body#address .js-address-form .form-control-submit {
    transition: none;
  }
}

/*
 * Alta directa mediante index.php?controller=registration.
 * El módulo OPC muestra primero el correo y después decide entre acceso y alta;
 * esta capa conserva esa lógica y unifica las tres fases con el diseño Bañoweb.
 */
body#registration.bw-opc-registration-page #wrapper {
  background: linear-gradient(180deg, #f4fafb 0, #fff 620px);
}

#registration .bw-registration-gateway {
  --bw-form-accent: #009db7;
  --bw-form-accent-dark: #007f96;
  --bw-form-ink: #1d2d32;
  --bw-form-muted: #5d6d72;
  --bw-form-soft: #eef7f8;
  --bw-form-line: #d5e5e8;
  --bw-form-success: #2f8f52;
  --bw-form-danger: #c94355;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 8px 0 42px;
  color: var(--bw-form-ink);
}

#registration .bw-registration-gateway,
#registration .bw-registration-gateway *,
#registration .bw-registration-gateway *::before,
#registration .bw-registration-gateway *::after {
  box-sizing: border-box;
}

#registration .bw-registration-gateway #opc_step_my_account {
  overflow: hidden;
  border: 1px solid var(--bw-form-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(29, 75, 84, 0.11);
}

#registration .bw-registration-gateway #opc_step_my_account_header {
  display: none !important;
}

#registration .bw-registration-gateway__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 36px 26px;
  border-bottom: 1px solid var(--bw-form-line);
  background: #fff;
}

#registration .bw-registration-gateway__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 16px;
  background: var(--bw-form-soft);
  color: var(--bw-form-accent-dark);
  font-size: 26px;
}

#registration .bw-registration-gateway__eyebrow {
  margin: 0 0 5px;
  color: var(--bw-form-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#registration .bw-registration-gateway__header h1 {
  margin: 0 0 7px;
  color: var(--bw-form-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

#registration .bw-registration-gateway__header > div > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--bw-form-muted);
  font-size: 15px;
  line-height: 1.5;
}

#registration .bw-registration-gateway #opc_step_my_account_body {
  padding: 28px 36px 34px !important;
  background: #fff;
}

#registration .bw-registration-gateway #opc-email-check-container,
#registration .bw-registration-gateway #opc-customer-registration-wrapper,
#registration .bw-registration-gateway #opc_login_customer {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#registration .bw-registration-gateway #form-email-check .row {
  margin: 0;
}

#registration .bw-registration-gateway #form-email-check .field-container {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 174px 0 0;
}

#registration .bw-registration-gateway #form-email-check .form-control,
#registration .bw-registration-gateway #form-login .form-control,
#registration .bw-registration-gateway #form-field-component_customer .form-control,
#registration .bw-registration-gateway #form-field-component_customer .form-select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b8ccd0;
  border-radius: 11px;
  background-color: #fff;
  color: var(--bw-form-ink);
  font-size: 16px;
  line-height: 1.35;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

#registration .bw-registration-gateway #form-email-check .form-control:hover,
#registration .bw-registration-gateway #form-login .form-control:hover,
#registration .bw-registration-gateway #form-field-component_customer .form-control:hover,
#registration .bw-registration-gateway #form-field-component_customer .form-select:hover {
  border-color: #8faeb4;
}

#registration .bw-registration-gateway #form-email-check .form-control:focus,
#registration .bw-registration-gateway #form-login .form-control:focus,
#registration .bw-registration-gateway #form-field-component_customer .form-control:focus,
#registration .bw-registration-gateway #form-field-component_customer .form-select:focus,
#registration .bw-registration-gateway .opc-otp-box:focus {
  border-color: var(--bw-form-accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.16) !important;
}

#registration .bw-registration-gateway #form-email-check .form-floating > label,
#registration .bw-registration-gateway #form-login .form-floating > label,
#registration .bw-registration-gateway #form-field-component_customer .form-floating > label {
  padding-right: 15px;
  padding-left: 15px;
  color: var(--bw-form-muted);
  font-size: 14px;
}

#registration .bw-registration-gateway #form-email-check .form-floating > .form-control:focus ~ label,
#registration .bw-registration-gateway #form-email-check .form-floating > .form-control:not(:placeholder-shown) ~ label,
#registration .bw-registration-gateway #form-login .form-floating > .form-control:focus ~ label,
#registration .bw-registration-gateway #form-login .form-floating > .form-control:not(:placeholder-shown) ~ label,
#registration .bw-registration-gateway #form-field-component_customer .form-floating > .form-control:focus ~ label,
#registration .bw-registration-gateway #form-field-component_customer .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--bw-form-accent-dark);
}

#registration .bw-registration-gateway sup {
  color: var(--bw-form-danger);
  font-weight: 700;
}

#registration .bw-registration-gateway #form-email-check .opc-email-check__submit {
  position: absolute;
  top: 1px;
  right: 0;
  display: inline-flex;
  width: 158px;
  min-width: 158px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid var(--bw-form-accent-dark);
  border-radius: 999px;
  background: var(--bw-form-accent-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 127, 150, 0.18);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#registration .bw-registration-gateway #form-email-check .opc-email-check__submit:not(:disabled):hover {
  border-color: #006d80;
  background: #006d80;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 127, 150, 0.24);
  transform: translateY(-1px);
}

#registration .bw-registration-gateway #form-email-check .opc-email-check__submit:disabled {
  border-color: #c7d6d9 !important;
  background: #dce7e9 !important;
  color: #617479 !important;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 1;
}

#registration .bw-registration-gateway #form-email-check .opc-email-check__submit-icon {
  font-size: 20px;
}

#registration .bw-registration-gateway #form-email-check .invalid-feedback,
#registration .bw-registration-gateway #form-field-component_customer .invalid-feedback,
#registration .bw-registration-gateway #form-field-component_customer .form-error,
#registration .bw-registration-gateway #form-field-component_customer label.error {
  margin-top: 6px;
  color: var(--bw-form-danger);
  font-size: 12px;
  line-height: 1.4;
}

#registration .bw-registration-gateway #form-email-check .form-control.is-invalid,
#registration .bw-registration-gateway #form-email-check .form-control[aria-invalid="true"],
#registration .bw-registration-gateway #form-field-component_customer .form-control.is-invalid,
#registration .bw-registration-gateway #form-field-component_customer .form-control[aria-invalid="true"] {
  border-color: var(--bw-form-danger) !important;
  box-shadow: 0 0 0 3px rgba(201, 67, 85, 0.11) !important;
}

#registration .bw-registration-gateway #form-email-check .opc-email-check__submit:focus-visible,
#registration .bw-registration-gateway button:focus-visible,
#registration .bw-registration-gateway a:focus-visible,
#registration .bw-registration-gateway input:focus-visible,
#registration .bw-registration-gateway select:focus-visible {
  outline: 3px solid rgba(0, 157, 183, 0.34) !important;
  outline-offset: 2px;
}

#registration .bw-registration-gateway #form-field-component_customer > .row {
  margin-right: -7px;
  margin-left: -7px;
  row-gap: 16px;
}

#registration .bw-registration-gateway #form-field-component_customer > .row > .field-container {
  position: relative;
  margin: 0;
  padding-right: 7px;
  padding-left: 7px;
}

#registration .bw-registration-gateway #field_customer_password .form-control {
  padding-right: 94px;
}

#registration .bw-registration-gateway #field_customer_password_confirmation .form-control {
  padding-right: 56px;
}

#registration .bw-registration-gateway #opc-customer-registration-wrapper .btn-password-toggle,
#registration .bw-registration-gateway #opc-customer-registration-wrapper .btn-password-generate {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--bw-form-soft);
  color: var(--bw-form-accent-dark);
  box-shadow: none;
}

#registration .bw-registration-gateway #opc-customer-registration-wrapper .btn-password-toggle:hover,
#registration .bw-registration-gateway #opc-customer-registration-wrapper .btn-password-generate:hover {
  background: #dceef1;
  color: #006d80;
}

#registration .bw-registration-gateway #opc-customer-registration-wrapper .bw-checkout-account-note,
#registration .bw-registration-gateway .opc-login-email-compact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid #cfe3e6;
  border-radius: 11px;
  background: var(--bw-form-soft);
  color: #40545a;
  font-size: 13px;
  line-height: 1.45;
}

#registration .bw-registration-gateway #opc-customer-registration-wrapper .bw-checkout-account-note i,
#registration .bw-registration-gateway .opc-login-email-compact i {
  margin-top: 2px;
  color: var(--bw-form-accent-dark);
  font-size: 17px;
}

#registration .bw-registration-gateway #form-field-component_customer .form-control-comment {
  display: block;
  margin: 6px 0 0;
  color: var(--bw-form-muted);
  font-size: 12px;
  line-height: 1.4;
}

#registration .bw-registration-gateway #form-field-component_customer .field-container-checkbox > label,
#registration .bw-registration-gateway #form-field-component_customer .field-container-checkbox-cms > label {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 13px 14px 13px 46px;
  border: 1px solid #dce9eb;
  border-radius: 11px;
  background: #f9fcfc;
  color: #40545a;
  font-size: 13px;
  line-height: 1.45;
}

#registration .bw-registration-gateway #form-field-component_customer input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--bw-form-accent-dark);
}

#registration .bw-registration-gateway #form-field-component_customer .field-container-checkbox > label > input,
#registration .bw-registration-gateway #form-field-component_customer .field-container-checkbox-cms > label > input {
  position: absolute;
  top: 13px;
  left: 14px;
}

#registration .bw-registration-gateway #form-field-component_customer a,
#registration .bw-registration-gateway #hook-displayCustomerAccountForm a,
#registration .bw-registration-gateway .opc-toggle-link,
#registration .bw-registration-gateway .opc-email-change-link,
#registration .bw-registration-gateway .opc-login-customer__forget-link-anchor {
  color: var(--bw-form-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#registration .bw-registration-gateway #opc_personal_information_footer {
  margin-top: 20px;
  padding: 18px 0 0;
  border-top: 1px solid var(--bw-form-line);
}

#registration .bw-registration-gateway #btn-register-customer,
#registration .bw-registration-gateway #btn-continue-email,
#registration .bw-registration-gateway #btn-opc_login,
#registration .bw-registration-gateway #btn-otp-submit {
  display: inline-flex !important;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bw-form-accent-dark);
  border-radius: 999px;
  background: var(--bw-form-accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 127, 150, 0.2);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#registration .bw-registration-gateway #btn-register-customer:hover,
#registration .bw-registration-gateway #btn-continue-email:not(:disabled):hover,
#registration .bw-registration-gateway #btn-opc_login:hover,
#registration .bw-registration-gateway #btn-otp-submit:hover {
  border-color: #006d80;
  background: #006d80;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 127, 150, 0.25);
  transform: translateY(-1px);
}

#registration .bw-registration-gateway .opc-login-step__title {
  margin: 0 0 8px;
  color: var(--bw-form-ink);
  font-size: 20px;
  font-weight: 700;
}

#registration .bw-registration-gateway .opc-login-divider {
  margin: 18px 0;
  color: var(--bw-form-muted);
}

#registration .bw-registration-gateway .opc-login-toggle-option {
  text-align: center;
}

#registration .bw-registration-gateway .opc-otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(42px, 1fr));
  gap: 9px;
}

#registration .bw-registration-gateway .opc-otp-box {
  width: 100%;
  min-width: 0;
  height: 50px;
  border: 1px solid #b8ccd0;
  border-radius: 9px;
  text-align: center;
}

#registration .bw-registration-gateway__secure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 18px 28px;
  border-top: 1px solid var(--bw-form-line);
  background: #fbfdfd;
  color: var(--bw-form-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

#registration .bw-registration-gateway__secure i {
  margin-top: 1px;
  color: var(--bw-form-accent-dark);
}

@media (max-width: 767px) {
  #registration .bw-registration-gateway {
    padding: 0 0 28px;
  }

  #registration .bw-registration-gateway #opc_step_my_account {
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(29, 75, 84, 0.09);
  }

  #registration .bw-registration-gateway__header {
    gap: 13px;
    padding: 24px 18px 20px;
  }

  #registration .bw-registration-gateway__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
    font-size: 22px;
  }

  #registration .bw-registration-gateway__header h1 {
    font-size: 23px;
  }

  #registration .bw-registration-gateway__header > div > p:last-child {
    font-size: 14px;
  }

  #registration .bw-registration-gateway #opc_step_my_account_body {
    padding: 22px 18px 26px !important;
  }

  #registration .bw-registration-gateway #form-email-check .field-container {
    padding-right: 0;
  }

  #registration .bw-registration-gateway #form-email-check .opc-email-check__submit {
    position: static;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin-top: 12px;
    transform: none !important;
  }

  #registration .bw-registration-gateway #form-field-component_customer > .row > .field-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  #registration .bw-registration-gateway #form-email-check .form-control,
  #registration .bw-registration-gateway #form-login .form-control,
  #registration .bw-registration-gateway #form-field-component_customer .form-control,
  #registration .bw-registration-gateway #form-field-component_customer .form-select {
    min-height: 50px;
  }

  #registration .bw-registration-gateway .opc-otp-boxes {
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    gap: 6px;
  }

  #registration .bw-registration-gateway__secure {
    padding: 16px 18px;
  }
}

@media (max-width: 360px) {
  #registration .bw-registration-gateway__icon {
    display: none;
  }

  #registration .bw-registration-gateway #hook-displayCustomerAccountForm .g-recaptcha {
    height: 66px;
    transform: scale(0.84);
    transform-origin: left top;
  }
}

@media (prefers-reduced-motion: reduce) {
  #registration .bw-registration-gateway #form-email-check .form-control,
  #registration .bw-registration-gateway #form-login .form-control,
  #registration .bw-registration-gateway #form-field-component_customer .form-control,
  #registration .bw-registration-gateway #form-field-component_customer .form-select,
  #registration .bw-registration-gateway button {
    transition: none;
  }
}

/* Acceso directo: misma jerarquía visual que el alta guiada. */
body#authentication #wrapper {
  background: linear-gradient(180deg, #f4fafb 0, #fff 620px);
}

body#authentication #content.page-content {
  padding: 32px 0 42px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#authentication .bw-login-shell,
#authentication .bw-login-shell *,
#authentication .bw-login-shell *::before,
#authentication .bw-login-shell *::after {
  box-sizing: border-box;
}

#authentication .bw-login-shell {
  --bw-login-accent: #009db7;
  --bw-login-accent-dark: #007f96;
  --bw-login-ink: #1d2d32;
  --bw-login-muted: #5d6d72;
  --bw-login-soft: #eef7f8;
  --bw-login-line: #d5e5e8;
  --bw-login-danger: #c94355;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 8px 0 42px;
  color: var(--bw-login-ink);
}

#authentication .bw-login-card {
  overflow: hidden;
  border: 1px solid var(--bw-login-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(29, 75, 84, 0.11);
}

#authentication .bw-login-card__header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 36px 26px;
  border-bottom: 1px solid var(--bw-login-line);
}

#authentication .bw-login-card__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 16px;
  background: var(--bw-login-soft);
  color: var(--bw-login-accent-dark);
  font-size: 26px;
}

#authentication .bw-login-card__eyebrow {
  margin: 0 0 5px;
  color: var(--bw-login-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#authentication .bw-login-card__header h1 {
  margin: 0 0 7px;
  color: var(--bw-login-ink);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

#authentication .bw-login-card__header > div > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--bw-login-muted);
  font-size: 15px;
  line-height: 1.5;
}

#authentication .bw-login-card__body {
  padding: 28px 36px 30px;
}

#authentication .bw-login-card #login-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

#authentication .bw-login-card #login-form section {
  display: grid;
  gap: 18px;
}

#authentication .bw-login-card #login-form .form-group {
  display: block;
  margin: 0;
}

#authentication .bw-login-card #login-form .form-group > label,
#authentication .bw-login-card #login-form .form-group > .js-input-column,
#authentication .bw-login-card #login-form .form-group > .form-control-comment {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

#authentication .bw-login-card #login-form .form-group > label {
  display: block;
  margin: 0 0 7px;
  color: #31464c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

#authentication .bw-login-card #login-form .form-group > label.required::after {
  color: var(--bw-login-danger);
}

#authentication .bw-login-card #login-form .form-group > .form-control-comment:last-child {
  display: none;
}

#authentication .bw-login-card #login-form .form-control {
  width: 100%;
  min-height: 54px;
  border: 1px solid #b8ccd0;
  border-radius: 11px;
  background: #fff;
  color: var(--bw-login-ink);
  font-size: 16px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#authentication .bw-login-card #login-form .form-control:hover {
  border-color: #8faeb4;
}

#authentication .bw-login-card #login-form .form-control:focus {
  border-color: var(--bw-login-accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.16) !important;
}

#authentication .bw-login-card #login-form .has-error .form-control {
  border-color: var(--bw-login-danger) !important;
  box-shadow: 0 0 0 3px rgba(201, 67, 85, 0.11) !important;
}

#authentication .bw-login-card #login-form .help-block,
#authentication .bw-login-card #login-form .alert-danger {
  color: var(--bw-login-danger);
  font-size: 13px;
  line-height: 1.45;
}

#authentication .bw-login-card #login-form .input-group-append .btn {
  display: grid;
  width: 54px;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  border: 1px solid #b8ccd0;
  border-left: 0;
  border-radius: 0 11px 11px 0;
  background: #f7fafb;
  color: var(--bw-login-accent-dark);
  box-shadow: none;
}

#authentication .bw-login-card #login-form .input-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}

#authentication .bw-login-card #login-form .input-group .form-control {
  width: 1%;
  min-width: 0;
  flex: 1 1 auto;
  border-radius: 11px 0 0 11px;
}

#authentication .bw-login-card #login-form .input-group-append .btn:hover {
  background: var(--bw-login-soft);
  color: #006d80;
}

#authentication .bw-login-card #login-form .forgot-password {
  margin: -2px 0 0;
  text-align: right;
}

#authentication .bw-login-card #login-form .forgot-password a,
#authentication .bw-login-create a {
  color: var(--bw-login-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#authentication .bw-login-card #login-form .form-footer {
  margin-top: 22px;
  padding: 0;
}

#authentication .bw-login-card #submit-login {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bw-login-accent-dark);
  border-radius: 999px;
  background: var(--bw-login-accent-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 127, 150, 0.2);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#authentication .bw-login-card #submit-login:not(:disabled):hover {
  border-color: #006d80;
  background: #006d80;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 127, 150, 0.25);
  transform: translateY(-1px);
}

#authentication .bw-login-card #submit-login:disabled {
  border-color: #c7d6d9;
  background: #dce7e9;
  color: #617479;
  cursor: not-allowed;
  box-shadow: none;
}

#authentication .bw-login-create {
  display: flex;
  max-width: 640px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 26px auto 0;
  padding: 14px 16px;
  border: 1px solid #cfe3e6;
  border-radius: 11px;
  background: var(--bw-login-soft);
  color: #40545a;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

#authentication .bw-login-create > i {
  color: var(--bw-login-accent-dark);
  font-size: 17px;
}

#authentication .bw-login-secure {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 18px 28px;
  border-top: 1px solid var(--bw-login-line);
  background: #fbfdfd;
  color: var(--bw-login-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

#authentication .bw-login-secure i {
  margin-top: 1px;
  color: var(--bw-login-accent-dark);
}

#authentication .bw-login-card input:focus-visible,
#authentication .bw-login-card button:focus-visible,
#authentication .bw-login-card a:focus-visible {
  outline: 3px solid rgba(0, 157, 183, 0.34) !important;
  outline-offset: 2px;
}

#authentication .bw-login-otp[hidden],
#authentication .bw-login-otp [hidden] {
  display: none !important;
}

#authentication .bw-login-otp {
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
}

#authentication .bw-login-method-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #718287;
  font-size: 13px;
  text-transform: uppercase;
}

#authentication .bw-login-method-divider::before,
#authentication .bw-login-method-divider::after {
  height: 1px;
  flex: 1 1 auto;
  background: var(--bw-login-line);
  content: '';
}

#authentication .bw-login-otp__toggle {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid #a9c8ce;
  border-radius: 999px;
  padding: 11px 20px;
  background: #fff;
  color: var(--bw-login-accent-dark);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  box-shadow: 0 5px 14px rgba(0, 127, 150, 0.08);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

#authentication .bw-login-otp__toggle > i:first-child {
  font-size: 19px;
  text-align: center;
}

#authentication .bw-login-otp__chevron {
  color: #638087;
  font-size: 12px;
  text-align: right;
}

#authentication .bw-login-otp__toggle:hover,
#authentication .bw-login-otp.is-open .bw-login-otp__toggle {
  border-color: var(--bw-login-accent);
  background: var(--bw-login-soft);
  box-shadow: 0 7px 18px rgba(0, 127, 150, 0.13);
}

#authentication .bw-login-otp__panel {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid #cee2e5;
  border-radius: 15px;
  background: #f8fbfb;
}

#authentication .bw-login-otp__intro {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 19px;
}

#authentication .bw-login-otp__intro-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: #e2f2f4;
  color: var(--bw-login-accent-dark);
  font-size: 18px;
}

#authentication .bw-login-otp__intro h2 {
  margin: 1px 0 4px;
  color: var(--bw-login-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

#authentication .bw-login-otp__intro p {
  margin: 0;
  color: var(--bw-login-muted);
  font-size: 13px;
  line-height: 1.45;
}

#authentication .bw-login-otp__form {
  display: grid;
  gap: 14px;
  margin: 0;
}

#authentication .bw-login-otp__field {
  display: grid;
  gap: 7px;
}

#authentication .bw-login-otp__field label {
  margin: 0;
  color: #31464c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

#authentication .bw-login-otp__field .form-control {
  width: 100%;
  min-height: 52px;
  border: 1px solid #b8ccd0;
  border-radius: 11px;
  background: #fff;
  color: var(--bw-login-ink);
  font-size: 16px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#authentication .bw-login-otp__field .form-control:hover {
  border-color: #8faeb4;
}

#authentication .bw-login-otp__field .form-control:focus {
  border-color: var(--bw-login-accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.16) !important;
}

#authentication .bw-login-otp__field small {
  color: var(--bw-login-muted);
  font-size: 12px;
  line-height: 1.4;
}

#authentication .bw-login-otp__code {
  max-width: 250px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-align: center;
}

#authentication .bw-login-otp__primary {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--bw-login-accent-dark);
  border-radius: 999px;
  padding: 10px 20px;
  background: var(--bw-login-accent-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 127, 150, 0.18);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

#authentication .bw-login-otp__primary:not(:disabled):hover {
  border-color: #006d80;
  background: #006d80;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 127, 150, 0.24);
  transform: translateY(-1px);
}

#authentication .bw-login-otp__primary:disabled {
  border-color: #c7d6d9;
  background: #dce7e9;
  color: #617479;
  cursor: wait;
  box-shadow: none;
}

#authentication .bw-login-otp__sent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #cde3d4;
  border-radius: 10px;
  background: #f0f8f2;
  color: #356446;
  font-size: 13px;
  line-height: 1.45;
}

#authentication .bw-login-otp__sent i {
  margin-top: 2px;
  color: #2f8f52;
  font-size: 16px;
}

#authentication .bw-login-otp__secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

#authentication .bw-login-otp__secondary-actions button {
  min-height: 40px;
  border: 0;
  padding: 7px 4px;
  background: transparent;
  color: var(--bw-login-accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#authentication .bw-login-otp__secondary-actions button:disabled {
  color: #718287;
  cursor: wait;
  text-decoration: none;
}

#authentication .bw-login-otp__status {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

#authentication .bw-login-otp__status.is-success {
  border: 1px solid #cde3d4;
  background: #f0f8f2;
  color: #356446;
}

#authentication .bw-login-otp__status.is-error {
  border: 1px solid #efccd2;
  background: #fff5f6;
  color: var(--bw-login-danger);
}

@media (max-width: 767px) {
  body#authentication #content.page-content {
    padding: 32px 0 40px;
  }

  #authentication .bw-login-shell {
    padding: 0 0 28px;
  }

  #authentication .bw-login-card {
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(29, 75, 84, 0.09);
  }

  #authentication .bw-login-card__header {
    gap: 13px;
    padding: 24px 18px 20px;
  }

  #authentication .bw-login-card__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 13px;
    font-size: 22px;
  }

  #authentication .bw-login-card__header h1 {
    font-size: 23px;
  }

  #authentication .bw-login-card__header > div > p:last-child {
    font-size: 14px;
  }

  #authentication .bw-login-card__body {
    padding: 22px 18px 26px;
  }

  #authentication .bw-login-create {
    align-items: flex-start;
    padding: 12px 13px;
  }

  #authentication .bw-login-otp {
    margin-top: 22px;
  }

  #authentication .bw-login-otp__toggle {
    padding-right: 16px;
    padding-left: 16px;
  }

  #authentication .bw-login-otp__panel {
    padding: 18px 15px;
  }

  #authentication .bw-login-otp__intro {
    gap: 10px;
  }

  #authentication .bw-login-otp__code {
    max-width: none;
  }
}

@media (max-width: 360px) {
  #authentication .bw-login-card__icon {
    display: none;
  }

  #authentication .bw-login-otp__intro-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #authentication .bw-login-card #login-form .form-control,
  #authentication .bw-login-card #submit-login,
  #authentication .bw-login-otp__toggle,
  #authentication .bw-login-otp__field .form-control,
  #authentication .bw-login-otp__primary {
    transition: none;
  }
}


/* Área de cliente: panel, navegación, pantallas internas y menú del encabezado. */
.bw-account-page-header,
.bw-account-page-header *,
.bw-account-area,
.bw-account-area *,
.bw-account-dropdown,
.bw-account-dropdown * {
  box-sizing: border-box;
}

body#my-account #wrapper,
body#identity #wrapper,
body#addresses #wrapper,
body#address #wrapper,
body#history #wrapper,
body#order-detail #wrapper,
body#order-slip #wrapper,
body#discount #wrapper,
body#order-follow #wrapper,
body#order-return #wrapper {
  background: linear-gradient(180deg, #f4fafb 0, #fff 660px);
}

.bw-account-page-header {
  --bw-area-accent: #009db7;
  --bw-area-accent-dark: #007f96;
  --bw-area-ink: #1d2d32;
  --bw-area-muted: #5d6d72;
  --bw-area-soft: #eef7f8;
  --bw-area-line: #d5e5e8;
  display: flex;
  width: min(100%, 1320px);
  align-items: center;
  gap: 20px;
  margin: 0 auto 18px;
  padding: 30px 36px;
  border: 0;
  border-radius: 24px;
  background: var(--bw-area-soft);
  color: var(--bw-area-ink);
  box-shadow: none;
}

.bw-account-page-header__icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bw-area-accent-dark);
  font-size: 27px;
}

.bw-account-page-header__eyebrow {
  margin: 0 0 3px;
  color: var(--bw-area-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bw-account-page-header h1 {
  margin: 0 0 4px;
  color: var(--bw-area-ink);
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.bw-account-page-header > div > p:last-child {
  margin: 0;
  color: var(--bw-area-muted);
  font-size: 15px;
  line-height: 1.45;
}

.bw-account-area {
  --bw-area-accent: #009db7;
  --bw-area-accent-dark: #007f96;
  --bw-area-ink: #1d2d32;
  --bw-area-muted: #5d6d72;
  --bw-area-soft: #eef7f8;
  --bw-area-line: #d5e5e8;
  --bw-area-danger: #c94355;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 0 0 48px;
  color: var(--bw-area-ink);
}

#content.bw-account-area {
  padding: 0 0 48px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bw-account-area__layout {
  display: grid;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.bw-account-area__layout > .my-account-side-links,
.bw-account-area__layout > .bw-account-area__content {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.bw-account-nav {
  position: static;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid var(--bw-area-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(29, 75, 84, 0.05);
}

.bw-account-nav__title {
  display: none;
}

.bw-account-nav__link,
.bw-account-nav__extensions > a {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #3f5359 !important;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none !important;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.bw-account-nav__link > span:first-child,
.bw-account-nav__extensions > a > span.link-item > i {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--bw-area-soft);
  color: var(--bw-area-accent-dark);
  font-size: 15px;
}

.bw-account-nav__link strong {
  font-weight: 650;
}

.bw-account-nav__link:hover,
.bw-account-nav__link[aria-current="page"],
.bw-account-nav__extensions > a:hover {
  border-color: #cfe3e6;
  background: var(--bw-area-soft);
  color: var(--bw-area-accent-dark) !important;
  transform: none;
}

.bw-account-nav__link[aria-current="page"] {
  font-weight: 700;
}

.bw-account-nav__link[aria-current="page"] > span:first-child {
  background: var(--bw-area-accent-dark);
  color: #fff;
}

.bw-account-nav__extensions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bw-account-nav__extensions:empty {
  display: none;
}

.bw-account-nav__extensions > a .link-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
}

.bw-account-nav__extensions > a .link-item i {
  margin: 0 !important;
}

.bw-account-nav__logout {
  margin-left: auto !important;
  border-color: #f1d9dd;
  color: #6f4b51 !important;
}

.bw-account-nav__logout > span:first-child {
  background: #fff2f3;
  color: var(--bw-area-danger);
}

.bw-account-content__title {
  margin: 0 0 14px;
  color: var(--bw-area-ink);
  font-size: clamp(23px, 2.5vw, 31px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.bw-account-content-card {
  min-width: 0;
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid var(--bw-area-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(29, 75, 84, 0.07);
}

.bw-account-content-card > h6:first-child {
  margin: 0 0 22px;
  color: var(--bw-area-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.bw-account-dashboard-hero {
  --bw-area-accent: #009db7;
  --bw-area-accent-dark: #007f96;
  --bw-area-ink: #1d2d32;
  display: grid;
  width: min(100%, 1320px);
  min-height: 310px;
  margin: 0 auto 18px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  border-radius: 26px;
  background: #eef7f8;
}

.bw-account-dashboard-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 42px clamp(36px, 5vw, 70px);
}

.bw-account-dashboard-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--bw-area-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bw-account-dashboard-hero h1 {
  margin: 0 0 13px;
  color: var(--bw-area-ink);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.bw-account-dashboard-hero__copy > p:last-of-type {
  max-width: 590px;
  margin: 0;
  color: #485b60;
  font-size: 17px;
  line-height: 1.5;
}

.bw-account-dashboard-hero__action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bw-area-accent-dark);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 9px 20px rgba(0, 127, 150, 0.18);
}

.bw-account-dashboard-hero__action:hover {
  background: #006d80;
  color: #fff !important;
}

.bw-account-dashboard-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 38px;
  background: var(--bw-area-accent-dark);
  color: #fff;
}

.bw-account-dashboard-hero__shield {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bw-area-accent-dark);
  font-size: 24px;
}

.bw-account-dashboard-hero__aside strong {
  display: block;
  margin-bottom: 5px;
  font-size: 21px;
}

.bw-account-dashboard-hero__aside p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.bw-account-dashboard-hero__aside ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.bw-account-dashboard-hero__aside li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}

.bw-account-dashboard-hero__aside li i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 9px;
}

body#my-account .bw-account-content-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#my-account .bw-account-area__layout > .my-account-side-links {
  display: none;
}

.bw-account-dashboard__heading {
  margin: 8px 0 18px;
}

.bw-account-dashboard__heading p {
  margin: 0 0 3px;
  color: var(--bw-area-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bw-account-dashboard__heading h2 {
  margin: 0;
  color: var(--bw-area-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bw-account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bw-account-tile {
  display: grid;
  min-width: 0;
  min-height: 150px;
  align-content: start;
  padding: 22px;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  gap: 14px;
  border: 1px solid var(--bw-area-line);
  border-radius: 17px;
  background: #fff;
  color: var(--bw-area-ink) !important;
  text-decoration: none !important;
  box-shadow: none;
  transition: border-color 0.17s ease, box-shadow 0.17s ease, transform 0.17s ease;
}

.bw-account-tile:hover {
  border-color: #9fc9d0;
  color: var(--bw-area-ink) !important;
  box-shadow: 0 10px 24px rgba(29, 75, 84, 0.08);
  transform: translateY(-2px);
}

.bw-account-tile__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--bw-area-soft);
  color: var(--bw-area-accent-dark);
  font-size: 20px;
}

.bw-account-tile__copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.bw-account-tile__copy strong {
  color: var(--bw-area-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}

.bw-account-tile__copy small {
  color: var(--bw-area-muted);
  font-size: 14px;
  line-height: 1.42;
}

.bw-account-tile--primary {
  grid-column: span 2;
  border-color: var(--bw-area-accent-dark);
  background: var(--bw-area-accent-dark);
  color: #fff !important;
}

.bw-account-tile--primary:hover {
  border-color: #006d80;
  background: #006d80;
  color: #fff !important;
}

.bw-account-tile--primary .bw-account-tile__icon {
  background: #fff;
  color: var(--bw-area-accent-dark);
}

.bw-account-tile--primary .bw-account-tile__copy strong,
.bw-account-tile--primary .bw-account-tile__copy small,
.bw-account-tile--primary .bw-account-tile__arrow,
.bw-account-tile--primary:hover .bw-account-tile__arrow {
  color: #fff;
}

.bw-account-tile--primary .bw-account-tile__copy small {
  color: rgba(255, 255, 255, 0.78);
}

.bw-account-tile__arrow {
  color: #83a0a6;
  font-size: 13px;
  transition: transform 0.17s ease;
}

.bw-account-tile:hover .bw-account-tile__arrow {
  color: var(--bw-area-accent-dark);
  transform: translateX(3px);
}

.bw-account-dashboard__extensions {
  margin-top: 18px;
}

.bw-account-dashboard__extensions:empty {
  display: none;
}

.bw-account-dashboard__help {
  display: grid;
  align-items: center;
  margin-top: 28px;
  padding: 20px 22px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 15px;
  border: 1px solid var(--bw-area-line);
  border-radius: 16px;
  background: var(--bw-area-soft);
  color: var(--bw-area-ink);
}

.bw-account-dashboard__help > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bw-area-accent-dark);
  font-size: 18px;
  box-shadow: none;
}

.bw-account-dashboard__help strong {
  font-size: 16px;
}

.bw-account-dashboard__help p {
  margin: 3px 0 0;
  color: var(--bw-area-muted);
  font-size: 13px;
}

.bw-account-dashboard__help a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--bw-area-accent-dark);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.bw-account-area .alert {
  border: 1px solid #cfe3e6;
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bw-area-soft);
  color: #3d555b;
}

.bw-account-area .alert.alert-danger {
  border-color: #efccd2;
  background: #fff5f6;
  color: var(--bw-area-danger);
}

.bw-account-area .table {
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--bw-area-line);
  border-radius: 12px;
  background: #fff;
}

.bw-account-area .table thead th {
  border-color: #dce9eb;
  padding: 13px 11px;
  background: var(--bw-area-soft);
  color: #354b51;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  vertical-align: middle;
}

.bw-account-area .table tbody td,
.bw-account-area .table tbody th {
  border-color: #e4edef;
  padding: 13px 11px;
  color: #3f5359;
  font-size: 13px;
  vertical-align: middle;
}

.bw-account-area .table a {
  color: var(--bw-area-accent-dark);
  font-weight: 700;
}

.bw-account-area .label-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.bw-account-area .orders .order,
.bw-account-area .credit-slip,
.bw-account-area .cart-rule,
.bw-account-area .order-return {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--bw-area-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(29, 75, 84, 0.05);
}

.bw-account-area .orders .order h3 {
  color: var(--bw-area-accent-dark);
  font-size: 17px;
}

.bw-account-area .credit-slip ul,
.bw-account-area .cart-rule ul,
.bw-account-area .order-return ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bw-account-area .credit-slip li,
.bw-account-area .cart-rule li,
.bw-account-area .order-return li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #e8eff0;
}

.bw-account-area .credit-slip li:last-child,
.bw-account-area .cart-rule li:last-child,
.bw-account-area .order-return li:last-child {
  border-bottom: 0;
}

.bw-account-area .form-group > label {
  color: #31464c;
  font-size: 14px;
  font-weight: 650;
}

.bw-account-area .form-control,
.bw-account-area .form-control-select {
  min-height: 50px;
  border: 1px solid #bdced2;
  border-radius: 11px;
  background-color: #fff;
  color: var(--bw-area-ink);
  font-size: 15px;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.bw-account-area .form-control:focus,
.bw-account-area .form-control-select:focus {
  border-color: var(--bw-area-accent) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 157, 183, 0.16) !important;
}

.bw-account-area .form-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--bw-area-line);
}

.bw-account-area .btn-primary,
.bw-account-area .form-control-submit,
.bw-account-area .addresses-footer a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bw-area-accent-dark);
  border-radius: 999px;
  padding: 9px 20px;
  background: var(--bw-area-accent-dark);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0, 127, 150, 0.17);
}

.bw-account-area .btn-primary:hover,
.bw-account-area .form-control-submit:hover,
.bw-account-area .addresses-footer a:hover {
  border-color: #006d80;
  background: #006d80;
}

.bw-account-area .address {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--bw-area-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(29, 75, 84, 0.06);
}

.bw-account-area .address .address-body {
  min-height: 180px;
  padding: 20px;
}

.bw-account-area .address .address-body h4 {
  margin-bottom: 12px;
  color: var(--bw-area-ink);
  font-size: 17px;
}

.bw-account-area .address .address-body address {
  color: var(--bw-area-muted);
  font-size: 14px;
  line-height: 1.55;
}

.bw-account-area .address .address-footer {
  display: flex;
  border-top: 1px solid var(--bw-area-line);
  background: #f8fbfb;
}

.bw-account-area .address .address-footer a {
  display: inline-flex;
  min-height: 46px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--bw-area-accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.bw-account-area .address .address-footer a + a {
  border-left: 1px solid var(--bw-area-line);
  color: var(--bw-area-danger);
}

.bw-account-area .addresses-footer {
  margin-top: 20px;
}

body#address .bw-account-content-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#address .bw-account-content-card .address-form {
  width: 100%;
  margin-bottom: 0;
}

.bw-account-area a:focus-visible,
.bw-account-area button:focus-visible,
.bw-account-area input:focus-visible,
.bw-account-area select:focus-visible,
.bw-account-dropdown a:focus-visible {
  outline: 3px solid rgba(0, 157, 183, 0.34) !important;
  outline-offset: 2px;
}

/* Desplegable de cliente del encabezado. */
.bw-header-account__toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}

.bw-header-account__chevron {
  margin-left: 2px;
  font-size: 9px;
  transition: transform 0.16s ease;
}

.bw-header-account .show > .bw-header-account__toggle .bw-header-account__chevron,
.bw-header-account__toggle[aria-expanded="true"] .bw-header-account__chevron {
  transform: rotate(180deg);
}

.bw-account-dropdown.dropdown-menu {
  width: min(318px, calc(100vw - 24px));
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d4e3e6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(24, 62, 70, 0.18);
}

.bw-account-dropdown__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 0;
  background: #007f96;
}

.bw-account-dropdown__header > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #007f96;
  font-size: 17px;
}

.bw-account-dropdown__header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.bw-account-dropdown__header small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.bw-account-dropdown__header strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-account-dropdown__links {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.bw-account-dropdown .dropdown-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  padding: 9px 11px;
  color: #3c5157;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
}

.bw-account-dropdown__links .dropdown-item {
  border: 0 !important;
  box-shadow: none !important;
}

.bw-account-dropdown .dropdown-item > i {
  width: 25px;
  flex: 0 0 25px;
  color: #007f96;
  font-size: 15px;
  text-align: center;
}

.bw-account-dropdown .dropdown-item:hover,
.bw-account-dropdown .dropdown-item:focus {
  background: #eef7f8;
  color: #007f96;
}

.bw-account-dropdown .bw-account-dropdown__overview {
  min-height: 52px;
  margin-bottom: 3px;
  background: #eef7f8;
}

.bw-account-dropdown__overview > span {
  display: grid !important;
  gap: 1px;
}

#user_info .bw-account-dropdown__overview > span,
#header-user-btn .bw-account-dropdown__overview > span {
  display: grid !important;
  align-items: start;
}

.bw-account-dropdown__overview strong {
  color: #24373c;
  font-size: 14px;
}

.bw-account-dropdown__overview small {
  display: block !important;
  margin-top: 2px;
  color: #728287;
  font-size: 11px;
}

.bw-account-dropdown .bw-account-dropdown__logout {
  border-top: 1px solid #e2ebed;
  border-radius: 0;
  padding: 12px 18px;
  color: #a33949;
}

.bw-account-dropdown .bw-account-dropdown__logout > i {
  color: #c94355;
}

.bw-account-dropdown .bw-account-dropdown__logout:hover,
.bw-account-dropdown .bw-account-dropdown__logout:focus {
  background: #fff5f6;
  color: #a33949;
}

@media (max-width: 991px) {
  .bw-account-area__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .bw-account-nav {
    padding: 9px 10px;
  }

  .bw-account-content-card {
    padding: 24px;
  }

  .bw-account-dashboard__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bw-account-dashboard-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .bw-account-dashboard-hero__copy,
  .bw-account-dashboard-hero__aside {
    padding: 34px;
  }
}

@media (max-width: 767px) {
  .bw-account-page-header {
    gap: 13px;
    margin-bottom: 18px;
    padding: 20px 18px;
    border-radius: 15px;
  }

  .bw-account-page-header__icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    border-radius: 50%;
    font-size: 22px;
  }

  .bw-account-page-header h1 {
    font-size: 25px;
  }

  .bw-account-page-header > div > p:last-child {
    font-size: 13px;
  }

  .bw-account-area {
    padding-bottom: 34px;
  }

  #content.bw-account-area {
    padding-bottom: 34px;
  }

  .bw-account-area__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .bw-account-nav {
    position: static;
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    border-radius: 14px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    flex-wrap: nowrap;
  }

  .bw-account-nav__title {
    display: none;
  }

  .bw-account-nav__link,
  .bw-account-nav__extensions > a {
    width: auto !important;
    min-width: max-content;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 6px 10px !important;
    scroll-snap-align: start;
  }

  .bw-account-nav__link > span:first-child,
  .bw-account-nav__extensions > a > span.link-item > i {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .bw-account-nav__extensions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .bw-account-nav__logout {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .bw-account-content__title {
    margin-bottom: 12px;
    font-size: 23px;
  }

  .bw-account-content-card {
    padding: 20px 16px;
    border-radius: 15px;
  }

  .bw-account-dashboard-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 20px;
  }

  .bw-account-dashboard-hero__copy {
    padding: 34px 24px 30px;
  }

  .bw-account-dashboard-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .bw-account-dashboard-hero__copy > p:last-of-type {
    font-size: 15px;
  }

  .bw-account-dashboard-hero__aside {
    display: grid;
    padding: 24px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .bw-account-dashboard-hero__shield {
    width: 46px;
    height: 46px;
    margin: 0;
    grid-row: 1 / span 2;
    font-size: 20px;
  }

  .bw-account-dashboard-hero__aside strong {
    font-size: 18px;
  }

  .bw-account-dashboard-hero__aside ul {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .bw-account-dashboard__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bw-account-tile {
    min-height: 110px;
    padding: 17px;
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    gap: 11px;
  }

  .bw-account-tile--primary {
    grid-column: auto;
  }

  .bw-account-tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .bw-account-dashboard__help {
    align-items: start;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .bw-account-dashboard__help a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bw-account-area .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  body#address .bw-account-content-card {
    padding: 0;
  }

  .bw-account-dropdown.dropdown-menu {
    width: min(320px, calc(100vw - 20px));
  }
}

@media (max-width: 420px) {
  .bw-account-page-header__icon {
    display: none;
  }

  .bw-account-page-header {
    padding: 18px 16px;
  }

  .bw-account-dashboard__help > span {
    display: none;
  }

  .bw-account-dashboard__help {
    grid-template-columns: 1fr;
  }

  .bw-account-area .credit-slip li,
  .bw-account-area .cart-rule li,
  .bw-account-area .order-return li {
    display: grid;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bw-account-nav__link,
  .bw-account-nav__extensions > a,
  .bw-account-tile,
  .bw-account-tile__arrow,
  .bw-header-account__chevron {
    transition: none;
  }
}
