/* ==========================================================================
   WooCommerce – My account (Mijn account)
   These pages are rendered by Hello + WooCommerce (not Elementor), so the
   selectors here are NOT prefixed with ".elementor"; they are scoped to
   body.woocommerce-account and strong enough to beat WooCommerce's own CSS.
   ========================================================================== */

/* ---------- Page frame ---------- */
body.woocommerce-account main.site-main {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 9vw, 112px);
}

body.woocommerce-account .page-header .entry-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.95;
}

/* Two columns: menu left, content right */
body.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after {
  display: none;
} /* WooCommerce clearfix */
body.woocommerce-account .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}
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;
}

/* ---------- Account menu ---------- */
body.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px);
  padding: 10px;
  border-radius: var(--radius-l);
  background: var(--sand);
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--sand-hover);
  color: var(--navy);
}
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--navy);
  color: var(--cream);
}
body.woocommerce-account
  .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-dark);
}
body.woocommerce-account
  .woocommerce-MyAccount-navigation-link--customer-logout
  a {
  color: var(--red-text);
}

/* ---------- Content ---------- */
body.woocommerce-account .woocommerce-MyAccount-content {
  font-size: 18px;
  line-height: 1.6;
}
body.woocommerce-account .woocommerce-MyAccount-content > * + * {
  margin-top: 20px;
}
body.woocommerce-account .woocommerce-MyAccount-content p {
  margin: 0;
}
body.woocommerce-account .woocommerce-MyAccount-content p + p {
  margin-top: 12px;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  font-size: 32px;
  line-height: 1;
}

/* ---------- Notices (no orders, confirm email, saved, errors) ---------- */
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 20px 24px;
  border: 0;
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius-l);
  background: var(--sand);
  color: var(--navy);
  font-size: 17px;
  list-style: none;
}
body.woocommerce-account .woocommerce-message {
  border-left-color: #2e9e5b;
}
body.woocommerce-account .woocommerce-error {
  border-left-color: var(--red);
}
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-info::after,
body.woocommerce-account .woocommerce-message::after,
body.woocommerce-account .woocommerce-error::after {
  display: none;
} /* WooCommerce icon + clearfix */
body.woocommerce-account .woocommerce-info .button,
body.woocommerce-account .woocommerce-message .button {
  float: none;
  order: 2;
}

/* ---------- Buttons ---------- */
body.woocommerce-account .woocommerce .button,
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s;
}
body.woocommerce-account .woocommerce .button:hover,
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce input.button:hover {
  background: var(--red-strong);
  color: var(--cream);
}

/* ---------- Forms (account details, addresses) ---------- */
body.woocommerce-account .woocommerce form .form-row {
  margin: 0 0 16px;
  padding: 0;
}
body.woocommerce-account .woocommerce form .form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
body.woocommerce-account .woocommerce form .form-row .required {
  color: var(--red-text);
  text-decoration: none;
  border: 0;
}

body.woocommerce-account .woocommerce form .form-row input.input-text,
body.woocommerce-account .woocommerce form .form-row textarea,
body.woocommerce-account .woocommerce form .form-row select,
body.woocommerce-account
  .woocommerce
  .select2-container
  .select2-selection--single {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid #d6cfbf;
  border-radius: var(--radius-s);
  background: #fff;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.3;
  box-shadow: none;
}
body.woocommerce-account .woocommerce form .form-row input.input-text:focus,
body.woocommerce-account .woocommerce form .form-row textarea:focus,
body.woocommerce-account .woocommerce form .form-row select:focus,
body.woocommerce-account
  .woocommerce
  .select2-container--focus
  .select2-selection--single,
body.woocommerce-account
  .woocommerce
  .select2-container--open
  .select2-selection--single {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px var(--yellow);
  outline: none;
}

/* Country dropdown (select2) */
body.woocommerce-account
  .woocommerce
  .select2-container
  .select2-selection--single {
  display: flex;
  align-items: center;
  padding: 0 16px;
}
body.woocommerce-account
  .woocommerce
  .select2-container
  .select2-selection__rendered {
  padding: 0;
  line-height: 1.3;
  color: var(--navy);
}
body.woocommerce-account
  .woocommerce
  .select2-container
  .select2-selection__arrow {
  top: 50%;
  right: 12px;
  height: 26px;
  transform: translateY(-50%);
}

/* Password fields with the eye icon */
body.woocommerce-account .woocommerce .password-input {
  display: block;
  position: relative;
}
body.woocommerce-account .woocommerce .show-password-input {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

/* Hints under fields */
body.woocommerce-account .woocommerce form .form-row em,
body.woocommerce-account .woocommerce form .form-row .description {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-style: normal;
  color: var(--stone, #6b6558);
}

/* "Wachtwoordwijziging" box */
body.woocommerce-account .woocommerce fieldset {
  margin: 8px 0 24px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
}
body.woocommerce-account .woocommerce fieldset legend {
  padding: 0 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  font-size: 22px;
}

/* ---------- Addresses ---------- */
body.woocommerce-account .woocommerce-MyAccount-content > p:first-child {
  color: var(--stone, #6b6558);
}

body.woocommerce-account .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after {
  display: none;
}
body.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--sand);
}
body.woocommerce-account .woocommerce-Address-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
body.woocommerce-account .woocommerce-Address-title::before,
body.woocommerce-account .woocommerce-Address-title::after {
  display: none;
}
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 28px;
}
body.woocommerce-account .woocommerce-Address-title .edit {
  float: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--red-text);
}
body.woocommerce-account .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Tables (orders, downloads) ---------- */
body.woocommerce-account .woocommerce table.shop_table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--line-dark);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  font-size: 16px;
}
body.woocommerce-account .woocommerce table.shop_table th {
  padding: 14px 16px;
  background: var(--sand);
  font-weight: 600;
  text-align: left;
}
body.woocommerce-account .woocommerce table.shop_table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  body.woocommerce-account .woocommerce {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Menu becomes a horizontal, swipeable row of pills */
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    border-radius: 0;
    background: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body.woocommerce-account
    .woocommerce-MyAccount-navigation::-webkit-scrollbar {
    display: none;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    gap: 8px;
    width: max-content;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sand);
    white-space: nowrap;
  }
  body.woocommerce-account
    .woocommerce-MyAccount-navigation-link--customer-logout {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

@media (max-width: 600px) {
  body.woocommerce-account .woocommerce form .form-row-first,
  body.woocommerce-account .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }
  body.woocommerce-account .woocommerce fieldset {
    padding: 18px;
  }
}
