/* ETOP V2 Stage 48 – account workspace pages only.
   Hides the *catalogue* sidebar while keeping the profile's own menu.
   Desktop only; login, register, checkout and product/category pages unaffected.
   Route-based selectors use the existing body classes generated by header.tpl.
*/
@media screen and (min-width: 992px) {
  html body.hitop-persistent-catalog:is(.hitop-route-account-account, .hitop-route-account-edit, .hitop-route-account-password, .hitop-route-account-address, .hitop-route-account-wishlist, .hitop-route-account-order, .hitop-route-account-return, .hitop-route-account-transaction, .hitop-route-account-download, .hitop-route-account-newsletter, .hitop-route-account-reward, .hitop-route-account-recurring) .hitop-allcats > .hitop-catalog-mega,
  html body.hitop-persistent-catalog:is(.hitop-route-account-account, .hitop-route-account-edit, .hitop-route-account-password, .hitop-route-account-address, .hitop-route-account-wishlist, .hitop-route-account-order, .hitop-route-account-return, .hitop-route-account-transaction, .hitop-route-account-download, .hitop-route-account-newsletter, .hitop-route-account-reward, .hitop-route-account-recurring) .hitop-allcats.hitop-open > .hitop-catalog-mega,
  html body.hitop-persistent-catalog:is(.hitop-route-account-account, .hitop-route-account-edit, .hitop-route-account-password, .hitop-route-account-address, .hitop-route-account-wishlist, .hitop-route-account-order, .hitop-route-account-return, .hitop-route-account-transaction, .hitop-route-account-download, .hitop-route-account-newsletter, .hitop-route-account-reward, .hitop-route-account-recurring) .hitop-allcats:hover > .hitop-catalog-mega {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body.hitop-persistent-catalog:is(.hitop-route-account-account, .hitop-route-account-edit, .hitop-route-account-password, .hitop-route-account-address, .hitop-route-account-wishlist, .hitop-route-account-order, .hitop-route-account-return, .hitop-route-account-transaction, .hitop-route-account-download, .hitop-route-account-newsletter, .hitop-route-account-reward, .hitop-route-account-recurring) .centralbox > .container > .container-inner {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html body.hitop-persistent-catalog:is(.hitop-route-account-account, .hitop-route-account-edit, .hitop-route-account-password, .hitop-route-account-address, .hitop-route-account-wishlist, .hitop-route-account-order, .hitop-route-account-return, .hitop-route-account-transaction, .hitop-route-account-download, .hitop-route-account-newsletter, .hitop-route-account-reward, .hitop-route-account-recurring) .centralbox > .container {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ETOP V2 Stage 173 — global mobile account outer wrapper cleanup.
   Shared across all account/* pages (overview, personal data, password,
   addresses, orders, returns, wishlist, transactions, downloads, newsletter,
   and login/register). Existing inner cards, forms and header remain intact.
   Scoped by OpenCart route body class; desktop rules above stay unchanged. */
@media only screen and (max-width:991px) {
  html body[class*="hitop-route-account-"] .centralbox,
  html body[class*="hitop-route-account-"] .centralbox > .container,
  html body[class*="hitop-route-account-"] .centralbox > .container > .container-inner {
    background:#fff !important;
    background-image:none !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  html body[class*="hitop-route-account-"] .centralbox > .container,
  html body[class*="hitop-route-account-"] .centralbox > .container > .container-inner {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
}


/* ETOP V2 Stage 175 — consistent mobile account workspace.
   Applies to inner account pages, not login/register or desktop.
   Preserve existing native form controls, account sidebar, AJAX and footer. */
@media only screen and (max-width:991px) {
  html body #etop-account-inner-v2,
  html body #etop-edit-v2 {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:12px 12px 28px !important;
    margin:0 auto !important;
    background:#fff !important;
    color:#113b5c;
  }
  html body #etop-account-inner-v2 .av2-layout,
  html body #etop-edit-v2 .ee-layout {
    display:block !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  html body #etop-account-inner-v2 .av2-main,
  html body #etop-edit-v2 .ee-main {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    background:transparent !important;
  }
  html body #etop-account-inner-v2 .av2-breadcrumb,
  html body #etop-edit-v2 .ee-breadcrumb {
    font:400 12px/1.4 Arial,Helvetica,sans-serif !important;
    margin:0 0 12px !important;
    padding:0 !important;
    overflow-wrap:anywhere;
  }
  html body #etop-account-inner-v2 .av2-rule {margin:0 0 14px !important;}
  html body #etop-account-inner-v2 .av2-main h1,
  html body #etop-edit-v2 .ee-page-title {
    font:700 21px/1.25 Arial,Helvetica,sans-serif !important;
    color:#103b5d !important;
    margin:0 0 12px !important;
    text-transform:none !important;
  }
  html body #etop-account-inner-v2 .av2-main h2,
  html body #etop-account-inner-v2 .av2-main h3,
  html body #etop-edit-v2 .ee-section-title {
    font-family:Arial,Helvetica,sans-serif !important;
    font-size:17px !important;
    line-height:1.3 !important;
    font-weight:700 !important;
    color:#103b5d !important;
  }
  html body #etop-account-inner-v2 .av2-main :is(p, label, .av2-order-field, .av2-return-field),
  html body #etop-edit-v2 .ee-main :is(p, label) {
    line-height:1.4 !important;
    overflow-wrap:break-word;
  }
  /* Shared section panels, consistent with the approved checkout cards. */
  html body #etop-account-inner-v2 :is(
    .pwv2-card,.ad2-panel,.ad2-form-card,.wl2-panel,
    .av2-orders,.av2-detail-section,.av2-return-card,.rv2-card,
    .av2-return-content
  ),
  html body #etop-edit-v2 .ee-panel {
    box-sizing:border-box !important;
    max-width:100% !important;
    border:1px solid #d9e8f3 !important;
    border-radius:12px !important;
    box-shadow:none !important;
    background:#fff !important;
    overflow:hidden;
  }
  html body #etop-account-inner-v2 :is(
    .pwv2-card-head,.ad2-panel-head,.wl2-panel-head,
    .av2-orders-head,.av2-detail-section-head,.av2-return-head,
    .rv2-card-head
  ),
  html body #etop-edit-v2 .ee-panel-head {
    box-sizing:border-box !important;
    min-height:48px !important;
    padding:12px 14px !important;
    background:#e8f3fb !important;
    border-bottom:1px solid #d9e8f3 !important;
    font:700 17px/1.3 Arial,Helvetica,sans-serif !important;
    color:#103b5d !important;
  }
  html body #etop-account-inner-v2 :is(
    .pwv2-card-body,.ad2-panel-body,.ad2-form-body,
    .av2-orders-content,.av2-detail-section-body,.rv2-card-body
  ),
  html body #etop-edit-v2 .ee-panel-body {
    box-sizing:border-box !important;
    min-width:0 !important;
    padding:14px 12px !important;
  }
  html body #etop-account-inner-v2 :is(
    .ad2-grid,.ad2-two,.ad2-form-sections,.wl2-grid,
    .av2-detail-addresses,.rv2-grid,.rv2-reasons
  ),
  html body #etop-edit-v2 :is(.ee-fields,.ee-panel-grid) {
    grid-template-columns:minmax(0,1fr) !important;
    min-width:0 !important;
  }
  html body #etop-account-inner-v2 :is(input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],select),
  html body #etop-edit-v2 :is(input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],select) {
    box-sizing:border-box !important;
    max-width:100% !important;
    min-height:44px !important;
    font-size:16px !important;
    border-radius:8px !important;
  }
  html body #etop-account-inner-v2 textarea,
  html body #etop-edit-v2 textarea {
    box-sizing:border-box !important;
    max-width:100% !important;
    min-height:88px !important;
    font-size:16px !important;
    border-radius:8px !important;
  }
  html body #etop-account-inner-v2 :is(.pwv2-label,.ad2-field label,.rv2-field label),
  html body #etop-edit-v2 .ee-field label {
    font-size:15px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
  }
  /* Consistent buttons; don't force button width or affect icons. */
  html body #etop-account-inner-v2 :is(.pwv2-btn,.ad2-btn,.rv2-btn,.av2-order-actions a,.av2-return-actions a),
  html body #etop-edit-v2 .ee-actions a,
  html body #etop-edit-v2 .ee-actions button {
    box-sizing:border-box !important;
    min-height:44px !important;
    font-size:14px !important;
    line-height:1.3 !important;
    border-radius:8px !important;
  }
  /* Order, return and wishlist entries need room for text on a phone. */
  html body #etop-account-inner-v2 :is(
    .av2-order-card,.av2-return-card,.wl2-card,.ad2-address
  ) {
    box-sizing:border-box !important;
    max-width:100% !important;
    min-width:0 !important;
    border-radius:10px !important;
    box-shadow:none !important;
  }
  html body #etop-account-inner-v2 :is(
    .av2-order-meta,.av2-return-meta,.av2-detail-meta
  ) {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    min-width:0 !important;
  }
  /* Legacy sections: remove nested grey wrappers, keep data tables usable. */
  html body #etop-account-inner-v2 #maincontent,
  html body #etop-account-inner-v2 #maincontent .mainborder {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    background:#fff !important;
    box-shadow:none !important;
  }
  html body #etop-account-inner-v2 #maincontent .mainborder {
    border:1px solid #d9e8f3 !important;
    border-radius:12px !important;
    padding:12px !important;
  }
  html body #etop-account-inner-v2 #maincontent :is(.table-responsive,.contentset) {
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  html body #etop-account-inner-v2 #maincontent table {
    border-collapse:collapse;
    font-size:13px !important;
    line-height:1.4 !important;
  }
}
@media only screen and (max-width:359px) {
  html body #etop-account-inner-v2,
  html body #etop-edit-v2 {padding-left:10px !important;padding-right:10px !important;}
  html body #etop-account-inner-v2 .av2-main h1,
  html body #etop-edit-v2 .ee-page-title {font-size:20px !important;}
}
