/* MTMS my-account dashboard (logged-in): clean RTL layout in the brand palette */
body.woocommerce-account #page{min-height:0!important}
body.woocommerce-account .woocommerce{max-width:1100px;margin:0 auto;padding:0 16px 48px}
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content{float:none!important;width:100%!important;max-width:100%!important}

/* tabs */
body.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none!important;margin:0 0 22px!important;padding:10px!important;display:flex;flex-wrap:wrap;gap:8px;background:#fff;border:1px solid #DCE1F3;border-radius:16px;box-shadow:0 6px 24px rgba(8,36,168,.06)}
body.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0!important;padding:0!important;border:0!important;list-style:none!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li::before,
body.woocommerce-account .woocommerce-MyAccount-navigation li a::before{display:none!important;content:none!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:10px 18px;border-radius:999px;font-size:15px;font-weight:600;line-height:1.4;color:#0824A8;background:#F4F6FD;border:1px solid transparent;text-decoration:none;white-space:nowrap;transition:background .15s,color .15s}
body.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:#E6EAFB;color:#06186E}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:#0824A8;color:#fff}
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-inline-start:auto!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{background:#fff;color:#B8412F;border-color:#EBC8C1}
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover{background:#FBEFEC}

/* content card */
body.woocommerce-account .woocommerce-MyAccount-content{background:#fff;border:1px solid #DCE1F3;border-radius:18px;padding:28px 32px;box-shadow:0 6px 24px rgba(8,36,168,.06);font-size:16px;line-height:1.9;color:#1F2A44;text-align:start}
body.woocommerce-account .woocommerce-MyAccount-content p{margin:0 0 14px}
body.woocommerce-account .woocommerce-MyAccount-content>p:first-of-type{font-size:17px;color:#06186E}
body.woocommerce-account .woocommerce-MyAccount-content strong,
body.woocommerce-account .woocommerce-MyAccount-content>p:first-of-type a{unicode-bidi:isolate}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.mtms-btn-lms){color:#0824A8;font-weight:600}
body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3{color:#0824A8;font-size:22px;line-height:1.5;margin:0 0 14px}

/* buttons */
body.woocommerce-account .woocommerce-MyAccount-content .button,
body.woocommerce-account .woocommerce-MyAccount-content button[type=submit]{background:#0824A8;color:#fff;border:0;border-radius:12px;padding:12px 24px;font-weight:700;font-size:15px;cursor:pointer;transition:background .15s}
body.woocommerce-account .woocommerce-MyAccount-content .button:hover,
body.woocommerce-account .woocommerce-MyAccount-content button[type=submit]:hover{background:#6D2FDB;color:#fff}

/* forms */
body.woocommerce-account .woocommerce-MyAccount-content input[type=text],
body.woocommerce-account .woocommerce-MyAccount-content input[type=email],
body.woocommerce-account .woocommerce-MyAccount-content input[type=tel],
body.woocommerce-account .woocommerce-MyAccount-content input[type=password],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea{width:100%;min-height:50px;padding:0 16px;border:1px solid #CBD2DD;border-radius:12px;background:#F4F6FD;color:#1F2A44;font-size:16px}
body.woocommerce-account .woocommerce-MyAccount-content textarea{padding:12px 16px}
body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus{outline:0;border-color:#0824A8;background:#fff;box-shadow:0 0 0 3px rgba(8,36,168,.12)}
body.woocommerce-account .woocommerce-MyAccount-content label{display:block;margin-bottom:6px;font-weight:600;font-size:15px;color:#0824A8}
body.woocommerce-account .woocommerce-MyAccount-content .form-row{margin:0 0 16px;padding:0}
body.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
body.woocommerce-account .woocommerce-MyAccount-content .form-row-last{width:calc(50% - 8px)!important;float:none!important;display:inline-block;vertical-align:top}
body.woocommerce-account .woocommerce-MyAccount-content .form-row-first{margin-inline-end:12px}

/* tables and addresses */
body.woocommerce-account .woocommerce-MyAccount-content table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid #DCE1F3;border-radius:12px;overflow:hidden;font-size:15px}
body.woocommerce-account .woocommerce-MyAccount-content table th{background:#F4F6FD;color:#0824A8;font-weight:700;padding:12px 14px;text-align:start}
body.woocommerce-account .woocommerce-MyAccount-content table td{padding:12px 14px;border-top:1px solid #DCE1F3;text-align:start}
body.woocommerce-account .woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:20px}
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address{float:none!important;width:auto!important;padding:18px;border:1px solid #DCE1F3;border-radius:14px;background:#F4F6FD}
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after{display:none}
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info{border-radius:12px;border-top-color:#0824A8}

/* LMS button */
body.woocommerce-account .mtms-lms-wrap{margin:18px 0 4px}

@media(max-width:640px){
body.woocommerce-account .woocommerce{padding:0 12px 36px}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-inline-start:0!important}
body.woocommerce-account .woocommerce-MyAccount-content{padding:20px 16px}
body.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
body.woocommerce-account .woocommerce-MyAccount-content .form-row-last{width:100%!important;display:block;margin-inline-end:0}
body.woocommerce-account .woocommerce-Addresses{grid-template-columns:1fr}
}

/* override legacy pill rules (larger, purple-bordered) so the tab row stays compact */
body.woocommerce-account .woocommerce-MyAccount-navigation li a{min-height:40px!important;padding:6px 16px!important;font-size:14px!important;border:1px solid #DCE1F3!important;background:#F4F6FD!important;color:#0824A8!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{background:#0824A8!important;color:#fff!important;border-color:#0824A8!important}
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{background:#fff!important;color:#B8412F!important;border-color:#EBC8C1!important}
body.woocommerce-account .woocommerce-MyAccount-navigation ul{gap:6px!important}

/* dashboard extras: quick links + help card */
.mtms-dx{margin-top:26px}
.mtms-dx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}
.mtms-dx-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid #DCE1F3;border-radius:14px;background:#F4F6FD;text-decoration:none!important;transition:border-color .15s,box-shadow .15s,transform .15s}
.mtms-dx-card:hover{border-color:#0824A8;box-shadow:0 8px 22px rgba(8,36,168,.12);transform:translateY(-2px)}
.mtms-dx-card strong{color:#0824A8;font-size:17px;line-height:1.5}
.mtms-dx-card>span{color:#5B6B82;font-size:14px;line-height:1.7;font-weight:500}
.mtms-dx-help{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 20px;padding:20px 22px;border-radius:14px;background:linear-gradient(135deg,#06186E,#1A1470);color:#fff}
.mtms-dx-help strong{display:block;font-size:18px;margin-bottom:2px}
.mtms-dx-help>div>span{color:#D3DAF2;font-size:14px;line-height:1.7}
.mtms-dx-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body.woocommerce-account .woocommerce-MyAccount-content .mtms-dx-help a.mtms-dx-wa{background:#6D2FDB;color:#fff;padding:10px 20px;border-radius:12px;font-weight:700;font-size:15px;text-decoration:none}
body.woocommerce-account .woocommerce-MyAccount-content .mtms-dx-help a.mtms-dx-wa:hover{background:#5A22C0}
body.woocommerce-account .woocommerce-MyAccount-content .mtms-dx-help a.mtms-dx-mail{color:#fff;direction:ltr;unicode-bidi:isolate;font-weight:600;font-size:14px;text-decoration:underline}
@media(max-width:760px){.mtms-dx-grid{grid-template-columns:1fr}}
.mtms-dx-h{margin:22px 0 12px!important;font-size:20px!important}
.mtms-dx-grid--4{grid-template-columns:repeat(4,1fr)}
.mtms-dx-card em{margin-top:auto;padding-top:6px;font-style:normal;font-weight:700;font-size:14px;color:#6D2FDB}
.mtms-dx-grid--4 .mtms-dx-card strong{font-size:16px}
@media(max-width:1000px){.mtms-dx-grid--4{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.mtms-dx-grid--4{grid-template-columns:1fr}}
