/*
 * Account page compatibility for the default BeikeShop account views.
 * Mega Shop owns the outer layout, while these views intentionally fall back
 * to the core templates; keep every selector scoped to account pages.
 */
body[class^="page-account"] { background: #f5f6f8; color: #2a303b; }
body[class^="page-account"] .breadcrumb-wrap { margin-bottom: 24px; background: transparent; border-bottom: 1px solid #e7eaf0; }
body[class^="page-account"] .account-sides-info { overflow: hidden; background: #fff; border: 1px solid #e6e9ef; border-radius: 10px; box-shadow: 0 8px 24px rgba(31, 41, 55, .05); }
body[class^="page-account"] .account-sides-info .mb-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #e8ebf0; }
body[class^="page-account"] .account-sides-info .head { display: flex; align-items: center; padding: 20px 16px; border-bottom: 1px solid #e8ebf0; }
body[class^="page-account"] .account-sides-info .portrait { flex: 0 0 62px; width: 62px; height: 62px; margin-right: 12px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px rgba(31, 41, 55, .14); }
body[class^="page-account"] .account-sides-info .portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
body[class^="page-account"] .account-sides-info .account-name { margin-bottom: 3px; color: #202633; font-weight: 700; }
body[class^="page-account"] .account-sides-info .account-email { overflow: hidden; color: #7b8493; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
body[class^="page-account"] .account-sides-info .account-links > a { min-height: 46px; padding: 12px 16px; border: 0; border-bottom: 1px solid #eef0f4; color: #4c5564; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
body[class^="page-account"] .account-sides-info .account-links > a:last-child { border-bottom: 0; }
body[class^="page-account"] .account-sides-info .account-links > a:hover, body[class^="page-account"] .account-sides-info .account-links > a.active { background: #fff3f1; color: var(--ms-red, #e1251b); }
body[class^="page-account"] .account-sides-info .account-links > a .icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; margin-right: 9px; }
body[class^="page-account"] .account-sides-info .account-links > a.active svg path, body[class^="page-account"] .account-sides-info .account-links > a:hover svg path { fill: currentColor; }
body.page-account .account-card { overflow: hidden; border: 1px solid #e6e9ef; border-radius: 10px; box-shadow: 0 8px 24px rgba(31, 41, 55, .05); }
body.page-account .account-card .card-header { min-height: 62px; padding: 18px 22px; background: #fff; border-bottom: 1px solid #edf0f4; }
body.page-account .account-card .card-title { margin: 0; color: #202633; font-size: 18px; font-weight: 700; }
body.page-account .account-card .card-body { min-height: 420px; padding: 22px; background: #fff; }
body.page-account .account-card .card-items { gap: 8px; margin: 0 0 22px !important; padding: 0 0 22px !important; border-bottom: 1px solid #edf0f4; }
body.page-account .account-card .card-items > a { width: 25%; min-width: 0; color: #4c5564; text-decoration: none !important; }
body.page-account .account-card .card-items > a:hover { color: var(--ms-red, #e1251b); }
body.page-account .account-card .card-items i { margin-bottom: 7px; font-size: 28px; line-height: 1; }
body.page-account .account-card .card-items span { display: flex; justify-content: center; font-size: 13px; }
body.page-account .account-card .order-wrap { min-height: 245px; padding: 24px 18px; background: #f8fafc; border-radius: 8px; }
body.page-account .account-card .no-order .icon i { color: #a1a8b4; font-size: 58px; }
@media (min-width: 768px) {
  body[class^="page-account"] > .container { padding-bottom: 40px; }
  body[class^="page-account"] > .container > .row { --bs-gutter-x: 24px; align-items: flex-start; }
  body[class^="page-account"] .account-sides-info .head { flex-direction: row; min-height: 104px; padding: 18px 16px; }
  body[class^="page-account"] .account-sides-info .portrait { width: 62px; height: 62px; margin: 0 12px 0 0; }
  body[class^="page-account"] .account-sides-info .head > div:last-child { min-width: 0; }
  body[class^="page-account"] .account-sides-info .account-links { padding: 8px; }
  body[class^="page-account"] .account-sides-info .account-links > a { min-height: 44px; margin-bottom: 2px; padding: 10px 12px; border-bottom: 0; border-radius: 6px; }
  body.page-account .account-card .card-body { min-height: 350px; }
  body.page-account .account-card .order-wrap { min-height: 205px; }
}
@media (max-width: 767.98px) {
  body[class^="page-account"] .breadcrumb-wrap { margin-bottom: 12px; }
  body[class^="page-account"] .account-sides-wrap { position: fixed; inset: 0; z-index: 1045; visibility: hidden; background: rgba(22, 27, 38, .42); opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
  body[class^="page-account"] .account-sides-wrap.active { visibility: visible; opacity: 1; }
  body[class^="page-account"] .account-sides-info { position: absolute; top: 0; bottom: 0; left: 0; width: min(84vw, 340px); overflow-y: auto; border: 0; border-radius: 0; transform: translateX(-105%); transition: transform .25s ease; }
  body[class^="page-account"] .account-sides-wrap.active .account-sides-info { transform: translateX(0); }
  body.page-account .account-card { border-radius: 8px; }
  body.page-account .account-card .card-header, body.page-account .account-card .card-body { padding: 16px; }
  body.page-account .account-card .card-body { min-height: 0; }
  body.page-account .account-card .card-items { gap: 2px; padding-bottom: 16px !important; }
  body.page-account .account-card .card-items i { font-size: 24px; }
  body.page-account .account-card .card-items span { font-size: 12px; }
  body.page-account .account-card .order-wrap { min-height: 190px; padding: 18px 12px; }
}
