/*
 * MeinErfolgsShop 2026 — Mein Konto (WooCommerce My Account).
 * Ported from idee/konto/assets/account.css (authoritative design spec) onto
 * mes- prefixed classes used only on the account page. The source package's
 * interactive demo layer (dialog-based modals, toast, client-side order/
 * content detail popups, JS-only password-preview toggle) is a prototype
 * convenience, not a new account system — this implementation renders real
 * WooCommerce/Germanized/aMember data directly on the page instead, so the
 * #account-modal / #account-toast / lesson-list / modal-* rules from the
 * source file are intentionally not ported. See inc/mes-account.php and the
 * woocommerce/myaccount/*.php template overrides.
 */

/* Only logged-in views get the new in-column title (my-account.php) — the
   logged-out state renders WooCommerce's own myaccount/form-login.php
   directly, never wrapped by that override, so Astra's native page title
   must stay for that page or it's just an empty gap. */
body.woocommerce-account.logged-in .entry-title{display:none}
body.woocommerce-account .ast-container{padding:0!important;max-width:none!important}

/* Logged-out .entry-title (Astra's native page h1, kept — see note above)
   has no self-centering of its own, unlike #customer_login below it
   (margin:20px auto;max-width:900px). With #primary's own left/right
   padding zeroed out for the logged-in layout (further down), the title
   was sitting flush against the viewport edge instead of lining up over
   the login card; also still Astra's default Barlow/weight:400 since
   nothing here set the real heading font for it. */
body.woocommerce-account:not(.logged-in) .entry-title{
	max-width:900px;
	margin:20px auto 0;
	padding:0 40px;
	font-family:"MES Roboto",Arial,sans-serif;
	font-weight:700;
	font-size:32px;
	letter-spacing:-.6px;
	color:var(--mes-ink);
	box-sizing:border-box;
}
@media(max-width:800px){
	body.woocommerce-account:not(.logged-in) .entry-title{padding:0 20px}
}

/* Astra adds vertical spacing meant for a normal blog/page article (content-
   area margin-top, article padding-top, entry-header margin-bottom) that the
   mockup's tighter header-to-content spacing doesn't have — ~68px of unwanted
   gap above the grey account background otherwise. */
body.woocommerce-account .woocommerce{max-width:none!important}
body.woocommerce-account #primary.content-area{margin-top:0!important;padding-left:0!important;padding-right:0!important}
/* Astra's #primary{margin:4em 0} also leaves a white band between the grey
   account background and the dark footer — only the logged-in layout brings
   its own bottom spacing (.mes-account-background padding-bottom), so the
   logged-out login page keeps Astra's gap. */
body.woocommerce-account.logged-in #primary.content-area{margin-bottom:0!important;padding-bottom:0!important}
body.woocommerce-account article.ast-article-single{padding:0!important}
body.woocommerce-account.logged-in .entry-header{margin-bottom:0!important}

/* Logged-out login/register (myaccount/form-login.php, untouched core
   template) — light styling pass so it isn't bare default WooCommerce
   markup, without a template override. */
body.woocommerce-account:not(.logged-in) #customer_login{background:#f5f7fa;border-radius:9px;padding:40px;max-width:900px;margin:20px auto;font-family:"MES Roboto",Arial,sans-serif}
body.woocommerce-account:not(.logged-in) #customer_login h2{font-size:26px;letter-spacing:-.4px;margin:0 0 20px}
body.woocommerce-account:not(.logged-in) #customer_login .form-row{margin:0 0 18px}
body.woocommerce-account:not(.logged-in) #customer_login label{display:block;font-size:14px;font-weight:700;margin-bottom:8px;color:var(--mes-ink)}
body.woocommerce-account:not(.logged-in) #customer_login .input-text{width:100%;border:1px solid #cfdae4;border-radius:4px;padding:12px;font-size:17px;height:45px;box-sizing:border-box}
body.woocommerce-account:not(.logged-in) #customer_login button[type="submit"]{display:inline-flex;align-items:center;gap:10px;padding:13px 20px;border:1px solid var(--mes-blue);border-radius:5px;background:var(--mes-blue);color:#fff;font-size:17px;font-weight:700}
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--mes-muted);font-weight:400;margin:0 16px 0 0}
body.woocommerce-account:not(.logged-in) #customer_login .lost_password a{font-size:14px;color:var(--mes-blue)}

/* Astra's bundled woocommerce-layout.min.css ships .col2-set .col-1/.col-2
   { float:left/right; width:48% } (specificity 0,0,2,0). Turning #customer_login
   into a grid container (below) makes the float a no-op but the width:48%
   still applies *within* each already-split 1fr grid cell, shrinking the
   login/register column to ~48% of ~half the container (~187px of 900px) —
   the #customer_login ID beats .col2-set's two classes on specificity, so no
   !important is needed to reset it back to the full grid-cell width. */
body.woocommerce-account:not(.logged-in) #customer_login .col-1,
body.woocommerce-account:not(.logged-in) #customer_login .col-2{float:none;width:100%;min-width:0}

/* form-login.php only wraps the login form in .u-columns.col2-set when
   registration is enabled (two forms to place side by side); with
   registration off #customer_login holds just the single login form
   directly, no .col-1/.col-2 — center it as a single card instead of
   forcing an empty second grid column. */
body.woocommerce-account:not(.logged-in) #customer_login:not(.col2-set){max-width:480px}

/* Astra's woocommerce-layout.min.css clearfix — .col2-set::before/::after
   { content:" "; display:table } — exists to clear the old float layout.
   Turning #customer_login into a grid container makes those two generated
   boxes real grid items too (anything with `content` participates in grid
   layout unless display:none), so the 2x2-cell grid actually has 4 items:
   ::before, .col-1, .col-2, ::after — col-1 lands in cell [row1,col2] and
   col-2 in [row2,col1], explaining the ~440px vertical offset and the
   left/right swap seen live. Drop the pseudo-elements' box entirely instead
   of just hiding their content. */
body.woocommerce-account:not(.logged-in) #customer_login.col2-set::before,
body.woocommerce-account:not(.logged-in) #customer_login.col2-set::after{content:none;display:none}

@media(min-width:800px){
	body.woocommerce-account:not(.logged-in) #customer_login.col2-set{display:grid;grid-template-columns:1fr 1fr;gap:40px}
}

/* Astra's bundled woocommerce-layout.min.css ships a float-based 2-column
   .woocommerce-MyAccount-navigation{float:left;width:30%} /
   .woocommerce-MyAccount-content{float:right;width:68%} layout (same class
   names WC core expects, kept for plugin compatibility) that otherwise
   fights the grid layout and the sidebar's own flex rules below — same bug
   class as the PDP buy-box width issue, same fix. */
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:100%!important}
body.woocommerce-account .mes-mobile-account-logout{display:none!important}
body.woocommerce-account .mes-btn,
body.woocommerce-account .mes-btn:visited{color:#fff!important;text-decoration:none!important}
body.woocommerce-account .mes-btn.mes-secondary,
body.woocommerce-account .mes-btn.mes-secondary:visited,
body.woocommerce-account .mes-btn.mes-secondary:hover{color:var(--mes-ink)!important}
body.woocommerce-account .mes-btn:not(.mes-secondary):hover{color:#fff!important}
.mes-account-background{background:#f5f7fa;padding-bottom:65px;font-family:"MES Roboto",Arial,sans-serif;color:var(--mes-ink)}
.mes-account-background *{box-sizing:border-box}
.mes-account-background svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mes-account-breadcrumb{display:flex;gap:10px;font-size:13px;color:var(--mes-muted);padding:24px 0}
.mes-account-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:38px;align-items:start}
.mes-account-layout>*{min-width:0}

/* Sidebar */
.mes-account-sidebar{background:#fff;border:1px solid var(--mes-line);border-radius:9px;overflow:hidden;position:sticky;top:24px}
.mes-account-person{display:flex;gap:12px;align-items:center;padding:25px 20px;border-bottom:1px solid #edf1f5}
.mes-avatar{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#eaf3fb;font-size:15px;font-weight:700;color:var(--mes-blue);flex-shrink:0}
.mes-account-person strong{font-size:15px}
.mes-account-person small{display:block;font-size:12px;color:var(--mes-muted);margin-top:4px}
.mes-account-navigation{padding:14px 10px}
.mes-account-navigation summary{display:none}
.mes-account-navigation nav{display:flex;flex-direction:column;gap:5px}
.mes-account-navigation a{display:flex;align-items:center;gap:11px;padding:13px 12px;font-size:14px;color:#4d6173;border-radius:5px;min-height:46px}
.mes-account-navigation a svg{width:19px;height:19px;flex-shrink:0}
.mes-account-navigation a.is-active{background:#eaf3fc;color:var(--mes-blue);font-weight:700}
.mes-account-navigation a:hover{background:#f1f6fa}
.mes-account-navigation a b{margin-left:auto;background:#d9eafb;border-radius:4px;font-size:12px;min-width:21px;text-align:center;padding:2px;font-weight:700}
.mes-account-support{margin:8px 22px 0;padding:23px 0;border-top:1px solid var(--mes-line)}
.mes-account-support>span{font-size:14px;font-weight:700}
.mes-account-support p{font-size:13px;color:var(--mes-muted);line-height:1.7}
.mes-logout{border:0;border-top:1px solid #edf1f5;background:#fff;width:100%;display:flex;align-items:center;gap:12px;padding:20px 24px;color:#6c7d8c;font-size:14px;cursor:pointer}
.mes-logout svg{width:18px;height:18px}
.mes-mobile-account-logout{display:none}

/* Main column + title */
.mes-account-main{min-width:0}
.mes-account-title{display:flex;justify-content:space-between;align-items:start;gap:15px;margin:4px 0 28px}
.mes-account-title h1{font-size:42px;letter-spacing:-1px;line-height:1.15;margin:0 0 12px}
.mes-account-title .mes-eyebrow{font-size:11px;margin:0 0 11px}
.mes-account-title p:not(.mes-eyebrow){font-size:17px;color:var(--mes-muted);margin:0;line-height:1.7}

/* Dashboard welcome hero */
.mes-account-welcome{background:linear-gradient(120deg,#e1edf7,#edf5fa);border:1px solid #d5e4ef;border-radius:9px;display:grid;grid-template-columns:1.25fr 1fr;overflow:hidden;position:relative;min-height:300px}
.mes-welcome-copy{padding:33px;position:relative;z-index:1}
.mes-welcome-copy .mes-eyebrow{font-size:11px;margin-bottom:15px}
.mes-welcome-copy h2{font-size:44px;letter-spacing:-1px;line-height:1.1}
.mes-welcome-copy p:not(.mes-eyebrow){font-size:15px;line-height:1.8;color:var(--mes-muted);max-width:320px;margin:15px 0 22px}
.mes-welcome-copy .mes-btn{font-size:14px;padding:12px 17px}
.mes-welcome-copy svg{width:18px;height:18px}
.mes-welcome-covers{position:relative;min-height:280px}
.mes-welcome-covers span{position:absolute;top:40px;right:-30px;width:290px;height:290px;border:1px solid #a8c7de;border-radius:50%}
.mes-welcome-covers img{position:absolute;mix-blend-mode:multiply;object-fit:contain;width:68%;height:225px;top:36px}
.mes-welcome-covers img:nth-child(2){right:-10px;transform:rotate(9deg)}
.mes-welcome-covers img:last-child{right:29%;top:93px;transform:rotate(-8deg)}

/* Dashboard shortcut tiles */
.mes-account-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 28px}
.mes-account-shortcuts a{display:flex;align-items:center;gap:12px;padding:21px 17px;border:1px solid #e0e7ee;border-radius:7px;background:#fff;transition:border-color .2s}
.mes-account-shortcuts a:hover{border-color:var(--mes-blue)}
.mes-account-shortcuts svg{color:var(--mes-blue);width:22px;height:22px;flex-shrink:0}
.mes-account-shortcuts strong{font-size:15px;display:block}
.mes-account-shortcuts span{font-size:12px;color:var(--mes-muted);display:block;margin-top:5px}
.mes-account-shortcuts b{font-size:17px;color:#8095a7;margin-left:auto}

/* Dashboard two-column panels */
.mes-account-two{display:grid;grid-template-columns:1.15fr 1fr;gap:20px}
.mes-account-panel{background:#fff;border:1px solid #e0e7ee;border-radius:8px;padding:25px}
.mes-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}
.mes-panel-heading h2{font-size:21px;letter-spacing:-.3px;line-height:1.3}
.mes-pill{font-size:11px;line-height:1.4;background:#edf3f8;color:#55728a;padding:5px 9px;border-radius:20px;display:inline-block;white-space:nowrap}
.mes-pill.is-green{background:#e8f4ed;color:#327552}
.mes-pill.is-amber{background:#fff3de;color:#986319}
.mes-continue-content{display:grid;grid-template-columns:85px 1fr;gap:20px;align-items:center}
.mes-continue-content img{width:85px;height:130px;object-fit:contain}
.mes-continue-content .mes-eyebrow{font-size:9px;margin:0 0 8px}
.mes-continue-content h3{font-size:18px;line-height:1.4;margin:0}
.mes-continue-content p:not(.mes-eyebrow){font-size:13px;color:var(--mes-muted);margin:10px 0 15px}
.mes-latest-order{display:flex;align-items:start;flex-wrap:wrap;gap:12px;justify-content:space-between}
.mes-order-id{font-size:14px;font-weight:700;color:var(--mes-blue)}
.mes-latest-order .mes-pill{margin-left:6px;font-size:9px}
.mes-latest-order p{font-size:13px;color:var(--mes-muted);margin:12px 0}
.mes-latest-order>strong{font-size:18px;white-space:nowrap}
.mes-text-button{border:0;background:none;padding:0;color:var(--mes-blue);font-weight:700;font-size:14px;cursor:pointer;text-decoration:none;display:inline-block}
.mes-text-button:hover{text-decoration:underline}
.mes-subtle-link{display:block;border-top:1px solid var(--mes-line);padding-top:15px;margin-top:20px;font-size:13px;color:var(--mes-muted)}
.mes-account-help-line{display:flex;align-items:center;gap:15px;padding:23px 0;margin-top:23px;border-top:1px solid #dfe7ee}
.mes-account-help-line>svg{width:25px;height:25px;color:var(--mes-blue);flex-shrink:0}
.mes-account-help-line>div{flex:1}
.mes-account-help-line strong{font-size:14px}
.mes-account-help-line p{font-size:13px;color:var(--mes-muted);margin:6px 0 0;line-height:1.7}
.mes-account-help-line>a,.mes-account-help-line>button{font-size:13px}

/* Downloads & Kurse (library) */
.mes-library-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}
.mes-account-tabs{display:flex;gap:5px;flex-wrap:wrap}
.mes-account-tabs a{background:transparent;border:1px solid transparent;padding:10px 12px;font-size:13px;border-radius:5px;color:#64798b;display:inline-block}
.mes-account-tabs a.is-active{background:#fff;border-color:#dce6ef;color:var(--mes-blue);font-weight:700}
.mes-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mes-library-card{background:#fff;border:1px solid #dfe7ee;border-radius:8px;overflow:hidden;display:flex;flex-direction:column}
.mes-library-cover{position:relative;background:#eaf0f5;height:210px;padding:23px;display:flex;align-items:center;justify-content:center}
.mes-library-cover img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.mes-library-cover .mes-pill{position:absolute;bottom:12px;left:14px;background:#fff}
.mes-library-copy{padding:20px;flex:1;display:flex;flex-direction:column}
.mes-library-copy .mes-eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:10px}
.mes-library-copy h2{font-size:20px;letter-spacing:-.3px;line-height:1.4}
.mes-library-copy>p:not(.mes-eyebrow){font-size:13px;color:var(--mes-muted);line-height:1.7;margin:12px 0 20px}
.mes-library-copy .mes-btn{font-size:13px;padding:12px 10px;gap:8px;margin-top:auto;width:100%}
.mes-library-copy svg{width:16px;height:16px}
.mes-account-empty{padding:50px 25px;text-align:center;border:1px dashed #c6d6e3;border-radius:8px;background:#fff}
.mes-account-empty>svg{margin:0 auto 15px;color:#7096b4;width:34px;height:34px}
.mes-account-empty h2{font-size:30px}
.mes-account-empty p{font-size:15px;color:var(--mes-muted)}
.mes-account-empty.is-compact{padding:20px;border:0}
.mes-account-empty h3{font-size:20px}

/* Bestellungen */
.mes-order-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}
.mes-order-list{background:#fff;border:1px solid var(--mes-line);border-radius:8px;overflow:hidden}
.mes-order-table-head,.mes-order-row{display:grid;grid-template-columns:1.15fr 1.6fr 1.2fr .65fr 25px;gap:18px;align-items:center;padding:22px}
.mes-order-table-head{background:#edf3f8;font-size:11px;color:#668197;text-transform:uppercase;letter-spacing:.8px;padding-top:15px;padding-bottom:15px}
.mes-order-row{border-top:1px solid #e8edf2;font-size:14px}
.mes-order-row small{display:block;font-size:12px;color:var(--mes-muted);margin-top:7px}
.mes-order-product-name{font-size:14px;line-height:1.5}
.mes-order-row>strong{white-space:nowrap;font-size:15px}
.mes-order-open{border:0;background:none;font-size:24px;color:var(--mes-blue);padding:0;text-decoration:none;display:inline-block}

/* Adressen */
.mes-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mes-square-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:8px;background:#edf5fb;color:var(--mes-blue)}
.mes-square-icon.is-small{width:35px;height:35px}
.mes-square-icon.is-small svg{width:18px;height:18px}
.mes-address-card h2{font-size:28px;letter-spacing:-.6px}
.mes-muted{font-size:14px;color:var(--mes-muted);line-height:1.7}
.mes-address-card address{font-style:normal;font-size:18px;line-height:1.9;margin:30px 0}
.mes-address-card .mes-btn{font-size:14px;padding:12px 16px}
.mes-account-info-note{display:flex;align-items:start;gap:12px;margin:25px 0;font-size:14px;color:#627a8e;line-height:1.8}
.mes-account-info-note svg{width:20px;height:20px;flex-shrink:0}

/* Zahlungsarten */
.mes-payment-intro{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center;margin-bottom:25px;background:#e9f2f9;border-radius:8px;padding:30px}
.mes-payment-intro .mes-eyebrow{font-size:11px;margin-bottom:12px}
.mes-payment-intro h2{font-size:39px;letter-spacing:-1px}
.mes-payment-intro p:not(.mes-eyebrow){font-size:14px;line-height:1.8;color:var(--mes-muted)}
.mes-payment-illustration{max-width:285px;width:100%;margin:auto;background:linear-gradient(120deg,#10354e,#256da2);border-radius:12px;box-shadow:8px 14px 24px #203c521c;color:#fff;padding:23px;transform:rotate(5deg)}
.mes-payment-illustration>span{font-size:9px;letter-spacing:1.4px}
.mes-payment-illustration>svg{display:block;margin:20px 0 16px;width:27px;height:27px;color:#a6c8de}
.mes-payment-illustration b{display:block;font-size:19px;letter-spacing:1px;white-space:nowrap}
.mes-payment-illustration small{display:block;font-size:9px;color:#a5c3d8;letter-spacing:1px;margin-top:12px}
.mes-method-row{display:flex;align-items:center;gap:17px;padding:23px 0;border-top:1px solid var(--mes-line);border-bottom:1px solid var(--mes-line);margin-bottom:24px}
.mes-method-brand{border:1px solid var(--mes-line);padding:11px 9px;border-radius:5px;color:var(--mes-blue);font-size:18px;font-weight:900;font-style:italic}
.mes-method-row>div{flex:1}
.mes-method-row strong{font-size:15px}
.mes-method-row p{font-size:13px;color:var(--mes-muted);margin:6px 0 0}

/* Kontodetails (account-fields form grid shared by profile + password) */
.mes-account-form .mes-account-panel{margin-bottom:22px}
.mes-account-fields{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.mes-account-fields label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700;min-width:0}
.mes-account-fields .is-full{grid-column:1/-1}
.mes-account-fields input,.mes-account-fields select{width:100%;min-width:0;border:1px solid #cfdae4;border-radius:4px;padding:12px;font-size:17px;font-weight:400;color:var(--mes-ink);background:#fff;height:45px}
.mes-account-fields input:disabled{background:#f3f5f7;color:#8795a1}
.mes-account-fields small{font-size:12px;color:var(--mes-muted);font-weight:400}
.mes-account-fields input:focus-visible,.mes-account-fields select:focus-visible{outline:2px solid var(--mes-blue);outline-offset:2px}
.mes-form-footer{display:flex;justify-content:space-between;gap:24px;align-items:center;border-top:1px solid var(--mes-line);margin-top:28px;padding-top:23px}
.mes-form-footer p{font-size:13px;color:var(--mes-muted);max-width:270px;line-height:1.7}
.mes-form-footer .mes-btn{font-size:14px;white-space:nowrap;padding:12px 15px}
.mes-password-panel .mes-muted{margin:8px 0 0}
.mes-password-panel .mes-account-fields{margin:20px 0}
.mes-account-inline-note{font-size:14px;background:#edf4fa;padding:12px 15px;border-left:2px solid #7da9cb;color:#4e6e87}

/* WooCommerce's native address/account form fields: wc_form_field() emits
   <p class="form-row ..."><label>…</label><input>…</p>, not the <label>-as-
   grid-item shape mes-account-fields was written for (see account.css source
   comment above) — map .form-row to the grid item instead, keep native
   validation/required-asterisk/select2 markup untouched. */
.mes-account-fields .form-row{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700;min-width:0;margin:0}
.mes-account-fields .form-row.form-row-wide{grid-column:1/-1}
.mes-account-fields .form-row label{font-size:14px;font-weight:700;color:var(--mes-ink)}
.mes-account-fields .form-row label .required{color:#c0504d;text-decoration:none}
.mes-account-fields .form-row .input-text,
.mes-account-fields .form-row select{width:100%;min-width:0;border:1px solid #cfdae4;border-radius:4px;padding:12px;font-size:17px;font-weight:400;color:var(--mes-ink);background:#fff;height:45px}
.mes-account-fields .form-row .select2-container{width:100%!important}
.mes-account-fields .form-row .select2-selection{border:1px solid #cfdae4!important;border-radius:4px!important;height:45px!important;padding:6px 12px!important}

@media(max-width:1150px){
	.mes-account-layout{grid-template-columns:215px minmax(0,1fr);gap:25px}
	.mes-account-title h1{font-size:38px}
	.mes-welcome-copy{padding:27px}
	.mes-welcome-copy h2{font-size:38px}
	.mes-account-shortcuts a{padding:17px 12px;gap:8px}
	.mes-account-shortcuts strong{font-size:14px}
	.mes-account-shortcuts b{display:none}
	.mes-account-two{grid-template-columns:1fr}
	.mes-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.mes-order-table-head,.mes-order-row{grid-template-columns:1fr 1.3fr 1.15fr .6fr 20px;gap:10px;padding:18px 14px}
	.mes-order-row .mes-pill{font-size:9px}
	.mes-payment-intro{gap:18px;padding:25px}
	.mes-payment-illustration{padding:18px}
	.mes-payment-illustration b{font-size:15px}
}
@media(max-width:800px){
	.mes-account-layout{grid-template-columns:1fr;gap:25px}
	.mes-account-sidebar{position:static}
	.mes-account-person,.mes-account-support,.mes-logout{display:none}
	.mes-account-navigation{padding:0}
	.mes-account-navigation summary{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;padding:17px 20px;cursor:pointer;gap:10px}
	.mes-account-navigation summary span{font-weight:400;color:var(--mes-blue);font-size:13px}
	.mes-account-navigation summary:after{content:'⌄';color:var(--mes-blue)}
	.mes-account-navigation[open] summary:after{content:'⌃'}
	.mes-account-navigation nav{padding:0 10px 12px;display:grid;grid-template-columns:1fr 1fr}
	.mes-account-title{margin-top:0}
	.mes-account-title h1{font-size:40px}
	.mes-account-two{grid-template-columns:1.1fr 1fr}
	.mes-account-shortcuts a{padding:20px 16px}
	.mes-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
	.mes-library-cover{height:185px}
	.mes-library-copy{padding:16px}
	.mes-library-copy h2{font-size:18px}
	.mes-library-copy .mes-btn{font-size:12px}
	.mes-account-background{padding-bottom:40px}
	.mes-payment-illustration{max-width:270px}
	.mes-account-fields input{font-size:19px}
	body.woocommerce-account .mes-mobile-account-logout{display:flex!important;align-items:center;gap:10px;border:0;background:none;padding:13px 12px;color:#6c7d8c;font-size:13px;text-align:left;min-height:44px;width:100%;cursor:pointer}
	.mes-mobile-account-logout svg{width:18px;height:18px}
}
@media(max-width:560px){
	.mes-account-breadcrumb{font-size:12px;padding:18px 0;gap:8px}
	.mes-account-layout{gap:23px}
	.mes-account-navigation a{font-size:13px;padding:12px 9px;gap:8px}
	.mes-account-navigation a svg{width:17px;height:17px}
	.mes-account-navigation summary{padding:15px}
	.mes-account-title h1{font-size:35px;letter-spacing:-.9px}
	.mes-account-title p:not(.mes-eyebrow){font-size:15px}
	.mes-account-title{flex-wrap:wrap;gap:8px;margin-bottom:22px}
	.mes-account-welcome{grid-template-columns:1fr;min-height:0}
	.mes-welcome-copy{padding:27px 25px 12px}
	.mes-welcome-copy h2{font-size:40px}
	.mes-welcome-copy p:not(.mes-eyebrow){max-width:300px}
	.mes-welcome-covers{min-height:190px;margin-top:-10px}
	.mes-welcome-covers span{height:220px;width:220px;right:-5px;top:0}
	.mes-welcome-covers img{height:175px;width:49%;top:0}
	.mes-welcome-covers img:nth-child(2){right:20px;top:5px}
	.mes-welcome-covers img:last-child{right:40%;top:16px}
	.mes-account-shortcuts{gap:8px;margin:14px 0 22px}
	.mes-account-shortcuts a{flex-direction:column;align-items:start;gap:10px;padding:15px 10px}
	.mes-account-shortcuts strong{font-size:13px;line-height:1.4}
	.mes-account-shortcuts span{font-size:11px;line-height:1.5}
	.mes-account-shortcuts svg{width:20px;height:20px}
	.mes-account-two{grid-template-columns:1fr;gap:16px}
	.mes-account-panel{padding:22px}
	.mes-panel-heading h2{font-size:21px}
	.mes-account-help-line{flex-wrap:wrap;align-items:start;gap:12px;margin-top:20px}
	.mes-account-help-line>div{flex-basis:calc(100% - 40px)}
	.mes-account-help-line>a,.mes-account-help-line>button{margin-left:37px}
	.mes-library-toolbar{gap:15px}
	.mes-account-tabs{gap:3px}
	.mes-account-tabs a{font-size:12px;padding:10px}
	.mes-library-grid{grid-template-columns:1fr;gap:18px}
	.mes-library-card{display:grid;grid-template-columns:110px 1fr;min-height:210px}
	.mes-library-cover{height:100%;min-height:210px;padding:14px}
	.mes-library-cover .mes-pill{font-size:9px;left:10px;bottom:12px}
	.mes-library-copy{padding:20px 16px}
	.mes-library-copy h2{font-size:19px}
	.mes-library-copy .mes-btn{font-size:13px}
	.mes-library-copy>p:not(.mes-eyebrow){font-size:13px;margin:10px 0 17px}
	.mes-order-tools{align-items:start;flex-direction:column;gap:4px}
	.mes-order-table-head{display:none}
	.mes-order-row{grid-template-columns:1fr auto 24px;gap:12px;padding:20px}
	.mes-order-row>div:first-child{grid-column:1/3;grid-row:1}
	.mes-order-row .mes-order-product-name{grid-column:1/3;grid-row:2;font-size:17px}
	.mes-order-row>div:nth-child(3){grid-column:1;grid-row:3}
	.mes-order-row>strong{grid-column:2;grid-row:3}
	.mes-order-row .mes-order-open{grid-column:3;grid-row:1/4;align-self:center;font-size:27px}
	.mes-order-row .mes-pill{font-size:11px}
	.mes-order-row:first-of-type{border:0}
	.mes-address-grid{grid-template-columns:1fr;gap:17px}
	.mes-address-card address{margin:23px 0}
	.mes-address-card h2{font-size:28px}
	.mes-account-info-note{font-size:13px}
	.mes-payment-intro{grid-template-columns:1fr;padding:25px;gap:15px}
	.mes-payment-intro h2{font-size:38px}
	.mes-payment-illustration{max-width:245px;margin:0 auto 10px}
	.mes-payment-illustration>svg{margin:13px 0}
	.mes-method-row{flex-wrap:wrap;gap:12px}
	.mes-method-row>div{flex-basis:calc(100% - 75px)}
	.mes-method-row>.mes-pill{margin-left:64px}
	.mes-account-fields{gap:18px 12px}
	.mes-account-fields label{font-size:13px}
	.mes-account-fields small{font-size:12px}
	.mes-form-footer{flex-direction:column;align-items:stretch;gap:12px}
	.mes-form-footer p{max-width:none;margin:0}
	.mes-form-footer .mes-btn{width:100%}
	.mes-password-panel h2{font-size:24px}
}

/* Downloads & Kurse: real markup comes from amember_login's display_all()
   (wp-content/plugins/amember_login/includes/logininfos.php), restyled into
   the library-card look. One card per active aMember "Schnittstelle" the
   customer's email has access to — not per individual course, since that is
   the real granularity the existing integration tracks. */
.mes-login-card .mes-library-cover{background:#fff;padding:36px}
.mes-login-card .mes-library-cover img{mix-blend-mode:normal;object-fit:contain;max-width:70%;max-height:70%;width:auto;height:auto}
.mes-login-card .mes-library-copy a.mes-btn{text-decoration:none;text-align:center}

/* Lost/Reset password endpoint (mein-konto/lost-password/) — both core
   templates (myaccount/form-lost-password.php and form-reset-password.php)
   render form.woocommerce-ResetPassword.lost_reset_password, which the
   #customer_login login-card pass above never matches, so the endpoint was
   still bare WooCommerce markup. Same card look as the login form, narrowed
   to the single-column width the one-field form actually needs. */
body.woocommerce-account .woocommerce-ResetPassword{
	background:#f5f7fa;
	border-radius:9px;
	padding:40px;
	max-width:560px;
	margin:20px auto;
	font-family:"MES Roboto",Arial,sans-serif;
	box-sizing:border-box;
}
body.woocommerce-account .woocommerce-ResetPassword>p:first-child{
	font-size:15px;
	line-height:1.7;
	color:var(--mes-muted);
	margin:0 0 24px;
}
/* The one-field layout doesn't need WC's .form-row-first half-width float. */
body.woocommerce-account .woocommerce-ResetPassword .form-row{
	float:none;
	width:100%;
	margin:0 0 18px;
	padding:0;
}
body.woocommerce-account .woocommerce-ResetPassword label{
	display:block;
	font-size:14px;
	font-weight:700;
	margin-bottom:8px;
	color:var(--mes-ink);
}
body.woocommerce-account .woocommerce-ResetPassword .input-text{
	width:100%;
	border:1px solid #cfdae4;
	border-radius:4px;
	padding:12px;
	font-size:17px;
	height:45px;
	box-sizing:border-box;
	background:#fff;
}
body.woocommerce-account .woocommerce-ResetPassword button[type="submit"]{
	display:inline-flex;
	align-items:center;
	gap:10px;
	padding:13px 20px;
	border:1px solid var(--mes-blue);
	border-radius:5px;
	background:var(--mes-blue);
	color:#fff;
	font-size:17px;
	font-weight:700;
	cursor:pointer;
}
/* Align Astra's page h1 over the narrowed card (the generic logged-out
   .entry-title rule above is tuned to the 900px login card). */
body.woocommerce-account.woocommerce-lost-password .entry-title{
	max-width:560px;
	padding:0 40px;
}
/* Success/notice state ("Du erhältst in Kürze eine E-Mail …") renders inside
   .woocommerce-notices-wrapper with no form card below — keep it readable
   and on the same column as the title/card. */
body.woocommerce-account.woocommerce-lost-password .woocommerce-notices-wrapper .woocommerce-message{
	max-width:560px;
	margin:20px auto;
	box-sizing:border-box;
}
@media(max-width:800px){
	body.woocommerce-account .woocommerce-ResetPassword{padding:24px 20px;margin:16px auto;width:calc(100% - 40px)}
	body.woocommerce-account.woocommerce-lost-password .entry-title{padding:0 20px}
	body.woocommerce-account.woocommerce-lost-password .woocommerce-notices-wrapper .woocommerce-message{margin:16px auto;width:calc(100% - 40px)}
}
