/* Medina Account — isolated visual layer for WooCommerce/WoodMart. */
:root{--mda-orange:#EF5F18;--mda-purple:#261A66;--mda-purple-light:#8051cf;--mda-line:#e9e5f4;--mda-muted:#666080;--mda-radius:21px}
body.medina-account-dashboard .wd-page-title,
body.medina-account-dashboard .title-size-default,
body.medina-account-dashboard .page-title-default,
body.medina-account-dashboard .woocommerce-MyAccount-navigation{display:none!important}
body.medina-account-dashboard .woocommerce-MyAccount-content > p{display:none}
body.medina-account-page .woocommerce-MyAccount-content{float:none; width:100%; max-width:none}
body.medina-account-dashboard .woocommerce,
body.medina-account-dashboard .woocommerce-MyAccount-content{width:100%;max-width:none;margin:0}
.mda-account, .mda-account *{box-sizing:border-box}
.mda-account{--mda-orange:#EF5F18;--mda-purple:#261A66;--mda-purple-light:#8051cf;--mda-line:#e9e5f4;color:var(--mda-purple);font-family:inherit;max-width:1100px;margin:0 auto 48px;padding:8px 0 35px;-webkit-font-smoothing:antialiased}
.mda-account a{text-decoration:none!important;box-shadow:none!important}
.mda-account h1,.mda-account h2,.mda-account h3,.mda-account p{margin:0;padding:0;font-family:inherit;color:inherit}
.mda-account .mda-icon{flex-shrink:0;display:block}
.mda-heading{margin-bottom:22px}
.mda-overline{color:#79708f;font-size:13px;font-weight:600;letter-spacing:.035em;margin-bottom:5px}
.mda-title{font-size:clamp(32px,4.4vw,43px)!important;font-weight:850!important;line-height:1.12!important;letter-spacing:-.04em}
.mda-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:22px;align-items:start}
.mda-primary-col,.mda-secondary-col{min-width:0;display:flex;flex-direction:column;gap:18px}
.mda-profile{min-height:185px;border-radius:27px;background:linear-gradient(114deg,#392080 0%,#261A66 65%,#4f258e 100%);padding:30px 30px 30px 30px;color:#fff;display:flex;align-items:center;gap:24px;position:relative;overflow:hidden;isolation:isolate}
.mda-profile:after{content:"";pointer-events:none;position:absolute;right:-14%;bottom:-95px;width:65%;height:180px;border-radius:50% 50% 0 0;transform:rotate(-14deg);background:linear-gradient(145deg,rgba(154,89,241,.65),rgba(84,38,139,.1));z-index:-1}
.mda-profile-accent{position:absolute;inset:-65px auto -70px -85px;width:160px;background:linear-gradient(135deg,#ff982c,#ef5f18 60%,#fd7a00);transform:rotate(-29deg);border-radius:55%;z-index:-1}
.mda-avatar{display:flex;align-items:center;justify-content:center;width:105px;height:105px;min-width:105px;color:var(--mda-purple);background:#f4f0ff;border-radius:50%;border:2px solid rgba(255,255,255,.52)}
.mda-profile-details{min-width:0;flex:1}
.mda-profile-details h2{font-size:clamp(20px,2.7vw,29px)!important;line-height:1.15!important;color:#fff!important;font-weight:800!important;letter-spacing:-.025em;overflow-wrap:anywhere}
.mda-profile-details p{font-size:16px;line-height:1.4;margin:7px 0 15px;color:#e2d7ff;overflow-wrap:anywhere}
.mda-edit{color:#fff!important;border:1.5px solid rgba(255,255,255,.88);border-radius:999px;display:inline-flex;align-items:center;gap:9px;padding:9px 16px;font-size:14px;line-height:1.4;font-weight:650;background:rgba(255,255,255,.045);transition:background .2s}
.mda-edit:hover{color:#fff!important;background:rgba(255,255,255,.18)}
.mda-order-hero{display:flex;gap:19px;align-items:center;min-height:125px;border:1px solid #e6def6;border-radius:23px;background:linear-gradient(110deg,#fff 0%,#f4efff 100%);padding:22px 26px;color:var(--mda-purple)!important;transition:transform .2s,box-shadow .2s}
.mda-order-hero:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(38,26,102,.09)!important}
.mda-order-hero-icon{color:var(--mda-purple);width:66px;min-width:66px;display:flex;justify-content:center}
.mda-order-hero-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.mda-order-hero-text strong{font-size:25px;font-weight:850;letter-spacing:-.035em;line-height:1.13}
.mda-order-hero-text span{font-size:15px;color:#66617d;line-height:1.35}
.mda-arrow-cta{display:grid;place-items:center;width:48px;height:48px;min-width:48px;border-radius:15px;background:var(--mda-orange);color:#fff}
.mda-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mda-tile{min-height:163px;padding:18px 17px;border-radius:21px;display:flex;flex-direction:column;align-items:flex-start;color:var(--mda-purple)!important;transition:transform .2s}
.mda-tile:hover{transform:translateY(-2px)}
.mda-tile-peach{background:linear-gradient(145deg,#fff8f3 0%,#ffe9df 100%)}
.mda-tile-lavender{background:linear-gradient(145deg,#f4eeff 0%,#eae1ff 100%)}
.mda-tile-lightpurple{background:linear-gradient(145deg,#f5efff 0%,#eee6fc 100%)}
.mda-tile-icon{display:block;color:var(--mda-purple-light);height:30px}
.mda-tile-peach .mda-tile-icon{color:var(--mda-orange)}
.mda-tile-lightpurple .mda-tile-icon{color:var(--mda-purple)}
.mda-tile-number{font-size:34px;line-height:1.14;font-weight:850;letter-spacing:-.04em;margin-top:12px}
.mda-tile-label{font-size:15px;line-height:1.2;margin-top:2px;max-width:150px}
.mda-menu-card{display:flex;flex-direction:column;padding:5px 22px;background:#fff;border:1px solid #eeeaf4;border-radius:26px;box-shadow:0 6px 19px rgba(38,26,102,.045)}
.mda-menu-row{min-height:84px;display:flex;align-items:center;gap:19px;padding:13px 0;color:var(--mda-purple)!important;transition:background .2s}
.mda-menu-card .mda-menu-row+.mda-menu-row{border-top:1px solid var(--mda-line)}
.mda-menu-row:hover .mda-menu-copy strong{color:var(--mda-orange)}
.mda-menu-icon{color:var(--mda-purple);flex:0 0 33px;display:flex;justify-content:center}
.mda-menu-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.mda-menu-copy strong{font-size:17px;line-height:1.2;font-weight:780;letter-spacing:-.01em;transition:color .2s}
.mda-menu-copy small{color:var(--mda-muted);font-size:12.5px;line-height:1.35}
.mda-chevron{color:#222039;display:flex;align-items:center}
.mda-logout{min-height:73px;display:flex;align-items:center;justify-content:center;gap:13px;border-radius:23px;color:var(--mda-orange)!important;background:#fcf0f3;font-size:17px;font-weight:800;transition:background .2s}
.mda-logout:hover{background:#f9e4e9}
.mda-recent{border:1px solid #eeebf3;border-radius:23px;padding:17px 20px;background:#fff}
.mda-section-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.mda-section-header h2{font-size:19px!important;font-weight:790!important}
.mda-section-header a{display:inline-flex;gap:3px;align-items:center;font-size:13px;font-weight:700;color:var(--mda-orange)}
.mda-recent-item{display:flex;align-items:center;gap:10px;color:var(--mda-purple)!important;padding:13px 2px}
.mda-recent-item+.mda-recent-item{border-top:1px solid var(--mda-line)}
.mda-recent-icon{color:var(--mda-orange);width:38px;height:38px;background:#fff1e9;border-radius:11px;display:grid;place-items:center;flex-shrink:0}
.mda-recent-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.mda-recent-copy strong{font-size:14px;line-height:1.2}
.mda-recent-copy small{font-size:12px;color:var(--mda-muted);line-height:1.2}
.mda-recent-price{font-size:14px;font-weight:800;white-space:nowrap}
.mda-recent-price .woocommerce-Price-amount{font-weight:800}
.mda-bottom-nav{display:none}
/* WooCommerce endpoint pages retain their original handlers and forms. */
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-navigation{background:#fff;border:1px solid var(--mda-line);border-radius:18px;padding:14px}
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-navigation a{border-radius:10px;color:var(--mda-purple);padding:10px 14px;display:block;font-weight:600}
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-navigation .is-active a,
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-navigation a:hover{background:#fff0e8;color:var(--mda-orange)}
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-content{color:var(--mda-purple);min-height:200px}
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-content input,
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-content select{border-radius:10px}
body.medina-account-page:not(.medina-account-dashboard) .woocommerce-MyAccount-content .button{background:var(--mda-orange);color:#fff;border-radius:12px}
.mda-endpoint-extra{color:var(--mda-purple);background:#fff;border:1px solid var(--mda-line);border-radius:20px;padding:22px}
.mda-endpoint-extra h2{font-size:24px;font-weight:800;margin:0 0 8px}
.mda-endpoint-extra p{color:var(--mda-muted)}
.mda-notification{display:flex;gap:14px;align-items:center;border-top:1px solid var(--mda-line);padding:15px 0;color:var(--mda-purple)}
.mda-notification>span{display:flex;flex:1;flex-direction:column;gap:4px}
.mda-notification small{color:var(--mda-muted)}
.mda-empty{padding:22px;background:#f7f3ff;border-radius:13px;margin-top:15px}
@media(max-width:1050px){.mda-account{padding-inline:14px}.mda-dashboard-grid{gap:16px}.mda-profile{padding:24px;gap:18px}.mda-avatar{width:86px;min-width:86px;height:86px}.mda-profile-details h2{font-size:21px!important}.mda-profile-details p{font-size:14px}.mda-menu-card{padding-inline:15px}.mda-menu-row{gap:11px}}
@media(max-width:767px){
 body.medina-account-dashboard.mda-has-bottom-nav .wd-toolbar,
 body.medina-account-dashboard.mda-has-bottom-nav .woodmart-toolbar,
 body.medina-account-dashboard.mda-has-bottom-nav .wd-bottom-bar{display:none!important}
 .mda-account{margin:0 auto;padding:8px 0 103px;max-width:590px}
 .mda-heading{padding:0 6px;margin-bottom:18px}
 .mda-overline{display:none}
 .mda-title{font-size:32px!important;letter-spacing:-.035em}
 .mda-dashboard-grid{grid-template-columns:1fr;gap:17px}
 .mda-primary-col,.mda-secondary-col{gap:16px}
 .mda-profile{min-height:160px;padding:23px 20px;border-radius:23px;gap:16px}
 .mda-profile-accent{left:-96px;width:155px}
 .mda-avatar{width:78px;height:78px;min-width:78px}
 .mda-avatar .mda-icon{width:43px;height:43px}
 .mda-profile-details h2{font-size:clamp(18px,5.2vw,25px)!important}
 .mda-profile-details p{font-size:14px;margin:5px 0 12px}
 .mda-edit{padding:7px 13px;font-size:12px;gap:7px}
 .mda-edit .mda-icon{width:15px;height:15px}
 .mda-order-hero{min-height:112px;padding:19px;border-radius:21px;gap:14px}
 .mda-order-hero-icon{width:54px;min-width:54px}
 .mda-order-hero-icon svg{width:44px;height:44px}
 .mda-order-hero-text strong{font-size:23px}
 .mda-order-hero-text span{font-size:14px}
 .mda-arrow-cta{width:43px;height:43px;min-width:43px;border-radius:14px}
 .mda-stat-grid{gap:9px}
 .mda-tile{min-height:148px;border-radius:18px;padding:16px 13px}
 .mda-tile-number{font-size:29px;margin-top:10px}
 .mda-tile-label{font-size:13px;line-height:1.22}
 .mda-menu-card{padding:4px 19px;border-radius:23px}
 .mda-menu-row{min-height:76px;gap:13px;padding:10px 0}
 .mda-menu-icon{flex-basis:28px}
 .mda-menu-icon .mda-icon{width:24px;height:24px}
 .mda-menu-copy strong{font-size:16px}
 .mda-menu-copy small{font-size:12px}
 .mda-logout{min-height:71px;border-radius:22px;font-size:16px}
 .mda-bottom-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;z-index:99;background:rgba(255,255,255,.985);border-top:1px solid #efebf6;box-shadow:0 -5px 23px rgba(38,26,102,.045);padding:9px 8px calc(9px + env(safe-area-inset-bottom,0px));gap:2px;font-family:inherit}
 .mda-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;color:var(--mda-purple)!important;line-height:1.1;font-size:11px;font-weight:650;text-align:center;text-decoration:none!important}
 .mda-tab .mda-icon{width:24px;height:24px}
 .mda-tab-active,.mda-tab-active:focus{color:var(--mda-orange)!important}
 .mda-tab span{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .mda-recent{padding:17px}
}
@media(max-width:390px){.mda-account{padding-inline:2px}.mda-profile{padding:18px 15px;gap:12px}.mda-avatar{width:69px;height:69px;min-width:69px}.mda-profile-details h2{font-size:18px!important}.mda-profile-details p{font-size:12px}.mda-edit{font-size:11px;padding:7px 9px}.mda-order-hero{padding:15px;gap:10px}.mda-order-hero-icon{width:44px;min-width:44px}.mda-order-hero-text strong{font-size:21px}.mda-order-hero-text span{font-size:12px}.mda-arrow-cta{width:39px;height:39px;min-width:39px}.mda-tile{padding:13px 10px}.mda-tile-label{font-size:12px}.mda-menu-card{padding-inline:14px}.mda-tab{font-size:10px}}
@media(prefers-reduced-motion:reduce){.mda-account *{transition:none!important}}
