/**
 * BeautyHills – Service / Legal / About / Kontakt
 *
 * DAUERHAFT getrennt von style.css (wird von parallelen Agents oft überschrieben).
 * Enqueue: functions.php → beautyhills-service (nach style.css, filemtime-Version).
 *
 * Enthält:
 * - Legal-/Service-Seiten (Hero, Body, Switcher)
 * - Basis-Layout (cp-intro + cp-content-blocks) für Service/Legal/Rückgabe
 * - Sticky Abschnitts-Navi (.legal-toc) für Datenschutz/AGB/Über-uns
 * - Versand/Zahlung Highlights + FAQ
 * - Kontakt-/Partner-Formulare
 */

/* =====================================================
   BASIS-LAYOUT (wie Hautanalyse) für Legal/Service
   ===================================================== */

.bh-basis-page .bh-basis-intro .cp-intro-content {
  margin-top: 1.5rem;
}

.bh-basis-page .bh-basis-intro .cp-intro-text {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

/* Einzeilige Titles (ohne Light-Zeile): Unterstrich wie Basis-Layout */
.bh-basis-intro .cp-intro-headline:not(:has(.section-headline-light)) .section-headline-bold.block {
  width: fit-content;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #000;
}

.bh-basis-page .cp-content-blocks.legal-body-wrap {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.bh-basis-page .cp-content-blocks .cp-section-header {
  margin-bottom: 2rem;
}

.bh-basis-page .cp-content-blocks .legal-body {
  max-width: none;
}

.bh-basis-page.bh-service-page .cp-content-blocks .legal-body {
  max-width: none;
}

/* =====================================================
   LEGAL / ABOUT HERO + BODY
   ===================================================== */

.legal-page .legal-hero {
  padding: 3.5rem 0 2rem;
  background: linear-gradient(180deg, #f7f5f2 0%, #ffffff 100%);
}

.legal-page .legal-kicker {
  display: block;
  margin-bottom: 1rem;
}

.legal-page .legal-hero-title {
  margin: 0;
}

.legal-page .legal-hero-intro {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.legal-page .legal-body-wrap {
  padding: 2rem 0 4rem;
}

.legal-page .legal-body {
  max-width: 48rem;
}

.legal-page .legal-body h2 {
  margin: 2rem 0 0.75rem;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-page .legal-body p {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.legal-page .legal-body a {
  color: #000;
  text-decoration: underline;
}

/* Sticky Abschnitts-Navi (Rechtstexte) – beige Leiste + schwarze Pillen
 * LOCKED: nicht entfernen / nicht durch overflow an Ancestors brechen. */
.legal-toc {
  position: -webkit-sticky;
  position: sticky;
  top: var(--bh-header-height, 120px);
  z-index: 45;
  background: #F7F2EA;
  border-top: 1px solid #ebe4d8;
  border-bottom: 1px solid #ebe4d8;
}

/* overflow-x:hidden an html/body killt sticky – auf Legal-Seiten clip nutzen */
body.page-template-page-legal,
body.page-template-page-legal #page,
body.page-template-page-legal main#content {
  overflow-x: clip;
}

.legal-toc > .container-bh {
  overflow: visible;
}

.legal-toc-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.4rem 0.45rem;
  padding: 0.85rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.legal-toc-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0.4rem 0.85rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.legal-toc-link:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
}

.legal-toc-link.is-active {
  color: #fff;
  background: #000;
}

.legal-page .legal-body h2,
.legal-page .legal-body h3,
.legal-page .legal-body h4 {
  scroll-margin-top: calc(var(--bh-header-height, 120px) + 64px);
}

.legal-page .legal-body h2 .legal-num,
.legal-page .legal-body h3 .legal-num,
.legal-page .legal-body h4 .legal-num {
  color: #E6503E;
  margin-right: 0.15rem;
}

.legal-page .legal-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 15px;
  font-weight: 700;
  color: #222;
}

.legal-page .legal-body h4 {
  margin: 1.15rem 0 0.4rem;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.legal-page .legal-body ul.legal-list,
.legal-page .legal-body ol.legal-clauses,
.legal-page .legal-body ul,
.legal-page .legal-body ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.legal-page .legal-body ul.legal-list,
.legal-page .legal-body ul {
  list-style: disc;
}

.legal-page .legal-body ol.legal-clauses,
.legal-page .legal-body ol {
  list-style: decimal;
}

.legal-page .legal-body li::marker {
  color: #000;
}

.legal-page .legal-body ul.legal-list li,
.legal-page .legal-body ol.legal-clauses li,
.legal-page .legal-body li {
  margin: 0 0 0.4rem;
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}

.legal-identity,
.legal-address-card {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.4rem;
  background: #f7f5f2;
  border: 1px solid #ebe4d8;
}

.legal-company {
  margin: 0 0 0.5rem !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.legal-address {
  margin: 0 0 1rem !important;
}

.legal-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.legal-dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 0.5rem 1rem;
}

@media (max-width: 560px) {
  .legal-dl > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.legal-dl dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
}

.legal-dl dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #222;
}

.legal-hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 12px;
  color: #777;
}

.about-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Wirkstoffe (Content-Page): gleiche Navi-Buttons wie Marke/Herstellung */
.cp-intro .about-hero-actions.cp-about-nav {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.inci-explainer-hero .about-hero-actions {
  margin-top: 1.5rem;
}

.cp-intro .cp-buttons {
  margin-top: 1rem;
}

.about-page .legal-body {
  max-width: 42rem;
}

@media (max-width: 767px) {
  .legal-page .legal-hero {
    padding: 2.25rem 0 1.35rem;
  }

  .legal-toc-inner {
    padding: 0.7rem 0;
    gap: 0.3rem 0.35rem;
  }

  .legal-toc-link {
    padding: 0.35rem 0.7rem;
    font-size: 10px;
  }
}

.legal-switcher,
.bh-service-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Service-Navi im Hero (wie Über-uns): ohne Trennlinie unten */
.legal-hero .about-hero-actions.bh-service-switcher,
.bh-basis-intro .about-hero-actions.bh-service-switcher {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: none;
}

/* =====================================================
   SERVICE HIGHLIGHTS / FAQ / ZAHLUNG
   ===================================================== */

.bh-service-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2.5rem;
}

@media (min-width: 768px) {
  .bh-service-highlights {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bh-service-highlight {
  padding: 1.15rem 1rem;
  background: #fff7f5;
  border: 1px solid #f0d2cb;
  text-align: center;
}

.bh-service-highlight__value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #E6503E;
  line-height: 1.2;
}

.bh-service-highlight__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  line-height: 1.35;
}

.bh-service-faq__item {
  margin: 0 0 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.bh-service-faq__item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-page .legal-body ul.bh-payment-methods,
.bh-service-body ul.bh-payment-methods,
.bh-payment-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  gap: 0.85rem;
}

.legal-page .legal-body ul.bh-payment-methods > li,
.bh-service-body ul.bh-payment-methods > li,
.bh-payment-method {
  list-style: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 !important;
  padding: 1.15rem 1.25rem !important;
  border: 1px solid #e8e8e8;
  background: #fff;
}

.legal-page .legal-body ul.bh-payment-methods > li::marker,
.bh-payment-method::marker {
  content: none;
}

.bh-payment-method__icon {
  flex: 0 0 88px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 88px;
  min-width: 88px;
  height: 56px;
  margin: 0;
  padding: 0.35rem 0.5rem;
  background: #f5f5f5;
  border: 1px solid #eee;
  box-sizing: border-box;
}

.bh-payment-method__icon img {
  display: block !important;
  width: auto !important;
  max-width: 72px !important;
  height: 28px !important;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
}

.bh-payment-method--uberweisung .bh-payment-method__icon img,
.bh-payment-method--karte .bh-payment-method__icon img {
  height: 34px !important;
  max-width: 64px !important;
}

.bh-payment-method__body {
  flex: 1 1 auto;
  min-width: 0;
  display: block !important;
}

.bh-payment-method h2,
.bh-payment-method__body h2 {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bh-payment-method p,
.bh-payment-method__body p {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: auto !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #333 !important;
}

@media (max-width: 640px) {
  .legal-page .legal-body ul.bh-payment-methods > li,
  .bh-payment-method {
    gap: 0.85rem;
    padding: 1rem !important;
  }

  .bh-payment-method__icon {
    flex-basis: 72px;
    width: 72px;
    min-width: 72px;
    height: 48px;
  }

  .bh-payment-method__icon img {
    max-width: 58px !important;
    height: 24px !important;
  }
}

.bh-service-note {
  margin-top: 1.5rem !important;
  font-size: 13px !important;
  color: #000 !important;
}

/* =====================================================
   KONTAKT / RETOURE LAYOUT
   ===================================================== */

.contact-layout,
.bh-retoure-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout,
  .bh-retoure-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.bh-retoure-aside h2 {
  margin: 0 0 0.75rem;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bh-retoure-aside p {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.contact-aside.legal-identity {
  margin-top: 0;
}

/* =====================================================
   PARTNER / KONTAKT FORMULARE
   ===================================================== */

.partner-signup-box,
.contact-form-box {
  max-width: 720px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2.5rem;
  background: #fff;
}

/* Widerruf-Online-Formular: Adresse als Karte vor dem Formular */
.legal-page.page-widerruf .legal-body > p:has(> strong:first-child) {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.95rem;
  line-height: 1.6;
}

.partner-form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.partner-form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.partner-form-group--plz,
.partner-form-group--wide {
  flex: 1;
}

.partner-form-group--plz {
  flex: 0 0 140px;
}

.partner-form-group label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #000;
}

.partner-form-group input,
.partner-form-group select,
.partner-form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  width: 100%;
}

.partner-form-group input:focus,
.partner-form-group select:focus,
.partner-form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.partner-form-group .required,
.partner-checkbox-group .required {
  color: #E63946;
}

.partner-form-row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .partner-form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.partner-checkbox-group,
.partner-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.partner-checkbox-group input,
.partner-privacy input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.partner-checkbox-group a,
.partner-privacy a {
  color: #000;
  text-decoration: underline;
}

.partner-submit-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.15rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s;
}

.partner-submit-btn:hover {
  background: #333;
}

.partner-submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.partner-signup-message {
  display: none;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  font-size: 14px;
}

.partner-signup-message.is-visible {
  display: block;
}

.partner-signup-message.is-success {
  background: #e8f6ec;
  color: #1a5c2e;
}

.partner-signup-message.is-error {
  background: #fdecea;
  color: #8a1f11;
}

.bh-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .partner-signup-box,
  .contact-form-box {
    padding: 1.5rem;
  }

  .partner-form-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .partner-form-group--plz {
    flex: 1;
  }
}

/* =====================================================
   CONTENT-BLOCKS
   Bild füllt das Quadrat (cover) — keine Letterbox-Streifen
   ===================================================== */

.cp-block-image {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f3f1ef;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-block-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  aspect-ratio: auto !important;
}

/* =====================================================
   STARTSEITE BEWERTUNGEN — LAYOUT LOCKED
   Linker beige Kreis-CTA + rechte Spalten:
   kursiver Text, Name groß, Sterne DARUNTER, Haarlinien.
   style.css-Änderungen an .bewertung-* hier überschreiben.
   ===================================================== */

.section-bewertungen .bewertungen-layout {
  align-items: center !important;
}

.section-bewertungen .bewertungen-cta-circle {
  border-radius: 50% !important;
  background-color: #F0E6D8 !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Mobile: echter Kreis (nicht hochgezogenes Oval durch Content-min-height) */
@media (max-width: 1023px) {
  .section-bewertungen .bewertungen-cta {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .section-bewertungen .bewertungen-cta-circle {
    --bh-bewertungen-kreis: min(85vw, 320px);
    width: var(--bh-bewertungen-kreis) !important;
    height: var(--bh-bewertungen-kreis) !important;
    max-width: var(--bh-bewertungen-kreis) !important;
    max-height: var(--bh-bewertungen-kreis) !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    padding: 1.6rem 1.35rem !important;
  }

  .section-bewertungen .bewertungen-cta-circle .bewertungen-headline {
    font-size: 16px !important;
    margin-bottom: 0.55rem !important;
  }

  .section-bewertungen .bewertungen-cta-circle .bewertungen-text {
    font-size: 12px !important;
    line-height: 1.45 !important;
    max-width: 13.5rem !important;
    margin-bottom: 0.45rem !important;
  }

  .section-bewertungen .bewertungen-cta-circle .bewertungen-text-note {
    font-size: 10px !important;
    line-height: 1.4 !important;
    max-width: 12.5rem !important;
    margin-bottom: 0.75rem !important;
  }

  .section-bewertungen .bewertungen-cta-circle .bewertungen-quote-icon {
    margin-bottom: 0.5rem !important;
  }

  .section-bewertungen .bewertungen-cta-circle .bewertungen-quote-icon img {
    width: 40px !important;
  }

  .section-bewertungen .bewertungen-cta-circle .bewertungen-cta-btn {
    padding: 0.45rem 1rem !important;
    font-size: 11px !important;
  }
}

.section-bewertungen .bewertungen-reviews {
  align-self: center !important;
}

.section-bewertungen .bewertungen-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  height: auto !important;
  align-items: stretch !important;
}

@media (max-width: 1023px) {
  .section-bewertungen .bewertungen-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 0.75rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .section-bewertungen .bewertungen-grid .bewertung-card {
    flex: 0 0 calc((100% - 0.75rem) / 2 - 10px) !important;
    width: calc((100% - 0.75rem) / 2 - 10px) !important;
    min-width: 0 !important;
    border-right: none !important;
    padding: 0 !important;
    scroll-snap-align: start;
  }
}

.section-bewertungen .bewertung-card {
  height: auto !important;
}

@media (min-width: 1024px) {
  .section-bewertungen .bewertungen-grid .bewertung-card {
    padding: 0 1.15rem !important;
    border-right: 1px solid #e5e5e5 !important;
  }

  .section-bewertungen .bewertungen-grid .bewertung-card:first-child {
    padding-left: 0 !important;
  }

  .section-bewertungen .bewertungen-grid .bewertung-card:last-child {
    border-right: none !important;
    padding-right: 0 !important;
  }
}

.section-bewertungen .bewertung-meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  margin-top: auto !important;
  padding-top: 0.85rem !important;
}

.section-bewertungen .bewertung-text {
  font-style: italic !important;
}

.section-bewertungen .bewertung-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #000 !important;
}

.section-bewertungen .bewertung-sterne .stern.gefuellt {
  color: #6b6b6b !important;
}

.section-bewertungen .bewertung-sterne .stern.leer {
  color: #c8c8c8 !important;
}

/* =====================================================
   WYSIWYG-LISTEN — LAYOUT LOCKED
   Tailwind Preflight: ol, ul { list-style: none }.
   Content-Seiten (Behandlungen), Standard-Pages, FAQ:
   echte Aufzählungs-/Nummerierungszeichen + Einzug.
   Nicht anfassen: Navi, .legal-toc, Icon-Listen, Payment-Grids.
   ===================================================== */

.cp-block-text ul,
.cp-extended-text ul,
.page-entry-content ul,
.bh-faq__answer-content ul,
.bh-magazin-faq-answer ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

.cp-block-text ol,
.cp-extended-text ol,
.page-entry-content ol,
.bh-faq__answer-content ol,
.bh-magazin-faq-answer ol {
  list-style: decimal;
  list-style-position: outside;
  margin: 0 0 1.25rem 0;
  padding-left: 1.5rem;
}

.cp-block-text li,
.cp-extended-text li,
.page-entry-content li,
.bh-faq__answer-content li,
.bh-magazin-faq-answer li {
  display: list-item;
  margin-bottom: 0.35rem;
}

.cp-block-text li::marker,
.cp-extended-text li::marker,
.page-entry-content li::marker,
.bh-faq__answer-content li::marker,
.bh-magazin-faq-answer li::marker {
  color: #000;
}

.cp-block-text ul ul,
.cp-extended-text ul ul,
.page-entry-content ul ul {
  list-style: circle;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.cp-block-text ol ol,
.cp-extended-text ol ol,
.page-entry-content ol ol {
  list-style: lower-alpha;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.cp-block-text ul.hauttypen-icons,
.cp-extended-text ul.hauttypen-icons {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* =====================================================
   KONTO LOGIN/REGISTER BUTTONS — LAYOUT LOCKED
   Pills (keine volle Breite), Abstand zum Text darüber.
   ===================================================== */

.bh-account-page .woocommerce-form button.button,
.bh-account-page form.woocommerce-ResetPassword button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 0.5rem 1.35rem !important;
  border-radius: 999px;
  white-space: nowrap;
}

.bh-account-page .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
}

.bh-account-page .woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) .woocommerce-form-login__submit {
  margin-top: 0;
}

.bh-account-page form.woocommerce-form-register > p:not(.form-row) {
  margin: 0 0 1.15rem;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
}

/* =====================================================
   KLAVIYO ONSITE LEFTOVERS — LAYOUT LOCKED
   Nach Close: nested Fullscreen-Layer
   (kl-private-reset-css / goober under data-bh-klaviyo-host)
   behalten pe:auto und schlagen Ancestor-pe:none.
   Zusätzlich: stuck [role=dialog] mid klaviyo-fadeout mit
   display:flex + rgba-Backdrop — data-bh-klaviyo-closed greift
   auch solange body noch klaviyo-prevent-body-scrolling hat.
   Offenes Popup (ohne closed-Marker, ohne Fadeout) bleibt bedienbar.
   ===================================================== */

/* Force-closed dialogs — even while body lock class still present */
[data-bh-klaviyo-closed="1"],
[data-bh-klaviyo-closed="1"] * {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  animation: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

body:not(.klaviyo-prevent-body-scrolling) [data-bh-klaviyo-neutralized="1"],
body:not(.klaviyo-prevent-body-scrolling) [data-bh-klaviyo-neutralized="1"] * {
  pointer-events: none !important;
  visibility: hidden !important;
}

body:not(.klaviyo-prevent-body-scrolling) [data-bh-klaviyo-host="1"],
body:not(.klaviyo-prevent-body-scrolling) [data-bh-klaviyo-host="1"] * {
  pointer-events: none !important;
}

body:not(.klaviyo-prevent-body-scrolling) [class*="kl-private-reset-css"] {
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Leftover scroll-locking modal after dismiss (lock already cleared) */
body:not(.klaviyo-prevent-body-scrolling) [role="dialog"][data-kl-scroll-locking-modal] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  animation: none !important;
}

body:not(.klaviyo-prevent-body-scrolling) [class*="kl-teaser-"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body:not(.klaviyo-prevent-body-scrolling) iframe[src*="klaviyo"],
body:not(.klaviyo-prevent-body-scrolling) iframe[src*="static.klaviyo"] {
  pointer-events: none !important;
  visibility: hidden !important;
}
