/* Ezoterica account foundation. All rules stay within WooCommerce account pages. */
body.woocommerce-account {
  --ezac-ink: #332d29;
  --ezac-muted: #6d625a;
  --ezac-paper: #fffdf9;
  --ezac-cream: #f8f4ed;
  --ezac-sand: #eee6dc;
  --ezac-line: #ded2c5;
  --ezac-burgundy: #70384b;
  --ezac-burgundy-hover: #592b3b;
  --ezac-gold: #886b3d;
  --ezac-green: #315944;
  --ezac-green-bg: #eaf1eb;
  --ezac-pending: #74531d;
  --ezac-pending-bg: #f6edda;
  --ezac-focus: #6e3650;
}

body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce *,
body.woocommerce-account .woocommerce *::before,
body.woocommerce-account .woocommerce *::after {
  box-sizing: border-box;
}

body.woocommerce-account .entry-content > .woocommerce {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  color: var(--ezac-ink);
  font-size: 15px;
  line-height: 1.65;
}

body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

/* Woo/Astra clearfix pseudo-elements otherwise become real grid items. */
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
  content: none;
  display: none;
}

body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-error,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-message,
body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) > .woocommerce-info {
  grid-column: 1 / -1;
  min-width: 0;
  margin-bottom: 0;
}

body.woocommerce-account .woocommerce-notices-wrapper:empty {
  display: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
}

/* A quiet sidebar. Native Woo links and current-page state remain intact. */
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--ezac-line);
  border-radius: 14px;
  background: var(--ezac-paper);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li + li {
  margin-top: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ezac-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: var(--ezac-sand);
  color: var(--ezac-ink);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--ezac-burgundy);
  color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a::after {
  display: none;
}

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

body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content address,
body.woocommerce-account .woocommerce-MyAccount-content td {
  overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.ezac-button):not(.ezac-link) {
  color: var(--ezac-burgundy);
  text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.ezac-button):not(.ezac-link):hover {
  text-decoration: underline;
}

body.woocommerce-account .ezac-dashboard,
body.woocommerce-account .ezac-appointments {
  min-width: 0;
  color: var(--ezac-ink);
  font-size: 15px;
  line-height: 1.65;
}

body.woocommerce-account .ezac-dashboard {
  margin-top: 25px;
}

body.woocommerce-account .ezac-intro {
  margin: 0 0 22px;
}

body.woocommerce-account .ezac-eyebrow {
  margin: 0 0 8px;
  color: var(--ezac-gold);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

body.woocommerce-account h2.ezac-title {
  margin: 0 0 9px;
  color: var(--ezac-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}

body.woocommerce-account .ezac-lead {
  max-width: 62ch;
  margin: 0;
  color: var(--ezac-muted);
  font-size: 14px;
  line-height: 1.7;
}

body.woocommerce-account .ezac-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

body.woocommerce-account a.ezac-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 17px 18px;
  border: 1px solid var(--ezac-line);
  border-radius: 12px;
  background: var(--ezac-paper);
  color: var(--ezac-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.woocommerce-account a.ezac-link:hover {
  border-color: var(--ezac-burgundy);
  background: var(--ezac-cream);
  color: var(--ezac-burgundy);
}

body.woocommerce-account .ezac-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

body.woocommerce-account .ezac-card,
body.woocommerce-account .ezac-empty {
  min-width: 0;
  margin: 0;
  padding: 23px;
  border: 1px solid var(--ezac-line);
  border-radius: 15px;
  background: var(--ezac-paper);
  box-shadow: none;
}

body.woocommerce-account .ezac-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}

body.woocommerce-account h3.ezac-card-title {
  flex: 1 1 220px;
  min-width: 0;
  margin: 0;
  color: var(--ezac-ink);
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body.woocommerce-account .ezac-order-ref {
  margin: 2px 0 0;
  color: var(--ezac-muted);
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

body.woocommerce-account .ezac-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
}

body.woocommerce-account .ezac-badge {
  display: inline-block;
  max-width: 100%;
  padding: 4px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--ezac-sand);
  color: var(--ezac-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.woocommerce-account .ezac-badge--paid {
  background: var(--ezac-green-bg);
  color: var(--ezac-green);
}

body.woocommerce-account .ezac-badge--pending {
  background: var(--ezac-pending-bg);
  color: var(--ezac-pending);
}

body.woocommerce-account .ezac-badge--cancelled {
  background: #f1e6e8;
  color: #783e4e;
}

body.woocommerce-account .ezac-badge--test {
  background: var(--ezac-sand);
  color: var(--ezac-muted);
}

body.woocommerce-account dl.ezac-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 18px 0;
}

body.woocommerce-account .ezac-details > div {
  min-width: 0;
  margin: 0;
}

body.woocommerce-account .ezac-details dt {
  margin: 0 0 3px;
  color: var(--ezac-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
}

body.woocommerce-account .ezac-details dd {
  margin: 0;
  color: var(--ezac-ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.woocommerce-account .ezac-notice {
  margin: 17px 0 0;
  color: var(--ezac-muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.woocommerce-account .ezac-notice--info {
  padding: 13px 15px;
  border: 0;
  border-radius: 9px;
  background: var(--ezac-cream);
}

body.woocommerce-account .ezac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

body.woocommerce-account a.ezac-button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input.button,
body.woocommerce-account .woocommerce .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 18px;
  border: 1px solid var(--ezac-burgundy);
  border-radius: 9px;
  background: var(--ezac-burgundy);
  color: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.woocommerce-account a.ezac-button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input.button:hover,
body.woocommerce-account .woocommerce .woocommerce-Button:hover {
  border-color: var(--ezac-burgundy-hover);
  background: var(--ezac-burgundy-hover);
  color: #fff;
}

body.woocommerce-account a.ezac-button--secondary {
  border-color: var(--ezac-line);
  background: transparent;
  color: var(--ezac-burgundy);
}

body.woocommerce-account a.ezac-button--secondary:hover {
  border-color: var(--ezac-burgundy);
  background: var(--ezac-sand);
  color: var(--ezac-burgundy);
}

body.woocommerce-account .ezac-empty > :first-child {
  margin-top: 0;
}

body.woocommerce-account .ezac-empty > :last-child {
  margin-bottom: 0;
}

body.woocommerce-account .ezac-pagination,
body.woocommerce-account .woocommerce-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

body.woocommerce-account .ezac-pagination a,
body.woocommerce-account .ezac-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ezac-line);
  border-radius: 8px;
  color: var(--ezac-ink);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

body.woocommerce-account .ezac-pagination .current,
body.woocommerce-account .ezac-pagination [aria-current="page"] {
  border-color: var(--ezac-burgundy);
  background: var(--ezac-burgundy);
  color: #fff;
}

/* Login, registration and account details use the real WooCommerce forms. */
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword {
  margin: 18px 0 25px;
  padding: 24px;
  border: 1px solid var(--ezac-line);
  border-radius: 15px;
  background: var(--ezac-paper);
}

body.woocommerce-account .woocommerce > h2,
body.woocommerce-account .woocommerce #customer_login h2,
body.woocommerce-account .woocommerce-MyAccount-content h2:not(.ezac-title) {
  margin: 0 0 15px;
  color: var(--ezac-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.3;
}

body.woocommerce-account .woocommerce form .form-row {
  margin: 0 0 17px;
  padding: 0;
}

body.woocommerce-account .woocommerce form .form-row label {
  margin-bottom: 7px;
  color: var(--ezac-ink);
  font-size: 13px;
  line-height: 1.5;
}

body.woocommerce-account .woocommerce form .input-text,
body.woocommerce-account .woocommerce form input[type="text"],
body.woocommerce-account .woocommerce form input[type="email"],
body.woocommerce-account .woocommerce form input[type="password"],
body.woocommerce-account .woocommerce form input[type="tel"],
body.woocommerce-account .woocommerce form select,
body.woocommerce-account .woocommerce form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--ezac-line);
  border-radius: 8px;
  background: var(--ezac-paper);
  color: var(--ezac-ink);
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
}

body.woocommerce-account .woocommerce form input::placeholder,
body.woocommerce-account .woocommerce form textarea::placeholder {
  color: var(--ezac-muted);
  opacity: 1;
}

body.woocommerce-account .woocommerce form .password-input input {
  padding-right: 46px;
}

body.woocommerce-account .woocommerce form .show-password-input {
  min-width: 44px;
  min-height: 44px;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.woocommerce-account .woocommerce form .show-password-input::after {
  margin: 0;
}

body.woocommerce-account .woocommerce form .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 15px 0 0;
}

body.woocommerce-account .woocommerce form input[type="checkbox"],
body.woocommerce-account .woocommerce form input[type="radio"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ezac-burgundy);
}

body.woocommerce-account .woocommerce .lost_password a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ezac-burgundy);
  font-size: 13px;
  text-underline-offset: 3px;
}

body.woocommerce-account .woocommerce form fieldset {
  min-width: 0;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid var(--ezac-line);
  border-radius: 12px;
}

body.woocommerce-account .woocommerce form legend {
  width: auto;
  margin: 0;
  padding: 0 7px;
  font-size: 16px;
  font-weight: 500;
}

/* Keep order information readable, including long Polish product names. */
body.woocommerce-account .woocommerce table.shop_table {
  width: 100%;
  margin: 0 0 24px;
  border: 1px solid var(--ezac-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: var(--ezac-paper);
  color: var(--ezac-ink);
  font-size: 14px;
  line-height: 1.55;
}

body.woocommerce-account .woocommerce table.shop_table th,
body.woocommerce-account .woocommerce table.shop_table td {
  padding: 14px 15px;
  border-color: var(--ezac-line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce table.shop_table th {
  background: var(--ezac-cream);
  font-size: 13px;
  font-weight: 500;
}

body.woocommerce-account .woocommerce table.shop_table td .button {
  margin: 2px 4px 3px 0;
  padding-inline: 12px;
  font-size: 13px;
}

body.woocommerce-account .woocommerce .woocommerce-customer-details address {
  min-height: auto;
  padding: 18px;
  border: 1px solid var(--ezac-line);
  border-radius: 12px;
  background: var(--ezac-paper);
  line-height: 1.65;
}

body.woocommerce-account .woocommerce .woocommerce-order-details__title,
body.woocommerce-account .woocommerce .woocommerce-column__title {
  margin: 24px 0 15px;
  font-size: 22px;
  line-height: 1.3;
}

body.woocommerce-account .woocommerce .woocommerce-message,
body.woocommerce-account .woocommerce .woocommerce-info,
body.woocommerce-account .woocommerce .woocommerce-error {
  border-top-color: var(--ezac-burgundy);
  border-radius: 8px;
  background: var(--ezac-cream);
  color: var(--ezac-ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

body.woocommerce-account .woocommerce a:focus-visible,
body.woocommerce-account .woocommerce button:focus-visible,
body.woocommerce-account .woocommerce input:focus-visible,
body.woocommerce-account .woocommerce select:focus-visible,
body.woocommerce-account .woocommerce textarea:focus-visible,
body.woocommerce-account .ezac-pagination a:focus-visible {
  outline: 3px solid var(--ezac-focus);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  body.woocommerce-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li + li {
    margin-top: 0;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    height: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  body.woocommerce-account .entry-content > .woocommerce,
  body.woocommerce-account .ezac-dashboard,
  body.woocommerce-account .ezac-appointments {
    font-size: 14px;
  }

  body.woocommerce-account .ezac-intro {
    margin-bottom: 18px;
  }

  body.woocommerce-account .ezac-card,
  body.woocommerce-account .ezac-empty {
    padding: 18px;
    border-radius: 12px;
  }

  body.woocommerce-account .ezac-card-header {
    display: block;
  }

  body.woocommerce-account .ezac-order-ref {
    margin-top: 5px;
  }

  body.woocommerce-account dl.ezac-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    margin-block: 16px;
  }

  body.woocommerce-account .ezac-actions > a {
    flex: 1 1 180px;
  }

  body.woocommerce-account .woocommerce #customer_login .col-1,
  body.woocommerce-account .woocommerce #customer_login .col-2,
  body.woocommerce-account .woocommerce form .form-row-first,
  body.woocommerce-account .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }

  body.woocommerce-account .woocommerce form.login,
  body.woocommerce-account .woocommerce form.register,
  body.woocommerce-account .woocommerce form.woocommerce-ResetPassword {
    padding: 19px;
    border-radius: 12px;
  }

  body.woocommerce-account .woocommerce form fieldset {
    padding: 15px;
  }

  body.woocommerce-account .woocommerce table.shop_table_responsive thead {
    display: none;
  }

  body.woocommerce-account .woocommerce table.shop_table_responsive tbody,
  body.woocommerce-account .woocommerce table.shop_table_responsive tr,
  body.woocommerce-account .woocommerce table.shop_table_responsive td {
    display: block;
    width: 100%;
  }

  body.woocommerce-account .woocommerce table.shop_table_responsive tbody tr + tr {
    border-top: 2px solid var(--ezac-line);
  }

  body.woocommerce-account .woocommerce table.shop_table_responsive td {
    min-height: 46px;
    padding: 12px 14px;
    text-align: left !important;
    background: transparent;
  }

  body.woocommerce-account .woocommerce table.shop_table_responsive td::before {
    content: attr(data-title);
    display: block;
    float: none;
    margin-bottom: 3px;
    color: var(--ezac-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
  }

  body.woocommerce-account .woocommerce table.shop_table:not(.shop_table_responsive) th,
  body.woocommerce-account .woocommerce table.shop_table:not(.shop_table_responsive) td {
    padding: 12px 10px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-account .woocommerce-MyAccount-navigation a,
  body.woocommerce-account a.ezac-link,
  body.woocommerce-account a.ezac-button,
  body.woocommerce-account .woocommerce .button {
    transition: none;
  }
}

/* A clear first step for clients before their first booking. */
body.woocommerce-account .ezac-first-step { margin: 20px 0 24px; }
body.woocommerce-account .ezac-first-step p { max-width: 62ch; margin: 9px 0 0; color: var(--ezac-muted); font-size: 13px; line-height: 1.6; }
