.my-account-main { background: #fafaf9; }

.my-account-header {
  display: flex;
  min-height: 276px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 78px var(--content-inset) 48px;
}
.my-account-header__eyebrow,
.my-account-membership__eyebrow {
  font-size: var(--font-size-section-meta);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .18em;
}
.my-account-header__eyebrow { max-width: 100%; color: #6e6a63; overflow-wrap: anywhere; }
.my-account-header__title {
  min-width: 0;
  max-width: 100%;
  color: #1a1a15;
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
}
.my-account-header__intro { max-width: min(760px, 100%); color: #6e6a63; font-size: var(--font-size-body-lg); line-height: 1.7; overflow-wrap: anywhere; }

.my-account-body {
  display: grid;
  grid-template-columns: minmax(0, 856fr) minmax(0, 400fr);
  align-items: start;
  gap: 40px;
  padding: 0 var(--content-inset) 120px;
}
.my-account-details { min-width: 0; }
.my-account-tabs { position: relative; display: flex; min-width: 0; flex-wrap: wrap; gap: 10px; min-height: 37px; }
.my-account-tab {
  display: inline-flex;
  max-width: 100%;
  min-height: 37px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #dcd8d0;
  border-radius: 999px;
  background: #fff;
  color: #1a1a15;
  font-size: var(--font-size-supporting-compact);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  transition: border-color 160ms ease-out, background-color 220ms ease-in-out, color 220ms ease-in-out;
}
.my-account-tab--personal { min-width: 139px; }
.my-account-tab--contacts { min-width: 95px; }
.my-account-tab--region { min-width: 81px; }
.my-account-tab--password { min-width: 100px; }
.my-account-tab--membership { min-width: 118px; }
.my-account-tab.is-active { border-color: #005032; background: #005032; color: #f3f1ec; }
.my-account-tab:focus-visible { outline: 2px solid #005032; outline-offset: 3px; }
.my-account-tab__mobile { display: none; }

.my-account-panel {
  min-height: 486px;
  margin-top: 28px;
  padding: 32px 35px 31.75px;
  border: 1px solid #dcd8d0;
  border-radius: 20px;
  background: #fff;
}
.my-account-panel[hidden] { display: none; }
.my-account-panel__title { max-width: 100%; margin-bottom: 24px; font-size: var(--font-size-heading-8); font-weight: 300; line-height: 1.18; letter-spacing: -.01em; overflow-wrap: anywhere; }
.my-account-fields { display: flex; min-width: 0; flex-direction: column; gap: 18px; }
.my-account-field { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.my-account-field label { max-width: 100%; color: #6e6a63; font-size: var(--font-size-caption); font-weight: 400; line-height: 1.2; overflow-wrap: anywhere; }
.my-account-field input,
.my-account-field select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 58px;
  padding: 14.3px 18px;
  border: 1px solid #dcd8d0;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #1a1a15;
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: 1.7;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.my-account-field input::placeholder { color: #767168; opacity: 1; }
.my-account-field input:hover,
.my-account-field select:hover { border-color: #9a968e; }
.my-account-field input:focus,
.my-account-field select:focus { border: 1.6px solid #005032; box-shadow: 0 0 0 3px rgb(0 79 50 / 12%); }
.my-account-field select {
  appearance: none;
  padding-right: 44px;
  color: #767168;
  background-image: url('../images/join-chevron.svg');
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.my-account-field select:focus { background-image: url('../images/join-chevron-focus.svg'); }
.my-account-field--organisation { display: none; }
.my-account-save {
  display: inline-flex;
  min-width: 164px;
  max-width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding: 9px 9px 9px 18px;
  border-radius: 999px;
  background: #005032;
  color: #f3f1ec;
  font-size: var(--font-size-supporting-text);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 250ms ease-out, box-shadow 250ms ease-out, transform 160ms ease-out;
}
.my-account-save > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.my-account-save__chip { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border-radius: 50%; background: #f3f1ec; }
.my-account-save__chip img { width: 11px; height: 9px; }
.my-account-save:focus-visible,
.my-account-membership__renew:focus-visible { outline: 2px solid #005032; outline-offset: 3px; }
.my-account-save:hover { background: #003a24; box-shadow: 0 8px 16px rgb(0 58 36 / 14%); }
.my-account-save:active { transform: scale(.99); }
.my-account-panel--other p { max-width: 44ch; color: #6e6a63; font-size: var(--font-size-body); line-height: 1.6; overflow-wrap: anywhere; }

.my-account-membership {
  display: flex;
  min-width: 0;
  min-height: 246px;
  flex-direction: column;
  align-items: stretch;
  padding: 32px 32px 31.75px;
  border-radius: 20px;
  background: #005032;
  color: #f3f1ec;
}
.my-account-membership__eyebrow { color: #9fc4b0; overflow-wrap: anywhere; }
.my-account-membership__status { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.my-account-membership__desktop-label { min-width: 0; flex: 1 1 auto; font-family: var(--font-heading); font-size: var(--font-size-heading-7); font-weight: 300; line-height: 1.14; overflow-wrap: anywhere; }
.my-account-membership__mobile-label { display: none; }
.my-account-membership__badge {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  min-height: 24px;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e8efea;
  color: #2f5c48;
  font-size: var(--font-size-caption);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .12em;
  overflow-wrap: anywhere;
}
.my-account-membership__badge img { width: 6px; height: 6px; flex: none; }
.my-account-membership__renewal { min-width: 0; margin-top: 10px; color: #b9d2c4; font-size: var(--font-size-body); font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.my-account-membership__renew {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  border: 1px solid #4c7a62;
  border-radius: 999px;
  color: #f3f1ec;
  font-size: var(--font-size-inline-link);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color 140ms ease-out;
}
.my-account-membership__renew:hover { border-color: #f3f1ec; }
.my-account-membership__renew:focus-visible { outline-color: #f3f1ec; }

html.my-account-motion-boot .my-account-header__eyebrow,
html.my-account-motion-boot .my-account-header__title,
html.my-account-motion-boot .my-account-header__intro,
html.my-account-motion-boot .my-account-tabs,
html.my-account-motion-boot .my-account-panel,
html.my-account-motion-boot .my-account-membership { opacity: 0; visibility: hidden; }

@media (max-width: 1366px) {
  .my-account-header { padding-inline: 48px; }
  .my-account-body { padding-inline: 48px; }
}
@media (max-width: 900px) {
  .my-account-header { padding: 66px 36px 42px; }
  .my-account-header__title { font-size: 50px; }
  .my-account-body { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 0 36px 80px; }
  .my-account-panel { min-height: 0; }
  .my-account-membership { min-height: 0; }
}
@media (max-width: 480px) {
  .my-account-header { min-height: 150px; gap: 12px; padding: 54px 24px 28px; }
  .my-account-header__eyebrow { line-height: 1.2; }
  .my-account-header__title { font-size: var(--font-size-heading-mobile); }
  .my-account-header__intro { display: none; }
  .my-account-body { gap: 16px; padding: 0 24px 72px; }
  .my-account-tabs { gap: 8px 10px; min-height: 82px; }
  .my-account-tab--personal { min-width: 93px; }
  .my-account-tab--membership { display: none; }
  .my-account-tab__desktop { display: none; }
  .my-account-tab__mobile { display: inline; }
  .my-account-panel { min-height: 498px; margin-top: 22px; padding: 24px 21px; border-radius: 18px; }
  .my-account-panel__title { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .my-account-fields { gap: 16px; }
  .my-account-field--organisation { display: flex; }
  .my-account-save { width: 100%; justify-content: center; margin-top: 16px; }
  .my-account-membership { min-height: 94px; padding: 22px 22px 21.75px; border-radius: 18px; }
  .my-account-membership__eyebrow,
  .my-account-membership__desktop-label,
  .my-account-membership__renew { display: none; }
  .my-account-membership__status { justify-content: space-between; gap: 8px; margin-top: 0; }
  .my-account-membership__mobile-label { display: inline; min-width: 0; flex: 1 1 auto; font-size: var(--font-size-body-compact); font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
  .my-account-membership__renewal { margin-top: 8px; font-size: var(--font-size-body-sm); line-height: 1.4; }
}
@media (max-width: 359px) {
  .my-account-tab { padding-inline: 10px; }
  .my-account-tabs { column-gap: 6px; }
  .my-account-panel { padding-inline: 18px; }
  .my-account-membership { padding-inline: 18px; }
  .my-account-membership__mobile-label { font-size: var(--font-size-supporting-text); }
}
@media (prefers-reduced-motion: reduce) {
  .my-account-tab,
  .my-account-field input,
  .my-account-field select,
  .my-account-save,
  .my-account-membership__renew { transition-duration: .01ms; }
  html.my-account-motion-boot .my-account-header__eyebrow,
  html.my-account-motion-boot .my-account-header__title,
  html.my-account-motion-boot .my-account-header__intro,
  html.my-account-motion-boot .my-account-tabs,
  html.my-account-motion-boot .my-account-panel,
  html.my-account-motion-boot .my-account-membership { opacity: 1; visibility: visible; }
}
