/*
*
*
* MY ACCOUNT LAYOUTS
*
*
*/

body.woocommerce-account .inside-article {
  background: none;
}

body.logged-in.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* NAV siempre primera columna */
body.logged-in.woocommerce-account .litestore-account-nav {
  grid-column: 1;
  position: sticky;
  top: 24px;
}

/* CONTENT siempre segunda columna */
body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
  grid-column: 2;
}

body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 600px !important;
}

/* MOBILE */
@media (max-width: 768px) {
  body.logged-in.woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
  }

  body.logged-in.woocommerce-account .litestore-account-nav {
    position: relative !important;
    top: auto !important;
    width: 100%;
  }
  body.logged-in.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    min-width: 200px !important;
    max-width: 800px !important;
  }
}
body.woocommerce-account .woocommerce-notices-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  width: 100%;

  border-radius: 18px;
}

/*
*
* LOGIN (CLEAN SINGLE COLUMN - LOCKED AGAINST WC OVERRIDES)
*
*/

/* 🔒 GLOBAL AUTH LAYOUT LOCK */
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block !important;
  min-height: 80vh;
}

/* MAIN WRAPPER */
body.woocommerce-account:not(.logged-in) .litestore-auth {
  min-height: 80vh;

  display: flex;
  justify-content: center;
  background: none;
}

/* CONTAINER */
body.woocommerce-account:not(.logged-in) .litestore-auth__container {
  width: 100%;
  max-width: 480px;

  display: flex;
  flex-direction: column;
  gap: 0;
}

/* NOTICES */
body.woocommerce-account:not(.logged-in) .litestore-auth__notices-slot,
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 0;
}

/* CARDS WRAPPER */
body.woocommerce-account:not(.logged-in) .litestore-auth__card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* FORMS AS CARDS (IMPORTANT OVERRIDE ZONE) */
body.woocommerce-account:not(.logged-in) .litestore-auth__card-wrapper form,
body.woocommerce-account:not(.logged-in) .woocommerce form.login,
body.woocommerce-account:not(.logged-in) .woocommerce form.register {
  background: #fff;

  border: 1px solid #e9e9ee;
  border-radius: 28px;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);

  padding: 32px !important;
  margin: 0 !important;
}

/* INPUTS - HIGH SPECIFICITY WC OVERRIDE */
body.woocommerce-account:not(.logged-in) .litestore-auth input,
body.woocommerce-account:not(.logged-in) .woocommerce input[type="text"],
body.woocommerce-account:not(.logged-in) .woocommerce input[type="email"],
body.woocommerce-account:not(.logged-in) .woocommerce input[type="password"] {
  height: 50px !important;

  border: 1px solid #dfe3ea !important;
  border-radius: 18px !important;

  background: #f5f5f7 !important;

  padding: 0 14px;
  font-size: 15px;

  transition: all 0.2s ease;
}

/* FOCUS STATE */
body.woocommerce-account:not(.logged-in) .litestore-auth input:focus,
body.woocommerce-account:not(.logged-in) .woocommerce input:focus {
  background: #fff !important;
  border-color: #c7ccd4 !important;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04) !important;
  outline: none;
}

/* TITLE */
body.woocommerce-account:not(.logged-in) .litestore-auth__title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #111;
  color: var(--color-primary);
  margin-bottom: 18px;
}

/* BUTTONS */
body.woocommerce-account:not(.logged-in) .litestore-button--primary,
body.woocommerce-account:not(.logged-in) .primary-button {
  border-radius: 14px;
}

body.woocommerce-account:not(.logged-in) .litestore-button--secondary,
body.woocommerce-account:not(.logged-in) .secondary-button {
  border-radius: 14px;
}

.litestore-auth__card-wrapper form,
.woocommerce-account .litestore-auth__card-wrapper form {
  background: #fff !important;
  border-radius: 28px !important;
  border: 1px solid #e9e9ee !important;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.woocommerce-account:not(.logged-in) .litestore-auth__links {
  margin-top: 30px;
  margin-bottom: 0;
}
.litestore-auth input,
.woocommerce-account .litestore-auth input,
.wc-block-components-text-input input {
  height: 50px !important;

  border-radius: 18px !important;
  border: 1px solid #dfe3ea !important;

  background: #f5f5f7 !important;
}

body.woocommerce-account .litestore-auth input,
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="password"],
body.woocommerce-account .wc-block-components-text-input input {
  height: 50px;
  border-radius: 18px;
  background: #f5f5f7;
  border: 1px solid #dfe3ea;
}

body.woocommerce-account:not(.logged-in) .litestore-auth input,
body.woocommerce-account:not(.logged-in) .litestore-auth textarea,
body.woocommerce-account:not(.logged-in) .litestore-auth select {
  height: 50px !important;
  border-radius: 18px !important;

  background: #f5f5f7 !important;
  border: 1px solid #dfe3ea !important;

  box-shadow: none !important;
  outline: none !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  line-height: 1;
  font-size: 16px;
  color: #444;
}

body.woocommerce-account:not(.logged-in)
  .woocommerce-form__label
  input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

body.woocommerce-account:not(.logged-in) .woocommerce-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 6px;
}

body.woocommerce-account:not(.logged-in) #reg_password {
  margin-bottom: 12px;
}

/* LABEL ARRIBA */
body.woocommerce-account:not(.logged-in) .woocommerce-form-row label {
  display: block;

  font-size: 13px;
  font-weight: 500;
  color: #555;

  margin: 0;
}

/* INPUT ABAJO */
body.woocommerce-account:not(.logged-in) .woocommerce-form-row input {
  width: 100%;
}

body.woocommerce-account:not(.logged-in) .litestore-button {
  width: 100%;
}
/*
*
*
* NAVIGATION
*
*
*/

.litestore-account-nav__card {
  background: #fff;
  border: 1px solid #e9e9ee;
  border-radius: 28px;
  padding: 22px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.litestore-account-nav__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.litestore-account-nav__subtitle {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 18px;
}

.litestore-account-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.litestore-account-nav__link {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

.litestore-account-nav__link:hover {
  background: #f5f5f7;
}

.litestore-account-nav__item.is-active .litestore-account-nav__link {
  background: #f5f5f7;
  border: 1px solid #e5e5ea;
}

/*
*
*
* DASHBOARD
*
*
*/

.litestore-account-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.litestore-account-dashboard__header {
  margin-bottom: 10px;
}

.litestore-account-dashboard__welcome {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.03em;
}

.litestore-account-dashboard__welcome span {
  color: #000;
}

.litestore-account-dashboard__subtitle {
  font-size: 14px;
  color: #6e6e73;
  margin-top: 6px;
}

/* GRID */
.litestore-account-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* CARD */
.litestore-dashboard-card {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 18px;
  border-radius: 22px;

  background: #fff;
  border: 1px solid #e9e9ee;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);

  text-decoration: none;
  transition: all 0.2s ease;
}

.litestore-dashboard-card:hover {
  transform: translateY(-2px);
  background: #f7f7f9;
}

/* ICON */
.litestore-dashboard-card__icon {
  font-size: 22px;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: #f5f5f7;
}

/* TEXT */
.litestore-dashboard-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.litestore-dashboard-card__desc {
  font-size: 13px;
  color: #777;
  margin-top: 2px;
}

/* LOGOUT VARIANT */
.litestore-dashboard-card.is-logout {
  background: #fafafa;
}

/*
*
*
* FORM EDIT
*
*
*/

.litestore-account-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.litestore-account-form__header {
  margin-bottom: 6px;
}

.litestore-account-form__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.03em;
}

.litestore-account-form__subtitle {
  font-size: 14px;
  color: #6e6e73;
  margin-top: 6px;
}

/* CARD */
.litestore-account-form__card {
  background: #fff;
  border: 1px solid #e9e9ee;
  border-radius: 28px;
  padding: 34px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

/* INPUT GRID */
.woocommerce-EditAccountForm .form-row {
  margin-bottom: 18px;
}

.woocommerce-EditAccountForm input {
  height: 50px;
  border: 1px solid #dfe3ea;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 0 14px;
  transition: all 0.2s ease;
}

.woocommerce-EditAccountForm input:focus {
  background: #fff;
  border-color: #c7ccd4;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  outline: none;
}

/* FIELDSET */
.litestore-account-form__fieldset {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ececf1;
}

/* ACTIONS */
.litestore-account-form__actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
}

/*
*
*
* ORDERS
*
*
*/

.litestore-orders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.litestore-orders__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.03em;
}

.litestore-orders__subtitle {
  font-size: 14px;
  color: #6e6e73;
  margin-top: 6px;
}

/* LIST */
.litestore-orders__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* CARD */
.litestore-order-card {
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 20px 22px;
  border-radius: 22px;

  background: #fff;
  border: 1px solid #e9e9ee;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);

  text-decoration: none;
  transition: all 0.2s ease;
}

.litestore-order-card:hover {
  transform: translateY(-2px);
  background: #f7f7f9;
}

/* TOP ROW */
.litestore-order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.litestore-order-card__id {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

/* STATUS */
.litestore-order-card__status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #555;
}

/* META */
.litestore-order-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #777;
}

/* TOTAL */
.litestore-order-card__total {
  font-weight: 600;
  color: #1a1a1a;
}

/* ACTION */
.litestore-order-card__action {
  font-size: 13px;
  color: #6e6e73;
}

/* STATUS VARIANTS */
.status-completed {
  background: #e9f7ef;
  color: #1f7a3a;
}

.status-processing {
  background: #eef3ff;
  color: #2f5cff;
}

.status-on-hold {
  background: #fff6e5;
  color: #a66a00;
}

.status-cancelled {
  background: #ffecec;
  color: #b00020;
}

/* EMPTY */
.litestore-orders__empty {
  padding: 24px;
  background: #fafafa;
  border: 1px solid #e9e9ee;
  border-radius: 18px;
  color: #777;
  font-size: 14px;
}
.litestore-view-order {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* -------- VIEW ORDER ---------- */

/* HEADER */
.litestore-view-order__title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.03em;
}

.litestore-view-order__meta {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #6e6e73;
  font-size: 14px;
}

/* STATUS */
.litestore-view-order__status {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f5f5f7;
  font-size: 12px;
  font-weight: 500;
}

/* SUMMARY */
.litestore-view-order__summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.litestore-summary-card {
  background: #fff;
  border: 1px solid #e9e9ee;
  border-radius: 22px;
  padding: 18px;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.litestore-summary-card__label {
  font-size: 13px;
  color: #6e6e73;
}

.litestore-summary-card__value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

/* ITEMS */
.litestore-view-order__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.litestore-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 18px;
  border-radius: 18px;

  background: #fafafa;
  border: 1px solid #e9e9ee;
}

.litestore-order-item__name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.litestore-order-item__qty {
  font-size: 13px;
  color: #777;
  margin-top: 2px;
}

.litestore-order-item__price {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

/* ACTIONS */
.litestore-view-order__actions {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.litestore-view-order__actions a,
.litestore-button.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 22px;

  border-radius: 12px;

  text-decoration: none !important;
  line-height: 1;

  font-size: 14px;
  font-weight: 500;
}

/* Override WooCommerce global link styles */
.woocommerce .litestore-view-order__actions a {
  text-decoration: none !important;
}

/* EMPTY */
.litestore-view-order__empty {
  padding: 24px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid #e9e9ee;
  color: #777;
}

/*
*
*
* DOWNLOADS
*
*
*/

.litestore-downloads {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER */
.litestore-downloads__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.03em;
}

.litestore-downloads__subtitle {
  font-size: 14px;
  color: #6e6e73;
  margin-top: 6px;
}

/* LIST */
.litestore-downloads__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* CARD */
.litestore-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  padding: 18px 20px;
  border-radius: 22px;

  background: #fff;
  border: 1px solid #e9e9ee;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.04);

  text-decoration: none;
  transition: all 0.2s ease;
}

.litestore-download-card:hover {
  transform: translateY(-2px);
  background: #f7f7f9;
}

/* ICON */
.litestore-download-card__icon {
  font-size: 20px;
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: #f5f5f7;
}

/* CONTENT */
.litestore-download-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.litestore-download-card__meta {
  font-size: 13px;
  color: #777;
  margin-top: 2px;
}

/* ACTION */
.litestore-download-card__action {
  font-size: 13px;
  color: #6e6e73;
  white-space: nowrap;
}

/* EMPTY */
.litestore-downloads__empty {
  padding: 24px;
  border-radius: 18px;
  background: #fafafa;
  border: 1px solid #e9e9ee;
  color: #777;
}
