/* =============================================
   "My account" pages (my-account, edit-account, my-orders, my-address,
   edit-address, my-measurement, change-password) and the order pages.
   Uses the design tokens from home.css (body.hp-page). Classes start with mb-.
============================================= */
.mb{ --dn:#0f2c5c; --dn-dark:#0a2145; --gold:#f5b73b; float:none; clear:both; color:var(--ink);}
.mb [hidden]{ display:none !important;}
/* main.css floats paragraphs, headings and list items; undo that inside this page */
.mb p, .mb h1, .mb h2, .mb h3, .mb h4, .mb li, .mb label, .mb dt, .mb dd{ float:none;}
.mb ul, .mb ol, .mb dl{ margin:0; padding:0; list-style:none;}
.mb li{ list-style:none; width:auto; margin:0; padding:0;}
.mb button{ font-family:var(--sans); cursor:pointer;}

/* ---------- Head ---------- */
.mb-head{ padding:30px 0 26px; background:linear-gradient(100deg,#eef4fb 0%,#fff 70%); border-bottom:1px solid var(--line);}
.mb-crumbs{ display:flex; flex-wrap:wrap; gap:8px; font-size:12.5px; color:var(--muted);}
.mb-crumbs li + li:before{ content:'/'; margin-right:8px; color:#a9b7c6;}
.mb-crumbs a{ color:var(--navy);}
.mb-head h1{ margin:8px 0 0; font-size:36px; line-height:1.2; font-weight:600; color:var(--navy);}

.mb-page{ padding:32px 0 70px;}
.mb-layout{ display:grid; grid-template-columns:240px minmax(0,1fr); gap:30px; align-items:start;}
.mb-layout:before, .mb-layout:after{ display:none;}

/* ---------- Side menu ---------- */
.mb-side{ position:sticky; top:130px; display:grid; gap:18px; min-width:0;}
.mb-menu-card{ padding:20px 12px 12px; border:1px solid #e6ecf5; border-radius:14px; background:#fff; box-shadow:0 6px 20px rgba(20,50,100,.06);}
.mb-who{ position:relative; display:grid; justify-items:center; gap:10px; margin:0 4px 10px; padding:0 4px 18px; text-align:center;}
.mb-who:after{ content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:linear-gradient(90deg, rgba(201,214,230,0) 0%, #c9d6e6 50%, rgba(201,214,230,0) 100%);}
.mb-who-av{ display:flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; background:var(--dn); color:#fff; font:600 24px/1 var(--serif); letter-spacing:.03em;}
.mb-who-text{ display:grid; gap:2px; min-width:0; max-width:100%;}
.mb-who-text strong{ font:600 15px/1.3 var(--sans); color:var(--dn); overflow-wrap:anywhere;}
.mb-who-text small{ font-size:12px; color:var(--muted); overflow-wrap:anywhere;}
.mb-promo{ position:relative; display:flex; align-items:flex-end; min-height:165px; padding:18px; overflow:hidden; border-radius:14px; color:var(--dn); background:linear-gradient(0deg, rgba(235,243,253,.95) 0, rgba(235,243,253,.6) 55%, rgba(235,243,253,0) 100%), url(../images/dashboard/hero.jpg) 80% 30% / 260% auto;}
.mb-promo:hover{ text-decoration:none; color:var(--dn);}
.mb-promo strong{ font:italic 600 18px/1.25 var(--serif);}
.mb-promo strong:after{ content:""; display:block; width:34px; height:2px; margin-top:10px; background:var(--gold);}
.mb-menu a{ display:flex; align-items:center; gap:12px; padding:11px 14px; border-radius:10px; color:var(--ink); font:500 14.5px/1.3 var(--sans);}
.mb-menu a i{ width:18px; text-align:center; color:var(--dn);}
.mb-menu a:hover{ background:var(--tint); color:var(--navy); text-decoration:none;}
.mb-menu a.is-current{ background:var(--dn); color:#fff; font-weight:600;}
.mb-menu a.is-current i{ color:#fff;}
.mb-menu-out{ position:relative; margin-top:6px !important; padding-top:6px !important;}
.mb-menu-out:before{ content:""; position:absolute; left:0; right:0; top:0; height:1px; background:linear-gradient(90deg, rgba(201,214,230,0) 0%, #c9d6e6 50%, rgba(201,214,230,0) 100%);}

/* ---------- Cards, buttons, text ---------- */
.mb-card{ padding:26px; border:1px solid var(--line); border-radius:16px; background:#fff;}
.mb-card + .mb-card{ margin-top:20px;}
.mb-card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:20px;}
.mb-card-head h2{ margin:0; font-size:22px; font-weight:600; color:var(--navy);}
.mb-btn{
	display:inline-flex; align-items:center; justify-content:center; gap:6px;
	min-height:44px; padding:0 22px;
	border:1px solid #c9d6e6; border-radius:999px; background:#fff; color:var(--navy);
	font:600 14px/1 var(--sans); letter-spacing:.02em; transition:background .2s, box-shadow .2s;
}
.mb-btn:hover{ background:var(--tint); text-decoration:none;}
.mb-btn-primary{ border-color:var(--navy); background:var(--navy); color:#fff !important; box-shadow:0 6px 16px rgba(15,58,92,.22);}
.mb-btn-primary:hover{ background:var(--navy-dark);}
.mb-btn:disabled{ opacity:.6; cursor:wait;}
.mb-btn:focus-visible, .mb-menu a:focus-visible, .mb-field input:focus-visible, .mb-field select:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:2px;}
.mb-empty{ padding:50px 20px; text-align:center; color:var(--muted);}
.mb-empty i{ display:block; margin-bottom:12px; font-size:40px; color:#a9b7c6;}
.mb-empty h2{ margin:0 0 6px; font-size:22px; color:var(--navy);}
.mb-empty p{ margin:0 0 18px;}

/* details (my account, my address) */
.mb-details{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:16px 24px; margin:0;}
.mb-details > div{ min-width:0; padding-bottom:14px; border-bottom:1px solid var(--line);}
.mb-details dt{ margin-bottom:4px; font:600 11px/1.3 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--muted);}
.mb-details dd{ margin:0; min-height:22px; font:500 15px/1.5 var(--sans); color:var(--ink); overflow-wrap:anywhere;}

/* forms (edit account, edit address, change password) */
.mb-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px;}
.mb-grid:before, .mb-grid:after{ display:none;}
.mb-wide{ grid-column:1 / -1;}
.mb-field{ min-width:0; margin:0; padding:0; float:none; width:auto;}
.mb-field label{ display:block; margin:0 0 6px; font:600 12px/1.3 var(--sans); letter-spacing:.04em; text-transform:uppercase; color:var(--muted);}
.mb-field input, .mb-field select{
	display:block; width:100%; height:46px; margin:0; padding:0 14px;
	border:1px solid #cfd9e6; border-radius:10px; background:#fff; color:var(--ink);
	font:500 15px/1.4 var(--sans); box-shadow:none;
}
.mb-field input:focus, .mb-field select:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(74,134,201,.18);}
.mb-field input.error, .mb-field select.error{ border-color:#c0392b; background:#fff8f7;}
.mb-field small{ display:block; margin-top:6px; font-size:12.5px; line-height:1.5; color:var(--muted);}
.mb-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:24px;}
.mb-msg{ margin:0; font-size:14px; line-height:1.5; color:#c0392b;}
.mb-msg.is-ok{ color:#2e8b57;}

/* orders */
.mb-orders{ display:grid; gap:14px;}
.mb-order{ display:grid; grid-template-columns:84px minmax(0,1fr) auto; align-items:center; gap:0 18px; padding:16px; border:1px solid var(--line); border-radius:14px; background:#fff;}
.mb-order-img{ width:84px; height:100px; padding:0; border:0; border-radius:10px; background:var(--tint);}
.mb-order-img img{ display:block; width:100%; height:100%; object-fit:contain; border-radius:10px;}
.mb-order h3{ margin:0 0 4px; font:600 17px/1.3 var(--serif); color:var(--navy);}
.mb-order p{ margin:0 0 8px; font-size:13px; line-height:1.5; color:var(--muted);}
.mb-order-no{ font:600 11px/1.3 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--blue);}
.mb-order-meta{ display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13px; color:var(--muted);}
.mb-order-meta strong{ color:var(--ink); font-weight:600;}
.mb-order-side{ display:grid; justify-items:end; gap:10px; text-align:right;}
.mb-order-total small{ display:block; font:600 10.5px/1.2 var(--sans); letter-spacing:.07em; text-transform:uppercase; color:var(--muted);}
.mb-order-total strong{ font:700 20px/1.2 var(--sans); color:var(--navy);}

/* order details popup */
#orderDetailModel .modal-content{ border:0; border-radius:18px; overflow:hidden; box-shadow:0 24px 70px rgba(10,42,69,.35); font-family:var(--sans);}
#orderDetailModel .modal-header{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px; border-bottom:1px solid var(--line);}
#orderDetailModel .modal-title{ font:600 20px/1.3 var(--serif); color:var(--navy);}
#orderDetailModel .modal-footer{ padding:14px 22px; border-top:1px solid var(--line); text-align:right;}
#orderDetailModel p, #orderDetailModel h3, #orderDetailModel li{ float:none;}
#orderDetailModel ul, #orderDetailModel dl{ margin:0; padding:0; list-style:none;}
#orderDetailModel .modal-header .close{
	position:static !important; float:none; flex:none; width:36px; height:36px; margin:0 !important; padding:0;
	border-radius:50%; background:var(--tint); color:var(--navy); font:400 24px/34px Arial, sans-serif; text-align:center; text-shadow:none; opacity:1;
}
.mb-d{ padding:22px;}
.mb-d-loading{ padding:60px 20px; text-align:center; color:var(--muted);}
.mb-d-top{ display:grid; grid-template-columns:120px minmax(0,1fr); gap:20px; margin-bottom:22px;}
.mb-d-top img{ width:120px; height:140px; object-fit:contain; border-radius:10px; background:var(--tint);}
.mb-d-top h3{ margin:0 0 4px; font:600 20px/1.3 var(--serif); color:var(--navy);}
.mb-d-top p{ margin:0 0 12px; font-size:13px; color:var(--muted);}
.mb-d-top dl{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px 16px;}
.mb-d-top dt{ font:600 10.5px/1.2 var(--sans); letter-spacing:.07em; text-transform:uppercase; color:var(--muted);}
.mb-d-top dd{ margin:0; font-size:14px; font-weight:600;}
.mb-d-grid{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px;}
.mb-d-grid li{ padding:10px 8px; border:1px solid var(--line); border-radius:12px; text-align:center;}
.mb-d-img{ display:flex; align-items:center; justify-content:center; height:84px; margin-bottom:6px;}
.mb-d-img img{ max-width:100%; max-height:100%; object-fit:contain; mix-blend-mode:multiply;}
.mb-d-grid small{ display:block; font:600 10px/1.2 var(--sans); letter-spacing:.07em; text-transform:uppercase; color:var(--muted);}
.mb-d-grid strong{ display:block; margin-top:2px; font:600 12.5px/1.3 var(--sans);}
.mb-d-extra{ margin:14px 0 0; padding:10px 14px; border-radius:10px; background:var(--tint); font-size:13.5px;}

/* ---------- Responsive ---------- */
@media (max-width:991px){
	.mb-layout{ grid-template-columns:minmax(0,1fr); gap:20px;}
	.mb-side{ position:static;}
	.mb-promo{ display:none;}
	.mb-menu-card{ padding:12px;}
	.mb-who{ grid-template-columns:auto minmax(0,1fr); justify-items:start; gap:12px; margin:0 4px 6px; padding:2px 0 12px; text-align:left;}
	.mb-who-av{ width:48px; height:48px; font-size:18px;}
	.mb-menu-out{ margin-top:0 !important; padding-top:0 !important;}
	.mb-menu-out:before{ display:none;}
}
@media (max-width:767px){
	.mb-head{ padding:22px 0 20px;}
	.mb-head h1{ font-size:28px;}
	.mb-page{ padding:22px 0 50px;}
	.mb-card{ padding:20px 18px;}
	.mb-order{ grid-template-columns:72px minmax(0,1fr); gap:12px;}
	.mb-order-img{ width:72px; height:88px;}
	.mb-order-side{ grid-column:1 / -1; grid-template-columns:1fr auto; justify-items:start; align-items:center; text-align:left;}
	.mb-d-grid{ grid-template-columns:repeat(2, minmax(0,1fr));}
	.mb-d-top{ grid-template-columns:90px minmax(0,1fr); gap:14px;}
	.mb-d-top img{ width:90px; height:110px;}
}
@media (max-width:575px){
	.mb-details, .mb-grid{ grid-template-columns:minmax(0,1fr);}
	.mb-field input, .mb-field select{ font-size:16px;}   /* stops iOS zooming into the field */
	.mb-btn{ width:100%;}
}

/* ---------- My measurement ---------- */
.mb-mtypes{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px;}
.mb-mtype{ display:grid; justify-items:center; align-content:start; gap:4px; padding:16px 12px; border:2px solid var(--line); border-radius:14px; background:#fff; text-align:center; transition:border-color .2s, box-shadow .2s;}
.mb-mtype:hover{ border-color:#b9cde4;}
.mb-mtype.is-active{ border-color:var(--navy); box-shadow:0 8px 22px rgba(15,58,92,.14);}
.mb-mtype img{ width:auto; max-width:100%; height:110px; object-fit:contain; margin-bottom:6px;}
.mb-mtype strong{ font:600 15px/1.3 var(--sans); color:var(--navy);}
.mb-mtype span{ font-size:12.5px; line-height:1.4; color:var(--muted);}
.mb-measure{ margin-top:20px;}
.mb-intro{ margin:-8px 0 20px; color:var(--muted);}
.mb-field label span{ font-weight:400; text-transform:none; letter-spacing:0;}
.mb-field textarea{ display:block; width:100%; margin:0; padding:12px 14px; border:1px solid #cfd9e6; border-radius:10px; background:#fff; color:var(--ink); font:500 15px/1.5 var(--sans); box-shadow:none; resize:vertical;}
.mb-field textarea:focus{ border-color:var(--blue); box-shadow:0 0 0 3px rgba(74,134,201,.18);}
@media (max-width:575px){
	.mb-mtypes{ grid-template-columns:minmax(0,1fr);}
	.mb-mtype{ grid-template-columns:64px minmax(0,1fr); justify-items:start; text-align:left; column-gap:14px; align-items:center;}
	.mb-mtype img{ grid-row:1 / 3; width:64px; height:64px; margin:0;}
	.mb-field textarea{ font-size:16px;}
}

/* ---------- Order received ---------- */
.mb-done{ max-width:680px; margin:10px auto; text-align:center;}
.mb-done-icon{ display:inline-flex; align-items:center; justify-content:center; width:72px; height:72px; border-radius:50%; background:#e6f4ec; color:#2e8b57; font-size:32px;}
.mb-done h1{ margin:18px 0 10px; font-size:34px; font-weight:600; color:var(--navy);}
.mb-done-lead{ margin:0 0 24px; font-size:16px; line-height:1.7;}
.mb-notice{ margin:0 0 24px; padding:20px 22px; border:1px solid #f0d9a8; border-left:5px solid #d58512; border-radius:12px; background:#fff8ec; text-align:left;}
.mb-notice strong{ display:block; margin-bottom:8px; font:600 12px/1.3 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:#a35a00;}
.mb-notice p{ margin:0 0 8px; font-size:14.5px; line-height:1.7;}
.mb-notice p:last-child{ margin:0;}
.mb-done-thanks{ margin:0 0 22px; color:var(--muted);}
.mb-done-actions{ display:flex; justify-content:center; gap:12px; flex-wrap:wrap;}

/* ---------- Size chart ---------- */
.mb-table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:12px;}
.mb-table{ width:100%; min-width:640px; border-collapse:collapse; font-size:14.5px;}
.mb-table th, .mb-table td{ padding:12px 14px; border-bottom:1px solid var(--line); text-align:center; white-space:nowrap;}
.mb-table thead th{ background:var(--navy); color:#fff; font-weight:600;}
.mb-table tbody th{ background:var(--tint); text-align:left; font-weight:600; color:var(--navy);}
.mb-table tbody tr:last-child th, .mb-table tbody tr:last-child td{ border-bottom:0;}
@media (max-width:575px){
	.mb-done-actions .mb-btn{ width:100%;}
}

/* ---------- Order received: summary and next steps ---------- */
.mb-done-no{ display:inline-block; margin-left:6px; padding:3px 12px; border-radius:999px; background:var(--tint); color:var(--navy); font-size:14px;}
.mb-done-card{ margin:0 0 24px; padding:22px; border:1px solid var(--line); border-radius:16px; background:#fff; text-align:left;}
.mb-done-card h2{ margin:0 0 14px; font-size:20px; font-weight:600; color:var(--navy);}
.mb-done-card p, .mb-done-card h2, .mb-done-card li{ float:none;}
.mb-done-items, .mb-done-lines, .mb-done-next ol{ margin:0; padding:0; list-style:none;}
.mb-done-items li{ display:grid; grid-template-columns:52px minmax(0,1fr) auto; align-items:center; gap:12px; width:auto; margin:0; padding:10px 0; border-bottom:1px solid var(--line);}
.mb-done-items img{ width:52px; height:62px; object-fit:contain; border-radius:8px; background:var(--tint);}
.mb-done-items strong{ display:block; font:600 14.5px/1.3 var(--serif); color:var(--navy);}
.mb-done-items small{ display:block; margin-top:2px; font-size:12.5px; color:var(--muted);}
.mb-done-items li > span{ font:600 14px var(--sans);}
.mb-done-lines > div{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-bottom:1px solid var(--line); font-size:14px;}
.mb-done-lines dt{ font-weight:400; color:var(--muted);}
.mb-done-lines dd{ margin:0; font-weight:600;}
.mb-done-discount dd{ color:#2e8b57;}
.mb-done-total{ display:flex; justify-content:space-between; align-items:baseline; margin-top:6px; padding-top:14px; border-top:2px solid var(--navy);}
.mb-done-total span{ font:600 15px var(--sans); color:var(--navy);}
.mb-done-total strong{ font:700 26px/1 var(--sans); color:var(--navy);}
.mb-done-next ol{ display:grid; gap:14px;}
.mb-done-next li{ display:flex; gap:14px; align-items:flex-start; width:auto; margin:0; font-size:14.5px; line-height:1.6; color:var(--muted);}
.mb-done-next li span{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--navy); color:#fff; font:600 13px/1 var(--sans);}
.mb-done-next li strong{ color:var(--navy); font-weight:600;}
@media (max-width:575px){
	.mb-done h1{ font-size:28px;}
	.mb-done-card{ padding:18px;}
}

/* ---------- My orders: one card per order, its shirts inside ---------- */
.mb-orders{ gap:18px;}
.mb-order{ display:block; padding:0; overflow:hidden; border-radius:16px;}
.mb-order-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-bottom:1px solid var(--line); background:var(--tint);}
.mb-order-head time{ display:block; margin-top:2px; font-size:13px; color:var(--muted);}
.mb-order-head .mb-order-no{ font-size:12px;}
.mb-status{ flex:none; padding:5px 12px; border-radius:999px; background:#e8edf3; color:var(--muted); font:600 12px/1.2 var(--sans);}
.mb-status.is-pending{ background:#fff3dc; color:#a35a00;}
.mb-status.is-confirmed{ background:#e6f4ec; color:#1f7a45;}
.mb-order-lines, .mb-order-foot dl{ margin:0; padding:0; list-style:none;}
.mb-order-lines li{ display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:16px; width:auto; margin:0; padding:14px 20px; border-bottom:1px solid var(--line);}
.mb-order-lines .mb-order-img{ width:72px; height:86px; cursor:pointer;}
.mb-order-lines h3{ margin:0 0 2px;}
.mb-order-lines p{ margin:0 0 6px; float:none;}
.mb-order-qty{ font-size:13px; color:var(--muted);}
.mb-order-line-side{ display:grid; justify-items:end; gap:8px;}
.mb-order-line-side strong{ font:700 16px var(--sans); color:var(--ink);}
.mb-btn.mb-btn-sm{ width:auto; min-height:36px; padding:0 16px; font-size:13px;}
.mb-order-foot{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:14px 20px;}
.mb-order-foot dl{ display:flex; flex-wrap:wrap; gap:4px 20px; font-size:13px; color:var(--muted);}
.mb-order-foot dl > div{ display:flex; gap:6px;}
.mb-order-foot dd{ margin:0; font-weight:600; color:var(--ink);}
.mb-order-foot .is-discount dd{ color:#2e8b57;}
.mb-order-foot .mb-order-total{ text-align:right;}

/* order popup */
.mb-d-h{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:24px 0 10px; padding-top:18px; border-top:1px solid var(--line); font:600 13px/1.3 var(--sans); letter-spacing:.06em; text-transform:uppercase; color:var(--navy);}
.mb-d-h span{ font:400 12.5px var(--sans); letter-spacing:0; text-transform:none; color:var(--muted);}
.mb-d-measure{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px;}
.mb-d-measure > div{ padding:10px 12px; border:1px solid var(--line); border-radius:10px;}
.mb-d-measure dt{ font:600 10.5px/1.2 var(--sans); letter-spacing:.07em; text-transform:uppercase; color:var(--muted);}
.mb-d-measure dd{ margin:3px 0 0; font:600 15px var(--sans);}
.mb-d-price{ margin:0;}
.mb-d-price > div{ display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid var(--line); font-size:14px;}
.mb-d-price dt{ font-weight:400; color:var(--muted);}
.mb-d-price dd{ margin:0; font-weight:600;}
.mb-d-price .is-discount dd{ color:#2e8b57;}
.mb-d-price .is-total{ border-bottom:0; border-top:2px solid var(--navy); margin-top:4px; padding-top:12px;}
.mb-d-price .is-total dt, .mb-d-price .is-total dd{ font:700 17px var(--sans); color:var(--navy);}
.mb-d-top dl{ grid-template-columns:repeat(2, minmax(0,1fr));}
@media (max-width:767px){
	.mb-order-lines li{ grid-template-columns:64px minmax(0,1fr); gap:12px; padding:14px 16px;}
	.mb-order-lines .mb-order-img{ width:64px; height:78px;}
	.mb-order-line-side{ grid-column:1 / -1; grid-template-columns:1fr auto; justify-items:start; align-items:center;}
	.mb-order-head, .mb-order-foot{ padding:12px 16px;}
	.mb-order-foot{ flex-direction:column; align-items:stretch;}
	.mb-order-foot .mb-order-total{ display:flex; justify-content:space-between; align-items:baseline; text-align:left;}
	.mb-d-measure{ grid-template-columns:repeat(2, minmax(0,1fr));}
}
.mb-order, .mb-order-lines li{ text-align:left;}
.mb-order-lines .mb-order-img{ display:flex; align-items:center; justify-content:center; overflow:hidden;}

/* ---------- Order popup, compact: header, facts, tabs ---------- */
#orderDetailModel .modal-dialog{ max-width:calc(100% - 20px);}
@media (min-width:768px){ #orderDetailModel .modal-dialog{ width:640px; margin-top:40px;}}
#orderDetailModel .modal-header.mb-dh{ display:flex; align-items:center; gap:12px; padding:14px 18px 14px 22px; border-bottom:1px solid var(--line); background:var(--tint);}
#orderDetailModel .modal-header.mb-dh:before, #orderDetailModel .modal-header.mb-dh:after{ display:none !important;}
.mb-dh-text{ flex:1; min-width:0; display:flex; align-items:baseline; gap:8px;}
.mb-dh-label{ font:600 11px/1.3 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--muted);}
#orderDetailModel .mb-dh .modal-title{ margin:0; font:600 22px/1.2 var(--serif); color:var(--navy);}
#orderDetailModel .mb-dh .close{ position:static !important; margin:0 !important; width:34px; height:34px; border-radius:50%; background:#fff; border:1px solid var(--line); color:var(--navy); font:400 22px/32px Arial, sans-serif; text-align:center; text-shadow:none; opacity:1;}
#orderDetailModel .mb-dh .close:hover, #orderDetailModel .mb-dh .close:focus{ background:var(--line); outline:0;}
#orderDetailModel .mb-dh .close:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:2px;}
.mb-d{ padding:18px 22px 20px;}
.mb-d-top{ grid-template-columns:72px minmax(0,1fr); gap:16px; margin-bottom:16px; align-items:center;}
.mb-d-top img{ width:72px; height:86px;}
.mb-d-top h3{ font-size:18px;}
.mb-d-top p{ margin:0 0 8px;}
.mb-d-facts{ display:flex; flex-wrap:wrap; gap:6px;}
.mb-d-facts li{ width:auto; margin:0; padding:3px 10px; border-radius:999px; background:var(--tint); font-size:12.5px; color:var(--muted);}
.mb-d-facts strong{ color:var(--navy);}
.mb-d-tabs{ display:flex; gap:4px; margin-bottom:14px; border-bottom:1px solid var(--line);}
.mb-d-tabs button{ margin:0 0 -1px; padding:9px 14px; border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); font:600 13.5px var(--sans); cursor:pointer;}
.mb-d-tabs button:hover{ color:var(--navy);}
.mb-d-tabs button.is-active{ border-bottom-color:var(--navy); color:var(--navy);}
.mb-d-tabs button:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:-3px;}
.mb-d-panel{ max-height:48vh; overflow-y:auto;}
.mb-d-panel[hidden]{ display:none !important;}
.mb-d-grid{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px;}
.mb-d-grid li{ padding:8px 6px;}
.mb-d-img{ height:58px; margin-bottom:4px;}
.mb-d-grid strong{ font-size:12px;}
.mb-d-method{ margin:0 0 10px; font-size:13px; color:var(--muted);}
.mb-d-measure{ grid-template-columns:repeat(4, minmax(0,1fr)); gap:8px;}
.mb-d-measure > div{ padding:8px 10px;}
.mb-d-measure dd{ font-size:14px;}
@media (max-width:575px){
	.mb-d{ padding:16px;}
	.mb-d-grid, .mb-d-measure{ grid-template-columns:repeat(2, minmax(0,1fr));}
	.mb-d-panel{ max-height:42vh;}
	#orderDetailModel .mb-dh .modal-title{ font-size:20px;}
}

/* order popup tabs: a segmented control, so they read as tabs */
.mb-d-tabs{ display:flex; gap:4px; margin:0 0 14px; padding:4px; border:1px solid var(--line); border-radius:12px; background:var(--tint);}
.mb-d-tabs button{ flex:1; margin:0; padding:9px 8px; border:0; border-radius:9px; background:transparent; color:var(--muted); font:600 13.5px var(--sans); text-align:center; cursor:pointer; transition:background .15s, color .15s, box-shadow .15s;}
.mb-d-tabs button:hover{ background:rgba(255,255,255,.7); color:var(--navy);}
.mb-d-tabs button.is-active{ background:#fff; color:var(--navy); box-shadow:0 1px 3px rgba(15,58,92,.18), 0 0 0 1px var(--line);}
.mb-d-tabs button:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:1px;}

/* ---------- My account: profile header, overview tiles ---------- */
.mb-profile{ display:flex; align-items:center; gap:18px; margin-bottom:20px; background:linear-gradient(100deg,#eef4fb 0%,#fff 75%);}
.mb-avatar{ flex:none; display:inline-flex; align-items:center; justify-content:center; width:64px; height:64px; border-radius:50%; background:var(--navy); color:#fff; font:600 22px/1 var(--serif); letter-spacing:.04em;}
.mb-profile-text{ flex:1; min-width:0;}
.mb-profile-text h2{ margin:0 0 2px; font:600 22px/1.3 var(--serif); color:var(--navy); overflow-wrap:anywhere;}
.mb-profile-text p{ margin:0; font-size:14.5px; color:var(--ink); overflow-wrap:anywhere;}
.mb-profile-text small{ display:block; margin-top:2px; font-size:12.5px; color:var(--muted);}
.mb-card + .mb-tiles, .mb-tiles + .mb-card{ margin-top:20px;}
.mb-tiles{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px;}
.mb-tile{ display:grid; gap:2px; padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--ink); transition:box-shadow .2s, border-color .2s, transform .2s;}
.mb-tile:hover{ border-color:#c9d6e6; box-shadow:0 8px 24px rgba(15,58,92,.1); transform:translateY(-1px); text-decoration:none;}
.mb-tile:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:2px;}
.mb-tile i{ width:36px; height:36px; margin-bottom:6px; border-radius:10px; background:var(--tint); color:var(--blue); font-size:16px; line-height:36px; text-align:center;}
.mb-tile strong{ font:700 24px/1.2 var(--sans); color:var(--navy);}
.mb-tile span{ font-size:13.5px; color:var(--muted);}
.mb-tile small{ margin-top:6px; font-size:12.5px; color:var(--muted);}
.mb-tile em{ font-style:normal; padding:2px 8px; font-size:11px;}
.mb-card-foot{ margin:20px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:14px;}
.mb-card-foot a{ color:var(--blue); font-weight:600;}
@media (max-width:767px){
	.mb-tiles{ grid-template-columns:minmax(0,1fr);}
	.mb-tile{ grid-template-columns:36px minmax(0,1fr) auto; align-items:center; gap:0 12px;}
	.mb-tile i{ grid-row:1 / span 3; margin:0;}
	.mb-tile strong{ grid-column:2; font-size:18px;}
	.mb-tile span{ grid-column:2;}
	.mb-tile small{ grid-column:2; margin-top:2px;}
}
@media (max-width:575px){
	.mb-profile{ flex-wrap:wrap;}
	.mb-profile .mb-btn{ width:100%;}
}
.mb .mb-profile-text h2{ text-transform:none !important;}
.mb-field input, .mb-field select{ text-transform:none;}
.mb .mb-form-h{ margin:6px 0 -4px; padding-bottom:8px; border-bottom:1px solid var(--line); font:600 12px/1.3 var(--sans); letter-spacing:.08em; text-transform:uppercase; color:var(--navy);}
.mb .mb-form-h:first-child{ margin-top:0;}

/* password fields with a show / hide button */
.mb-pass{ position:relative;}
.mb-pass input{ padding-right:48px;}
.mb-eye{ position:absolute; top:6px; right:6px; width:34px; height:34px; padding:0; border:0; border-radius:8px; background:none; color:var(--muted);}
.mb-eye:hover{ background:var(--tint); color:var(--navy);}
.mb-eye:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:1px;}
.mb-pass + small, .mb-pass ~ small{ display:block;}
.mb-field label.error, .mb-field small.error{ margin:6px 0 0; font:500 12.5px/1.4 var(--sans); letter-spacing:0; text-transform:none; color:#c0392b;}

/* small screens: every menu item is visible (a two column grid), nothing is hidden by sideways scrolling */
@media (max-width:991px){
	.mb-menu ul{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:4px; overflow:visible;}
	.mb-menu li{ flex:none; min-width:0;}
	.mb-menu a{ white-space:normal; padding:10px 12px; font-size:14px;}
}

/* ---------- Dashboard (my account) ---------- */
.mb-hero{ display:flex; align-items:center; gap:18px; margin-bottom:20px; padding:28px; border-radius:20px; color:#fff; background:radial-gradient(circle at 92% 0%, rgba(74,134,201,.55) 0, rgba(74,134,201,0) 45%), linear-gradient(120deg, var(--navy) 0%, #174a73 100%); box-shadow:0 14px 34px rgba(15,58,92,.22);}
.mb-hero .mb-avatar{ width:68px; height:68px; background:rgba(255,255,255,.14); box-shadow:inset 0 0 0 2px rgba(255,255,255,.35);}
.mb-hero-text{ flex:1; min-width:0;}
.mb .mb-hero-text p.mb-hero-hello{ margin:0; font-size:14px; color:rgba(255,255,255,.75);}
.mb .mb-hero-text h2{ margin:0; font:600 30px/1.2 var(--serif); color:#fff; text-transform:none !important; overflow-wrap:anywhere;}
.mb .mb-hero-text small{ display:block; margin-top:4px; font-size:13px; color:rgba(255,255,255,.75); overflow-wrap:anywhere;}
.mb-hero-actions{ display:flex; flex-wrap:wrap; gap:10px;}
.mb-hero .mb-btn{ width:auto;}
.mb .mb-btn-light{ border-color:#fff; background:#fff; color:var(--navy) !important;}
.mb .mb-btn-light:hover{ background:var(--tint);}
.mb .mb-btn-ghost{ border-color:rgba(255,255,255,.5); background:transparent; color:#fff !important;}
.mb .mb-btn-ghost:hover{ background:rgba(255,255,255,.12);}

.mb-stats{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; margin-bottom:20px;}
.mb-stat{ display:grid; grid-template-columns:40px minmax(0,1fr); grid-template-rows:auto auto; column-gap:12px; align-items:center; padding:16px; border:1px solid var(--line); border-radius:16px; background:#fff; color:var(--ink); transition:box-shadow .2s, border-color .2s, transform .2s;}
a.mb-stat:hover{ border-color:#c9d6e6; box-shadow:0 8px 24px rgba(15,58,92,.1); transform:translateY(-1px); text-decoration:none;}
a.mb-stat:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:2px;}
.mb-stat i{ grid-row:1 / span 2; width:40px; height:40px; border-radius:12px; background:var(--tint); color:var(--blue); font-size:17px; line-height:40px; text-align:center;}
.mb-stat span{ font-size:12.5px; color:var(--muted);}
.mb-stat strong{ font:700 22px/1.2 var(--sans); color:var(--navy);}

.mb-dash{ display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:20px; margin-bottom:20px; align-items:start;}
.mb-dash > .mb-card + .mb-card{ margin-top:0;}
.mb-dash .mb-card-head{ margin-bottom:14px;}
.mb-dash .mb-card-head h2{ font-size:19px;}
.mb .mb-link{ font-size:13.5px; font-weight:600; color:var(--blue);}

.mb-recent-row{ display:flex; align-items:center; gap:14px; margin:0 -10px; padding:12px 10px; border-radius:12px; color:var(--ink); transition:background .15s;}
.mb-recent-row + .mb-recent-row{ border-top:1px solid var(--line); border-radius:0;}
.mb-recent-row:hover{ background:var(--tint); text-decoration:none;}
.mb-recent-row:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:-2px;}
.mb-recent-img{ flex:none; width:52px; height:52px; overflow:hidden; border-radius:10px; background:var(--tint);}
.mb-recent-img img{ display:block; width:100%; height:100%; object-fit:cover;}
.mb-recent-text{ flex:1; min-width:0; display:grid; gap:2px;}
.mb-recent-text strong{ font-size:15px; color:var(--navy);}
.mb-recent-text small, .mb-steps small{ font-size:12.5px; color:var(--muted);}
.mb-recent-side{ flex:none; display:grid; gap:4px; justify-items:end;}
.mb-recent-side strong{ font-size:15px; color:var(--navy);}
.mb-recent-side .mb-status{ padding:3px 10px; font-size:11.5px; font-style:normal;}
.mb-recent-empty{ padding:18px 0 6px; text-align:center;}
.mb-recent-empty p{ margin:0 0 14px; color:var(--muted);}

.mb-setup-pct{ font:700 15px var(--sans); color:var(--blue);}
.mb-progress{ height:8px; margin-bottom:12px; overflow:hidden; border-radius:999px; background:var(--tint);}
.mb-progress span{ display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, var(--blue), var(--navy)); transition:width .4s;}
.mb-steps{ margin:0; padding:0; list-style:none;}
.mb-steps li{ float:none; margin:0; padding:0;}
.mb-steps a{ display:flex; align-items:center; gap:12px; margin:0 -10px; padding:10px; border-radius:12px; color:var(--ink);}
.mb-steps a:hover{ background:var(--tint); text-decoration:none;}
.mb-steps a:focus-visible{ outline:3px solid rgba(74,134,201,.5); outline-offset:-2px;}
.mb-steps a > i:first-child{ flex:none; width:28px; height:28px; border-radius:50%; border:1.5px solid #c9d6e6; color:#9fb0c4; font-size:14px; line-height:25px; text-align:center;}
.mb-steps .is-done a > i:first-child{ border-color:#1f7a45; background:#1f7a45; color:#fff; font-size:13px;}
.mb-steps a > span{ flex:1; min-width:0; display:grid;}
.mb-steps strong{ font-size:14.5px; color:var(--navy);}
.mb-steps .mb-steps-go{ color:#9fb0c4; font-size:20px;}

@media (max-width:991px){
	.mb-stats{ grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width:767px){
	.mb-dash{ grid-template-columns:minmax(0,1fr);}
	.mb-hero{ flex-wrap:wrap; padding:22px 18px;}
	.mb-hero-text{ flex:1 1 60%;}
	.mb .mb-hero-text h2{ font-size:25px;}
	.mb-hero-actions{ width:100%;}
	.mb-hero-actions .mb-btn{ flex:1 1 0;}
}
@media (max-width:420px){
	.mb-stat{ grid-template-columns:minmax(0,1fr); padding:14px;}
	.mb-stat i{ display:none;}
	.mb-stat span, .mb-stat strong{ grid-column:1;}
	.mb-recent-img{ width:44px; height:44px;}
}
.mb-hero .mb-btn{ padding:0 16px; white-space:nowrap;}
.mb-recent-empty{ display:grid; justify-items:center; gap:6px; padding:34px 20px; border:1.5px dashed #c9d6e6; border-radius:14px; background:linear-gradient(180deg,#f7fafd,#fff); text-align:center;}
.mb-recent-empty-icon{ width:56px; height:56px; margin-bottom:6px; border-radius:50%; background:var(--tint); color:var(--blue); font-size:22px; line-height:56px;}
.mb .mb-recent-empty h3{ margin:0; font:600 18px/1.3 var(--serif); color:var(--navy); text-transform:none;}
.mb .mb-recent-empty p{ max-width:320px; margin:0 0 12px; float:none; font-size:14px; color:var(--muted);}

/* Save / Cancel row of the forms: the old site CSS floats buttons, keep them side by side */
.mb-actions .mb-btn{ float:none; margin:0;}
.mb-actions .mb-msg{ flex:1 1 100%; order:3;}
.mb-actions .mb-msg:empty{ display:none;}
