/* Account dashboard repair — preserves the branded account introduction while keeping WooCommerce navigation and content in one readable column. */
body.woocommerce-account .ec-account-auth {
  min-width: 0;
}

body.woocommerce-account .ec-account-auth > .woocommerce {
  display: block !important;
  min-width: 0;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 7px !important;
  border: 1px solid #dbe7e8 !important;
  border-radius: 14px;
  background: #f7fbfb;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation li {
  flex: 1 1 124px;
  margin: 0 !important;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px !important;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #35555b;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation li.is-active a,
body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation a:hover {
  border-color: #b7d9d5;
  background: #fff;
  color: #08706e;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  min-height: 200px;
  padding: 2px 2px 8px !important;
  color: #486167;
  font-size: 14px;
  line-height: 1.65;
}

body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-content p:first-child {
  margin-top: 0;
}

.ec-account-toggle--signed-in {
  color: #08706e;
}

.ec-drawer__logout {
  display: inline-flex;
  margin: 16px 20px 0;
  color: #557075;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  body.woocommerce-account .ec-account-shell {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation {
    margin-bottom: 18px !important;
  }

  body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation li {
    flex-basis: calc(50% - 3px);
  }
}

@media (max-width: 430px) {
  body.woocommerce-account .ec-account-auth .woocommerce-MyAccount-navigation li {
    flex-basis: calc(50% - 3px);
  }
}

.ec-drawer--account .ec-drawer__account-links {
  display: grid;
  gap: 0;
  margin: 16px 20px 0;
  border-top: 1px solid #dbe7e8;
  border-bottom: 1px solid #dbe7e8;
}

.ec-drawer--account .ec-drawer__account-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  border-bottom: 1px solid #e7eeee;
  color: #294b52;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.ec-drawer--account .ec-drawer__account-links a:last-child {
  border-bottom: 0;
}

.ec-drawer--account .ec-drawer__account-links a b {
  color: #08706e;
  font-size: 18px;
  font-weight: 500;
}

.ec-drawer--account .ec-drawer__account-links a:hover,
.ec-drawer--account .ec-drawer__account-links a:focus-visible {
  color: #08706e;
}

.ec-drawer--account .ec-drawer__logout {
  margin-top: 18px;
}
