/* Your account (page-account.php): the opening, the offer card, MemberPress's account tabs and screens in the site's tokens.
   Loads after inner.css and before plugins.css, so every rule that must beat plugins.css or MemberPress's own account.css
   carries an extra class (.acct, .acct-core). Self-sufficient: it needs only the tokens in inner.css and base.css. */

/* ---- the opening: the same width as the content below, so the left edges line up ---- */
.acct-top .wrap,.acct .wrap{max-width:960px}
.acct-top .lede b{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.acct-top .notice{font-size:.95rem}
/* Moving between tabs reloads the page: the heading is already there, it does not arrive again */
.acct-top.is-return .en{animation:none;opacity:1;transform:none}

/* ---- the offer card: the whole card is the link; it presses in under a finger and its arrow moves on hover ---- */
.acct-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;justify-self:start;width:100%;max-width:560px;margin-top:6px;padding:16px 10px 16px 20px;box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 18px 40px -30px rgba(11,31,68,.35);color:var(--ink);text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .7s var(--ease),box-shadow .7s var(--ease),border-color .7s var(--ease)}
.acct-offer-body{display:grid;gap:4px;min-width:0}
.acct-offer-title{margin:0;font:var(--dw) 1.12rem/1.2 var(--display);letter-spacing:var(--dtrack);text-wrap:balance}
.acct-offer-line{color:var(--ink-2);font-size:.92rem;line-height:1.4}
.acct-offer i{width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:none;transition:transform .7s var(--ease),background-color .7s var(--ease)}
.acct-offer i svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.acct-offer:hover{border-color:rgba(11,31,68,.2);box-shadow:var(--shadow)}
.acct-offer:hover i{transform:translate(3px,-1px) scale(1.05);background:var(--navy)}
.acct-offer:active{transform:scale(.985);transition-duration:.2s}
.acct-offer:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media (min-width:640px){.acct-offer{padding:18px 12px 18px 24px}.acct-offer-title{font-size:1.25rem}}

/* ---- the tabs ---- */
.sec.acct .wrap{padding-top:10px;padding-bottom:56px}
@media (min-width:900px){.sec.acct .wrap{padding-top:28px;padding-bottom:80px}}
.acct-core .screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);border:0;white-space:nowrap}
.acct-tabs{margin:0 0 14px}
.acct-tabs .mp_wrapper{margin:0;padding:0}
.acct #mepr-account-nav{width:auto!important;margin:0}
.acct #mepr-account-nav ul{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.acct #mepr-account-nav .mepr-nav-item{margin:0;padding:0;font-weight:400}
.acct #mepr-account-nav .mepr-nav-item a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:4px 16px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);font:600 .9rem/1.2 var(--sans);text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .5s var(--ease),border-color .5s var(--ease),background-color .5s var(--ease),color .5s var(--ease)}
.acct #mepr-account-nav .mepr-nav-item a:hover{border-color:rgba(11,31,68,.25);background:var(--cream)}
.acct #mepr-account-nav .mepr-nav-item a:active{transform:scale(.96);transition-duration:.15s}
.acct #mepr-account-nav .mepr-nav-item a:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.acct #mepr-account-nav .mepr-active-nav-tab a{background:var(--ink);border-color:var(--ink);color:#fff}
.acct #mepr-account-nav .mepr-active-nav-tab a:hover{background:var(--navy);border-color:var(--navy)}
/* Sign out is the last tab: a quiet link, not a tab, and set apart from the others on a wide screen */
.acct #mepr-account-nav li:last-child a{background:none;border-color:transparent;color:var(--ink-2);padding-left:10px;padding-right:10px;text-decoration:underline;text-underline-offset:.22em;text-decoration-thickness:1px}
.acct #mepr-account-nav li:last-child a:hover{background:none;color:var(--ink);border-color:transparent}
@media (min-width:720px){.acct #mepr-account-nav li:last-child{margin-left:auto}}

/* ---- the card the screen sits in ---- */
.acct-core{padding:20px 16px;min-width:0}
@media (min-width:640px){.acct-core{padding:32px}}
@media (prefers-reduced-motion:no-preference){.acct-shell{animation:acct-rise .8s var(--ease) both;animation-delay:.12s}@keyframes acct-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}}
.acct-core .mp_wrapper{margin:0;padding:0;max-width:none;width:100%;overflow:visible}
.acct-core .mp_wrapper + .mp_wrapper{margin-top:14px}
.acct-core #mepr-account-welcome-message,.acct-core #mepr-account-user-message{margin:0 0 18px;color:var(--ink-2);font-size:1rem;line-height:1.55}
.acct-core #mepr-account-welcome-message p,.acct-core #mepr-account-user-message p{margin:0 0 10px}
.acct-core .mepr_spacer{display:none}

/* ---- details (the profile form) and change password ---- */
.acct-core .mepr-account-form{display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:640px}
.acct-core .mepr-newpassword-form{display:block;max-width:640px}
.acct-core .mepr-account-form .mp-form-row,.acct-core .mepr-newpassword-form .mp-form-row{min-width:0}
.acct-core .mepr-newpassword-form label{font-weight:600;font-size:.92rem;color:var(--ink);display:block;margin:0 0 4px}
.acct-core .mepr-newpassword-form .mp-hide-pw{display:block;position:relative}
@media (min-width:560px){
  .acct-core .mepr-account-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px}
  .acct-core .mepr-account-form > *{grid-column:1 / -1}
  .acct-core .mepr-account-form > .mepr_first_name{grid-column:1}
  .acct-core .mepr-account-form > .mepr_last_name{grid-column:2}
}
.acct-core .mp_wrapper .mepr-account-form .mepr-submit,.acct-core .mp_wrapper .mepr-newpassword-form .mepr-submit{margin:8px 0 0;padding:8px 28px;width:100%}
@media (min-width:640px){.acct-core .mp_wrapper .mepr-account-form .mepr-submit,.acct-core .mp_wrapper .mepr-newpassword-form .mepr-submit{width:auto;min-width:220px}}
.acct-core .mepr-newpassword-form{color:var(--ink-2)}
.acct-core .mepr-newpassword-form a{font-weight:600;display:inline-flex;align-items:center;min-height:44px;margin-left:4px}
/* the tab above does the job of this small link */
.acct-core .mepr-account-change-password{display:none}

/* ---- saved, and the other messages MemberPress prints ---- */
.acct-core .mp_wrapper .mepr_updated{position:relative;margin:0 0 18px!important;padding:14px 16px 14px 52px!important;border:1px solid rgba(13,107,58,.25)!important;border-radius:18px;background:#f0faf4!important;color:#0d6b3a;font-size:.98rem;font-weight:600;line-height:1.4}
.acct-core .mp_wrapper .mepr_updated::before{content:"";position:absolute;left:16px;top:50%;width:24px;height:24px;margin-top:-12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11.5' fill='%23d3f0e0'/%3E%3Cpath d='M7 12.5l3.4 3.4L17 9' fill='none' stroke='%230d6b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/24px 24px no-repeat}
@media (prefers-reduced-motion:no-preference){.acct-core .mp_wrapper .mepr_updated{animation:acct-pop .7s var(--ease) both}@keyframes acct-pop{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}}
.acct-core .mepr-no-active-subscriptions,.acct-core .mp-no-subs{margin:0;padding:6px 0;color:var(--ink-2);font-size:1rem}

/* ---- memberships and payments: a table on a wide screen, one card per row on a phone ---- */
.acct-core .mp_wrapper table.mepr-account-table{width:100%!important;margin:0;border:0;border-collapse:separate;border-spacing:0;font-size:.92rem;color:var(--ink-2)}
.acct-core .mp_wrapper table.mepr-account-table tr{border:0;padding:0;background:none}
.acct-core .mp_wrapper table.mepr-account-table th{padding:0 12px 10px 0;border:0;border-bottom:1px solid var(--line);text-align:left;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:600;color:var(--ink-3)}
.acct-core .mp_wrapper table.mepr-account-table td{padding:14px 12px 14px 0;border:0;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.acct-core .mp_wrapper table.mepr-account-table tr:last-child td{border-bottom:0}
.acct-core .mepr-account-product,.acct-core .mepr-account-product a{color:var(--ink);font-weight:600}
.acct-core .mepr-account-product a{text-underline-offset:.2em}
.acct-core .mepr-account-subscr-id{display:none}
.acct-core .mepr-account-terms,.acct-core .mepr-account-rebill{font-size:.88rem;font-weight:400;font-style:normal;color:var(--ink-2)}
.acct-core .mepr-active,.acct-core .mepr-inactive{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.8rem;font-weight:600;line-height:1.5}
.acct-core .mepr-active{background:#f0faf4;color:#0d6b3a}
.acct-core .mepr-inactive{background:#fff5f4;color:#b42318}
.acct-core .mepr-account-cc-exp.mepr-inactive{padding:0;background:none}
.acct-core .mepr-account-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-start}
.acct-core .mepr-account-actions a,.acct-core a.mepr-account-row-action{display:inline-flex;align-items:center;min-height:44px;padding:4px 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:600;font-size:.88rem;text-decoration:none;touch-action:manipulation;transition:transform .5s var(--ease),border-color .5s var(--ease)}
.acct-core .mepr-account-actions a:hover{border-color:rgba(11,31,68,.25)}
.acct-core .mepr-account-actions a:active{transform:scale(.96)}
.acct-core #mepr-subscriptions-paging,.acct-core #mepr-payments-paging{display:flex;justify-content:space-between;gap:12px;width:auto!important;margin-top:12px;border-spacing:0}
.acct-core #mepr-subscriptions-paging a,.acct-core #mepr-payments-paging a{float:none!important;display:inline-flex;align-items:center;min-height:44px;font-weight:600}
@media (max-width:859px){
  .acct-core .mp_wrapper table.mepr-account-table,.acct-core .mp_wrapper table.mepr-account-table tbody,.acct-core .mp_wrapper table.mepr-account-table tr,.acct-core .mp_wrapper table.mepr-account-table td{display:block;width:100%;box-sizing:border-box}
  .acct-core .mp_wrapper table.mepr-account-table thead{display:none!important}
  .acct-core .mp_wrapper table.mepr-account-table tr{margin:0 0 12px;padding:2px 16px;background:var(--cream);border:1px solid var(--line);border-radius:18px}
  .acct-core .mp_wrapper table.mepr-account-table tr:last-child{margin-bottom:0}
  .acct-core .mp_wrapper table.mepr-account-table td{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;align-items:start;padding:12px 0;text-align:right;border:0}
  .acct-core .mp_wrapper table.mepr-account-table td + td{border-top:1px solid var(--line)}
  .acct-core .mp_wrapper table.mepr-account-table td::before{content:attr(data-label);float:none;grid-column:1;grid-row:1 / span 4;margin-top:3px;text-align:left;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;font-weight:600;color:var(--ink-3)}
  .acct-core .mp_wrapper table.mepr-account-table td > *{grid-column:2;justify-self:end;text-align:right}
  .acct-core .mp_wrapper table.mepr-account-table td > div{margin:0;padding:0}
  .acct-core .mepr-account-auto-rebill,.acct-core .mepr-account-rebill{display:block}
  .acct-core .mepr-account-actions{justify-content:flex-end}
  /* nothing to show in an empty cell: inc/account.php marks the blank placeholder cells MemberPress prints (card expiry, actions) */
  .acct-core .mp_wrapper table.mepr-account-table td.is-empty{display:none}
}

/* ---- the Course tab (MemberPress Courses): the course and how far through it you are ---- */
.acct-core .mpcs-course-list .grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0!important;max-width:none!important;margin:0 0 10px;padding:16px;background:var(--cream);border:1px solid var(--line);border-radius:18px;overflow:visible}
.acct-core .mpcs-course-list .grid::after{display:none}
.acct-core .mpcs-course-list .grid [class*=col-]{float:none;width:auto;padding:0;min-width:0}
.acct-core .mpcs-course-list .grid a{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.acct-core .course-progress{height:22px;border-radius:999px;background:#fff;border:1px solid var(--line);overflow:hidden}
.acct-core .course-progress .user-progress{height:100%;background:var(--blue);color:#fff;font:600 .72rem/20px var(--sans);text-align:right;padding:0 8px;border-radius:999px;white-space:nowrap;overflow:hidden}
.acct-core .course-progress .user-progress.center-block{background:none;color:var(--ink-3)}
.acct-core .mpcs-course-list .navigation{display:flex;justify-content:space-between;gap:12px;font-weight:600}
.acct-core .mpcs-course-list .navigation:not(:has(a)){display:none}
.acct-core .mpcs-course-list .navigation a{display:inline-flex;align-items:center;min-height:44px}
@media (min-width:640px){.acct-core .mpcs-course-list .grid{grid-template-columns:minmax(0,1fr) minmax(180px,38%);align-items:center}}

/* ---- MemberPress's pop-up (cancel a subscription), if a membership ever has one ---- */
.mepr-white-popup{border-radius:22px;font-family:var(--sans);color:var(--ink)}
.mepr-white-popup .mepr-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 24px;border-radius:999px;background:var(--ink);color:#fff;font:600 .95rem/1.2 var(--sans);text-decoration:none}
.mepr-white-popup .mepr-btn:hover,.mepr-white-popup .mepr-btn:active,.mepr-white-popup .mepr-btn:focus-visible{background:var(--navy);color:#fff}

@media (prefers-reduced-motion:reduce){
  .acct-offer,.acct-offer i,.acct #mepr-account-nav .mepr-nav-item a,.acct-core .mepr-account-actions a{transition:none}
  .acct-offer:hover i,.acct-offer:active,.acct #mepr-account-nav .mepr-nav-item a:active,.acct-core .mepr-account-actions a:active{transform:none}
}
