/* Ibraclever My Account — WAYLINE-inspired hybrid (keeps site header + footer) */
body.woocommerce-account.ibr-account-hybrid {
  --ibr-p: #004D6D;
  --ibr-p2: #0A6B8F;
  --ibr-canvas: #EEF1F6;
  --ibr-card: #ffffff;
  --ibr-text: #1B2430;
  --ibr-muted: #6B7285;
  --ibr-border: #E6EAF0;
  --ibr-radius: 20px;
  --ibr-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 36px -18px rgba(16,24,40,.18);
}

/* Soft page canvas under account content (not full-site takeover) */
body.woocommerce-account.ibr-account-hybrid .elementor-element-ibraccbody {
  background: var(--ibr-canvas) !important;
  padding-top: 28px !important;
  padding-bottom: 48px !important;
}

body.woocommerce-account.ibr-account-hybrid .elementor-element-ibraccguest {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Outer account layout card */
body.woocommerce-account.ibr-account-hybrid .woocommerce,
body.woocommerce-account.ibr-account-hybrid .woocommerce-account {
  color: var(--ibr-text);
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation,
body.woocommerce-account.ibr-account-hybrid nav.woocommerce-MyAccount-navigation,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_menu {
  background: var(--ibr-card) !important;
  border-radius: var(--ibr-radius) !important;
  padding: 18px 14px !important;
  border: 0 !important;
  box-shadow: var(--ibr-shadow) !important;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
  border: 0 !important;
  width: 100% !important;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation a,
body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation-link_a,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_menu a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100% !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  color: var(--ibr-muted) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation a:hover,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_menu a:hover {
  background: #F4F6FA !important;
  color: var(--ibr-text) !important;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation .is-active > a,
body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-navigation a[aria-current="page"],
body.woocommerce-account.ibr-account-hybrid .wcmamtx_menu .is-active > a {
  background: var(--ibr-p) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px -10px rgba(0,77,109,.5) !important;
}

/* Content panel */
body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-content {
  background: var(--ibr-card) !important;
  border-radius: var(--ibr-radius) !important;
  box-shadow: var(--ibr-shadow) !important;
  padding: 28px !important;
  border: 0 !important;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-content > p:first-of-type {
  font-size: 15px;
  color: var(--ibr-muted);
  line-height: 1.65;
}

body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-content a {
  color: var(--ibr-p2) !important;
  font-weight: 600;
}

/* Avatar */
body.woocommerce-account.ibr-account-hybrid img.avatar,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_avatar_img,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_upload_avatar img {
  border-radius: 16px !important;
  border: 3px solid #fff !important;
  box-shadow: var(--ibr-shadow);
}

/* Dashboard endpoint cards (CMA Pro) */
body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul,
body.woocommerce-account.ibr-account-hybrid ul.dashboard-links,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px !important;
  list-style: none !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
}

body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul > li,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links li {
  margin: 0 !important;
}

body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul > li > a,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links a {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 18px !important;
  background: #F4F7FA !important;
  border: 1px solid var(--ibr-border) !important;
  border-radius: 16px !important;
  color: var(--ibr-text) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul > li > a:hover,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links a:hover {
  transform: translateY(-2px);
  border-color: rgba(0,77,109,.28) !important;
  box-shadow: var(--ibr-shadow) !important;
  color: var(--ibr-p) !important;
}

body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul > li > a i,
body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links a i {
  color: var(--ibr-p) !important;
  font-size: 22px !important;
}

/* Forms */
body.woocommerce-account.ibr-account-hybrid input.input-text,
body.woocommerce-account.ibr-account-hybrid input[type="text"],
body.woocommerce-account.ibr-account-hybrid input[type="email"],
body.woocommerce-account.ibr-account-hybrid input[type="password"],
body.woocommerce-account.ibr-account-hybrid input[type="tel"],
body.woocommerce-account.ibr-account-hybrid textarea,
body.woocommerce-account.ibr-account-hybrid select,
body.woocommerce-account.ibr-account-hybrid .woocommerce-Input {
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 14px !important;
  border: 1px solid var(--ibr-border) !important;
  background: #F4F6FA !important;
  padding: 12px 14px !important;
  min-height: 46px !important;
  box-shadow: none !important;
}

body.woocommerce-account.ibr-account-hybrid input:focus,
body.woocommerce-account.ibr-account-hybrid textarea:focus,
body.woocommerce-account.ibr-account-hybrid select:focus {
  border-color: rgba(0,77,109,.45) !important;
  box-shadow: 0 0 0 4px rgba(0,77,109,.1) !important;
  background: #fff !important;
  outline: none !important;
}

body.woocommerce-account.ibr-account-hybrid button.button,
body.woocommerce-account.ibr-account-hybrid .woocommerce-Button,
body.woocommerce-account.ibr-account-hybrid button[type="submit"] {
  background: var(--ibr-p) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 22px !important;
  font-weight: 700 !important;
  box-shadow: 0 10px 22px -10px rgba(0,77,109,.5) !important;
}

/* Tables */
body.woocommerce-account.ibr-account-hybrid table.shop_table {
  border: 0 !important;
  border-radius: 16px;
  overflow: hidden;
}
body.woocommerce-account.ibr-account-hybrid table.shop_table th {
  background: #F4F7FA !important;
  color: var(--ibr-muted) !important;
  border: 0 !important;
  text-transform: uppercase;
  font-size: 12px !important;
  letter-spacing: .04em;
}
body.woocommerce-account.ibr-account-hybrid table.shop_table td {
  border-color: var(--ibr-border) !important;
  padding: 14px 12px !important;
}

/* Status marks */
body.woocommerce-account.ibr-account-hybrid .woocommerce-orders-table__cell-order-status mark,
body.woocommerce-account.ibr-account-hybrid mark.order-status {
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-weight: 600 !important;
}

@media (max-width: 900px) {
  body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul,
  body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 560px) {
  body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard ul,
  body.woocommerce-account.ibr-account-hybrid .wcmamtx_dashboard_links {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-account.ibr-account-hybrid .woocommerce-MyAccount-content {
    padding: 18px !important;
  }
}

/* Hide CMA editor helpers if they leak on frontend */
body:not(.logged-in) .wcmamtx_restore,
body.woocommerce-account .wcmamtx_admin_only,
body.woocommerce-account a[href*="wcmamtx_restore"],
body.woocommerce-account .elementor-editor-active { }
body.woocommerce-account .wcmamtx_menu .restore-default,
body.woocommerce-account [class*="restore_default"] { display:none !important; }
