:root {
  --b24-pro-blue: #3476c4;
  --b24-pro-blue-dark: #1e61af;
  --b24-pro-ink: #162033;
  --b24-pro-muted: #667085;
  --b24-pro-line: #d7dee8;
  --b24-pro-soft: #f7f9fc;
  --b24-pro-orange: #f08a24;
}

html body #sectionsContainer.b24-results-categories,
html body #resultsCategoriesStrip.b24-results-categories {
  width: min(1084px, calc(100% - 32px)) !important;
  max-width: 1084px !important;
  min-height: 112px !important;
  margin-inline: auto !important;
  padding: 14px 16px 12px !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 8px !important;
  direction: rtl !important;
  background: #fff !important;
  border: 1px solid #dbe4ee !important;
  border-radius: 0 0 16px 16px !important;
  box-shadow: 0 10px 28px rgba(30, 97, 175, 0.08) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  box-sizing: border-box !important;
}

html body .main-container {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 0 auto 32px !important;
}

html body #sectionsContainer.b24-results-categories::-webkit-scrollbar,
html body #resultsCategoriesStrip.b24-results-categories::-webkit-scrollbar {
  display: none;
}

html body #sectionsContainer > .b24-results-category,
html body #resultsCategoriesStrip > .b24-results-category {
  flex: 0 0 88px !important;
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  min-height: 84px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  color: var(--b24-pro-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  cursor: pointer !important;
  font:
    700 12.5px/1.35 "Cairo",
    "Noto Kufi Arabic",
    sans-serif !important;
  transform: none !important;
  box-sizing: border-box !important;
}

html body #sectionsContainer.sections-container > button.section.b24-results-category,
html body #resultsCategoriesStrip.b24-results-categories > button.b24-results-category {
  flex: 0 0 88px !important;
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 84px !important;
  min-height: 84px !important;
}

html body #sectionsContainer > .b24-results-category .cat-icon,
html body #resultsCategoriesStrip > .b24-results-category .cat-icon {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--b24-pro-blue) !important;
  background: #f3f8fd !important;
  border: 1px solid #cfe0f1 !important;
  border-radius: 50% !important;
  box-shadow: 0 5px 13px rgba(52, 118, 196, 0.1) !important;
  box-sizing: border-box !important;
}

html body #sectionsContainer > .b24-results-category .section-icon,
html body #resultsCategoriesStrip > .b24-results-category svg {
  width: 29px !important;
  height: 29px !important;
  min-width: 29px !important;
  min-height: 29px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html body #sectionsContainer > .b24-results-category > span:last-child,
html body #resultsCategoriesStrip > .b24-results-category > span:last-child {
  margin: 0 !important;
  color: var(--b24-pro-ink) !important;
  font:
    700 12.5px/1.35 "Cairo",
    "Noto Kufi Arabic",
    sans-serif !important;
  text-align: center !important;
  white-space: nowrap !important;
}

html body #sectionsContainer > .b24-results-category:hover .cat-icon,
html body #sectionsContainer > .b24-results-category.selected .cat-icon,
html body #resultsCategoriesStrip > .b24-results-category:hover .cat-icon,
html body #resultsCategoriesStrip > .b24-results-category.active .cat-icon {
  color: #fff !important;
  background: var(--b24-pro-blue) !important;
  border-color: var(--b24-pro-blue) !important;
  box-shadow: 0 7px 17px rgba(52, 118, 196, 0.22) !important;
}

html body header.b24-canonical-header .b24-main-actions,
html body header.b24-global-header .b24-global-actions {
  gap: 8px !important;
}

html body header.b24-canonical-header .b24-header-action-btn,
html body header.b24-global-header .b24-header-action-btn {
  min-height: 42px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(30, 97, 175, 0.1) !important;
  font:
    700 13px/1 "Cairo",
    sans-serif !important;
  text-decoration: none !important;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease !important;
}

html body header.b24-canonical-header .b24-header-action-btn > span,
html body header.b24-global-header .b24-header-action-btn > span {
  display: inline !important;
}

html body header.b24-canonical-header .b24-header-action-btn:hover,
html body header.b24-global-header .b24-header-action-btn:hover {
  background: rgba(255, 255, 255, 0.19) !important;
  border-color: #fff !important;
  transform: translateY(-1px) !important;
}

html body header.b24-canonical-header .b24-add-action,
html body header.b24-global-header .b24-add-action {
  color: #fff !important;
  background: var(--b24-pro-orange) !important;
  border-color: var(--b24-pro-orange) !important;
  box-shadow: 0 7px 16px rgba(240, 138, 36, 0.25) !important;
}

html body header.b24-canonical-header .b24-logout-action,
html body header.b24-global-header .b24-logout-action {
  color: #fff !important;
  background: rgba(116, 26, 39, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

#smartAdForm input:not([type="file"]),
#smartAdForm select,
#smartAdForm textarea {
  min-height: 50px !important;
  color: var(--b24-pro-ink) !important;
  background-color: #fff !important;
  border: 1px solid #cfd7e2 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03) !important;
}

#smartAdForm select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-inline: 16px 42px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23344054' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 15px center !important;
  background-size: 16px !important;
}

#smartAdForm input:focus,
#smartAdForm select:focus,
#smartAdForm textarea:focus {
  border-color: #8a98aa !important;
  box-shadow: 0 0 0 3px rgba(52, 64, 84, 0.08) !important;
  outline: 0 !important;
}

#smartAdForm input[type="number"] {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}
#smartAdForm input[type="number"]::-webkit-inner-spin-button,
#smartAdForm input[type="number"]::-webkit-outer-spin-button {
  margin: 0 !important;
  -webkit-appearance: none !important;
}

body .category-browser-panel,
body [role="dialog"],
body [class*="selection-modal"],
body [class*="multi-select"] [class*="modal"] {
  color: var(--b24-pro-ink) !important;
  background: #fff !important;
  border: 1px solid #d5dce5 !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22) !important;
}

body .category-browser-head,
body [role="dialog"] header,
body [class*="modal"] [class*="header"] {
  color: var(--b24-pro-ink) !important;
  background: #fff !important;
  border-bottom: 1px solid #e4e7ec !important;
}

body .category-browser-kicker {
  color: #667085 !important;
}
body .category-browser-row,
body [role="dialog"] button,
body [class*="modal"] button {
  color: #344054 !important;
  background: #fff !important;
  border-color: #d0d5dd !important;
}

body .category-browser-row:hover,
body [role="dialog"] button:hover,
body [class*="modal"] button:hover {
  color: #101828 !important;
  background: #f2f4f7 !important;
  border-color: #98a2b3 !important;
}

body [role="dialog"] button[data-action="apply"],
body [class*="modal"] button[data-action="apply"],
body [class*="modal"] .apply {
  color: #fff !important;
  background: #27364a !important;
  border-color: #27364a !important;
}

@media (max-width: 900px) {
  html body #sectionsContainer.b24-results-categories,
  html body #resultsCategoriesStrip.b24-results-categories {
    width: calc(100% - 20px) !important;
    min-height: 102px !important;
    padding: 12px 10px 10px !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }
  html body #sectionsContainer > .b24-results-category,
  html body #resultsCategoriesStrip > .b24-results-category {
    flex-basis: 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }
  html body #sectionsContainer > .b24-results-category .cat-icon,
  html body #resultsCategoriesStrip > .b24-results-category .cat-icon {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
  }
}

@media (max-width: 620px) {
  html body header.b24-canonical-header .b24-header-action-btn,
  html body header.b24-global-header .b24-header-action-btn {
    min-width: 40px !important;
    padding: 0 10px !important;
  }
}
