:root {
  --green: #168346;
  --green2: #0f9d58;
  --ink: #18372a;
  --muted: #687a71;
  --line: #dbe9e1;
  --soft: #f2faf5;
  --white: #fff;
  --danger: #c62828;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Naskh Arabic UI", "Noto Naskh Arabic", Cairo, Arial, sans-serif;
  background: #f5f8f6;
  color: var(--ink);
}
button,
input,
select,
textarea {
  font: inherit;
}
.topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid #e5ede8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 920px) / 2));
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  text-decoration: none;
  font-size: 25px;
  font-weight: 700;
  color: var(--green);
}
.brand span {
  color: #ff7c24;
}
.close {
  text-decoration: none;
  color: #527064;
  font-size: 34px;
  line-height: 1;
}
.shell {
  width: min(900px, calc(100% - 28px));
  margin: 34px auto 70px;
}
.card {
  background: #fff;
  border: 1px solid #e2ece6;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(31, 84, 57, 0.07);
}
.intent-card {
  padding: 48px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  color: var(--green);
  background: #eaf7ef;
  border-radius: 99px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
}
.intent-card h1 {
  font-size: 34px;
  margin: 14px 0 5px;
}
.intent-card p {
  color: var(--muted);
  margin: 0 0 30px;
}
.intent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.intent-option {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 27px 18px;
  cursor: pointer;
  color: var(--ink);
  transition: 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intent-option:hover,
.intent-option:focus-visible {
  border-color: var(--green2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(22, 131, 70, 0.1);
  outline: none;
}
.intent-icon {
  font-size: 34px;
  background: var(--soft);
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 12px;
}
.intent-option b {
  direction: ltr;
  color: var(--green);
  font-size: 17px;
}
.intent-option strong {
  font-size: 20px;
}
.intent-option small {
  color: var(--muted);
  margin-top: 4px;
}
.hidden {
  display: none !important;
}
.form-card {
  padding: 0 38px 38px;
}
.form-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 0 20px;
}
.form-head h1 {
  font-size: 27px;
  margin: 4px 0 0;
}
.back {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 21px;
}
.badge {
  font-size: 12px;
  color: var(--green);
  background: #eaf7ef;
  padding: 4px 10px;
  border-radius: 99px;
}
.form-section {
  border-top: 1px solid #edf2ef;
  padding: 27px 0;
}
.hero-field label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-field input {
  font-size: 19px;
  padding: 16px;
}
.detect-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}
.detect-status.found {
  color: var(--green);
  font-weight: 600;
}
.category-chooser {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 13px;
}
.category-chooser select {
  width: auto;
  padding: 6px 28px 6px 9px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.section-title h2,
.form-section > h2 {
  margin: 0;
  font-size: 21px;
}
.section-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: #eaf7ef;
  display: grid;
  place-items: center;
  font-size: 25px;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  position: relative;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 14px;
}
.field-optional-hint {
  font-weight: 400;
  color: #6b7280;
  font-size: 12px;
}
/* Price is optional; its label text is rewritten from JS in several places
   (currency/category/rental wording), so the hint is appended here instead
   of baked into any one of those textContent assignments. */
#priceField label::after {
  content: none;
  font-weight: 400;
  color: #6b7280;
  font-size: 12px;
}
input,
select,
textarea {
  width: 100%;
  border: 1.5px solid #cdded4;
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.1);
}
input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--danger);
}
textarea {
  resize: vertical;
}
.counter {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: #89978f;
}
.city-wrap {
  position: relative;
}
.city-list {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
  list-style: none;
  padding: 6px;
  margin: 0;
  max-height: 230px;
  overflow: auto;
}
.city-list.show {
  display: block;
}
.city-list li {
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  direction: ltr;
  text-align: left;
}
.city-list li:hover {
  background: var(--soft);
}
.city-list b {
  margin-right: 8px;
}
.city-list small {
  display: block;
  color: var(--muted);
}
body.b24-country-syria .city-list li {
  direction: rtl;
  text-align: right;
}
body.b24-country-syria .city-list b {
  margin-right: 0;
}
.upload-box {
  border: 2px dashed #bdd8c8;
  border-radius: 13px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
  background: #fbfefc;
}
.upload-box span,
.upload-box b,
.upload-box small {
  display: block;
}
.upload-box span {
  font-size: 27px;
}
.upload-box small {
  color: var(--muted);
  font-weight: 400;
}
.image-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.preview {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: #eee;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview button {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}
.form-message {
  color: var(--danger);
  font-size: 14px;
  margin-top: 13px;
}
.form-message.success {
  color: var(--green);
}
/* Preview + Publish action group: a matched pair of solid, high-contrast
   buttons (never an outline/ghost style, which is what made the old
   secondary button read as low-contrast) stacked on mobile and side by side
   on desktop, with Publish always the visually primary action. */
.ad-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.ad-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 14px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  line-height: 1.2;
}
.ad-action-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.ad-action-btn--publish {
  background: var(--green);
  color: #fff;
  font-size: 17px;
}
.ad-action-btn--publish:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ad-action-btn--preview {
  background: var(--ink);
  color: #fff;
}
.ad-action-btn--preview:hover {
  background: color-mix(in srgb, var(--ink) 88%, #000);
}
.ad-action-btn--preview:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (min-width: 651px) {
  .ad-actions-group {
    flex-direction: row-reverse;
  }
  .ad-action-btn--publish {
    flex: 1.4;
  }
  .ad-action-btn--preview {
    flex: 1;
  }
}
@media (max-width: 650px) {
  .shell {
    margin-top: 18px;
  }
  .intent-card {
    padding: 30px 18px;
  }
  .intent-card h1 {
    font-size: 27px;
  }
  .intent-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 0 18px 25px;
  }
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .image-preview {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-chooser {
    align-items: flex-start;
    flex-direction: column;
  }
  .category-chooser select {
    width: 100%;
  }
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body a,
html body p,
html body span,
html body div,
html body label,
html body h1,
html body h2,
html body h3,
html body h4,
html body li {
  font-family: "Noto Naskh Arabic UI", "Noto Naskh Arabic", "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif !important;
}

:root {
  --b24-ui-font: "Noto Naskh Arabic UI", "Noto Naskh Arabic", "Noto Kufi Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --b24-listing-font: "Noto Naskh Arabic UI", "Noto Naskh Arabic", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
}

html body,
html body button,
html body input,
html body select,
html body textarea,
html body label,
html body .site-title,
html body .brand-name,
html body .brand-number,
html body .b24-header-action-btn,
html body .b24-category-trigger,
html body .b24-menu-main button,
html body .b24-menu-sub button,
html body .section p,
html body .ads-row-header h2,
html body .b24-ad-placeholder,
html body .b24-ad-placeholder * {
  font-family: var(--b24-ui-font) !important;
}

html body .ads-slider-card,
html body .ads-slider-card *,
html body .ad-card,
html body .ad-card *,
html body .result-card,
html body .result-card *,
html body .ads-slider-title,
html body .ads-slider-meta,
html body .ads-slider-price {
  font-family: var(--b24-listing-font) !important;
}

@media (min-width: 901px) {
  html body header .header-actions-row {
    margin-bottom: 0 !important;
  }

  html body .b24-home-ad-slot {
    margin-top: -16px !important;
    margin-bottom: -18px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .b24-ad-placeholder {
    min-height: 52px !important;
    padding: 5px 14px !important;
  }

  html body #sectionsContainer.sections-container {
    margin-top: -42px !important;
    margin-bottom: -8px !important;
  }

  html body #mainAdsSliders {
    margin-top: -28px !important;
    margin-bottom: 16px !important;
  }

  html body .ads-slider-row {
    margin-bottom: 8px !important;
  }
}

@media (max-width: 900px) {
  html body .b24-home-ad-slot {
    margin-top: -8px !important;
    margin-bottom: -10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body .b24-ad-placeholder {
    min-height: 54px !important;
    padding: 5px 10px !important;
  }

  html body #sectionsContainer.sections-container {
    margin-top: -28px !important;
    margin-bottom: 0 !important;
  }

  html body #mainAdsSliders {
    margin-top: -16px !important;
  }
}

.category-path {
  width: 100%;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1.5px solid #cfe2d7;
  border-radius: 11px;
  background: #f7fcf9;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  text-align: right;
  transition: 0.16s;
}
.category-path:hover,
.category-path:focus-visible {
  border-color: var(--green2);
  box-shadow: 0 0 0 3px rgba(15, 157, 88, 0.1);
  outline: none;
}
.category-path-label {
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}
.category-path-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.category-path-edit {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  border: 1px solid #cbe2d4;
  border-radius: 99px;
  padding: 4px 9px;
  white-space: nowrap;
}
.category-browser {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.category-browser-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(13, 36, 25, 0.55);
  cursor: default;
}
.category-browser-panel {
  position: relative;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  direction: rtl;
}
.category-browser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e6eee9;
}
.category-browser-head h2 {
  margin: 7px 0 0;
  font-size: 23px;
}
.category-browser-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.category-browser-trail {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  background: #f7faf8;
  border-bottom: 1px solid #e6eee9;
  color: var(--muted);
  font-size: 13px;
}
.category-browser-trail button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
@media (max-width: 650px) {
  .category-path {
    align-items: flex-start;
  }
  .category-path-items {
    gap: 5px;
  }
  .category-path-edit {
    margin-right: auto;
  }
  .category-browser {
    padding: 0;
    place-items: end center;
  }
  .category-browser-panel {
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
  }
  .category-browser-head {
    padding: 19px 18px 14px;
  }
  .category-browser-head h2 {
    font-size: 20px;
  }
  .category-browser-trail {
    padding: 12px 18px;
  }
}

body button.category-path {
  width: 100%;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #cfd6dc !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #20262d !important;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: right;
  box-shadow: none !important;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
body button.category-path:hover,
body button.category-path:focus-visible {
  background: #fff !important;
  border-color: #77828d !important;
  box-shadow: 0 0 0 3px rgba(34, 42, 49, 0.08) !important;
  outline: none;
}
.category-path-label {
  font-weight: 800;
  color: #20262d !important;
  white-space: nowrap;
}
.category-path-items {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.category-path-part {
  color: #37404a;
  font-weight: 600;
}
.category-path-separator {
  color: #8c959e;
  font-size: 18px;
  line-height: 1;
}
.category-path-edit {
  padding: 3px 0;
  border: 0 !important;
  color: #4e5964 !important;
  background: transparent !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.ui-line-icon,
.category-line-icon,
.browser-line-icon,
.shipping-line-icon {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-line-icon {
  width: 26px;
  height: 26px;
  color: #3f4b55;
}
.category-icon {
  background: #f2f4f5 !important;
  color: #3f4b55 !important;
  border: 1px solid #e1e5e8;
  font-size: 0 !important;
}
.section-title h2 {
  color: #20262d !important;
}
.shipping-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.shipping-line-icon {
  width: 21px;
  height: 21px;
  color: #3f4b55;
  flex: 0 0 auto;
}
.shipping-help {
  display: block;
  margin-top: 7px !important;
  color: #68727c !important;
  line-height: 1.65;
}
.category-browser-open {
  overflow: hidden;
}
.category-browser {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.category-browser-backdrop {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(20, 25, 30, 0.56) !important;
  box-shadow: none !important;
  cursor: default;
}
.category-browser-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8dde1;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  direction: rtl;
}
.category-browser-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  border-bottom: 1px solid #e1e5e8;
  background: #fff;
}
.category-browser-head > div {
  text-align: right;
}
.category-browser-kicker {
  display: block;
  margin-bottom: 3px;
  color: #727b84;
  font-size: 12px;
  font-weight: 700;
}
.category-browser-head h2,
body main .category-browser-head h2 {
  margin: 0 !important;
  color: #1d242b !important;
  font-size: 21px !important;
  line-height: 1.45;
}
.category-browser-close,
.category-browser-back {
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 1px solid #d8dde1 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #333c44 !important;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: none !important;
}
.category-browser-close {
  grid-column: 3;
}
.category-browser-back {
  grid-column: 1;
  grid-row: 1;
}
.category-browser-close:hover,
.category-browser-back:hover {
  background: #f3f5f6 !important;
  border-color: #aeb6bd !important;
}
.category-browser-close svg,
.category-browser-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-browser-trail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 9px 22px;
  border-bottom: 1px solid #e3e7ea;
  background: #f7f8f9;
  color: #68727c;
  font-size: 12px;
}
.category-browser-trail button {
  min-height: auto !important;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #2e3740 !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none !important;
}
.category-browser-trail strong {
  color: #20262d;
}
.category-browser-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  min-height: 440px;
  overflow: hidden;
}
.category-browser-column {
  min-width: 0;
  overflow: auto;
  padding: 0 0 14px;
  border-left: 1px solid #e3e7ea;
}
.category-browser-column:last-child {
  border-left: 0;
}
.category-browser-column h3 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 14px 16px 10px;
  background: #fff;
  color: #747e87;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.category-browser-list {
  padding: 0 8px;
}
.category-column-empty {
  padding: 20px 12px;
  color: #818a92;
  font-size: 13px;
  line-height: 1.7;
}
.category-browser-row {
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 0 2px !important;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #273039 !important;
  display: grid !important;
  grid-template-columns: 23px 1fr 18px;
  align-items: center;
  gap: 9px;
  text-align: right;
  box-shadow: none !important;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
}
.category-browser-row:hover,
.category-browser-row:focus-visible {
  background: #f3f5f6 !important;
  border-color: #e0e4e7 !important;
  outline: none;
}
.category-browser-row.selected {
  background: #eceff1 !important;
  border-color: #c9d0d5 !important;
  font-weight: 800;
}
.browser-line-icon {
  width: 20px;
  height: 20px;
  color: #515c65;
  stroke-width: 1.7;
}
.category-row-chevron {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #8c959d;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.category-browser-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  body button.category-path {
    align-items: flex-start;
    padding: 12px;
  }
  .category-path-items {
    gap: 5px;
  }
  .category-path-edit {
    margin-right: auto;
  }
  .category-browser {
    padding: 0;
    place-items: end center;
  }
  .category-browser-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 10px 10px 0 0;
    border-bottom: 0;
  }
  .category-browser-head {
    padding: 14px 16px;
  }
  .category-browser-trail {
    padding: 8px 16px;
    overflow: auto;
    white-space: nowrap;
  }
  .category-browser-columns {
    display: block;
    min-height: 420px;
    overflow: auto;
  }
  .category-browser-column {
    display: none;
    border: 0;
    padding-bottom: 22px;
  }
  .category-browser[data-mobile-step="1"] .category-browser-column-main,
  .category-browser[data-mobile-step="2"] .category-browser-column-branches,
  .category-browser[data-mobile-step="3"] .category-browser-column-leaves {
    display: block;
  }
  .category-browser-column h3 {
    padding: 13px 16px 9px;
  }
  .category-browser-list {
    padding: 0 10px;
  }
  .category-browser-row {
    min-height: 52px !important;
    padding: 11px 10px !important;
  }
  .category-browser-back:not(.hidden) {
    display: grid !important;
  }
}

#smartAdForm {
  width: min(920px, 100%);
  margin-inline: auto;
}

#smartAdForm .form-head {
  padding-block: 22px 16px;
  margin-bottom: 0;
}

#smartAdForm .form-head h1 {
  font-size: clamp(23px, 3vw, 29px);
}

#smartAdForm .form-section {
  padding-block: 20px;
}

#smartAdForm .hero-field label {
  margin-bottom: 7px;
  font-size: 17px;
  line-height: 1.6;
}

#smartAdForm input:not([type="file"]),
#smartAdForm select {
  min-height: 46px;
  height: 46px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
}

#smartAdForm .hero-field input {
  min-height: 48px;
  height: 48px;
  padding: 9px 13px;
  font-size: 16px;
}

#smartAdForm textarea {
  min-height: 126px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.7;
}

#smartAdForm .fields-grid {
  gap: 14px 16px;
}

#smartAdForm .field label {
  margin-bottom: 6px;
  font-size: 13.5px;
}

#smartAdForm .detect-status {
  margin-top: 7px;
  font-size: 13px;
}

#smartAdForm button.category-path {
  min-height: 46px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  background: #fff !important;
  border-color: #d6dce1 !important;
}

#smartAdForm .category-path-label,
#smartAdForm .category-path-part {
  font-size: 13.5px;
}

#smartAdForm .section-title {
  margin-bottom: 15px;
}

#smartAdForm .category-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
}

.category-browser-panel {
  width: min(960px, 100%) !important;
  border-radius: 10px !important;
}

.category-browser-columns {
  grid-template-columns: minmax(210px, 0.9fr) minmax(230px, 1fr) minmax(260px, 1.1fr) !important;
  min-height: 390px !important;
  max-height: 540px;
  background: #fff;
}

.category-browser-column {
  background: #fff;
}

.category-browser-column h3 {
  padding: 13px 15px 9px !important;
  border-bottom: 1px solid #eef0f2;
  color: #69737c !important;
  font-size: 12px !important;
}

.category-browser-list {
  padding: 7px 8px 12px !important;
}

.category-browser-row {
  min-height: 44px !important;
  padding: 9px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #273039 !important;
  grid-template-columns: 22px minmax(0, 1fr) 17px !important;
  align-items: center;
}

.category-browser-row:hover,
.category-browser-row:focus-visible {
  background: #f5f6f7 !important;
  border-color: #e2e6e9 !important;
  transform: none !important;
}

.category-browser-row.selected {
  background: #eef0f2 !important;
  border-color: #cfd5da !important;
  color: #1f272e !important;
}

.category-browser-row > span {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.category-column-empty {
  margin: 0;
  padding: 22px 12px !important;
  color: #7b858e !important;
  background: #fff;
}

@media (max-width: 700px) {
  #smartAdForm {
    width: 100%;
  }

  #smartAdForm .form-section {
    padding-block: 17px;
  }

  #smartAdForm input:not([type="file"]),
  #smartAdForm select {
    min-height: 45px;
    height: 45px;
  }

  #smartAdForm .hero-field input {
    min-height: 47px;
    height: 47px;
  }

  .category-browser-columns {
    display: block !important;
    min-height: 390px !important;
    max-height: none;
  }

  .category-browser-row {
    min-height: 48px !important;
  }
}

#smartAdForm .smart-features {
  margin-top: 4px;
  padding: 18px;
  border: 1px solid #e1e7ec;
  border-radius: 12px;
  background: #fbfcfd;
}
#smartAdForm .smart-features-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
#smartAdForm .smart-features-head h3 {
  margin: 0;
  color: #20262d;
  font-size: 16px;
  line-height: 1.5;
}
#smartAdForm .smart-features-head p {
  margin: 4px 0 0;
  color: #6f7882;
  font-size: 12.5px;
  line-height: 1.6;
}
#smartAdForm .smart-features-optional {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef3f7;
  color: #66717b;
  font-size: 11px;
  font-weight: 700;
}
#smartAdForm .smart-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 12px;
}
#smartAdForm .smart-feature-option {
  min-height: 45px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #dce3e8;
  border-radius: 9px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #303840;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}
#smartAdForm .smart-feature-option:hover {
  border-color: #9ab5d8;
  background: #f8fbff;
}
#smartAdForm .smart-feature-option:focus-within {
  border-color: #3476c4;
  box-shadow: 0 0 0 3px rgba(52, 118, 196, 0.12);
}
#smartAdForm .smart-feature-option.is-selected {
  border-color: #4e89d0;
  background: #f3f8ff;
}
#smartAdForm .smart-feature-option input {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}
#smartAdForm .smart-feature-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1.5px solid #b8c2cc;
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-items: center;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}
#smartAdForm .smart-feature-box svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #3476c4;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity 0.14s ease,
    transform 0.16s ease;
}
#smartAdForm .smart-feature-option input:checked + .smart-feature-box {
  border-color: #3476c4;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(52, 118, 196, 0.08);
}
#smartAdForm .smart-feature-option input:checked + .smart-feature-box svg {
  opacity: 1;
  transform: scale(1);
}
#smartAdForm .smart-feature-label {
  min-width: 0;
}
@media (max-width: 780px) {
  #smartAdForm .smart-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  #smartAdForm .smart-features {
    padding: 14px;
  }
  #smartAdForm .smart-features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #smartAdForm .smart-feature-option {
    min-height: 48px;
  }
}

.wanted-intent-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #b8d0ea;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f9ff, #fff);
  color: #123b63;
}
.wanted-intent-notice.hidden {
  display: none !important;
}
.wanted-intent-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: #3476c4;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.wanted-intent-notice strong {
  display: block;
  color: #1e61af;
  font-size: 16px;
  margin-bottom: 4px;
}
.wanted-intent-notice small {
  display: block;
  color: #60758a;
  line-height: 1.6;
}
body.b24-create-wanted #intentBadge {
  background: #eaf1f8 !important;
  color: #1e61af !important;
  border: 1px solid #d5e4f3 !important;
}
body.b24-create-wanted #submitAd {
  background: #3476c4 !important;
  box-shadow: 0 7px 18px rgba(52, 118, 196, 0.22) !important;
}
body.b24-create-wanted #priceLabel::after {
  content: " — المبلغ الأعلى الذي تستطيع دفعه";
  font-size: 11px;
  color: #718399;
  font-weight: 500;
}

body.b24-create-wanted .dynamic-section {
  border: 1px solid #d5e4f3;
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}
body.b24-create-wanted .wanted-field {
  margin: 2px 0 8px;
}
body.b24-create-wanted .wanted-field > label,
body.b24-create-wanted .wanted-field-heading label {
  font-weight: 800;
  color: #15233b;
}
body.b24-create-wanted .wanted-field-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body.b24-create-wanted .wanted-field-heading small,
body.b24-create-wanted .wanted-field > small {
  color: #75859d;
  font-size: 12px;
}
body.b24-create-wanted .wanted-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body.b24-create-wanted .wanted-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9e3f1;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: 0.16s ease;
  color: #26364d;
  font-weight: 650;
}
body.b24-create-wanted .wanted-choice:hover {
  border-color: #93b6dc;
  background: #f8fbff;
}
body.b24-create-wanted .wanted-choice.is-selected {
  border-color: #3476c4;
  background: #f3f8ff;
  box-shadow: 0 0 0 2px rgba(52, 118, 196, 0.08);
}
body.b24-create-wanted .wanted-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.b24-create-wanted .wanted-choice-box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1.5px solid #aebdd1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #fff;
  transition: 0.16s ease;
}
body.b24-create-wanted .wanted-choice-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #3476c4;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.65);
  transition: 0.16s ease;
}
body.b24-create-wanted .wanted-choice.is-selected .wanted-choice-box {
  border-color: #3476c4;
  background: #fff;
}
body.b24-create-wanted .wanted-choice.is-selected .wanted-choice-box svg {
  opacity: 1;
  transform: scale(1);
}
body.b24-create-wanted .wanted-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
body.b24-create-wanted .wanted-range > div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #d7e1ef;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}
body.b24-create-wanted .wanted-range > div > span {
  color: #718198;
  font-size: 12px;
  font-weight: 700;
}
body.b24-create-wanted .wanted-range input {
  border: 0 !important;
  box-shadow: none !important;
  padding-inline: 2px !important;
  min-width: 0;
}
body.b24-create-wanted .wanted-range b {
  font-size: 12px;
  color: #728198;
  white-space: nowrap;
}
body.b24-create-wanted #budgetMinField,
body.b24-create-wanted #priceField {
  grid-column: span 1;
}
body.b24-create-wanted #searchRadiusField {
  grid-column: span 1;
}
body.b24-create-wanted #featuresSection .smart-features {
  border-color: #d5e4f3;
  background: #fbfdff;
}
@media (max-width: 760px) {
  body.b24-create-wanted .wanted-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.b24-create-wanted .wanted-range {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 460px) {
  body.b24-create-wanted .wanted-choice-grid {
    grid-template-columns: 1fr;
  }
}
body.b24-create-wanted .wanted-range {
  grid-template-columns: max-content auto max-content;
  justify-content: start;
  gap: 10px;
}
body.b24-create-wanted .wanted-range-item > span {
  min-width: 24px;
  color: #44546b !important;
  font-size: 13px !important;
}
body.b24-create-wanted .wanted-tags-shell {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-height: 48px;
  padding: 6px 9px;
  border: 1px solid #d7e1ef;
  border-radius: 11px;
  background: #fff;
  transition: 0.16s ease;
}
body.b24-create-wanted .wanted-tags-shell:focus-within {
  border-color: #3476c4;
  box-shadow: 0 0 0 3px rgba(52, 118, 196, 0.1);
}
body.b24-create-wanted .wanted-tags-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
body.b24-create-wanted .wanted-tags-shell > input {
  flex: 1 1 220px;
  min-width: 190px;
  border: 0 !important;
  box-shadow: none !important;
  padding: 6px 4px !important;
  height: 34px !important;
}
body.b24-create-wanted .wanted-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #161b22;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: default;
}
body.b24-create-wanted .wanted-model-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.b24-create-wanted .wanted-model-chip-check {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  color: #3476c4;
  font-size: 12px;
  font-weight: 900;
}
body.b24-create-wanted .wanted-model-chip button {
  border: 0;
  background: transparent;
  color: #cbd3dc;
  font-size: 17px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
body.b24-create-wanted .wanted-model-chip button:hover {
  color: #fff;
}
body.b24-create-wanted #budgetMinField input,
body.b24-create-wanted #priceField input {
  width: 170px;
  max-width: 100%;
  height: 42px;
}
@media (max-width: 700px) {
  body.b24-create-wanted .wanted-range {
    grid-template-columns: 1fr;
  }
  body.b24-create-wanted .wanted-range-item {
    justify-content: flex-start;
  }
}

body.b24-create-wanted #dynamicFields {
  display: block;
}
body.b24-create-wanted .wanted-field {
  max-width: 100%;
  margin: 0 0 18px;
}
body.b24-create-wanted .wanted-priority-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 6px 0 22px;
  padding: 18px;
  border: 1px solid #e1e9f3;
  border-radius: 16px;
  background: #fbfdff;
}
body.b24-create-wanted .wanted-priority-stack .wanted-field {
  margin: 0;
  min-width: 0;
}
body.b24-create-wanted .wanted-priority-stack .wanted-multi-field {
  grid-column: 1/-1;
}
body.b24-create-wanted .wanted-range {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
body.b24-create-wanted .wanted-range-item {
  display: flex !important;
  align-items: center;
  gap: 7px;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.b24-create-wanted .wanted-choice-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
body.b24-create-wanted .wanted-choice {
  min-height: 41px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
body.b24-create-wanted .wanted-dropdown-panel {
  padding: 10px;
  border-top: 1px solid #e5edf6;
}
body.b24-create-wanted #budgetMinField input,
body.b24-create-wanted #priceField input {
  max-width: 150px;
  height: 42px;
}
body.b24-create-wanted #budgetMinField,
body.b24-create-wanted #priceField {
  align-self: start;
}
body.b24-create-wanted #commonSection .fields-grid {
  align-items: start;
}
@media (max-width: 900px) {
  body.b24-create-wanted .wanted-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  body.b24-create-wanted .wanted-priority-stack {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  body.b24-create-wanted .wanted-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 430px) {
  body.b24-create-wanted .wanted-choice-grid {
    grid-template-columns: 1fr;
  }
}

body.b24-create-wanted .wanted-priority-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 8px 0 22px;
  padding: 18px 20px;
  border: 1px solid #e1e8f2;
  border-radius: 16px;
  background: #fbfdff;
}
body.b24-create-wanted .wanted-priority-stack .wanted-field {
  margin: 0;
}
body.b24-create-wanted .wanted-range {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
body.b24-create-wanted .wanted-range-item {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
}
body.b24-create-wanted .wanted-range-item > span {
  min-width: 20px;
  font-size: 13px;
  font-weight: 800;
  color: #34445a !important;
}
body.b24-create-wanted .wanted-combo-control {
  display: flex;
  align-items: stretch;
  width: 150px;
  height: 42px;
  border: 1px solid #cfd9e7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: 0.16s ease;
}
body.b24-create-wanted .wanted-combo-control:focus-within {
  border-color: #3476c4;
  box-shadow: 0 0 0 3px rgba(52, 118, 196, 0.1);
}
body.b24-create-wanted .wanted-combo-control input {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: #172033;
  font-weight: 700;
}
body.b24-create-wanted .wanted-combo-arrow {
  flex: 0 0 34px;
  border: 0;
  border-inline-start: 1px solid #e2e8f0;
  background: #f7f9fc;
  color: #314159;
  font-size: 16px;
  cursor: pointer;
}
body.b24-create-wanted .wanted-combo-arrow:hover {
  background: #eaf1f8;
  color: #3476c4;
}
body.b24-create-wanted .wanted-single-combo {
  max-width: 430px;
}
body.b24-create-wanted .wanted-single-combo .wanted-combo-control {
  width: 100%;
  max-width: 330px;
}
body.b24-create-wanted .wanted-modal-trigger {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #cfd9e7;
  border-radius: 11px;
  background: #fff;
  color: #233249;
  text-align: start;
  cursor: pointer;
  transition: 0.16s ease;
}
body.b24-create-wanted .wanted-modal-trigger:hover {
  border-color: #93b6dc;
  background: #fbfdff;
}
body.b24-create-wanted .wanted-modal-trigger.has-selection {
  border-color: #3476c4;
  box-shadow: 0 0 0 3px rgba(52, 118, 196, 0.08);
}
body.b24-create-wanted .wanted-modal-trigger-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
}
body.b24-create-wanted .wanted-modal-chevron {
  font-size: 18px;
  color: #61728a;
  text-align: center;
}
body.b24-create-wanted .wanted-modal-hidden {
  display: none;
}
body.wanted-modal-open {
  overflow: hidden;
}
.wanted-options-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wanted-options-modal.is-open {
  display: flex;
}
.wanted-options-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 34, 0.48);
  backdrop-filter: blur(2px);
}
.wanted-options-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(30, 97, 175, 0.28);
  overflow: hidden;
  direction: rtl;
}
.wanted-options-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e8edf4;
}
.wanted-options-dialog h3 {
  margin: 0;
  font-size: 21px;
  color: #111827;
}
.wanted-options-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f9;
  color: #415067;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.wanted-options-search-wrap {
  padding: 14px 20px 4px;
}
.wanted-options-search-wrap input {
  width: 100%;
  height: 44px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 0 13px;
  outline: none;
}
.wanted-options-search-wrap input:focus {
  border-color: #3476c4;
  box-shadow: 0 0 0 3px rgba(52, 118, 196, 0.1);
}
.wanted-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  padding: 16px 20px 20px;
  overflow: auto;
}
.wanted-modal-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 4px 2px;
  color: #172033;
  cursor: pointer;
}
.wanted-modal-option[hidden] {
  display: none !important;
}
.wanted-modal-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wanted-modal-option-box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  border: 1.5px solid #9caabd;
  border-radius: 6px;
  background: #fff;
  transition: 0.15s ease;
}
.wanted-modal-option-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.7);
  transition: 0.15s ease;
}
.wanted-modal-option.is-selected .wanted-modal-option-box {
  border-color: #3476c4;
  background: #3476c4;
}
.wanted-modal-option.is-selected .wanted-modal-option-box svg {
  opacity: 1;
  transform: scale(1);
}
.wanted-options-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid #e8edf4;
  background: #fbfcfe;
}
.wanted-options-dialog footer > div {
  display: flex;
  gap: 10px;
}
.wanted-options-dialog footer button {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.wanted-options-cancel {
  border: 1px solid #cfd8e5;
  background: #fff;
  color: #3a4960;
}
.wanted-options-apply {
  border: 1px solid #3476c4;
  background: #3476c4;
  color: #fff;
}
@media (max-width: 700px) {
  .wanted-options-grid {
    grid-template-columns: 1fr;
  }
  .wanted-options-dialog {
    max-height: 90vh;
  }
  .wanted-options-dialog footer {
    align-items: stretch;
    flex-direction: column;
  }
  .wanted-options-dialog footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  body.b24-create-wanted .wanted-combo-control {
    width: min(145px, 34vw);
  }
}

body.b24-create-wanted .wanted-modal-field {
  max-width: 320px !important;
}
body.b24-create-wanted .wanted-modal-trigger {
  width: 100% !important;
  max-width: 300px !important;
  min-height: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 0 12px !important;
  border: 1px solid #cfd7e3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #172033 !important;
  box-shadow: none !important;
}
body.b24-create-wanted .wanted-modal-trigger:hover,
body.b24-create-wanted .wanted-modal-trigger.has-selection {
  border-color: #6b7280 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.b24-create-wanted .wanted-modal-trigger-text {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #253247 !important;
}
body.b24-create-wanted .wanted-modal-chevron {
  color: #111827 !important;
  font-size: 16px !important;
}

body.b24-create-wanted .wanted-range {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
body.b24-create-wanted .wanted-range-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
body.b24-create-wanted .wanted-range-item > span {
  min-width: 18px !important;
  font-size: 12px !important;
  color: #26364c !important;
}
body.b24-create-wanted .wanted-combo-control {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  width: 126px !important;
  min-width: 126px !important;
  height: 38px !important;
  overflow: visible !important;
  border: 1px solid #cfd7e3 !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.b24-create-wanted .wanted-combo-control:focus-within {
  border-color: #4b5563 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.07) !important;
}
body.b24-create-wanted .wanted-combo-control input {
  width: calc(100% - 31px) !important;
  min-width: 0 !important;
  height: 36px !important;
  padding: 6px 8px !important;
  border: 0 !important;
  border-radius: 7px 0 0 7px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
body.b24-create-wanted .wanted-combo-control input::placeholder {
  color: #8a96a7 !important;
  opacity: 1 !important;
}
body.b24-create-wanted .wanted-combo-arrow {
  flex: 0 0 31px !important;
  width: 31px !important;
  min-width: 31px !important;
  height: 36px !important;
  border: 0 !important;
  border-inline-start: 1px solid #d8dee7 !important;
  border-radius: 0 7px 7px 0 !important;
  background: #f5f6f8 !important;
  color: #111827 !important;
  font-size: 14px !important;
  cursor: pointer !important;
}
body.b24-create-wanted .wanted-combo-arrow:hover,
body.b24-create-wanted .wanted-combo-arrow:focus {
  background: #e9ebef !important;
  color: #000 !important;
  outline: none !important;
}
body.b24-create-wanted .wanted-single-combo {
  max-width: 320px !important;
}
body.b24-create-wanted .wanted-single-combo .wanted-combo-control {
  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
}
body.b24-create-wanted .wanted-combo-menu {
  position: absolute !important;
  inset-inline: 0 !important;
  top: calc(100% + 5px) !important;
  z-index: 10030 !important;
  display: none !important;
  max-height: 286px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  padding: 5px !important;
  border: 1px solid #cfd7e3 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16) !important;
}
body.b24-create-wanted .wanted-combo-menu.is-open {
  display: block !important;
}
body.b24-create-wanted .wanted-combo-menu button {
  display: block !important;
  width: 100% !important;
  min-height: 27px !important;
  padding: 5px 8px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #172033 !important;
  text-align: start !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  cursor: pointer !important;
}
body.b24-create-wanted .wanted-combo-menu button:hover,
body.b24-create-wanted .wanted-combo-menu button:focus {
  background: #f1f3f6 !important;
  color: #000 !important;
  outline: none !important;
}
body.b24-create-wanted .wanted-combo-menu button[hidden] {
  display: none !important;
}

.wanted-options-search-wrap input:focus {
  border-color: #6b7280 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.07) !important;
}
.wanted-options-dialog footer button {
  border: 1px solid #c7ced8 !important;
  background: #fff !important;
  color: #202938 !important;
  box-shadow: none !important;
}
.wanted-options-dialog footer button:hover {
  border-color: #6b7280 !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
}
.wanted-options-apply {
  border-color: #202938 !important;
  background: #202938 !important;
  color: #fff !important;
}
.wanted-options-apply:hover {
  background: #111827 !important;
  color: #fff !important;
}

body.b24-create-wanted #budgetMinField input,
body.b24-create-wanted #priceField input {
  width: 180px !important;
  max-width: 100% !important;
  height: 40px !important;
}

@media (max-width: 700px) {
  body.b24-create-wanted .wanted-modal-field {
    max-width: 100% !important;
  }
  body.b24-create-wanted .wanted-modal-trigger {
    max-width: 100% !important;
  }
  body.b24-create-wanted .wanted-combo-control {
    width: 120px !important;
    min-width: 120px !important;
  }
  body.b24-create-wanted .wanted-single-combo .wanted-combo-control {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
  }
}

body.b24-create-wanted .wanted-modal-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}
body.b24-create-wanted .wanted-modal-trigger {
  flex: 0 0 190px !important;
  width: 190px !important;
  max-width: 190px !important;
  min-height: 38px !important;
  height: 38px !important;
  border-color: #cfd4dc !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
}
body.b24-create-wanted .wanted-modal-trigger:hover,
body.b24-create-wanted .wanted-modal-trigger:focus,
body.b24-create-wanted .wanted-modal-trigger.has-selection {
  border-color: #4b5563 !important;
  background: #fff !important;
  color: #111827 !important;
  box-shadow: none !important;
  outline: none !important;
}
body.b24-create-wanted .wanted-modal-trigger-text,
body.b24-create-wanted .wanted-modal-chevron {
  color: #111827 !important;
}
body.b24-create-wanted .wanted-modal-summary {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-wrap: wrap !important;
  min-height: 38px !important;
}
body.b24-create-wanted .wanted-selected-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 30px !important;
  padding: 5px 9px !important;
  border: 1px solid #cfd4dc !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}
body.b24-create-wanted .wanted-selected-check {
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.wanted-options-dialog,
.wanted-options-dialog * {
  accent-color: #111827 !important;
}
.wanted-options-search-wrap input:focus {
  border-color: #4b5563 !important;
  box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.07) !important;
}
.wanted-modal-option.is-selected .wanted-modal-option-box {
  border-color: #111827 !important;
  background: #111827 !important;
}
.wanted-options-dialog footer button,
.wanted-options-cancel,
.wanted-options-apply {
  border-color: #9ca3af !important;
  background: #fff !important;
  color: #111827 !important;
}
.wanted-options-dialog footer button:hover,
.wanted-options-dialog footer button:focus {
  border-color: #111827 !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
  outline: none !important;
}

body.b24-create-wanted .wanted-range {
  display: grid !important;
  grid-template-columns: auto 118px auto auto 118px auto !important;
  align-items: center !important;
  justify-content: start !important;
  gap: 7px !important;
  flex-wrap: nowrap !important;
}
body.b24-create-wanted .wanted-range-item {
  display: contents !important;
}
body.b24-create-wanted .wanted-range-item > span {
  min-width: auto !important;
  margin: 0 !important;
  align-self: center !important;
}
body.b24-create-wanted .wanted-combo-control {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  align-self: center !important;
}
body.b24-create-wanted .wanted-combo-control input {
  height: 36px !important;
  color: #111827 !important;
}
body.b24-create-wanted .wanted-combo-control input::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}
body.b24-create-wanted .wanted-combo-arrow {
  background: #fff !important;
  color: #111827 !important;
  border-inline-start: 1px solid #d1d5db !important;
}
body.b24-create-wanted .wanted-combo-arrow:hover,
body.b24-create-wanted .wanted-combo-arrow:focus {
  background: #f3f4f6 !important;
  color: #000 !important;
}
body.b24-create-wanted .wanted-combo-menu {
  max-height: 270px !important;
}
@media (max-width: 700px) {
  body.b24-create-wanted .wanted-modal-trigger {
    flex-basis: 170px !important;
    width: 170px !important;
    max-width: 170px !important;
  }
  body.b24-create-wanted .wanted-range {
    grid-template-columns: auto 105px auto auto 105px auto !important;
    gap: 5px !important;
  }
  body.b24-create-wanted .wanted-combo-control {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
  }
}

body.b24-wanted-smart-layout #dynamicFields {
  display: block;
}
body.b24-wanted-smart-layout .wanted-smart-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
body.b24-wanted-smart-layout .wanted-smart-grid .wanted-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
body.b24-wanted-smart-layout .wanted-smart-grid .wanted-field {
  min-width: 0;
  width: 100%;
  margin: 0;
}
body.b24-wanted-smart-layout .wanted-smart-grid .wanted-modal-trigger,
body.b24-wanted-smart-layout .wanted-smart-grid input,
body.b24-wanted-smart-layout .wanted-smart-grid select,
body.b24-wanted-smart-layout .wanted-smart-grid .wanted-tags-shell {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
body.b24-wanted-smart-layout .wanted-smart-grid .wanted-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  width: 100%;
}
body.b24-wanted-smart-layout .wanted-smart-grid .wanted-range input {
  direction: rtl;
  text-align: right;
}
body.b24-wanted-smart-layout #dynamicSection,
body.b24-wanted-smart-layout #commonSection {
  background: #f6f8fb;
}
body.b24-wanted-smart-layout #dynamicSection input,
body.b24-wanted-smart-layout #dynamicSection select,
body.b24-wanted-smart-layout #dynamicSection button,
body.b24-wanted-smart-layout #commonSection input,
body.b24-wanted-smart-layout #commonSection select {
  background: #fff;
}
@media (max-width: 700px) {
  body.b24-wanted-smart-layout .wanted-smart-grid .wanted-pair-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.b24-location-fields {
  display: contents;
}
body.b24-country-syria .b24-location-fields {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 30% 30% minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}
body.b24-country-syria #syriaGovernorateField {
  grid-column: 1;
  width: 100%;
  min-width: 0;
}
body.b24-country-syria #cityInputField {
  grid-column: 2;
  width: 100%;
  min-width: 0;
}
body.b24-country-syria #syriaGovernorateField select,
body.b24-country-syria #cityInputField input {
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  body.b24-country-syria .b24-location-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }
  body.b24-country-syria #syriaGovernorateField {
    grid-column: 1;
  }
  body.b24-country-syria #cityInputField {
    grid-column: 2;
  }
}
