:root {
  --mah-portal-forest: #031f15;
  --mah-portal-forest-deep: #02180f;
  --mah-portal-gold: #c99a45;
  --mah-portal-gold-dark: #96651e;
  --mah-portal-paper: #f6f2ea;
  --mah-portal-paper-light: #fcf9f3;
  --mah-portal-ink: #17140f;
  --mah-portal-muted: #69645d;
  --mah-portal-success: #236e4c;
}

body.mah95-site05-account-surface {
  background: var(--mah-portal-paper);
}

body.mah95-site05-account-surface #content,
body.mah95-site05-account-surface #content > .ast-container,
body.mah95-site05-account-surface #primary,
body.mah95-site05-account-surface #main,
body.mah95-site05-account-surface article,
body.mah95-site05-account-surface .entry-content,
body.mah95-site05-account-surface .woocommerce,
body.mah95-site05-account-surface .woocommerce-order {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.mah95-site05-account-surface #content > .ast-container {
  display: block;
}

body.mah95-site05-account-surface #primary {
  border: 0;
}

body.mah95-site05-account-surface .entry-header,
body.mah95-site05-account-surface .entry-title {
  display: none;
}

.mah-portal-screen,
.mah-portal-screen * {
  box-sizing: border-box;
}

.mah-portal-screen {
  width: 100%;
  min-width: 320px;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(380px, .82fr) minmax(560px, 1.18fr);
  overflow: hidden;
  background: var(--mah-portal-paper);
  color: var(--mah-portal-ink);
  font-family: Roboto, Arial, sans-serif;
  letter-spacing: 0;
}

.mah-portal-story {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 64px clamp(44px, 5vw, 82px) 62px;
  background:
    linear-gradient(90deg, rgba(2, 24, 15, .54) 0%, rgba(2, 24, 15, .14) 70%),
    linear-gradient(180deg, rgba(3, 31, 21, .02) 28%, rgba(2, 24, 15, .94) 100%),
    url("images/mah95-site05-onboarding-stable-desktop-v1.webp") 94% center / cover no-repeat;
  color: var(--mah-portal-paper);
}

.mah-portal-story::after {
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: rgba(201, 154, 69, .34);
  content: "";
}

.mah-portal-story > div {
  position: relative;
  z-index: 1;
  max-width: 470px;
}

.mah-portal-story strong {
  display: block;
  max-width: 430px;
  color: var(--mah-portal-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.05;
  font-weight: 700;
}

.mah-portal-story p {
  max-width: 410px;
  margin: 17px 0 0;
  color: rgba(246, 242, 234, .82);
  font-size: 16px;
  line-height: 1.5;
}

.mah-portal-screen--purchase,
.mah-portal-screen--login {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.mah-portal-screen--purchase .mah-portal-story,
.mah-portal-screen--login .mah-portal-story {
  width: 100%;
  height: 280px;
  min-height: 280px;
  align-items: center;
  padding: 0;
  border-bottom-right-radius: 48px;
  box-shadow: 0 10px 16px -15px rgba(0, 14, 9, .38);
  background: var(--mah-portal-forest);
}

.mah-portal-story-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mah-portal-story-media img {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  opacity: 1;
}

.mah-portal-screen--purchase .mah-portal-story::after,
.mah-portal-screen--login .mah-portal-story::after {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(90deg, rgba(3, 31, 21, .14) 0%, rgba(3, 31, 21, .05) 58%, rgba(3, 31, 21, 0) 100%);
  pointer-events: none;
}

.mah-portal-screen--purchase .mah-portal-story > div,
.mah-portal-screen--login .mah-portal-story > div {
  z-index: 2;
  width: min(1280px, calc(100% - 56px));
  max-width: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding-top: 72px;
}

.mah-portal-screen--purchase .mah-portal-workspace,
.mah-portal-screen--login .mah-portal-workspace {
  width: 100%;
  justify-content: center;
  padding-block: 72px 82px;
}

.mah-portal-workspace {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 64px clamp(42px, 7vw, 112px);
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 154, 69, .07), transparent 26%),
    var(--mah-portal-paper);
}

.mah-portal-content {
  width: 100%;
  max-width: 650px;
  min-width: 0;
  margin: 0 auto;
}

.mah-portal-eyebrow {
  margin: 0 0 16px;
  color: var(--mah-portal-gold-dark);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}

.mah-portal-content h1 {
  max-width: 640px;
  margin: 0;
  color: var(--mah-portal-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1.01;
  font-weight: 700;
  letter-spacing: 0;
}

.mah-portal-lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: #514c45;
  font-size: 17px;
  line-height: 1.65;
}

.mah-portal-purchase {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  margin: 38px 0 0;
  padding: 19px 0;
  border-top: 1px solid rgba(3, 31, 21, .18);
  border-bottom: 1px solid rgba(3, 31, 21, .18);
}

.mah-portal-purchase img {
  width: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.mah-portal-purchase strong,
.mah-portal-check-item strong {
  display: block;
  color: var(--mah-portal-forest);
  font-size: 15px;
}

.mah-portal-purchase span,
.mah-portal-check-item div span {
  display: block;
  margin-top: 4px;
  color: var(--mah-portal-muted);
  font-size: 13px;
  line-height: 1.4;
}

.mah-portal-purchase > b {
  color: var(--mah-portal-success);
  font-size: 13px;
  white-space: nowrap;
}

.mah-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.mah-portal-button,
.mah-portal-native-form .button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 24px 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background-color 180ms cubic-bezier(.22, 1, .36, 1), border-color 180ms cubic-bezier(.22, 1, .36, 1), color 180ms cubic-bezier(.22, 1, .36, 1), box-shadow 180ms cubic-bezier(.22, 1, .36, 1);
}

.mah-portal-button--primary,
.mah-portal-native-form button.button {
  border: 1px solid var(--mah-portal-gold-dark) !important;
  background: var(--mah-portal-gold-dark) !important;
  color: #fff !important;
}

.mah-portal-button--secondary {
  border: 1px solid rgba(3, 31, 21, .55) !important;
  background: transparent !important;
  color: var(--mah-portal-forest) !important;
}

.mah-portal-button--link {
  border: 0 !important;
  background: transparent !important;
  color: var(--mah-portal-muted) !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.mah-portal-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none !important;
}

.mah-portal-button:focus-visible,
.mah-portal-native-form button:focus-visible,
.mah-portal-native-form a:focus-visible,
.mah-portal-native-form input:focus-visible,
.mah-portal-native-form .show-password-input:focus-visible {
  outline: 3px solid var(--mah-portal-gold) !important;
  outline-offset: 3px;
}

.mah-portal-note {
  display: grid;
  grid-template-columns: minmax(132px, 165px) minmax(0, 1fr);
  gap: 10px 20px;
  align-items: baseline;
  margin: 25px 0 0;
  color: var(--mah-portal-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mah-portal-note strong {
  color: var(--mah-portal-forest);
  font-size: 13px;
}

.mah-portal-feedback {
  margin: 18px 0 0;
  color: var(--mah-portal-success);
  font-size: 14px;
  font-weight: 700;
}

.mah-portal-native-form {
  margin-top: 32px;
}

.mah-portal-screen--login .mah-portal-native-form > h2:first-child,
.mah-portal-screen--login .mah-portal-native-form > .woocommerce > h2,
.mah-portal-screen--login .mah-portal-native-form #customer_login .u-column1 > h2:first-child {
  display: none;
}

.mah-portal-native-form .woocommerce-form,
.mah-portal-native-form .woocommerce-ResetPassword {
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mah-portal-native-form .form-row {
  width: 100%;
  float: none;
  margin: 20px 0 0;
  padding: 0;
}

.mah-portal-native-form .form-row:first-child {
  margin-top: 0;
}

.mah-portal-native-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--mah-portal-forest);
  font-size: 14px;
  font-weight: 800;
}

.mah-portal-native-form input.input-text,
.mah-portal-native-form input[type="email"],
.mah-portal-native-form input[type="password"],
.mah-portal-native-form input[type="text"] {
  width: 100%;
  height: 54px;
  padding: 0 76px 0 16px;
  border: 1px solid rgba(3, 31, 21, .28);
  border-radius: 6px;
  background: var(--mah-portal-paper-light);
  color: var(--mah-portal-ink);
  box-shadow: none;
}

.mah-portal-native-form input:hover {
  border-color: rgba(3, 31, 21, .48);
}

.mah-portal-native-form .password-input {
  position: relative;
  display: block;
}

.mah-portal-native-form .show-password-input {
  position: absolute;
  top: 50%;
  right: 7px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--mah-portal-forest);
  cursor: pointer;
  transform: translateY(-50%);
}

.mah-portal-native-form .show-password-input::after {
  margin: 0 !important;
  color: inherit;
}

.mah-portal-native-form .lost_password {
  margin: 18px 0 0;
}

.mah-portal-native-form .lost_password a {
  color: var(--mah-portal-forest);
  text-underline-offset: 4px;
}

.mah-portal-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
}

.mah-portal-progress-head strong {
  color: var(--mah-portal-forest);
  font-size: 16px;
}

.mah-portal-progress-head span {
  color: var(--mah-portal-muted);
  font-size: 13px;
}

.mah-portal-progress-track {
  height: 6px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(3, 31, 21, .12);
}

.mah-portal-progress-track span {
  width: 66.666%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--mah-portal-gold-dark);
}

.mah-portal-checklist {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(23, 20, 15, .14);
}

.mah-portal-check-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  padding: 19px 0;
  border-bottom: 1px solid rgba(23, 20, 15, .14);
}

.mah-portal-check-marker {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1px solid rgba(3, 31, 21, .28);
  border-radius: 50%;
  color: var(--mah-portal-forest);
  font-size: 14px;
  font-weight: 900;
}

.mah-portal-check-item.is-complete .mah-portal-check-marker {
  border-color: var(--mah-portal-success);
  background: var(--mah-portal-success);
  color: #fff;
}

.mah-portal-check-item.is-current .mah-portal-check-marker {
  border: 2px solid var(--mah-portal-gold-dark);
  color: var(--mah-portal-gold-dark);
}

.mah-portal-check-item > b {
  align-self: start;
  padding-top: 6px;
  color: var(--mah-portal-success);
  font-size: 12px;
}

.mah-portal-check-item.is-current > b {
  color: var(--mah-portal-gold-dark);
}

@media (hover: hover) and (pointer: fine) {
  .mah-portal-button:not(:disabled):hover,
  .mah-portal-native-form button.button:hover {
    transform: translateY(-2px);
  }
  .mah-portal-button--primary:not(:disabled):hover,
  .mah-portal-native-form button.button:hover {
    border-color: #7b5017 !important;
    background: #7b5017 !important;
  }
  .mah-portal-button--secondary:not(:disabled):hover {
    border-color: var(--mah-portal-forest) !important;
  }
  .mah-portal-native-form .show-password-input:hover {
    background: rgba(3, 31, 21, .06);
  }
}

@media (min-width: 1181px) {
  .mah-portal-screen--purchase .mah-portal-story strong,
  .mah-portal-screen--login .mah-portal-story strong {
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .mah-portal-screen {
    grid-template-columns: minmax(280px, .72fr) minmax(480px, 1.28fr);
  }
  .mah-portal-story {
    padding-inline: 36px;
  }
  .mah-portal-workspace {
    padding-inline: 42px;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .mah-portal-screen--purchase .mah-portal-story,
  .mah-portal-screen--login .mah-portal-story {
    height: 225px;
    min-height: 225px;
  }
  .mah-portal-story-media {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mah-portal-story-media img {
    height: 100%;
  }
  .mah-portal-screen--purchase .mah-portal-story > div,
  .mah-portal-screen--login .mah-portal-story > div {
    padding-top: 64px;
  }
}

@media (max-width: 767px) {
  .mah-portal-screen {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .mah-portal-story {
    min-height: 228px;
    align-items: flex-end;
    padding: 28px 24px 27px;
    background:
      linear-gradient(90deg, rgba(2, 24, 15, .64) 0%, rgba(2, 24, 15, .08) 78%),
      linear-gradient(180deg, rgba(3, 31, 21, .02) 20%, rgba(2, 24, 15, .92) 100%),
      url("images/mah95-site05-onboarding-stable-mobile-v1.webp") 64% center / cover no-repeat;
  }
  .mah-portal-story::after {
    inset: auto 0 0;
    width: 100%;
    height: 1px;
  }
  .mah-portal-story strong {
    max-width: 320px;
    font-size: 29px;
    line-height: 1.04;
  }
  .mah-portal-story p {
    max-width: 315px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.42;
  }
  .mah-portal-screen--purchase .mah-portal-story,
  .mah-portal-screen--login .mah-portal-story {
    height: 190px;
    min-height: 190px;
    align-items: center;
    padding: 0;
    border-bottom-right-radius: 30px;
    box-shadow: 0 8px 14px -14px rgba(0, 14, 9, .36);
    background: var(--mah-portal-forest);
  }
  .mah-portal-story-media {
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mah-portal-story-media img {
    height: 100%;
  }
  .mah-portal-screen--purchase .mah-portal-story::after,
  .mah-portal-screen--login .mah-portal-story::after {
    inset: 0;
    width: auto;
    height: auto;
    background: linear-gradient(90deg, rgba(3, 31, 21, .12) 0%, rgba(3, 31, 21, .04) 58%, rgba(3, 31, 21, 0) 100%);
  }
  .mah-portal-screen--purchase .mah-portal-story > div,
  .mah-portal-screen--login .mah-portal-story > div {
    width: min(520px, calc(100% - 36px));
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 64px;
  }
  .mah-portal-screen--purchase .mah-portal-story strong,
  .mah-portal-screen--login .mah-portal-story strong {
    max-width: 300px;
    font-size: 29px;
  }
  .mah-portal-screen--purchase .mah-portal-story p,
  .mah-portal-screen--login .mah-portal-story p {
    max-width: 300px;
  }
  .mah-portal-screen--purchase .mah-portal-workspace,
  .mah-portal-screen--login .mah-portal-workspace {
    padding-block: 42px 64px;
  }
  .mah-portal-workspace {
    flex: 1;
    align-items: flex-start;
    padding: 42px 24px 64px;
  }
  .mah-portal-eyebrow {
    margin-bottom: 12px;
  }
  .mah-portal-content h1 {
    font-size: 39px;
    line-height: 1.02;
  }
  .mah-portal-lead {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.55;
  }
  .mah-portal-purchase {
    grid-template-columns: 52px minmax(0, 1fr);
    margin-top: 28px;
    padding-block: 16px;
  }
  .mah-portal-purchase img {
    width: 52px;
  }
  .mah-portal-purchase > b {
    grid-column: 2;
    margin-top: -8px;
  }
  .mah-portal-actions {
    flex-direction: column;
    margin-top: 25px;
  }
  .mah-portal-button,
  .mah-portal-native-form .button {
    width: 100%;
  }
  .mah-portal-note {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 24px;
  }
  .mah-portal-native-form {
    margin-top: 26px;
  }
  .mah-portal-progress-head {
    margin-top: 28px;
  }
  .mah-portal-check-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
    padding-block: 17px;
  }
  .mah-portal-check-item > b {
    grid-column: 2;
    margin-top: -7px;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mah-portal-screen *,
  .mah-portal-screen *::before,
  .mah-portal-screen *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
