body.pepco-auth-page .pepco-header__nav {
  display: none;
}

body.pepco-auth-page .pepco-header__inner {
  justify-content: center;
}

body.pepco-auth-page .pepco-header__logo img {
  width: 100px;
}

body.pepco-auth-page .pepco-main {
  display: flex;
  align-items: center;
  flex: 1 0 auto;
}

body.pepco-auth-page .pepco-wrap {
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

body.pepco-auth-page .pepco-page__content,
body.pepco-auth-page .pepco-page {
  max-width: none;
  width: 100%;
}

body.pepco-auth-page .woocommerce > .woocommerce-notices-wrapper:first-child {
  max-width: 420px;
  margin: 0 auto 1rem;
}

.pepco-auth {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pepco-auth__card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 1.75rem;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #ffffff;
}

.pepco-auth__brand {
  display: block;
  text-align: center;
  margin-bottom: 1.5rem;
}

.pepco-auth__logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
}

.pepco-auth__heading {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b2d5b;
}

.pepco-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #f8fafc;
}

.pepco-auth__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #4a5f7a;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pepco-auth__tab.is-active {
  background: #ffffff;
  color: #0b2d5b;
  box-shadow: 0 1px 3px rgba(11, 45, 91, 0.08);
}

.pepco-auth__tab:hover,
.pepco-auth__tab:focus-visible {
  color: #0b2d5b;
}

.pepco-auth__form {
  margin: 0;
}

.pepco-auth__form .form-row {
  margin-bottom: 1rem;
}

.pepco-auth__form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0b2d5b;
}

.pepco-auth__form .required {
  color: #e31837;
}

.pepco-auth__form .input-text {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  font-size: 1rem;
  color: #0b2d5b;
  background: #ffffff;
}

.pepco-auth__form .input-text:focus {
  outline: none;
  border-color: #0b2d5b;
  box-shadow: 0 0 0 3px rgba(11, 45, 91, 0.1);
}

.pepco-auth__row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pepco-auth__row-actions label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 500;
  font-size: 0.875rem;
  color: #4a5f7a;
}

.pepco-auth__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0b2d5b;
  text-decoration: none;
}

.pepco-auth__link:hover,
.pepco-auth__link:focus-visible {
  color: #e31837;
}

.pepco-auth__submit {
  margin: 1.25rem 0 0;
}

.pepco-auth__submit .pepco-btn,
.pepco-auth__submit .button {
  width: 100%;
  padding: 0.875rem 1.5rem;
  cursor: pointer;
}

.pepco-auth__hint,
.pepco-auth__terms {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #7a8fa8;
}

.pepco-account {
  display: grid;
  gap: 1.75rem;
  width: 100%;
}

/* Override WooCommerce float/width rules that crush the sidebar. */
.woocommerce-account .pepco-account .woocommerce-MyAccount-navigation,
.woocommerce-account .pepco-account .pepco-account__nav,
.woocommerce-account .pepco-account .woocommerce-MyAccount-content,
.woocommerce-account .pepco-account .pepco-account__content {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

body.pepco-account-page .pepco-page--dashboard .pepco-page__content {
  max-width: none;
  width: 100%;
}

body.pepco-account-page .pepco-page--dashboard {
  width: 100%;
}

.pepco-wrap--account {
  max-width: 1100px;
}

.pepco-account__sidebar {
  padding: 1.5rem;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
}

.pepco-account__sidebar-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e4eaf2;
}

.pepco-account__sidebar-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8fa8;
}

.pepco-account__sidebar-user {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0b2d5b;
  word-break: break-word;
}

.pepco-account__nav {
  width: 100%;
}

.pepco-account__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pepco-account__nav li {
  width: 100%;
}

.pepco-account__nav li a {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  color: #0b2d5b;
  background: #ffffff;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pepco-account__nav li a:hover,
.pepco-account__nav li a:focus-visible {
  background: #ffffff;
  border-color: #cfd8e6;
  color: #0b2d5b;
}

.pepco-account__nav li.is-active a {
  background: #0b2d5b;
  border-color: #0b2d5b;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 45, 91, 0.12);
}

.pepco-account__content {
  padding: 2rem;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #ffffff;
  min-width: 0;
}

.pepco-account__content h2,
.pepco-account__content h3 {
  margin-top: 0;
  color: #0b2d5b;
}

@media (min-width: 768px) {
  .pepco-account {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }

  .pepco-account__sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

@media (max-width: 767px) {
  .pepco-account__sidebar {
    padding: 1.25rem;
  }

  .pepco-account__nav ul {
    flex-direction: column;
    gap: 0.375rem;
  }

  .pepco-account__nav li {
    width: 100%;
    flex: none;
  }

  .pepco-account__nav li a {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    text-align: left;
    white-space: normal;
  }

  .pepco-account__content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .pepco-auth__card {
    padding: 1.5rem 1.25rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  body.pepco-auth-page .pepco-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}
