/*
 * Suchauftrag-Dialog der Kleinanzeigen-Übersicht (mu-plugins/o4u-suchauftrag.php,
 * js/o4u-suchauftrag.js). Desktop: Karte in der Mitte. Handy bis 600 px: Blatt von unten.
 *
 * Schrift: keine eigene. listeo-child/style.css setzt "Work Sans" direkt auf div, p, span,
 * h2, button und input (inspect_listeo_conflict.py, /kleinanzeigen/, 10.10.2026); eine
 * Schrift am Dialog würde deshalb ohnehin nicht vererbt. Knopf und Feld erben sie über
 * font-family: inherit.
 * Alle Regeln mit .o4u-sa davor (Spezifität 0,2,0), damit Listeos input[type="email"]
 * (0,1,1: Höhe 51 px, Rand unten 16 px, Schatten) und h2 (30 px, Rand oben 20 px) nicht
 * durchschlagen.
 */

.o4u-sa {
  border: 0;
  padding: 0;
  margin: auto;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  -webkit-font-smoothing: antialiased;
}

.o4u-sa::backdrop {
  background: rgba(29, 29, 31, .45);
}

.o4u-sa *,
.o4u-sa *::before,
.o4u-sa *::after {
  box-sizing: border-box;
}

.o4u-sa .o4u-sa__in {
  padding: 22px 24px 24px;
}

.o4u-sa .o4u-sa__kopf {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

.o4u-sa .o4u-sa__glocke {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff4ec;
  color: #fe6e0e;
}

.o4u-sa .o4u-sa__glocke svg {
  width: 19px;
  height: 19px;
}

.o4u-sa .o4u-sa__titel {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #1d1d1f;
}

.o4u-sa .o4u-sa__zu {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  margin: -6px -8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6e6e73;
  box-shadow: none;
  cursor: pointer;
}

.o4u-sa .o4u-sa__zu:hover,
.o4u-sa .o4u-sa__zu:focus-visible {
  background: #f5f5f7;
  color: #1d1d1f;
}

.o4u-sa .o4u-sa__zu svg {
  width: 20px;
  height: 20px;
}

.o4u-sa .o4u-sa__suche {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4ec;
  font-size: 15px;
  line-height: 1.45;
  color: #1d1d1f;
}

.o4u-sa .o4u-sa__suche-kl {
  display: block;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a84400;
}

.o4u-sa .o4u-sa__label {
  font-weight: 700;
  color: #1d1d1f;
  overflow-wrap: anywhere;
}

.o4u-sa .o4u-sa__info {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #424245;
}

.o4u-sa .o4u-sa__form {
  margin: 0;
}

.o4u-sa .o4u-sa__feld-kl {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #1d1d1f;
}

.o4u-sa .o4u-sa__email {
  display: block;
  width: 100%;
  max-width: none;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: #1d1d1f;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
}

.o4u-sa .o4u-sa__email::placeholder {
  color: #9a9aa0;
}

.o4u-sa .o4u-sa__email:focus {
  outline: 0;
  border-color: #fe6e0e;
  box-shadow: 0 0 0 3px rgba(254, 110, 14, .18);
}

.o4u-sa .o4u-sa__email[aria-invalid="true"] {
  border-color: #c62828;
}

.o4u-sa .o4u-sa__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.o4u-sa .o4u-sa__hinweis {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6e6e73;
}

.o4u-sa .o4u-sa__hinweis a {
  color: #6e6e73;
  text-decoration: underline;
}

.o4u-sa .o4u-sa__fehler {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #c62828;
}

.o4u-sa .o4u-sa__knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  margin: 16px 0 0;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: #fe6e0e;
  box-shadow: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
}

.o4u-sa .o4u-sa__knopf:hover {
  background: #ea6200;
  color: #fff;
}

.o4u-sa .o4u-sa__knopf:focus-visible {
  outline: 3px solid rgba(254, 110, 14, .35);
  outline-offset: 2px;
}

.o4u-sa .o4u-sa__knopf[disabled] {
  opacity: .6;
  cursor: default;
}

.o4u-sa .o4u-sa__knopf--hell,
.o4u-sa .o4u-sa__knopf--hell:hover {
  background: #f5f5f7;
  color: #1d1d1f;
}

.o4u-sa .o4u-sa__teil-ok {
  padding: 4px 0 0;
  text-align: center;
}

.o4u-sa .o4u-sa__ok-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff4ec;
  color: #fe6e0e;
}

.o4u-sa .o4u-sa__ok-icon svg {
  width: 26px;
  height: 26px;
}

.o4u-sa .o4u-sa__ok-titel {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: #1d1d1f;
}

.o4u-sa .o4u-sa__ok-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #424245;
  overflow-wrap: anywhere;
}

/* Hintergrund nicht mitscrollen, solange der Dialog offen ist. */
html.o4u-sa-offen,
html.o4u-sa-offen body {
  overflow: hidden;
}

/* Handy: Blatt von unten. */
@media (max-width: 600px) {
  .o4u-sa {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
  }

  .o4u-sa[open] {
    animation: o4u-sa-hoch .22s ease-out;
  }

  .o4u-sa .o4u-sa__in {
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .o4u-sa .o4u-sa__in::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 2px;
    background: #d2d2d7;
  }
}

@keyframes o4u-sa-hoch {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .o4u-sa[open] {
    animation: none;
  }
}

/* Zuletzt: [hidden] gewinnt gegen die Anzeige-Regeln oben (gleiche Spezifität, später). */
.o4u-sa [hidden] {
  display: none;
}
