/* User account pages — new design */

.page.nd-account {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 18px 48px;
  overflow-x: hidden;
}

.nd-account .form-fill-cart,
.nd-account .cart-form-grid,
.nd-account .form-group,
.nd-account .email_field,
.nd-account .otp_field {
  float: none !important;
  width: 100%;
  max-width: 100%;
}

.nd-account .col-lg-12 {
  float: none !important;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.nd-account .mainContent {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}

.nd-account .ct-videoSection,
.nd-account .mainContent > .container-fluid.py-3,
.nd-account .mainContent > .container-fluid.py-md-5 {
  display: none !important;
}

.nd-account--auth .loginWrapper {
  max-width: 560px;
  margin: 0 auto;
  float: none !important;
  width: 100%;
}

.nd-account .car-lists.productlisting,
.nd-account .car-lists.productbaselisting {
  float: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 24px !important;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 29, 58, 0.04);
}

.nd-account .cart-user-form {
  color: var(--blue-950);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.nd-account .form-fill-cart,
.nd-account .cart-form-grid,
.nd-account .formGrid {
  width: 100%;
  float: none !important;
}

/* Profile edit — single flat form inside my-account-content (no nested card) */
.nd-account--dashboard .my-account-content #cart_details_form,
.nd-account--dashboard .my-account-content .main-page,
.nd-account--dashboard .my-account-content .form-fill-cart,
.nd-account--dashboard .my-account-content .cart-form-grid,
.nd-account--dashboard .my-account-content #hide_billing_details,
.nd-account--dashboard .my-account-content #show_shipping_details_div,
.nd-account--dashboard .my-account-content .brand_complete_info {
  display: flow-root;
  width: 100%;
  max-width: 100%;
  float: none !important;
}

.nd-account--dashboard .my-account-content .car-lists.productlisting,
.nd-account--dashboard .my-account-content .car-lists.productbaselisting {
  border: 0;
  box-shadow: none;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}

.nd-account--dashboard #cart_details_form .form-group {
  margin-bottom: 0.5rem !important;
}

.nd-account--dashboard #cart_details_form .form-group.mb-3 {
  margin-bottom: 0.5rem !important;
}

.nd-account--dashboard #cart_details_form .formGrid {
  gap: 0.5rem !important;
  margin-bottom: 0.65rem;
}

.nd-account--dashboard #cart_details_form .formGrid.gap-3 {
  gap: 0.5rem !important;
}

.nd-account--dashboard #cart_details_form h4 {
  margin: 0.85rem 0 0.5rem;
  padding-top: 0 !important;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-950);
}

.nd-account--dashboard #cart_details_form h4:first-of-type {
  margin-top: 0;
}

.nd-account--dashboard #cart_details_form .control-label,
.nd-account--dashboard #cart_details_form label {
  margin-bottom: 0.25rem;
}

.nd-account--dashboard #cart_details_form .help-block {
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.nd-account--dashboard .nd-profile-form-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.nd-account--dashboard .my-account-content > form > .main-page > .car-lists .cart-user-form {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.nd-account--dashboard .my-account-content .billingShippingcheck .control-label {
  font-size: 14px;
  font-weight: 700;
}

.nd-account .form-control {
  min-height: 44px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  font: inherit;
}

.nd-account .control-label,
.nd-account label {
  color: var(--blue-800);
  font-weight: 700;
  font-size: 14px;
}

.nd-account .cart_asterisk {
  color: #dc2626;
}

.nd-account .actn-btn,
.nd-account .btn.actn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--orange, #f97316) !important;
  color: var(--white) !important;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.nd-account--auth .productbaselisting.car-lists .btn.actn-btn,
.nd-account--auth .car-lists.productbaselisting .btn.actn-btn,
.nd-account--auth .nd-auth-actions .btn.actn-btn {
  width: auto !important;
  max-width: 100%;
}

.nd-account--auth .form-group.mb-0,
.nd-account--auth .nd-auth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nd-account--auth .form-group.mb-0 .actn-btn + .actn-btn,
.nd-account--auth .nd-auth-actions .nd-auth-cancel {
  background: transparent !important;
  color: var(--blue-900) !important;
  border: 2px solid var(--blue-900) !important;
}

.nd-account--auth .form-group.mb-0 .actn-btn + .actn-btn:hover,
.nd-account--auth .nd-auth-actions .nd-auth-cancel:hover {
  background: rgba(15, 59, 120, 0.06) !important;
}

/* Signup duplicates submit in .removebuttons for legacy sticky cart bar */
.nd-account--auth .removebuttons {
  display: none !important;
}

.nd-account--auth #signup_footer {
  width: auto !important;
  max-width: 100%;
}

.nd-account-loading {
  position: fixed;
  inset: 0;
  z-index: 1039;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 29, 58, 0.45);
}

.nd-account-loading__panel {
  background: var(--white);
  border-radius: var(--radius, 12px);
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(7, 29, 58, 0.18);
}

.nd-account-loading__panel img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.nd-account-loading__panel p {
  margin: 0;
  color: var(--blue-900);
  font-weight: 700;
}

.nd-account .actn-btn.is-submitting {
  opacity: 0.88;
  cursor: wait;
  pointer-events: none;
}

.nd-account .actn-btn:hover,
.nd-account .btn.actn-btn:hover {
  filter: brightness(0.96);
}

.nd-account .forgot-btn {
  color: var(--blue-800);
  font-weight: 700;
  text-decoration: underline;
}

.nd-account .displaynon {
  display: none !important;
}

.nd-account .my-account-area {
  padding: 0 !important;
}

.nd-account .my-account-area > .container,
.nd-account .my-account-area > .container-xxl {
  max-width: none;
  padding: 0;
  width: 100%;
}

.nd-account--dashboard .my-account-area > .container > .row,
.nd-account--dashboard .my-account-area > .container-xxl > .row {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
}

.nd-account--dashboard .userSidebar,
.nd-account--dashboard .col-md-9,
.nd-account--dashboard .col-12.col-md-9,
.nd-account--dashboard .col-12.col-md-3 {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

.nd-account .my-account-navigation {
  background: var(--white);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
  padding: 12px;
  height: auto !important;
}

.nd-account .my-account-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nd-account .my-account-navigation li {
  margin: 0 0 4px;
}

.nd-account .my-account-navigation li:last-child {
  margin-bottom: 0;
}

.nd-account .my-account-navigation a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--blue-950);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.nd-account .my-account-navigation a:hover {
  background: rgba(15, 59, 120, 0.08);
  color: var(--blue-900);
}

.nd-account .my-account-navigation li.active a,
.nd-account .my-account-navigation li.active a:hover {
  background: var(--blue-950) !important;
  color: var(--white) !important;
}

.nd-account .my-account-navigation li.active a i {
  color: var(--white) !important;
}

.nd-account .my-account-content {
  background: var(--white);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius, 12px);
  padding: 24px;
  margin-bottom: 0 !important;
  min-height: 0 !important;
}

.nd-account .my-table {
  font-size: 14px;
}

.nd-account .my-table th {
  background: rgba(15, 59, 120, 0.06);
  color: var(--blue-950);
  font-weight: 800;
}

.nd-account .viewbtn {
  color: var(--blue-800);
  font-weight: 700;
}

.nd-account .orderHistory,
.nd-account h4.orderHistory {
  color: var(--blue-950);
  font-weight: 900;
  margin-bottom: 16px;
}

.nd-account .help-block.blink_error {
  color: #dc2626;
  font-size: 13px;
}

.nd-account .width50px {
  width: 50px !important;
  min-width: 50px;
  max-width: 50px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .nd-account--dashboard .my-account-area > .container > .row,
  .nd-account--dashboard .my-account-area > .container-xxl > .row {
    grid-template-columns: 1fr;
  }

  .nd-account .my-account-navigation {
    margin-bottom: 4px;
  }
}

.nd-account--dashboard .nd-profile-sticky-submit {
  display: none !important;
}

@media (max-width: 767px) {
  .page.nd-account {
    padding: 20px 14px 36px;
  }

  .nd-account .car-lists.productlisting,
  .nd-account .my-account-content {
    padding: 16px !important;
  }

  .nd-account--dashboard #cart_details_form .formGrid.grid-col-2 {
    grid-template-columns: 1fr;
  }
}
