// Breadcrumbs
.bx-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1310px;
  margin: 25px auto -40px auto;
  position: relative;
    z-index: 2;
    

  .bx-breadcrumb-item {
    color: rgba(0, 0, 0, 0.5);

    a {
      text-decoration: none;
      color: rgba(0, 0, 0, 0.5);

      &:hover {
        color: #000;
      }
    }

    span {

    }

    &:before {
      content: "<";
      display: inline-block;
      margin: 0 4px;
    }
  }

  @media all and (max-width: 1420px) {
    width: calc(100% - 160px);
    margin: 25px 80px -40px 80px;
  }

  @media all and (max-width: 960px) {
    margin: 25px 80px -25px 80px;
  }

  @media all and (max-width: 768px) {
    margin: 12px 16px -25px 16px;
    width: calc(100% - 32px);
  }
}

// Line
hr {
  display: block;
  width: 100%;
  height: 1px;
  background: #EDEFF5;
  border: 0;
  margin: 20px 0;
}

// Buttons
button,
.button {
  border: 0;
  background: transparent;
  appearance: none;
  box-shadow: none;
  cursor: pointer;
  box-sizing: border-box;
  padding: 0px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  font-weight: 600;
  font-size: 15px;
  line-height: 20px;


  @media all and (max-width: 1600px) {
    font-size: 13px;
  }
}

.button {
  color: var(--blue);
  background: #fff;
  

  &:disabled {
    opacity: 0.48;
    cursor: default;
  }

  &.icon {
    &:before {
      content: "";
      display: block;
      width: 16px;
      height: 16px;
      margin-right: 12px;
    }
  }

  &.button-blue { 
    background: var(--blue); 
    color: #fff;

    &.icon:before {
      background: url("/assets/images/icons/btn_icon_white.svg") no-repeat center; 
    }

    &.transparent {
      color: var(--blue);
      background: transparent;

      &.icon:before {
        background: url("/assets/images/icons/btn_icon_blue.svg") no-repeat center;
      }
    }
  }

  &.button-gray {
    color: var(--gray);
    background: var(--gray-light);

    &.transparent {
      color: var(--gray);
      background: transparent;
    }

    &.icon:before {
      background: url("/assets/images/icons/btn_icon_gray.svg") no-repeat center;
    }
  }

  &.button-compact {
    width: 40px;
    height: 40px;
    text-indent: -9999px;
    overflow: hidden;

    &.icon:before {
      margin-right: 0;
    }
  }

  &.download-icon {
    @media all and (max-width: 768px) {
      width: 24px;
      height: 24px;
      background: url("/assets/images/icons/download_icon.svg") no-repeat center;
      overflow: hidden;
      text-indent: -999px;

      svg {
        color: var(--blue) !important;
        background: #fff;
      }
    }
  }
}

// Labels
.form_field {
  position: relative;
}
input[type="checkbox"] {
  display: none;
  visibility: hidden;
  position: relative;

  & + label {
    cursor: pointer;
    padding-left: 28px;
    display: block;

    &:before {
      content: "";
      display: block;
      width: 16px;
      min-width: 16px;
      height: 16px;
      border: 1px solid rgba(0, 16, 61, 0.12);
      box-sizing: border-box;
      border-radius: 4px;
      margin-right: 12px;
      position: absolute;
      left: 0;
      top: 2px;
    }
  }

  &:checked + label {
    &:before {
      background: url("/assets/images/icons/checkbox_white.svg") no-repeat center var(--primary);
      border-color: var(--primary);
    }
  }
  &:disabled + label {
    &:before {
      //background: url("/assets/images/icons/checkbox_gray.svg") no-repeat center var(--gray-light);
      cursor: none;
      border-color: var(--gray-light);
    }
  }
}

input[type="radio"] {
  display: none;
  visibility: hidden;

  & + label {
    display: block;
    padding-left: 28px;
    cursor: pointer;

    &:before {
      content: "";
      display: block;
      border: 1px solid rgba(0, 16, 61, 0.12);
      box-sizing: border-box;
      border-radius: 100%;
      width: 16px;
      min-width: 16px;
      height: 16px;
      position: absolute;
      left: 0;
      top: 2px;
    }
  }

  &:checked + label {
    &:before {
      background: #fff;
      box-shadow: inset 0px 0 0px 5px #005FF9;
      border-color: #005FF9;
      border: 0;
    }
  }
  &:disabled + label {
    &:before {
      background:  var(--gray);
      cursor: none;
    }
  }
}

// Seleted Blocks
.selected_item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  box-sizing: border-box;
  padding: 0 2px;

  img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    object-position: center;
    margin-right: 8px;
  }

  .delete {
    margin-left: 8px;
    width: 28px;
    height: 28px;
    background: url("/assets/images/icons/delete_gray.svg") no-repeat center;
  }
}

// Text columns 
.list-column {
  column-gap: 20px;
  list-style: disc;
  margin: 15px 0 15px 20px;

  li {
    line-height: 25px;
  };

  &[data-column="2"] {
    column-count: 2;

    @media all and (max-width: 768px) {
      column-count: 1;
    }
  }

  &[data-column="3"] {
    column-count: 3;

    @media all and (max-width: 768px) {
      column-count: 1;
    }
  }
}

// Form elements
.form_field {
  position: relative;

  .clear {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: url("/assets/images/icons/delete_black.svg") no-repeat center;
    z-index: 2;
  }

  &.error {
    input, textarea, select {
      border-color: #FFADAD;
      margin-bottom: 30px !important;
    }

    &:after {
      content: attr(data-error);
      display: block;
      font-size: 11px;
      line-height: 15px;
      color: #FFADAD;
      position: absolute;
      left: 0;
      bottom: 12px;

      @media all and (max-width: 1600px) {
        font-size: 9px;
        
      }
    }
  }

  input, textarea, select {
    border: 1px solid rgba(0, 16, 61, 0.12);
    box-sizing: border-box;
    height: 40px;
    background: #fff;
    padding: 0 12px;
    width: 100%;
    outline: none;
    font-size: 15px;

    &::placeholder {
      font-size: 15px;
      line-height: 24px;
      color: #919399;
      font-family: 'Montserrat', sans-serif;
      font-weight: 400;
    }

    &.error {
      border-color: var(--red);
    }

    &.filled {
      border-color: rgba(0, 16, 61, 0.48);
    }

    &:disabled {
      background: var(--gray-light);
    }

    &[type="search"] {
      padding-left: 32px;
      background-image: url("/assets/images/icons/icon-search.svg");
      background-repeat: no-repeat;
      background-position: 8px 50%;
    }

    &[type="date"],
    &.date_input {
      padding-left: 32px;
      background-image: url("/assets/images/icons/icon-date.svg");
      background-repeat: no-repeat;
      background-position: 8px 50%;

      &::-webkit-inner-spin-button,
      &::-webkit-calendar-picker-indicator {
        display: none;
        -webkit-appearance: none;
      }

    }

    @media all and (max-width: 1600px) and (min-width: 1280px) {
      font-size: 14px;

      &::placeholder {
        font-size: 14px;
      }
    }

    @media all and (max-width: 960px) {
      font-size: 13px;
    }
  }

  

  select {
    background-image: url("/assets/images/icons/icon-select.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) 50%;
    -webkit-appearance: none;
    -moz-appearance: none;

    &::-ms-expand {
      display: none;
    }
  }

  textarea {
    padding-top: 10px;
    height: 80px;
  }
}

.fieldgroup {
  display: flex;
  justify-content: space-between;
}


// social
.socials {
  display: flex;

  a {
    display: block;
    width: 32px;
    height: 32px;
    text-decoration: none;

    &:not(:last-child) {
      margin-right: 22px;

      @media all and (max-width: 1279px) {
        margin-right: 6px;
      }
    }
  }
}

// Tabs
.tabs {
  display: flex;

  .tab {
    line-height: 40px;
    margin-right: 8px;
    padding: 0 20px;
    cursor: pointer;

    &.active {
      background: var(--blue);
      color: #fff;
      font-weight: 700;
      cursor: default;
    }

    @media all and (max-width: 960px) {
      font-size: 10px;
      line-height: 35px;

      &.active {
        font-weight: 400;
      }
    }

    @media all and (max-width: 768px) {
      margin-right: 0;
      padding: 0 16px;
    }
  }
}

// Pagination
.pagination {
  margin-top: 40px;

  @media all and (max-width: 1600px) and (min-width: 1280px) {
    margin-top: 20px;
  }

  ul {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;

    li {
      font-size: 26px;
      line-height: 35px;
      color: var(--blue);

      @media all and (max-width: 1600px) and (min-width: 1280px) {
        font-size: 20px;
        line-height: 30px;
      }

      a {
        display: block;
        padding: 0 5px;
      }
    }
  }

  @media all and (max-width: 1279px) {
    ul {
      justify-content: center;

      li {
        font-size: 13px;
        line-height: 28px;
        min-width: 30px;

        a {
          text-align: center;
          font-weight: 600;
        }
      }
    }
  }
}

// Превью изображения
.image-full {
  width: 100%;
  margin-bottom: 50px;
  height: 450px;
  background: var(--gray-light);

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

// UL с кастомными точками
ul.custom-dots {
  list-style: none;
  padding: 0;

  li {
    padding-left: 15px;
    position: relative;

    &:before {
      content: "";
      display: block;
      position: absolute;
      width: 2px;
      height: 2px;
      background: #000;
      border-radius: 2px;
      top: 9px;
      left: 5px;
    }
  }
}


// Date Picker Custom Styles
.date_input_wrapper {
  position: relative;

  .rw-widget-picker {
    border: 1px solid rgba(0, 16, 61, 0.12) !important;
    box-shadow: none !important; 
    box-sizing: border-box;
    height: 40px;
    background: #fff;
    border-radius: 0;
    
    width: 100%;
    outline: none;
    font-size: 15px;
  }
  .rw-widget-input {
    padding: 0 12px 0 32px;
    outline: none;
    box-shadow: none !important; 
    border: 0;

    @media all and (max-width:768px) {
      margin-top: 0;
    }
  } 

  .rw-input-addon.rw-picker-btn {
    border: 0;
    width: 100%;
    background-image: url("/assets/images/icons/icon-date.svg");
    background-repeat: no-repeat;
    background-position: 8px 50%;
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;

    &:hover {
      background-color: transparent;
    }

    svg {
      display: none;
    }
  }
}

// Multi Select
.custom-multi-select {
  .custom-select__control {
    min-height: 40px;
    border-radius: 0;
    border: 1px solid rgba(0,16,61,0.12) !important;
    background: #fff;
    box-shadow: unset !important;

    .custom-select__control {
      margin: 0;
    }

    .custom-select__value-container {
      padding: 2px 12px;
    }

    .custom-select__input-container {
      margin-top: 0;
      min-height: 38px;
    }

    .custom-select__multi-value {
      margin-top: 0;
    }
  }
}