/*
 * WK Customer Account UI
 * Isolation contract:
 * - loaded only on the native WooCommerce Account page;
 * - every component rule is scoped to .wkca-shell;
 * - the only outer-page rules require body.wkca-account + main#content;
 * - no Elementor selectors and no unscoped HTML/WooCommerce selectors.
 */

body.wkca-account main#content.site-main {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1460px);
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 42px) 0 clamp(64px, 7vw, 108px);
  color: #0a0a08;
}

body.wkca-account main#content.site-main > .page-header {
  margin: 0 0 18px;
}

body.wkca-account main#content.site-main > .page-header .entry-title {
  margin: 0;
  color: #0a0a08;
  font: normal normal 600 clamp(2.25rem, 4vw, 3.75rem) / 1 "Bornia", Roboto, sans-serif;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

body.wkca-account main#content.site-main > .page-content {
  margin: 0;
}

.wkca-shell {
  --wkca-black: #0a0a08;
  --wkca-yellow: #ffff00;
  --wkca-light: #f4f4f4;
  --wkca-mid: #aeb1ae;
  --wkca-grey: #666a68;
  --wkca-line: #d2d2d2;
  box-sizing: border-box;
  width: 100%;
  color: var(--wkca-black);
  font-family: "Bornia", Roboto, sans-serif;
}

.wkca-shell *,
.wkca-shell *::before,
.wkca-shell *::after {
  box-sizing: border-box;
}

.wkca-shell .wkca-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 16px 20px;
  background: var(--wkca-light);
  color: var(--wkca-black);
}

.wkca-shell .wkca-intro__copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--wkca-black);
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  font-weight: 600;
  line-height: 1.35;
}

.wkca-shell .wkca-intro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.wkca-shell .wkca-intro__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 13px;
  border: 2px solid var(--wkca-black);
  color: var(--wkca-black);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.wkca-shell .wkca-intro__links a:first-child {
  border-color: var(--wkca-yellow);
  background: var(--wkca-yellow);
  color: var(--wkca-black);
}

.wkca-shell .wkca-intro__links a:hover,
.wkca-shell .wkca-intro__links a:focus-visible {
  border-color: var(--wkca-black);
  background: var(--wkca-black);
  color: var(--wkca-yellow);
}

.wkca-shell .wkca-intro__links a:focus-visible,
.wkca-shell a:focus-visible,
.wkca-shell button:focus-visible,
.wkca-shell input:focus-visible,
.wkca-shell select:focus-visible {
  outline: 2px solid var(--wkca-black);
  outline-offset: 3px;
}

.wkca-shell .woocommerce-notices-wrapper:empty {
  display: none;
}

.wkca-shell .woocommerce-error,
.wkca-shell .woocommerce-info,
.wkca-shell .woocommerce-message {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 0;
  border-left: 6px solid var(--wkca-black);
  background: var(--wkca-light);
  color: var(--wkca-black);
  line-height: 1.5;
  list-style: none;
}

.wkca-shell .woocommerce-error {
  border-left-color: #b81c23;
}

.wkca-shell .woocommerce-error::before,
.wkca-shell .woocommerce-info::before,
.wkca-shell .woocommerce-message::before {
  display: none;
  content: none;
}

.wkca-shell .woocommerce-message {
  border-left-color: #2c7a45;
}

.wkca-shell #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
  margin: 0;
}

.wkca-shell #customer_login::before,
.wkca-shell #customer_login::after {
  display: none;
}

.wkca-shell #customer_login > .u-column1,
.wkca-shell #customer_login > .u-column2 {
  float: none;
  width: auto;
  padding: clamp(28px, 4vw, 48px);
  background: var(--wkca-light);
}

.wkca-shell #customer_login > .u-column2 {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.15) 0 18%, transparent 18% 100%),
    linear-gradient(342deg, rgba(255, 255, 255, 0.09) 0 35%, transparent 35% 100%),
    linear-gradient(0deg, #777b79, #5c605e);
  color: #fff;
}

.wkca-shell #customer_login > .u-column2::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(160deg, transparent 0 30%, rgba(0, 0, 0, 0.14) 30% 57%, transparent 57%),
    linear-gradient(20deg, transparent 0 63%, rgba(0, 0, 0, 0.12) 63% 100%);
  content: "";
  pointer-events: none;
}

.wkca-shell #customer_login > .u-column2 > * {
  position: relative;
  z-index: 1;
}

.wkca-shell #customer_login h2,
.wkca-shell .woocommerce-ResetPassword::before {
  display: block;
  margin: 0 0 28px;
  color: var(--wkca-black);
  font: normal normal 600 clamp(1.85rem, 3vw, 2.75rem) / 1 "Bornia", Roboto, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.wkca-shell #customer_login > .u-column2 h2 {
  color: #fff;
}

.wkca-shell .woocommerce-form,
.wkca-shell .woocommerce-ResetPassword,
.wkca-shell .woocommerce-EditAccountForm,
.wkca-shell .woocommerce-address-fields {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.wkca-shell .woocommerce-ResetPassword {
  max-width: 780px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--wkca-light);
}

.wkca-shell .woocommerce-ResetPassword::before {
  content: "Passwort zurücksetzen";
}

.wkca-shell .form-row {
  float: none;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
}

.wkca-shell .form-row label {
  display: block;
  margin: 0 0 8px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.wkca-shell .required {
  color: inherit;
  text-decoration: none;
}

.wkca-shell .input-text,
.wkca-shell input[type="email"],
.wkca-shell input[type="password"],
.wkca-shell input[type="text"],
.wkca-shell input[type="tel"],
.wkca-shell select {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 2px solid var(--wkca-black);
  border-radius: 0;
  background: #fff;
  color: var(--wkca-black);
  font: 500 1rem/1.35 "Bornia", Roboto, sans-serif;
  box-shadow: none;
}

.wkca-shell #customer_login > .u-column2 .input-text,
.wkca-shell #customer_login > .u-column2 input[type="email"],
.wkca-shell #customer_login > .u-column2 input[type="password"],
.wkca-shell #customer_login > .u-column2 input[type="text"] {
  border-color: #fff;
}

.wkca-shell .show-password-input {
  color: var(--wkca-black);
}

.wkca-shell .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin: 4px 0 18px;
  font-size: 0.9rem;
  text-transform: none;
}

.wkca-shell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--wkca-black);
}

.wkca-shell .woocommerce-button,
.wkca-shell button.button,
.wkca-shell a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 22px;
  border: 2px solid var(--wkca-black);
  border-radius: 0;
  background: var(--wkca-black);
  color: var(--wkca-yellow);
  font: 800 0.9rem/1.1 "Bornia", Roboto, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.wkca-shell #customer_login > .u-column2 .woocommerce-button {
  border-color: var(--wkca-yellow);
  background: var(--wkca-yellow);
  color: var(--wkca-black);
}

.wkca-shell .woocommerce-button:hover,
.wkca-shell .woocommerce-button:focus-visible,
.wkca-shell button.button:hover,
.wkca-shell button.button:focus-visible,
.wkca-shell a.button:hover,
.wkca-shell a.button:focus-visible,
.wkca-shell #customer_login > .u-column2 .woocommerce-button:hover,
.wkca-shell #customer_login > .u-column2 .woocommerce-button:focus-visible {
  border-color: var(--wkca-yellow);
  background: var(--wkca-yellow);
  color: var(--wkca-black);
}

.wkca-shell #customer_login > .u-column2 .woocommerce-button:hover,
.wkca-shell #customer_login > .u-column2 .woocommerce-button:focus-visible {
  border-color: #fff;
  background: #fff;
}

.wkca-shell .woocommerce-LostPassword,
.wkca-shell .woocommerce-privacy-policy-text,
.wkca-shell .woocommerce-form-register > p:not(.form-row),
.wkca-shell .woocommerce-ResetPassword > p:first-child {
  font-size: 0.92rem;
  line-height: 1.55;
}

.wkca-shell .woocommerce-LostPassword {
  margin: 18px 0 0;
}

.wkca-shell .woocommerce-LostPassword a,
.wkca-shell .woocommerce-privacy-policy-text a,
.wkca-shell .woocommerce-form-register > p a,
.wkca-shell .woocommerce-MyAccount-content a:not(.button) {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wkca-shell .woocommerce-MyAccount-navigation {
  float: left;
  width: min(30%, 340px);
  padding: 0;
}

.wkca-shell .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wkca-shell .woocommerce-MyAccount-navigation li {
  margin: 0;
  border-bottom: 1px solid var(--wkca-line);
}

.wkca-shell .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 16px;
  color: var(--wkca-black);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.wkca-shell .woocommerce-MyAccount-navigation li.is-active a,
.wkca-shell .woocommerce-MyAccount-navigation a:hover,
.wkca-shell .woocommerce-MyAccount-navigation a:focus-visible {
  background: var(--wkca-black);
  color: var(--wkca-yellow);
}

.wkca-shell .woocommerce-MyAccount-content {
  float: right;
  width: calc(70% - clamp(28px, 5vw, 72px));
  min-height: 330px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--wkca-light);
  font-size: 1rem;
  line-height: 1.6;
}

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

.wkca-shell .woocommerce-MyAccount-content h2,
.wkca-shell .woocommerce-MyAccount-content h3,
.wkca-shell .woocommerce-Address-title h2 {
  color: var(--wkca-black);
  font-family: "Bornia", Roboto, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.wkca-shell .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.wkca-shell .woocommerce-Addresses::before,
.wkca-shell .woocommerce-Addresses::after {
  display: none;
}

.wkca-shell .woocommerce-Address {
  float: none;
  width: auto;
  padding: 22px;
  background: #fff;
}

.wkca-shell .woocommerce-orders-table,
.wkca-shell .woocommerce-table {
  width: 100%;
  border-collapse: collapse;
}

.wkca-shell .woocommerce-orders-table th,
.wkca-shell .woocommerce-orders-table td,
.wkca-shell .woocommerce-table th,
.wkca-shell .woocommerce-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--wkca-line);
  text-align: left;
}

.wkca-shell .wkca-content::after {
  display: table;
  clear: both;
  content: "";
}

.wkca-shell .wkca-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(40px, 6vw, 72px) 0 0;
  border-top: 2px solid var(--wkca-black);
}

.wkca-shell .wkca-assurance > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 24px 22px 0 0;
}

.wkca-shell .wkca-assurance > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--wkca-line);
}

.wkca-shell .wkca-assurance span {
  display: block;
  width: 46px;
  height: 46px;
}

.wkca-shell .wkca-assurance img {
  display: block;
  width: 46px;
  height: 46px;
}

.wkca-shell .wkca-assurance p {
  margin: 0;
  color: var(--wkca-grey);
  font-size: 0.88rem;
  line-height: 1.45;
}

.wkca-shell .wkca-assurance strong {
  display: block;
  margin: 0;
  color: var(--wkca-black);
  font-size: 0.86rem;
  line-height: 1.4;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .wkca-shell .wkca-intro,
  .wkca-shell #customer_login {
    grid-template-columns: 1fr;
  }

  .wkca-shell .wkca-intro__links {
    justify-content: flex-start;
  }

  .wkca-shell .woocommerce-MyAccount-navigation,
  .wkca-shell .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
  }

  .wkca-shell .woocommerce-MyAccount-navigation {
    margin: 0 0 24px;
  }

  .wkca-shell .woocommerce-MyAccount-navigation ul {
    display: flex;
    overflow-x: auto;
  }

  .wkca-shell .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    border-right: 1px solid var(--wkca-line);
    border-bottom: 0;
  }

  .wkca-shell .wkca-assurance {
    grid-template-columns: 1fr;
  }

  .wkca-shell .wkca-assurance > div + div {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  body.wkca-account main#content.site-main {
    width: min(calc(100% - 28px), 1460px);
    padding-top: 18px;
  }

  body.wkca-account main#content.site-main > .page-header .entry-title {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .wkca-shell #customer_login > .u-column1,
  .wkca-shell #customer_login > .u-column2,
  .wkca-shell .woocommerce-ResetPassword,
  .wkca-shell .woocommerce-MyAccount-content {
    padding: 24px 20px;
  }

  .wkca-shell .wkca-intro {
    gap: 14px;
    padding: 14px 16px;
  }

  .wkca-shell .wkca-intro__links a {
    flex: 1 1 140px;
    justify-content: center;
  }

  .wkca-shell .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }

  .wkca-shell .woocommerce-orders-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .wkca-shell .woocommerce-orders-table tr,
  .wkca-shell .woocommerce-orders-table td {
    display: block;
    width: 100%;
  }

  .wkca-shell .woocommerce-orders-table tr {
    margin: 0 0 18px;
    padding: 12px;
    background: #fff;
  }
}
