/* WCBR Mobile Menu (Variante A) */
.wcbr-mm { position: fixed; inset: 0; z-index: 100000; }
.wcbr-mm[hidden] { display: none; }
.wcbr-mm__overlay { position: absolute; inset: 0; background: rgba(40, 10, 20, 0.45); }
.wcbr-mm__drawer {
  /* von links – dort sitzt der Menü-Knopf */
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 100%; max-width: 420px; background: #f7f0e9;
  transform: translateX(-100%); transition: transform .28s ease;
  overflow: hidden; display: flex; box-shadow: 8px 0 30px rgba(0,0,0,.18);
}
.wcbr-mm.is-open .wcbr-mm__drawer { transform: translateX(0); }

/* Panels: Ebene 1 + Slide-in Ebene 2 */
.wcbr-mm__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: #f7f0e9; transform: translateX(100%); transition: transform .26s ease;
}
.wcbr-mm__panel.is-active { transform: translateX(0); }
.wcbr-mm__panel { max-width: 100%; }
.wcbr-mm__panel--main { position: relative; flex: 1 1 100%; min-width: 0; width: 100%; }

.wcbr-mm__head {
  background: #8e153c; color: #f5f5f5; flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
}
.wcbr-mm__title {
  font-family: 'Amatic SC', cursive; font-size: 32px; line-height: 1;
  letter-spacing: 1px; flex: 1 1 auto;
}
.wcbr-mm__title--sub { font-size: 27px; }
.wcbr-mm__iconbtn {
  background: none; border: 0; color: #f5f5f5; padding: 8px; margin: -8px 0;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.wcbr-mm__body { flex: 1 1 auto; max-width: 100%; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px 18px; }

.wcbr-mm__greet {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 14px; padding: 10px 12px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(60,20,30,.07);
}
.wcbr-mm__avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #8e153c; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font-family: 'Amatic SC', cursive; font-size: 21px; letter-spacing: 1px;
}
.wcbr-mm__greet-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wcbr-mm__greet-txt strong { font-size: 14.5px; color: #3a2b2b; }
.wcbr-mm__greet-txt small { font-size: 12px; color: #6b5e58; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcbr-mm__avatar svg { display: block; }
.wcbr-mm__greet-link {
  display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px;
  font-weight: 600; color: #8e153c; text-decoration: none; white-space: nowrap;
}

.wcbr-mm__search {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1.5px solid #8e153c; border-radius: 999px; padding: 11px 16px;
  color: #8e153c; margin-bottom: 12px;
}
.wcbr-mm__search input[type="search"] {
  border: 0; outline: 0; background: none; flex: 1 1 auto; min-width: 0;
  font-size: 16px; color: #3a2b2b; padding: 0; /* 16px: verhindert iOS-Auto-Zoom */
}
.wcbr-mm__search input[type="search"]::placeholder { color: #6b5e58; }

.wcbr-mm__chips { display: flex; gap: 8px; margin-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.wcbr-mm__chips::-webkit-scrollbar { display: none; }
.wcbr-mm__chip {
  border-radius: 999px; padding: 9px 13px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; text-decoration: none; flex: 0 0 auto;
  background: #fff; color: #8e153c; border: 1.5px solid #d9c4bc;
}
.wcbr-mm__chip--primary { background: #8e153c; color: #fff; border-color: #8e153c; font-weight: 600; }

.wcbr-mm__heading {
  font-family: 'Amatic SC', cursive; font-size: 26px; color: #8e153c; padding: 12px 2px 8px;
}

.wcbr-mm__cards { display: flex; flex-direction: column; gap: 8px; }
.wcbr-mm__card {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 0; border-radius: 14px; padding: 9px 12px; width: 100%;
  box-shadow: 0 1px 3px rgba(60,20,30,.07); cursor: pointer;
  text-align: left; text-decoration: none; color: #8e153c; font: inherit;
}
.wcbr-mm__card img, .wcbr-mm__card picture {
  width: 52px !important; height: 52px !important; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto; overflow: hidden; display: block; max-width: 52px;
}
.wcbr-mm__card picture img { width: 100% !important; height: 100% !important; max-width: none; }
.wcbr-mm__thumb-fallback {
  width: 52px; height: 52px; border-radius: 50%; background: #8e153c; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font-family: 'Amatic SC', cursive; font-size: 24px; letter-spacing: 1px;
}
.wcbr-mm__thumb-fallback--sm { width: 42px; height: 42px; font-size: 20px; }
.wcbr-mm__card-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wcbr-mm__card-txt strong { font-size: 15.5px; font-weight: 600; color: #3a2b2b; }
.wcbr-mm__card-txt small {
  font-size: 12.5px; color: #6b5e58;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.wcbr-mm__card--sale { background: #8e153c; }
.wcbr-mm__card--sale .wcbr-mm__card-txt strong { color: #fff; }
.wcbr-mm__card--sale { color: #fff; }
.wcbr-mm__sale-icon {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff;
}

.wcbr-mm__foot {
  flex: 0 0 auto; border-top: 1px solid #e6dbd2; background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px calc(13px + env(safe-area-inset-bottom));
}
.wcbr-mm__foot a {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  color: #3a2b2b; font-size: 13.5px; font-weight: 500; min-height: 44px;
}
.wcbr-mm__foot a svg { color: #8e153c; }
.wcbr-mm__pay { font-size: 11.5px; color: #6b5e58; }

.wcbr-mm__all {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border: 1.5px solid #8e153c; border-radius: 12px;
  padding: 12px 16px; color: #8e153c; text-decoration: none;
  font-size: 14.5px; font-weight: 600; margin-bottom: 8px;
}

.wcbr-mm__sublist { list-style: none; margin: 0; padding: 0; }
.wcbr-mm__sublist li { border-bottom: 1px solid #ece1d8; }
.wcbr-mm__sublist li:last-child { border-bottom: 0; }
.wcbr-mm__sublist a {
  display: flex; align-items: center; gap: 12px; padding: 8px 4px;
  min-height: 52px; text-decoration: none; color: #b9a79e;
}
.wcbr-mm__sublist a img, .wcbr-mm__sublist a picture {
  width: 42px !important; height: 42px !important; border-radius: 50%; object-fit: cover;
  flex: 0 0 auto; overflow: hidden; display: block; max-width: 42px;
}
.wcbr-mm__sublist a picture img { width: 100% !important; height: 100% !important; max-width: none; }
.wcbr-mm__sublist a > span:not(.wcbr-mm__thumb-fallback) {
  flex: 1 1 auto; font-size: 14.5px; font-weight: 500; color: #3a2b2b;
}

/* Theme-Overrides neutralisieren: #id schlägt Astra/Elementor-Selektoren */
#wcbr-mm { font-size: 15px; line-height: 1.4; }
#wcbr-mm a { text-decoration: none; }
#wcbr-mm .wcbr-mm__chip { background: #fff; color: #8e153c; }
#wcbr-mm .wcbr-mm__chip--primary { background: #8e153c !important; color: #ffffff !important; border-color: #8e153c; }
#wcbr-mm .wcbr-mm__card-txt strong { font-size: 14.5px; color: #3a2b2b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
#wcbr-mm .wcbr-mm__card--sale .wcbr-mm__card-txt strong { color: #ffffff; }
#wcbr-mm .wcbr-mm__card-txt small {
  font-size: 12.5px; color: #6b5e58; white-space: normal; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: clip;
}
#wcbr-mm .wcbr-mm__greet-txt strong { color: #3a2b2b; }
#wcbr-mm .wcbr-mm__foot a { color: #3a2b2b; }
#wcbr-mm .wcbr-mm__all { color: #8e153c; background: #fff; }
#wcbr-mm .wcbr-mm__head { color: #f5f5f5; }
#wcbr-mm .wcbr-mm__iconbtn { color: #f5f5f5; background: none; border: 0; }
#wcbr-mm button.wcbr-mm__card { background: #fff; }
#wcbr-mm button.wcbr-mm__card--sale, #wcbr-mm a.wcbr-mm__card--sale { background: #8e153c; }

body.wcbr-mm-lock { overflow: hidden; }

/* Konto + Warenkorb ganz oben */
.wcbr-mm__konto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
#wcbr-mm .wcbr-mm__konto a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 12px;
  background: #fff; border: 1.5px solid #e6dbd2; border-radius: 14px; color: #8e153c;
  font-size: 14.5px; font-weight: 600; box-shadow: 0 1px 3px rgba(60,20,30,.07);
}
.wcbr-mm__n {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #8e153c; color: #fff;
  font-size: 12px; line-height: 22px; text-align: center; box-sizing: border-box;
}
.wcbr-mm__n[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .wcbr-mm__drawer, .wcbr-mm__panel { transition: none; } }
