/* === ACCOUNT PAGE STYLES === */

/* Container spacing */
.account-page {
  max-width: 1250px;
  margin: 0 auto;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

/* Wrapper */
.account-wrapper {
  display: flex;
  gap: 2.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Sidebar */
.account-nav {
  flex: 0 0 210px;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 1.5rem 1rem;
  position: sticky;
  top: 100px; /* below sticky header */
  height: fit-content;
}

.account-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.account-nav li {
  margin: 0;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.account-nav a:hover {
  background: rgba(0, 160, 74, 0.1);
  color: #00a04a;
}

/* Active link */
.account-nav li.is-active a,
.woocommerce-MyAccount-navigation-link.is-active a {
  background: #00a04a;
  color: #fff;
}

/* Content panel */
.account-content {
  flex: 1 1 0;
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  padding: 2rem 2.5rem;
  min-height: 500px;
}

.account-content h2 {
  color: #00a04a;
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Tables */
.account-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.account-content th,
.account-content td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f2f2f4;
}

.account-content th {
  background: #f8f9fa;
  font-weight: 700;
  text-align: left;
  color: #555;
}

/* Buttons */
.account-content .button,
.account-content button,
.account-content .woocommerce-button {
  display: inline-block;
  background: #00a04a;
  color: #fff !important;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease;
}

.account-content .button:hover,
.account-content button:hover,
.account-content .woocommerce-button:hover {
  background: #008a3f;
}

/* Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

/* Form inputs */
.account-content input[type="text"],
.account-content input[type="email"],
.account-content input[type="password"],
.account-content select,
.account-content textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.95rem;
}

.account-content input:focus,
.account-content select:focus,
.account-content textarea:focus {
  border-color: #00a04a;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 160, 74, 0.12);
}

/* Icons via FontAwesome */
.account-nav a::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1rem;
}

.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f015"; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f53a"; }
.woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f019"; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f015"; }
.woocommerce-MyAccount-navigation-link--addresses a::before { content: "\f015"; }
.woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "\f09d"; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f007"; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f2f5"; }

/* Mobile */
@media (max-width: 768px) {
  .account-wrapper {
    flex-direction: column;
  }

  .account-nav {
    position: static;
    width: 100%;
    flex: 0 0 auto;
    display: block;
    padding: 1rem;
    overflow-x: auto;
  }

  .account-nav ul {
    flex-direction: row;
    gap: 0.5rem;
  }

  .account-nav li {
    flex: 0 0 auto;
  }

  .account-nav a {
    white-space: nowrap;
    padding: 0.55rem 1rem;
  }
} 