/* ===== Mein Konto – Krauthaus Vechta ===== */
.woocommerce-account .kh-shop-wrap{max-width:1080px}

/* ---------- Willkommens-Box (ausgeloggt) ---------- */
.kh-account-welcome{text-align:center;padding:6px 10px 2px}
.kh-account-welcome__logo{display:block;margin-bottom:12px}
.kh-account-welcome h1{font-size:1.6rem;font-weight:800;color:var(--green-950,#16241a);margin:0 0 8px;line-height:1.25}
.kh-account-welcome p{margin:0 auto 20px;color:#4b5563;font-size:.95rem;line-height:1.6;max-width:400px}

/* ---------- Login / Register ---------- */
.woocommerce-account:not(.logged-in) .kh-shop-wrap{
  max-width:560px;margin:0 auto;
}
.woocommerce-account:not(.logged-in) .woocommerce{
  background:var(--white,#fff);
  border:1px solid var(--line,#e3e8dd);
  border-radius:20px;
  padding:38px 42px;
  box-shadow:var(--shadow-md,0 20px 40px -18px rgba(22,36,26,.18));
  margin-top:8px;
}
.woocommerce-account .woocommerce-form-login h2,
.woocommerce-account .woocommerce-form-register h2,
.woocommerce-account h2.woocommerce-column__title{
  font-size:1.45rem;font-weight:700;color:var(--green-950,#16241a);
  margin:0 0 6px;
}
.woocommerce-account .woocommerce-form-login h2::before{content:"👋 ";font-size:1.2rem}
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register{margin-top:0}
.woocommerce-account .woocommerce-form-row label{font-weight:600;font-size:.88rem;color:var(--green-900,#1d2f20)}
.woocommerce-account input.input-text,
.woocommerce-account input[type=email],
.woocommerce-account input[type=password],
.woocommerce-account input[type=tel],
.woocommerce-account input[type=text],
.woocommerce-account select{
  width:100%;border:1.5px solid var(--line,#d8dfd0);border-radius:10px;
  padding:12px 14px;font-size:.95rem;background:#fcfdfb;
  transition:border-color .2s,box-shadow .2s;
}
.woocommerce-account input[type=password]{padding-right:3.2rem !important}
.woocommerce-account .password-input{position:relative;display:block}
/* WooCommerce-Standard-Icon (::after) ausblenden – nur unser ::before zeigen */
.woocommerce-account button.show-password-input::after{
  display:none !important;content:none !important;background-image:none !important;
}
.woocommerce-account button.show-password-input{
  position:absolute;right:8px;top:50%;transform:translateY(-50%) !important;
  width:32px;height:32px;background:none;border:none;padding:0;margin:0;cursor:pointer;
  display:inline-flex !important;align-items:center;justify-content:center;line-height:1;
}
.woocommerce-account button.show-password-input::before{
  content:"";position:absolute;inset:0;background-size:22px 22px;background-repeat:no-repeat;
  background-position:center;opacity:.65;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.8'><path d='M2 12s3.5-6.5 10-6.5S22 12 22 12s-3.5 6.5-10 6.5S2 12 2 12Z'/><circle cx='12' cy='12' r='2.8'/></svg>");
}
.woocommerce-account button.show-password-input[aria-expanded=true]::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7a28' stroke-width='1.8'><path d='M2 12s3.5-6.5 10-6.5S22 12 22 12s-3.5 6.5-10 6.5S2 12 2 12Z'/><circle cx='12' cy='12' r='2.8'/><path d='m4 20 16-16'/></svg>");
}
.woocommerce-account button.show-password-input span{
  background-image:none !important;
}
.woocommerce-account input:focus{outline:none;border-color:var(--green-600,#3d7a28);box-shadow:0 0 0 3px rgba(61,122,40,.14)}
.woocommerce-account button.button,
.woocommerce-account .woocommerce-button{
  background:var(--green-600,#3d7a28);color:#fff;border:none;border-radius:99px;
  padding:14px 30px;font-weight:600;font-size:.95rem;cursor:pointer;
  transition:background .2s,transform .2s;width:100%;margin-top:6px;
}
.woocommerce-account button.button:hover{background:var(--green-500,#4d9134);transform:translateY(-1px)}
.woocommerce-account .woocommerce-form__label-for-checkbox{display:inline-flex;gap:8px;align-items:center;font-size:.88rem;color:#555}
.woocommerce-account .woocommerce-form__input-checkbox{accent-color:var(--green-600,#3d7a28);width:17px;height:17px}
.woocommerce-account .lost_password{margin-top:14px}
.woocommerce-account .lost_password a{color:var(--green-700,#3a6b28);font-size:.88rem;text-decoration:underline}

/* Register-Text & Trenner */
.woocommerce-account .woocommerce-account-register-note{background:var(--green-50,#f0f7ea);border:1px dashed var(--green-300,#b7d8a2);border-radius:12px;padding:18px 20px;margin-top:26px;font-size:.92rem;color:var(--green-900,#1d2f20)}
.woocommerce-account .woocommerce-account-register-note a{color:var(--green-700,#3a6b28);font-weight:600}

/* ---------- Eingeloggt: Layout ---------- */
.woocommerce-account.logged-in .kh-shop-wrap{max-width:1200px}
.woocommerce-MyAccount-navigation{
  background:var(--white,#fff);border:1px solid var(--line,#e3e8dd);
  border-radius:16px;padding:14px;margin-bottom:26px;
}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.woocommerce-MyAccount-navigation li a{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;border-radius:99px;font-size:.88rem;font-weight:600;
  color:var(--green-900,#1d2f20);text-decoration:none;transition:background .2s,color .2s;
}
.woocommerce-MyAccount-navigation li a:hover{background:var(--green-50,#f0f7ea)}
.woocommerce-MyAccount-navigation li.is-active a{background:var(--green-600,#3d7a28);color:#fff}

/* Dashboard */
.woocommerce-account .woocommerce-MyAccount-content{
  background:var(--white,#fff);border:1px solid var(--line,#e3e8dd);
  border-radius:16px;padding:30px 34px;
}
.woocommerce-account .woocommerce-MyAccount-content p{color:#4b5563;line-height:1.7}
.woocommerce-account .woocommerce-MyAccount-content p a{color:var(--green-700,#3a6b28);font-weight:600}

/* Orders */
.woocommerce-account table.shop_table{border:1px solid var(--line,#e3e8dd);border-radius:12px;overflow:hidden;border-collapse:separate;border-spacing:0;margin-top:16px}
.woocommerce-account table.shop_table th{background:var(--green-50,#f0f7ea);font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;color:var(--green-900,#1d2f20);padding:12px 14px}
.woocommerce-account table.shop_table td{padding:12px 14px;border-top:1px solid var(--line,#e3e8dd);font-size:.9rem}
.woocommerce-account table.shop_table td a{color:var(--green-700,#3a6b28);font-weight:600}
.woocommerce-account .woocommerce-orders-table__cell-order-actions a{
  display:inline-block;margin:2px;background:var(--green-50,#f0f7ea);border:1px solid var(--green-200,#cfe3bd);
  color:var(--green-800,#2e5220);border-radius:99px;padding:5px 14px;font-size:.8rem;text-decoration:none;
}
.woocommerce-account .woocommerce-orders-table__cell-order-actions a:hover{background:var(--green-100,#e2f0d6)}

/* Adressen – kollisionssicheres Grid statt WooCommerce-Floats */
.woocommerce-account .woocommerce-Addresses.addresses,
.woocommerce-account .u-columns.woocommerce-Addresses{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:24px !important;
  align-items:start;
  grid-auto-flow:row !important;
}
/* WooCommerce-Clearfix-Pseudos wären unsichtbare Grid-Items → entfernen */
.woocommerce-account .woocommerce-Addresses.addresses::before,
.woocommerce-account .woocommerce-Addresses.addresses::after,
.woocommerce-account .u-columns.woocommerce-Addresses::before,
.woocommerce-account .u-columns.woocommerce-Addresses::after{
  content:none !important;
  display:none !important;
}
.woocommerce-account .woocommerce-Addresses .u-column1,
.woocommerce-account .u-columns.woocommerce-Addresses .u-column1{grid-column:1 !important}
.woocommerce-account .woocommerce-Addresses .u-column2,
.woocommerce-account .u-columns.woocommerce-Addresses .u-column2{grid-column:2 !important}
.woocommerce-account .woocommerce-Addresses .woocommerce-Address,
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2{
  float:none !important;
  width:100% !important;
  margin:0 !important;
}
.woocommerce-account .addresses .woocommerce-Address{
  background:var(--green-50,#f0f7ea);
  border:1px solid var(--line,#e3e8dd);
  border-radius:14px;
  padding:20px 22px;
  box-sizing:border-box;
}
.woocommerce-account .addresses .woocommerce-Address-title{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.woocommerce-account .addresses .woocommerce-Address-title h3,
.woocommerce-account .addresses .woocommerce-Address-title h2{
  margin:0 !important;
  padding:0 !important;
  line-height:1.25 !important;
  font-size:1.15rem;
  border:none;
  background:none;
}
.woocommerce-account .addresses .woocommerce-Address-title .edit{
  float:none !important;
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--green-700,#3a6b28);
  font-weight:600;
  font-size:.85rem;
  text-decoration:none;
  white-space:nowrap;
}
.woocommerce-account .addresses .woocommerce-Address-title .edit:hover{color:var(--green-500,#4d9134)}
.woocommerce-account .addresses address{font-style:normal;line-height:1.7;color:#4b5563;margin:0}

@media (max-width:768px){
  .woocommerce-account .woocommerce-Addresses.addresses,
  .woocommerce-account .u-columns.woocommerce-Addresses{
    grid-template-columns:1fr !important;
    gap:18px !important;
  }
  /* grid-column-Fix darf im 1-Spalten-Layout nicht greifen (erzeugt sonst implizite 2. Spalte) */
  .woocommerce-account .woocommerce-Addresses .u-column1,
  .woocommerce-account .woocommerce-Addresses .u-column2,
  .woocommerce-account .u-columns.woocommerce-Addresses .u-column1,
  .woocommerce-account .u-columns.woocommerce-Addresses .u-column2{
    grid-column:auto !important;
  }
}

/* Konto-Details Formular */
.woocommerce-account form.woocommerce-EditAccountForm label{font-weight:600;font-size:.85rem;color:var(--green-900,#1d2f20);margin-top:14px;display:block}
.woocommerce-account fieldset{margin-top:22px;border:1px solid var(--line,#e3e8dd);border-radius:12px;padding:18px 20px}
.woocommerce-account fieldset legend{font-weight:700;color:var(--green-900,#1d2f20);padding:0 8px}

/* Notices */
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info{
  background:var(--green-50,#f0f7ea);border:1px solid var(--green-300,#b7d8a2);
  border-left:4px solid var(--green-600,#3d7a28);border-radius:10px;
  padding:16px 18px 16px 18px !important;margin-bottom:20px;color:var(--green-900,#1d2f20);font-size:.92rem;
}
/* WooCommerce-Icon-Glyphen (::before) entfernen – liegen sonst über dem Text */
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-error::before,
.woocommerce-account .woocommerce-message::after,
.woocommerce-account .woocommerce-info::after,
.woocommerce-account .woocommerce-error::after{
  content:none !important;
  display:none !important;
}
.woocommerce-account .woocommerce-info .button,
.woocommerce-account .woocommerce-message .button{
  float:right;margin-left:12px;background:var(--green-600,#3d7a28);color:#fff;
  border-radius:99px;padding:10px 22px;font-weight:600;font-size:.85rem;text-decoration:none;
}
.woocommerce-account .woocommerce-info .button:hover,
.woocommerce-account .woocommerce-message .button:hover{background:var(--green-500,#4d9134);color:#fff}
.woocommerce-account .woocommerce-error{
  background:#fdf3f3;border:1px solid #f0c6c6;border-left:4px solid #c0392b;
  border-radius:10px;padding:16px 18px;margin-bottom:20px;color:#8f2d23;font-size:.92rem;list-style:none;
}

/* Mobile */
@media (max-width:640px){
  .woocommerce-account:not(.logged-in) .woocommerce{padding:28px 22px}
  .woocommerce-MyAccount-navigation ul{flex-direction:column}
  .woocommerce-MyAccount-navigation li a{width:100%;justify-content:flex-start}
  .woocommerce-account .woocommerce-MyAccount-content{padding:22px 18px}
}
