main {
  min-height: 270px;
}

#content-status, #nav-item-path {
  margin-top: 35px;
}

#content-status {
  position: relative;
}

#content-status.error::before {
  content:    'Не удалось отобразить форму. Попробуйте обновить страницу позже!';
  position:   absolute;
  text-align: center;
  top:        35px;
  width:      100%;
}

#content-status.loading::before {
  background:      url('../assets/images/preloader.svg') 0 0 no-repeat;
  background-size: 200px;
  content:         '';
  height:          200px;
  left:            calc(50% - 100px);
  position:        absolute;
  width:           200px;
}

#nav-item-path {
  --bs-breadcrumb-divider: '/';
  color:                   #6A7998;
  font-size:               12px;
  line-height:             16px;
}

#nav-item-path .breadcrumb-item::before {
  color: #6A7998;
}

#nav-item-path .breadcrumb-item > a {
  color:           #1C222E;
  text-decoration: none;
}

#nav-item-path .breadcrumb-item > a:active {
  color: #FF6224 !important;
}

#nav-item-path .breadcrumb-item > a:hover {
  color: #FF8658;
}

#edit-item-wrapper {
  margin-bottom: 80px;
  overflow-x:    auto;
}

#edit-item-wrapper h1 {
  color:         #1C222E;
  font-size:     40px;
  font-weight:   500;
  line-height:   48px;
  margin-bottom: 31px;
}

#eiw-form-wrapper {
  background:    #FFFFFF;
  border-radius: 8px;
/*min-width:     410px;*/
  padding:       16px;
}

#eiw-form-wrapper .eiwf-item {
  margin-bottom: 20px;
}

#eiw-form-wrapper .eiwf-item-title {
  color:        #6A7998;
  margin-right: 20px;
  min-width:    180px;
  width:        180px;
}

#eiw-form-wrapper .eiwf-item-value.pictures,
#eiw-form-wrapper .eiwf-item-value.videos,
#eiw-form-wrapper .eiwf-item-value.audios {
  overflow-x: auto;
  width:      100%;
}

#eiw-form-wrapper .eiwf-item-wrapper {
  border:        2px solid #D2D2D2;
  border-radius: 8px !important;
  transition:    border-color .15s ease-in-out;
  width:         100%;
}

#eiw-form-wrapper .eiwf-item-wrapper.active {
  border: 2px solid #7155C6;
}

#eiw-form-wrapper .eiwf-item-wrapper.status {
  width: auto;
}

#eiw-form-wrapper .eiwf-item-wrapper .input-group-text {
  background: #FFFFFF;
  border:     none;
  color:      #6A7998;
  height:     47px;
  max-height: 47px;
  min-height: 47px;
  max-width:  47px;
  min-width:  47px;
  padding:    16px;
  width:      47px;
}

#eiw-form-wrapper .eiwf-item-wrapper .input-group-text:first-child {
  border-bottom-left-radius: 6px;
  border-top-left-radius:    6px;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container {
  width: -webkit-fill-available !important;
}

#eiw-form-wrapper .eiwf-item-wrapper.status > .select2-container {
  width: 194px !important;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container--default .select2-selection--single {
  border:                     none;
  border-bottom-left-radius:  0;
  border-bottom-right-radius: 6px;
  border-top-left-radius:     0;
  border-top-right-radius:    6px;
  height:                     47px;
}

#eiw-form-wrapper .eiwf-item-wrapper.status .select2-container--default .select2-selection--single {
  border-bottom-left-radius: 6px;
  border-top-left-radius:    6px;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 10px 50px 10px 0;
}

#eiw-form-wrapper .eiwf-item-wrapper.status .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 10px 45px 10px 16px;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #6A7998;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 45px;
  width:  45px;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container--open .select2-dropdown {
  border:        2px solid #7155C6 !important;
  border-radius: 8px !important;
  left:          -49px;
  top:           4px;
}

#eiw-form-wrapper .eiwf-item-wrapper.status .select2-container--open .select2-dropdown {
  left: -1px;
}

#eiw-form-wrapper .eiwf-item-wrapper .select2-container--open .select2-dropdown--above {
  top: -4px;
}

#eiw-form-wrapper input.eiwf-item-value[type=number],
#eiw-form-wrapper input.eiwf-item-value[type=tel],
#eiw-form-wrapper input.eiwf-item-value[type=text],
#eiw-form-wrapper textarea {
  border:        2px solid #D2D2D2;
  border-radius: 8px !important;
  padding:       12px 16px 11px 16px;
  resize:        none;
  transition:    border-color .15s ease-in-out;
  width:         100%;
}

#eiw-form-wrapper textarea {
  height: 144px;
}

#eiw-form-wrapper input.eiwf-item-value#eiwf-price, #eiw-form-wrapper input.eiwf-item-value#eiwf-high-price {
  margin-right: 8px;
  width:        173px;
}

#eiw-form-wrapper #eiwf-price-type + .select2-container,
#eiw-form-wrapper #eiwf-currency + .select2-container {
  border:        2px solid #D2D2D2;
  border-radius: 8px !important;
  height:        51px;
  transition:    border-color .15s ease-in-out;
}

#eiw-form-wrapper #eiwf-price-type + .select2-container.active,
#eiw-form-wrapper #eiwf-currency + .select2-container.active {
  border: 2px solid #7155C6;
}

#eiw-form-wrapper #eiwf-price-type + .select2-container .select2-selection.select2-selection--single,
#eiw-form-wrapper #eiwf-currency + .select2-container .select2-selection.select2-selection--single {
  border:        none;
  border-radius: 6px;
  height:        47px;
}

#eiw-form-wrapper #eiwf-price-type + .select2-container .select2-selection.select2-selection--single .select2-selection__rendered,
#eiw-form-wrapper #eiwf-currency + .select2-container .select2-selection.select2-selection--single .select2-selection__rendered {
  line-height:   49px;
  padding-left:  16px;
  padding-right: 45px;
}

#eiw-form-wrapper #eiwf-price-type + .select2-container .select2-selection.select2-selection--single .select2-selection__arrow,
#eiw-form-wrapper #eiwf-currency + .select2-container .select2-selection.select2-selection--single .select2-selection__arrow {
  height: 45px;
  width:  45px;
}

#eiw-form-wrapper #eiwf-price-type ~ .select2-container--open .select2-dropdown,
#eiw-form-wrapper #eiwf-currency ~ .select2-container--open .select2-dropdown {
  border:        2px solid #7155C6 !important;
  border-radius: 8px !important;
  top:           4px;
}

#eiw-form-wrapper #eiwf-price-type ~ .select2-container--open .select2-dropdown--above,
#eiw-form-wrapper #eiwf-currency ~ .select2-container--open .select2-dropdown--above {
  top: -4px;
}

#eiw-form-wrapper input.eiwf-item-value#eiwf-phone-number {
  width: 238px;
}

#eiw-form-wrapper input.eiwf-item-value[type=number]::placeholder,
#eiw-form-wrapper input.eiwf-item-value[type=tel]::placeholder,
#eiw-form-wrapper input.eiwf-item-value[type=text]::placeholder,
#eiw-form-wrapper textarea::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color:   #6A7998;
  opacity: 1; /* Firefox */
}

#eiw-form-wrapper input.eiwf-item-value[type=number]::-ms-input-placeholder,
#eiw-form-wrapper input.eiwf-item-value[type=tel]::-ms-input-placeholder,
#eiw-form-wrapper input.eiwf-item-value[type=text]::-ms-input-placeholder,
#eiw-form-wrapper textarea::-ms-input-placeholder { /* Microsoft Edge */
  color: #6A7998;
}

#eiw-form-wrapper input.eiwf-item-value[type=number]:-ms-input-placeholder,
#eiw-form-wrapper input.eiwf-item-value[type=tel]:-ms-input-placeholder,
#eiw-form-wrapper input.eiwf-item-value[type=text]:-ms-input-placeholder,
#eiw-form-wrapper textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #6A7998;
}

#eiw-form-wrapper input.eiwf-item-value[type=number]:focus,
#eiw-form-wrapper input.eiwf-item-value[type=tel]:focus,
#eiw-form-wrapper input.eiwf-item-value[type=text]:focus,
#eiw-form-wrapper textarea:focus {
  border: 2px solid #7155C6;
}

#eiw-form-wrapper .switch-toggle.switch-candy {
  background-color: #E4E2EB;
  border:           2px solid #E4E2EB;
  border-radius:    8px;
  box-shadow:       none;
}

#eiw-form-wrapper .switch-toggle.switch-candy#eiwf-state {
  width: 378px;
}

#eiw-form-wrapper .switch-toggle.switch-candy#eiwf-delivering {
  width: 320px;
}

#eiw-form-wrapper .switch-candy a {
  background:    #FFFFFF;
  border:        none;
  border-radius: 6px;
  box-shadow:    none;
}

#eiw-form-wrapper .switch-toggle.switch-candy label {
  color:       #1C222E;
  cursor:      pointer;
  font-weight: 400;
  outline:     none;
  padding:     10px 16px;
  text-shadow: none;
}

#eiw-form-wrapper .switch-toggle.switch-candy label[for=eiwf-new],
#eiw-form-wrapper .switch-toggle.switch-candy label[for=eiwf-used],
#eiw-form-wrapper .switch-toggle.switch-candy label[for=eiwf-not-applicable] {
  padding: 10px 4px;
}

#eiw-form-wrapper .switch-candy input:checked + label {
  color:       #1C222E;
  text-shadow: none;
}

#eiw-form-wrapper button.btn.btn-primary:not(#eiwf-save-as-draft):not(#eiwf-submit-item) {
  padding: 2px 7px 4px;
}
/*
#eiw-form-wrapper button.btn.btn-link {
  border:  none;
  color:   #6C56B0;
  padding: 0;
}*/

#eiw-form-wrapper p {
  margin-bottom: 20px;
}

#eiw-form-wrapper .eiwf-add-buttons {
  display:     flex;
  overflow-x:  auto;
  white-space: nowrap
}

#eiwf-take-picture, #eiwf-take-video, #eiwf-take-audio,
#eiw-form-wrapper .eiwf-add-buttons > button {
  background:    #E7E5F0;
  border:        none;
  border-radius: 4px;
  color:         #6A7998;
  height:        160px;
  margin-right:  12px;
  min-width:     153px;
  position:      relative;
  width:         153px;
}

#eiwf-take-picture, #eiwf-take-video, #eiwf-take-audio {
  cursor: pointer;
}

#eiwf-take-picture:active, #eiwf-take-video:active, #eiwf-take-audio:active,
#eiw-form-wrapper .eiwf-add-buttons > button:active {
  background: #C9C5DD;
}

#eiw-form-wrapper .eiwf-add-buttons > button:last-child {
  margin-right: 0;
}

#eiw-form-wrapper .eiwf-add-buttons > button > img:not(.eiwf-picture-thumb) {
  margin-bottom: 13px;
}

#eiw-form-wrapper .eiwf-add-buttons > button > img.eiwf-picture-thumb,
#eiw-form-wrapper .eiwf-add-buttons > button > video.eiwf-video-thumb {
  background:    #E7E5F0;
  border-radius: 4px;
  height:        100%;
  left:          0;
  object-fit:    contain;
  position:      absolute;
  top:           0;
  width:         100%;
}

#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-audio-info {
  background:     #E7E5F0;
  border-radius:  4px;
  display:        flex;
  flex-direction: column;
  height:         100%;
  left:           0;
  padding:        8px;
  position:       absolute;
  top:            0;
  width:          100%;
}

#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-audio-info > .eiwf-audio-name {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display:            -webkit-box;
  font-weight:        600;
  height:             20px;
  margin:             auto auto 8px auto;
  overflow:           hidden;
  text-align:         center;
  text-overflow:      ellipsis;
  width:              100%;
}

#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-audio-info > .eiwf-audio-size {
  margin: 0 auto auto auto;
}

#eiw-form-wrapper .eiwf-add-buttons > button > input[type=file] {
  cursor:   pointer;
  height:   100%;
  left:     0;
  opacity:  0;
  position: absolute;
  top:      0;
  width:    100%;
}

#eiw-form-wrapper .eiwf-add-buttons > button > input[type=file].background {
  z-index: -1;
}

#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-remove-user-media {
  background:    #FFFFFF;
  border-radius: 2px;
  color:         #6A7998;
  cursor:        pointer;
  padding:       0 5px;
  position:      absolute;
  right:         8px;
  top:           8px;
}

#eiwf-take-picture, #eiwf-take-video, #eiwf-take-audio,
#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-picture-icon, #eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-video-icon,
#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-audio-icon {
  font-size:   32px;
  line-height: 48px;
}

#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-audio-to-text {
  background:    #FFFFFF;
  border:        none;
  border-radius: 2px;
  color:         #6A7998;
  cursor:        pointer;
  font-size:     13px;
  left:          8px;
  padding:       0 5.13px;
  position:      absolute;
  top:           8px;
}

#eiw-form-wrapper .eiwf-add-buttons > button > .eiwf-audio-to-text:disabled {
  cursor:  default;
  opacity: .5;
}

#eiw-form-wrapper .audio-recognition p {
  margin-bottom: 6px;
  margin-top:    12px;
}

#eiw-form-wrapper .audio-recognition textarea {
  height: 108px;
}

#eiw-form-wrapper #eiwf-more-notable-control {
  -moz-appearance:    none;
  -webkit-appearance: none;
  appearance:         none;
  background:         #FFFFFF url('../assets/images/checkbox-unchecked-2.svg') 0 0 no-repeat;
  background-size:    contain !important;
  border-radius:      4px;
  cursor:             pointer;
  display:            inline-block;
  height:             24px;
  margin:             0 10px 0 0;
  min-height:         24px;
  min-width:          24px;
  outline:            none;
  padding:            0;
  transition:         background-image 300ms ease;
  vertical-align:     top;
  width:              24px;
}

#eiw-form-wrapper #eiwf-more-notable-control:checked {
  background: #FFFFFF url('../assets/images/checkbox-checked-2.svg') 0 0 no-repeat !important;
}

#eiw-form-wrapper #eiwf-more-notable label {
  cursor: pointer;
}

#eiw-form-wrapper #eiwf-buttons {
  margin-top: 40px;
  text-align: end;
}

#eiw-form-wrapper #eiwf-buttons > #eiwf-delete-item {
  color: #AF052F;
}

#eiw-form-wrapper #eiwf-buttons > button:nth-child(2),
#eiw-form-wrapper #eiwf-buttons > button:nth-child(3) {
  width: 256px;
}

#eiw-form-wrapper #eiwf-buttons > button:nth-child(2) {
  margin: 0 20px;
}

#admin-wrapper .sidebar:last-child {
  margin-left: 20px;
  min-width:   280px;
  width:       280px;
}

#admin-wrapper #sw-progress-bar {
  background:    #FFFFFF;
  border-radius: 8px;
  padding:       16px;
  margin-top:    79px;
}

#admin-wrapper #sw-progress-bar #swpb-progress-items {
  margin-bottom: 0;
  padding-left:  36px;
  position:      relative;
}

#admin-wrapper #sw-progress-bar #swpb-progress-items::before {
  background: #E4E2EB;
  bottom:     8px;
  content:    '';
  left:       8px;
  position:   absolute;
  top:        8px;
  width:      2px;
}

#admin-wrapper #sw-progress-bar .swpb-progress-item {
  color:         #6A7998;
  display:       block;
  margin-bottom: 21px;
  position:      relative;
}

#admin-wrapper #sw-progress-bar .swpb-progress-item::before {
  background:      url('../assets/images/admin-progress-bar-marker.svg') 50% 50% no-repeat;
  background-size: 12px;
  content:         '';
  height:          16px;
  left:            -35px;
  position:        absolute;
  top:             4px;
  width:           16px;
}

#admin-wrapper #sw-progress-bar .swpb-progress-item.checked::before {
  background:      url('../assets/images/admin-progress-bar-marker-checked.svg') 50% 50% no-repeat;
  background-size: 16px;
  content:         '';
  height:          16px;
  left:            -35px;
  position:        absolute;
  top:             4px;
  width:           16px;
}

#admin-wrapper #sw-progress-bar .swpb-progress-item:last-child {
  margin-bottom: 0;
}

@media(max-width: 1199px) {

  #admin-wrapper .sidebar:last-child {
    min-width: 204px;
    width:     204px;
  }

}

@media(max-width: 991px) {

  #admin-wrapper #sw-progress-bar {
    margin-top: 71px;
  }

  #edit-item-wrapper h1 {
    font-size:   32px;
    line-height: 40px;
  }

  #eiw-form-wrapper .eiwf-item {
    flex-direction: column;
  }

  #eiw-form-wrapper .eiwf-item-wrapper.status {
    width: 198px;
  }

  #eiw-form-wrapper .eiwf-item-title {
    margin-bottom: 8px;
    margin-right:  0;
  }

  #eiw-form-wrapper .eiwf-item-title.price {
    margin-bottom: 0;
  }

  #eiw-form-wrapper .eiwf-item-title.price + div > * {
    margin-top: 8px;
  }

  #eiw-form-wrapper .switch-toggle.switch-candy#eiwf-kind {
    width: 172px;
  }

  #eiw-form-wrapper #eiwf-buttons > button:nth-child(2) {
    margin-bottom: 8px;
    margin-right:  0;
  }

  #eiw-form-wrapper #eiwf-buttons > button:nth-child(2),
  #eiw-form-wrapper #eiwf-buttons > button:nth-child(3) {
    width: 222px;
  }

}

@media(max-width: 767px) {

  #admin-wrapper {
    position: relative;
  }

  #admin-wrapper .sidebar:last-child {
  /*display:     none;*/
    margin-left: 0;
    min-width:   unset;
    position:    absolute;
    width:       100%;
  }

  #eiw-form-wrapper {
    margin-top: 375px;
  }

  #eiw-form-wrapper .eiwf-item-wrapper .select2-container {
    width: calc(100% - 47px) !important;
  }

}

@media(max-width: 493px) {

  #admin-wrapper .sidebar:last-child {
    top: 39px;
  }

}

@media(max-width: 441px) {

  #content-status.error::before {
    top: 70px;
  }

  #edit-item-wrapper {
    position: relative;
  }

  #eiw-form-wrapper {
    padding-bottom: 214px;
  }

  #eiw-form-wrapper #eiwf-buttons {
    display:        flex;
    flex-direction: column-reverse;
    left:           16px;
  /*max-width:      222px;*/
    position:       absolute;
    right:          16px;
  }

  #eiw-form-wrapper #eiwf-buttons > button:nth-child(1) {
    margin-bottom: 0;
  }

  #eiw-form-wrapper #eiwf-buttons > button:nth-child(2),
  #eiw-form-wrapper #eiwf-buttons > button:nth-child(3) {
    margin-bottom: 8px;
    margin-left:   0;
    margin-right:  0;
    width:         100%;
  /*width:         135px;*/
  }

  #eiwf-state, #eiwf-delivering {
    display: flex !important;
    width:   260px !important;
  }

  #eiw-form-wrapper .eiwf-item-wrapper .select2-dropdown {
    max-width: 290px !important;
  }

  #eiwf-state label, #eiwf-delivering label {
    line-height: 22px;
    margin:      auto 0;
  }

  #eiwf-state label[for=eiwf-not-applicable] {
    font-size:   13px;
    line-height: 19px;
  }

}

@media(max-width: 324px) {

  #eiw-form-wrapper .eiwf-item-wrapper .select2-dropdown {
    max-width: 238px !important;
  }

  #eiwf-state, #eiwf-delivering {
    width: 236px !important;
  }

}

@media(max-width: 279px) {

  #eiw-form-wrapper {
    margin-top: 399px;
  }

}