/* =========================================================
   WMO WooCommerce My Account
   Scope: WooCommerce account page
========================================================= */
.wc-block-bootstrap-shell--my-account {
  background: #fff;
    padding: clamp(1.5rem, 6vw, 3rem) 0;
}

.woocommerce-account .container .woocommerce {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: #fff;
}

.woocommerce-account .container .woocommerce::before {
  content: "MEIN KONTO";
  display: block;
  grid-column: 1 / -1;
  color: var(--brand-accent-color);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.5rem 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

/* Navigation */

.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 2rem;
  width: auto;
  float: none;
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link {
  margin: 0;
  padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0.75rem 1rem;
  background: var(--brand-primary-color);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--brand-primary-text-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover {
  border-color: var(--brand-accent-color);
  color: var(--brand-accent-color);
  transform: translateY(-1px);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link a:hover::after {
  color: var(--brand-accent-color);
  transform: translateX(2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a {
  color: var(--brand-accent-color);
  border-color: var(--brand-accent-color);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link.is-active a::after {
  color: #fff;
}

/* Logout item */

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--brand-secondary-color-10);
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  width: 100%;
  margin-top: 1rem;
  display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0.75rem 2rem;
    border: 1px solid var(--brand-accent-darkest);
    border-radius: 999px;
    background: var(--brand-primary-color-darker);
    color: #fff;
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  color: #fff;
  background-color: var(--brand-primary-color-darkest);
}

/* Content card */

.woocommerce-account .woocommerce-MyAccount-content {
  width: auto;
  float: none;
  min-width: 0;
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  color: var(--brand-primary-text-color);
  font-size: 0.95rem;
  line-height: 1.65;
}


.woocommerce-account .woocommerce-MyAccount-content > *:first-child {
  margin-top: 0;
}

.woocommerce-account .woocommerce-MyAccount-content > *:last-child {
  margin-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-content p {
  margin: 0 0 1rem;
  color: var(--brand-primary-text-color);
  font-size: 0.95rem;
  line-height: 1.65;
}
.woocommerce-account .woocommerce-MyAccount-content p.form-row-first,
.woocommerce-account .woocommerce-MyAccount-content p.form-row-last {
  width: 49%;
}

.woocommerce-account .woocommerce-MyAccount-content strong {
  color: var(--brand-header-text-color);
  font-weight: 800;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: var(--brand-accent-color);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
  color: var(--brand-accent-color-hover);
}

/* Headings inside account pages */

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3,
.woocommerce-account .woocommerce-MyAccount-content legend {
  margin: 0 0 1rem;
  color: var(--brand-header-text-color);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Notices */

.woocommerce-account .woocommerce-notices-wrapper {
  margin: 0;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
  margin: 0 0 1rem;
  padding: 1rem 3rem;
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-left: 5px solid var(--brand-accent-color);
  border-radius: 12px;
  color: var(--brand-primary-text-color);
  box-shadow: none;
}

.woocommerce-account .woocommerce-error {
  list-style: none;
}

/* Tables: orders/downloads */

.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--brand-secondary-color-20);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table th {
  padding: 1rem;
  background: var(--brand-primary-color);
  border: 0;
  color: var(--brand-header-text-color);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td {
  padding: 1rem;
  border: 0;
  border-top: 1px solid var(--brand-secondary-color-10);
  color: var(--brand-primary-text-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:hover td,
.woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

/* Account buttons */

.woocommerce-account .woocommerce-Button,
.woocommerce-account .woocommerce-Button.wc-forward.button,
.woocommerce-account .button,
.woocommerce-account button.button,
.woocommerce-account input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.75rem 2rem;
  border: 1px solid var(--brand-accent-color);
  border-radius: 999px;
  background: var(--brand-accent-color);
  color: #fff;
  font-family: "LexendDeca", sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .woocommerce-Button.wc-forward.button:hover,
.woocommerce-account .button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account input.button:hover {
  background: var(--brand-accent-color-hover);
  border-color: var(--brand-accent-color-hover);
  color: #fff;
}

.woocommerce-account .woocommerce-Button:active,
.woocommerce-account .woocommerce-Button.wc-forward.button:active,
.woocommerce-account .button:active,
.woocommerce-account button.button:active,
.woocommerce-account input.button:active {
  background: var(--brand-primary-color) !important;
  border-color: var(--brand-accent-color) !important;
  color: var(--brand-accent-color) !important;
}



/* Forms */

.woocommerce-account .woocommerce-form-row,
.woocommerce-account .form-row {
  margin: 0 0 1rem;
  padding: 0;
}

.woocommerce-account .woocommerce-form-row label,
.woocommerce-account .form-row label {
  display: block;
  margin: 0 0 0.4rem;
  color: var(--brand-secondary-color-70);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.woocommerce-account .woocommerce-form-row input.input-text,
.woocommerce-account .form-row input.input-text,
.woocommerce-account .form-row textarea,
.woocommerce-account .form-row select,
.woocommerce-account .form-row .select2-selection {
  width: 100%;
  height: 48px;
  padding: 0.75rem 1rem;
  background: var(--brand-primary-color);
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 12px;
  color: var(--brand-primary-text-color);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  box-shadow: none;
  transition:
  border-color 0.2s ease,
  background-color 0.2s ease;
}
  .woocommerce-account .form-row .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
  }
  .woocommerce-account .form-row .select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: var(--brand-accent-color);
  }

.woocommerce-account .form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.woocommerce-account .woocommerce-form-row input.input-text:hover,
.woocommerce-account .form-row input.input-text:hover,
.woocommerce-account .form-row textarea:hover,
.woocommerce-account .form-row select:hover {
  border-color: var(--brand-accent-color);
}

.woocommerce-account .woocommerce-form-row input.input-text:focus,
.woocommerce-account .form-row input.input-text:focus,
.woocommerce-account .form-row textarea:focus,
.woocommerce-account .form-row select:focus {
  border-color: var(--brand-accent-color);
  background: #fff;
}

/* Address blocks */
.u-columns.woocommerce-Addresses.col2-set.addresses {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.u-columns.woocommerce-Addresses.col2-set.addresses::after,
.u-columns.woocommerce-Addresses.col2-set.addresses::before {
  display: none;
}
.woocommerce-account .woocommerce-Address {
  margin: 0 0 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.woocommerce-account .woocommerce-Address-title {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-direction: column;
}

.woocommerce-account .woocommerce-Address-title h2,
.woocommerce-account .woocommerce-Address-title h3 {
  margin: 0;
}

.woocommerce-account .woocommerce-Address-title a {
  font-size: 0.9rem;
}

/* Login / register forms on account page */

.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
  margin: 0;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--brand-secondary-color-20);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--brand-primary-text-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme input {
  accent-color: var(--brand-accent-color);
}

/* Responsive */

@media (max-width: 992px) {
  .woocommerce-account .container .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wc-block-bootstrap-shell--my-account {
    padding: 0;
  }
  .woocommerce-account .container .woocommerce {
    padding: 2rem 0;
  }

  .wc-block-surface--my-account {
    padding: 0;
    background: none;
    box-shadow: none;
    border: none;
    }

  .woocommerce-account .container .woocommerce::before {
    padding: 0;
    justify-self: center;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 1rem;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: 1fr;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table {
    border: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table thead,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table thead {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table tr,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table tr {
    display: block;
    padding: 1rem;
    border: 1px solid var(--brand-secondary-color-20);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table td,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid var(--brand-secondary-color-10);
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table td:last-child,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td:last-child {
    border-bottom: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-content table.shop_table td::before,
  .woocommerce-account .woocommerce-MyAccount-content table.woocommerce-orders-table td::before {
    content: attr(data-title);
    color: var(--brand-secondary-color-70);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}