/* Guest login/register redesign */
body.woocommerce-account:not(.logged-in) .entry-content > .woocommerce {
  display: block;
  width: min(980px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

body.woocommerce-account:not(.logged-in) .entry-header .entry-title {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.7rem, 3.3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0;
  color: #1f1f1f;
  text-align: center;
  margin-bottom: 10px;
}

body.woocommerce-account:not(.logged-in) .wj-account-benefits {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e7e7e7;
}

body.woocommerce-account:not(.logged-in) .wj-account-benefits h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: 0.01em;
}

body.woocommerce-account:not(.logged-in) .wj-account-benefits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  color: #363636;
  font-size: 0.93rem;
  line-height: 1.45;
}

body.woocommerce-account:not(.logged-in) .wj-account-benefits li {
  position: relative;
  margin: 0;
  padding-left: 22px;
}

body.woocommerce-account:not(.logged-in) .wj-account-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid #2d2d2d;
  box-sizing: border-box;
}

@media (max-width: 700px) {
  body.woocommerce-account:not(.logged-in) .wj-account-benefits ul {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

body.woocommerce-account:not(.logged-in) #customer_login {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
  float: none;
  width: auto;
  margin: 0;
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.woocommerce-account:not(.logged-in) #customer_login h2 {
  padding: 0;
  margin: 0 0 14px;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1e1e1e;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row label {
  display: block;
  margin-bottom: 6px;
  color: #2a2a2a;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login input[type="text"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="email"],
body.woocommerce-account:not(.logged-in) #customer_login input[type="password"],
body.woocommerce-account:not(.logged-in) #customer_login .input-text {
  width: 100%;
  min-height: 46px;
  border-radius: 6px;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

body.woocommerce-account:not(.logged-in) #customer_login input:focus {
  border-color: #7a7a7a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
  outline: none;
}

body.woocommerce-account:not(.logged-in) #customer_login .googlesitekit-sign-in-with-google__frontend-output-button {
  margin-bottom: 10px;
}

body.woocommerce-account:not(.logged-in) #customer_login .password-input {
  position: relative;
}

body.woocommerce-account:not(.logged-in) #customer_login .password-input input[type="password"],
body.woocommerce-account:not(.logged-in) #customer_login .password-input input[type="text"] {
  padding-right: 52px;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 !important;
  line-height: 1;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #f3f3f3;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  opacity: 0.9;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input:hover {
  background: #e8e8e8;
  border-color: #bdbdbd;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input.display-password {
  background: #e2e2e2;
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input.display-password::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.94 10.94 0 0 1 12 19C5 19 1 12 1 12a21.8 21.8 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A10.94 10.94 0 0 1 12 4c7 0 11 8 11 8a21.8 21.8 0 0 1-3.12 4.33'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

body.woocommerce-account:not(.logged-in) #customer_login .show-password-input:focus-visible {
  outline: 2px solid #7a7a7a;
  outline-offset: 1px;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #333;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row .button,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-Button {
  width: 100%;
  min-height: 46px;
  border-radius: 6px;
  border: 0;
  background: #2d2d2d;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: none;
  transition: background-color .15s ease, transform .15s ease;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row .button:hover,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-Button:hover {
  transform: none;
  background: #1f1f1f;
}

body.woocommerce-account:not(.logged-in) #customer_login .form-row .button:active,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-Button:active {
  transform: translateY(0);
}

body.woocommerce-account:not(.logged-in) #customer_login a {
  color: #1f1f1f;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-bottom: 0;
}

body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register > p:not(.form-row) {
  margin-bottom: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4a4a4a;
}

@media (max-width: 980px) {
  body.woocommerce-account:not(.logged-in) #customer_login {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0;
  }
}

@media (max-width: 580px) {
  body.woocommerce-account:not(.logged-in) #customer_login > .u-column1,
  body.woocommerce-account:not(.logged-in) #customer_login > .u-column2 {
    padding: 0;
  }
}

/* =============================
   My Account (Premium UX)
   ============================= */

/* Page spacing + max width */
.woocommerce-account .site-main {
  padding-top: 22px;
  padding-bottom: 44px;
}

/* Use more of the screen on laptops while keeping comfortable page gutters */
.woocommerce-account .woocommerce {
  width: min(1480px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;

  /* Typography: target ~15px base */
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .woocommerce-account .woocommerce {
    width: calc(100% - 28px);
  }
}

/* Two-column layout (nav + content) */
.woocommerce-account .woocommerce {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  flex: 0 0 280px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 14px;
  position: sticky;
  top: 18px;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  padding: 18px 18px 22px;
}

/* Navigation links */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li + li a {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.woocommerce-account .woocommerce-MyAccount-navigation li + li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active + li a {
  border-top-color: transparent;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* prevent theme from pushing icon to the right */
  gap: 12px;
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 12px;
  color: #1A1A1A;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.2;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}

/* Hide any theme-provided chevron/square icon on the right side of account nav links */
.woocommerce-account .woocommerce-MyAccount-navigation a::after {
  display: none !important;
  content: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
  background: rgba(54, 46, 47, 0.10);
  box-shadow: inset 0 0 0 1px rgba(54, 46, 47, 0.18);
}

.woocommerce-account .woocommerce-MyAccount-navigation a::before {
  /* Use the account-page subset font first to avoid missing glyphs */
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  opacity: .92;
  content: "\f111"; /* fallback: circle */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f015"; } /* house */
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before { content: "\f291"; } /* basket */
.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before { content: "\f49e"; } /* box-open */
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f54f"; } /* shop/location */
.woocommerce-account .woocommerce-MyAccount-navigation-link--payment-methods a::before { content: "\f09d"; } /* credit-card */
.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f007"; } /* user */
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f00d"; } /* xmark */

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.woocommerce-account .woocommerce-MyAccount-content h2 { font-size: 1.15em; }
.woocommerce-account .woocommerce-MyAccount-content h3 { font-size: 1.03em; }

.woocommerce-account .woocommerce-MyAccount-content p {
  color: rgba(26, 26, 26, 0.86);
}

/* Tables (orders, downloads) */
.woocommerce-account table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
  padding: 12px 14px;
}

.woocommerce-account table.shop_table thead th {
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.woocommerce-account table.shop_table tr + tr td {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Buttons */
.woocommerce-account .woocommerce-Button,
.woocommerce-account .button,
.woocommerce-account button.button,
.woocommerce-account input.button,
.woocommerce-account a.button {
  background-color: #362E2F;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  box-shadow: 0 10px 22px rgba(54, 46, 47, 0.18);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account input.button:hover,
.woocommerce-account a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(54, 46, 47, 0.22);
}

.woocommerce-account .woocommerce-Button:active,
.woocommerce-account .button:active {
  transform: translateY(0);
  opacity: .95;
}

/* Forms */
.woocommerce-account .woocommerce form .form-row label {
  font-weight: 650;
  margin-bottom: 6px;
}

.woocommerce-account .woocommerce form .input-text,
.woocommerce-account .woocommerce form input[type="text"],
.woocommerce-account .woocommerce form input[type="email"],
.woocommerce-account .woocommerce form input[type="password"],
.woocommerce-account .woocommerce form input[type="tel"],
.woocommerce-account .woocommerce form textarea,
.woocommerce-account .woocommerce form select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 11px 12px;
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.woocommerce-account .woocommerce form .input-text:focus,
.woocommerce-account .woocommerce form input:focus,
.woocommerce-account .woocommerce form textarea:focus,
.woocommerce-account .woocommerce form select:focus {
  border-color: rgba(54, 46, 47, 0.55);
  box-shadow: 0 0 0 4px rgba(54, 46, 47, 0.10);
  outline: none;
}

/* Dashboard quick cards */
.wj-account-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.wj-account-card {
  display: block;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: rgba(0, 0, 0, 0.02);
  text-decoration: none;
  color: #1A1A1A;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.wj-account-card:hover {
  background: rgba(54, 46, 47, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.wj-account-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  margin-bottom: 6px;
}

.wj-account-card__title::before {
  font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  opacity: .9;
  content: "\f111"; /* fallback */
}

.wj-account-card--orders .wj-account-card__title::before { content: "\f291"; } /* basket */
.wj-account-card--address .wj-account-card__title::before { content: "\f54f"; } /* shop/location */
.wj-account-card--account .wj-account-card__title::before { content: "\f007"; } /* user */
.wj-account-card--downloads .wj-account-card__title::before { content: "\f49e"; } /* box-open */
.wj-account-card--payment .wj-account-card__title::before { content: "\f09d"; } /* credit-card */
.wj-account-card--logout .wj-account-card__title::before { content: "\f00d"; } /* xmark */

.wj-account-card__desc {
  margin: 0;
  font-size: 0.86em;
  opacity: .82;
}

/* Notices */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.05);
}

/* Mobile: turn nav into horizontal scroll tabs */
@media (max-width: 900px) {
  .woocommerce-account .woocommerce {
    display: block;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: relative;
    top: auto;
    margin-bottom: 14px;
    padding: 10px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 16px;
  }

  .wj-account-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .wj-account-cards {
    grid-template-columns: 1fr;
  }
}
