/* Shared Gradlist header and profile-menu normalization. */

.header-wow-top-list-icon-item {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-right: 12px;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  color: #8d96a5 !important;
  background: transparent !important;
  box-shadow: none !important;
  vertical-align: middle;
}

button.header-wow-top-list-icon-item {
  padding: 0 !important;
  font: inherit;
  appearance: none;
}

.header-wow-top-list-icon-item > svg {
  display: block;
  width: 32px;
  height: 32px;
}

.header-wow-top-list-icon-item > i {
  color: #8d96a5 !important;
}

.header-wow-top-list-icon-item:hover {
  color: #66707f !important;
  background: transparent !important;
  opacity: .8;
}

.header-wow-top-list-icon-item .chat-icon-counter {
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: none !important;
  animation: none !important;
}

.profile-popup .profile-menu__grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 4px !important;
}

.profile-popup .profile-menu__wallet,
.profile-popup .profile-menu__action,
.profile-popup .profile-menu__business,
.profile-popup .profile-menu__link {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0 !important;
  padding: 9px 10px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 10px !important;
  color: #253049 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.profile-popup .profile-menu__wallet:hover,
.profile-popup .profile-menu__action:hover,
.profile-popup .profile-menu__business:hover,
.profile-popup .profile-menu__link:hover {
  color: #2467e9 !important;
  background: #f3f6fb !important;
  box-shadow: none !important;
  transform: none !important;
}

.profile-popup .profile-menu__action-icon,
.profile-popup .profile-menu__wallet-icon,
.profile-popup .profile-menu__business-icon {
  display: grid;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  color: #6b737e !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-popup .profile-menu__action-icon svg,
.profile-popup .profile-menu__wallet-icon svg,
.profile-popup .profile-menu__business-icon svg,
.profile-popup .profile-menu__link > svg {
  display: block;
  width: 24px !important;
  height: 24px !important;
  flex: 0 0 24px;
}

.profile-popup .profile-menu__wallet-info,
.profile-popup .profile-menu__business-content {
  min-width: 0;
}

.profile-popup .profile-menu__wallet-info small,
.profile-popup .profile-menu__business-content span {
  color: #8791a4 !important;
  font-size: 11px;
}

.profile-popup .profile-menu__wallet-info strong,
.profile-popup .profile-menu__business-content strong {
  color: #253049 !important;
  font-size: 14px;
}

.profile-popup .profile-menu__wallet-add {
  padding: 5px 7px;
  border-radius: 7px;
  color: #2467e9;
  background: #edf4ff;
  font-size: 10px;
}

.profile-popup .profile-menu__business {
  margin-top: 4px !important;
  text-align: left;
}

.profile-popup .profile-menu__business-toggle {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 0;
  color: #6b737e;
}

.profile-popup .profile-menu__footer {
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
}

.profile-popup .profile-menu__link--logout {
  color: #d94c58 !important;
}

.profile-popup .profile-menu__section-title {
  margin-top: 12px;
}

.profile-popup .profile-popup__close {
  border-radius: 0;
  background: transparent;
}

.profile-popup .profile-popup__close:hover {
  background: transparent;
  opacity: .7;
}

/* Publication flow aligned with the supplied archive and Figma layout. */
.gradlist-new-ad-create {
  background: #f5f7fb;
}

.gradlist-new-ad-create .gradlist-ad-create {
  min-height: 70vh;
  padding: 46px 0 72px;
}

.gradlist-ad-create__top {
  position: relative;
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.gradlist-new-ad-create .gradlist-ad-create__top h1 {
  grid-column: 2;
  margin: 0;
  color: #17213a;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.gradlist-ad-create__drafts {
  display: inline-flex;
  min-height: 46px;
  padding: 0 18px;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  color: #176ff2 !important;
  background: #e9f2ff;
  font-size: 14px;
  font-weight: 650;
}

.gradlist-ad-create__drafts:hover {
  color: #0e55c9 !important;
  background: #dfeeff;
}

.gradlist-new-ad-create .ad-create-categories-container {
  position: relative;
  max-width: none;
  margin: 15px 0 50px;
  padding: 0;
  overflow: visible;
  color: #17213a;
  background: transparent;
  box-shadow: none;
}

.gradlist-new-ad-create .ad-create-categories-container .row {
  margin: 0;
}

.gradlist-new-ad-create .ad-create-categories-container .col-12 {
  padding: 0;
}

.gradlist-category-history__item {
  margin-bottom: 22px;
}

.gradlist-category-history__item span,
.gradlist-category-select__label {
  display: block;
  margin-bottom: 12px;
  color: #17213a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.gradlist-category-history__item strong {
  display: flex;
  width: 100%;
  min-height: 56px;
  padding: 0 22px;
  align-items: center;
  border-radius: 12px;
  color: #17213a;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 53, 86, .07);
  font-size: 15px;
  font-weight: 500;
}

.gradlist-new-ad-create .ad-create-categories-container-items {
  position: relative;
  display: block;
  width: 100%;
}

/* Native category list: retain AJAX navigation, highlight in the brand blue. */
.gradlist-new-ad-create .ad-create-categories-container-items > .ad-create-categories-item {
  display: inline-block;
  max-width: 100%;
  margin: 0 8px 8px 0;
  padding: 7px 17px;
  border-radius: 15px;
  color: #17213a;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}

.gradlist-new-ad-create .ad-create-categories-container-items > .ad-create-categories-item:hover,
.gradlist-new-ad-create .ad-create-categories-container-items > .ad-create-categories-item.active {
  color: #fff !important;
  background: #176ff2 !important;
}

.gradlist-new-ad-create .ad-create-categories-back {
  color: #176ff2;
  background: #e9f2ff;
}

.gradlist-new-ad-create .ad-create-categories-back:hover {
  color: #fff;
  background: #176ff2;
}

.gradlist-category-select__trigger {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 56px;
  padding: 0 54px 0 22px;
  align-items: center;
  border: 0;
  border-radius: 12px;
  color: #17213a;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 53, 86, .07);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.gradlist-new-ad-create .gradlist-category-select__trigger > span {
  display: inline;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: inherit !important;
  background: transparent !important;
  font: inherit;
  transform: none !important;
}

.gradlist-category-select__trigger i {
  position: absolute;
  right: 22px;
  width: 9px;
  height: 9px;
  border-right: 1.8px solid #17213a;
  border-bottom: 1.8px solid #17213a;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .18s ease;
}

.gradlist-category-select.is-open .gradlist-category-select__trigger i {
  transform: rotate(225deg) translate(-2px, -1px);
}

.gradlist-category-select__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  display: none;
  width: 100%;
  max-height: 330px;
  padding: 7px;
  overflow: auto;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(22, 38, 73, .16);
}

.gradlist-category-select.is-open .gradlist-category-select__menu {
  display: block;
}

.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-item,
.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-back {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  align-items: center;
  border: 0;
  border-radius: 9px;
  color: #17213a;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .14s ease, background .14s ease;
}

.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-item:hover,
.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-item.active {
  color: #fff !important;
  background: #176ff2 !important;
  transform: none;
}

.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-back {
  margin-bottom: 4px;
  color: #176ff2;
  background: #edf4ff;
}

.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-back-box {
  margin: 0 0 4px;
}

.gradlist-new-ad-create .gradlist-category-select__menu .ad-create-categories-back-box .ad-create-categories-back {
  margin: 0 !important;
}

.gradlist-new-ad-create .ad-create-categories-container.has-category .row {
  display: none;
}

.gradlist-new-ad-create .ad-create-options-container {
  max-width: 808px;
  margin: 0 auto;
}

.gradlist-new-ad-create .ad-create-content-container > .row {
  display: block;
  margin: 0;
}

.gradlist-new-ad-create .ad-create-content-container > .row > .col-md-6 {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.gradlist-new-ad-create .ad-create-content-container > .row > .col-md-4 {
  display: none;
}

.gradlist-new-ad-create .ad-create-options-container-item {
  margin: 0 0 42px;
  padding: 0 0 42px;
  border-bottom: 1px solid #dfe4ec;
}

.gradlist-new-ad-create .ad-create-options-container-item-title {
  margin: 0 0 18px;
  color: #17213a;
  font-size: 21px;
  line-height: 1.25;
}

.gradlist-new-ad-create .ad-create-options-actions-swim {
  border-top-color: #e1e6ef;
  background: rgba(245, 247, 251, .94);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.gradlist-new-ad-create .ad-create-options-actions-swim .adActionPublication,
.gradlist-new-ad-create .ad-create-options-actions-swim button {
  min-width: 160px;
  min-height: 48px;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #176ff2 !important;
  box-shadow: none !important;
}

.gradlist-new-ad-create .ad-create-options-actions-swim .adActionPublication:hover,
.gradlist-new-ad-create .ad-create-options-actions-swim button:hover {
  background: #0e5fd8 !important;
}

.gradlist-new-ad-create .form-control,
.gradlist-new-ad-create .form-control-textarea,
.gradlist-new-ad-create .uni-select-name {
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 7px 20px rgba(37, 53, 86, .055) !important;
}

.gradlist-new-ad-create .form-control,
.gradlist-new-ad-create .uni-select-name {
  min-height: 52px;
}

.gradlist-new-ad-create .form-control:focus,
.gradlist-new-ad-create .form-control-textarea:focus,
.gradlist-new-ad-create .uni-select.active .uni-select-name {
  border-color: #176ff2 !important;
  box-shadow: 0 0 0 3px rgba(23, 111, 242, .11) !important;
}

.gradlist-new-ad-create [data-gradlist-section="characteristics"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}

.gradlist-new-ad-create [data-gradlist-section="characteristics"] > .ad-create-options-container-item-title,
.gradlist-new-ad-create [data-gradlist-section="characteristics"] > p {
  margin-bottom: 0 !important;
  grid-column: 1 / -1;
}

.gradlist-new-ad-create [data-gradlist-section="characteristics"] .params-form-item {
  min-width: 0;
  margin: 0;
}

.gradlist-new-ad-create [data-gradlist-section="characteristics"] .params-form-item > .row {
  display: block;
  margin: 0;
}

.gradlist-new-ad-create [data-gradlist-section="characteristics"] .params-form-item > .row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.gradlist-new-ad-create [data-gradlist-section="characteristics"] .params-form-item-label {
  display: block;
  margin-bottom: 10px;
  color: #17213a;
  font-size: 14px;
  font-weight: 650;
}

/* One restrained gray icon language for profile and support UI. */
.profile-user-sidebar-menu a {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  gap: 10px;
}

.profile-user-sidebar-menu a > i {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  flex: 0 0 24px;
  place-items: center;
  color: #6b737e !important;
  font-size: 22px !important;
  line-height: 1;
}

.gradlist-channel-avatar,
.chat-dialogue-item-card--support .chat-dialogue-item-card-image {
  display: grid;
  place-items: center;
  color: #176ff2;
  background: #edf4ff !important;
}

.gradlist-channel-avatar .gradlist-channel-icon,
.gradlist-support-dialogue-icon {
  display: block;
  color: #176ff2;
}

.gradlist-support-message-avatar {
  display: grid !important;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  color: #176ff2;
  background: #edf4ff !important;
  overflow: hidden;
}

.gradlist-support-message-avatar .gradlist-channel-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: #176ff2;
}

@media (max-width: 767px) {
  .gradlist-new-ad-create .gradlist-ad-create {
    padding: 24px 0 48px;
  }

  .gradlist-ad-create__top {
    display: block;
    text-align: center;
  }

  .gradlist-new-ad-create .gradlist-ad-create__top h1 {
    font-size: 27px;
  }

  .gradlist-ad-create__drafts {
    display: none;
  }

  .gradlist-new-ad-create .ad-create-categories-container {
    max-width: none;
    margin: 26px 0 38px;
  }

  .gradlist-category-select__trigger,
  .gradlist-category-history__item strong {
    min-height: 54px;
    border-radius: 11px;
  }

  .gradlist-new-ad-create .ad-create-options-container {
    max-width: none;
  }

  .gradlist-new-ad-create .ad-create-options-container-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
  }

  .gradlist-new-ad-create [data-gradlist-section="characteristics"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .gradlist-new-ad-create .ad-create-options-container-item-title {
    font-size: 19px;
  }
}

@media (max-width: 390px) {
  .gradlist-category-select__trigger,
  .gradlist-category-history__item strong {
    padding-right: 46px;
    padding-left: 16px;
  }
}
