#categoryBrowser .category-browser-panel,
#categoryBrowser.b24-open-level-1 .category-browser-panel,
#categoryBrowser.b24-open-level-2 .category-browser-panel {
  width: min(340px, calc(100vw - 24px)) !important;
  max-width: min(340px, calc(100vw - 24px)) !important;
  height: min(360px, var(--b24-dropdown-max-height, 360px)) !important;
  max-height: min(360px, var(--b24-dropdown-max-height, 360px)) !important;
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

#categoryBrowser .category-browser-head {
  display: flex !important;
  min-height: 46px;
  padding: 7px 10px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e7edf3;
  background: #fff !important;
}

#categoryBrowser .category-browser-head > div {
  flex: 1;
  min-width: 0;
}

#categoryBrowser .category-browser-head h2 {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
}

#categoryBrowser .category-browser-kicker,
#categoryBrowser .category-browser-close,
#categoryBrowser .category-browser-trail,
#categoryBrowser .category-browser-column > h3 {
  display: none !important;
}

#categoryBrowser .category-browser-back {
  display: none !important;
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border: 0;
  background: #f3f6fa !important;
}

#categoryBrowser[data-mobile-step="2"] .category-browser-back,
#categoryBrowser[data-mobile-step="3"] .category-browser-back {
  display: grid !important;
}

#categoryBrowser .category-browser-columns {
  display: block !important;
  width: 100%;
  height: calc(100% - 46px);
}

#categoryBrowser .category-browser-column,
#categoryBrowser .category-browser-column-main,
#categoryBrowser .category-browser-column-branches,
#categoryBrowser .category-browser-column-leaves,
#categoryBrowser.b24-open-level-1 .category-browser-column-branches,
#categoryBrowser.b24-open-level-2 .category-browser-column-branches,
#categoryBrowser.b24-open-level-2 .category-browser-column-leaves {
  display: none !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 100%;
  border-left: 0;
}

#categoryBrowser[data-mobile-step="1"] .category-browser-column-main,
#categoryBrowser[data-mobile-step="2"] .category-browser-column-branches,
#categoryBrowser[data-mobile-step="3"] .category-browser-column-leaves {
  display: block !important;
}

#categoryBrowser .category-browser-list {
  padding: 6px 8px 10px;
}

#categoryBrowser .category-browser-row {
  min-height: 42px;
  padding: 7px 9px;
}

#smartAdForm .compact-upload {
  width: min(100%, 290px);
  min-height: 72px;
  padding: 10px 12px;
  display: flex;
  place-items: initial;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border-color: #a8bdd4;
  background: #fbfdff !important;
  text-align: right;
}

#smartAdForm .compact-upload:hover,
#smartAdForm .compact-upload:focus-within {
  border-color: var(--brand);
  background: #f3f8ff !important;
}

#smartAdForm .upload-plus {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font:
    700 26px/1 Arial,
    sans-serif;
}

#smartAdForm .upload-copy {
  min-width: 0;
  display: block;
}

#smartAdForm .upload-copy b,
#smartAdForm .upload-copy small {
  display: block;
}

#smartAdForm .upload-copy b {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 15px;
}

#smartAdForm .upload-copy small {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

#smartAdForm .b24-tuv-field {
  position: relative;
  grid-column: 1 / -1;
  padding: 15px 16px;
  border: 1px solid #d5e4f3;
  border-radius: 10px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  box-shadow: 0 6px 18px rgba(52, 118, 196, 0.06);
}

#smartAdForm .b24-tuv-field > label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #123a63;
}

#smartAdForm .b24-tuv-field > label::before {
  content: "✓";
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  border-radius: 50%;
  background: #eaf1f8;
  color: var(--brand);
  font:
    800 15px/1 Arial,
    sans-serif;
}

#smartAdForm .b24-tuv-control {
  max-width: 340px;
  border-color: #b9cee4;
  background: #fff !important;
}

#smartAdForm .b24-latin-number {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
  font-family: Arial, "Segoe UI", sans-serif !important;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings:
    "locl" 0,
    "tnum" 1;
}

@media (max-width: 620px) {
  #smartAdForm .compact-upload {
    width: 100%;
  }
  #smartAdForm .b24-tuv-control {
    max-width: none;
  }
}
.intent-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.b24-label-with-help {
  display: flex !important;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
}
.b24-help-dot {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #3476c4;
  color: #fff;
  font:
    800 13px/20px Arial,
    sans-serif;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(52, 118, 196, 0.25);
}
.b24-help-popover {
  position: fixed;
  z-index: 10050;
  max-width: min(330px, calc(100vw - 28px));
  padding: 11px 13px;
  border-radius: 12px;
  background: #10233f;
  color: #fff;
  font-size: 12px;
  line-height: 1.8;
  box-shadow: 0 12px 30px rgba(30, 97, 175, 0.25);
}
.b24-help-popover:after {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  border-width: 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent #10233f;
}
.b24-price-disabled {
  opacity: 0.58;
  background: #eef2f7 !important;
  cursor: not-allowed !important;
  color: #667085 !important;
}
.b24-direction-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.b24-direction-choice label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #d6dfeb;
  border-radius: 13px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.b24-direction-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.b24-direction-choice label:has(input:checked) {
  border-color: #3476c4;
  background: #eaf1f8;
  color: #1e61af;
  box-shadow: 0 0 0 2px rgba(52, 118, 196, 0.08);
}
.b24-other-service.hidden {
  display: none !important;
}
.b24-free-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #d6dfeb;
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.b24-free-check input {
  width: 19px;
  height: 19px;
  accent-color: #3476c4;
}
@media (max-width: 900px) {
  .intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .intent-grid {
    grid-template-columns: 1fr;
  }
  .b24-direction-choice {
    grid-template-columns: 1fr 1fr;
  }
}
