﻿.information-bar {
  &__item {

    & svg {
      transition: .2s;
    }

    &.open {
      .information-bar__item_name {
        & svg {
          transform: rotate(180deg);
        }
      }

      .information-bar__item-info {
        svg {
          transform: rotate(0);
        }
      }
    }

    &-tabs {
      border: 1px solid var(--Stroke);
      border-radius: 4px;
      margin-bottom: 16px;
      background: var(--Bg1);
      overflow: hidden;
      width: 100%;

      @media (max-width: 768px) {
        max-height: 140px;
        overflow-y: scroll;
        overflow-x: hidden;
      }

      &.max-content {
        max-width: max-content;

        .block {
          &__item {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 4px;
            cursor: pointer;
            max-width: calc(100% / 9);
            width: 100%;
            min-width: 135px;
  
            @media (max-width: 991px) {
              max-width: calc(100% / 7);
            }
  
            @media (max-width: 768px) {
              max-width: 100%;
            }
  
            &:after {
              content: '';
              position: absolute;
              right: -3px;
              top: 50%;
              transform: translateY(-50%);
              width: 1px;
              height: 24px;
              background: var(--Stroke);
  
              @media (max-width: 768px) {
                display: none;
              }
            }

            &:last-child {
              margin-right: 2px;
            }

            span {
              display: flex;
              align-items: center;
              justify-content: center;
              text-align: center;
              font-size: 12px;
              line-height: 100%;
              color: var(--Main1);
              padding-top: 6px;
              padding-bottom: 6px;
              min-height: 32px;
              height: 100%;
              width: 100%;
              position: relative;
              transform: translateX(2.5px);

              @media (max-width: 768px) {
                transform: translateX(0);
              }

              &:after {
                content: '';
                position: absolute;
                bottom: -5px;
                left: -10px;
                width: 100vw;
                height: 1px;
                background: var(--Stroke);

                @media (max-width: 768px) {
                  display: none;
                }
              }

              &.active {
                background: #fff;
                box-shadow: 0px 2px 10px rgba(58, 58, 58, 0.15);
                border-radius: 4px;
                font-weight: bold;
              }
            }
          }
        }
      }

      .block {
        display: flex;
        flex-wrap: wrap;
        margin-left: -3px;

        a {
          display: flex;
          align-items: center;
          justify-content: center;
          position: relative;
          padding: 2px;
          cursor: pointer;
          max-width: calc(100% / 9);
          width: 100%;
          min-width: 100px;

          @media (max-width: 991px) {
            max-width: calc(100% / 7);
          }

          @media (max-width: 768px) {
            max-width: 100%;
          }

          &:after {
            content: '';
            position: absolute;
            right: -3px;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: calc(100% - 6px);
            background: var(--Stroke);

            @media (max-width: 768px) {
              display: none;
            }
          }

          span {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 12px;
            line-height: 100%;
            color: var(--Main1);
            padding-top: 6px;
            padding-bottom: 6px;
            min-height: 32px;
            height: 100%;
            width: 100%;
            position: relative;
            transform: translateX(2.5px);

            @media (max-width: 768px) {
              transform: translateX(0);
            }

            &:after {
              content: '';
              position: absolute;
              bottom: -3px;
              left: -10px;
              width: 100vw;
              height: 1px;
              background: var(--Stroke);

              @media (max-width: 768px) {
                display: none;
              }
            }

            &.active {
              background: #fff;
              box-shadow: 0px 2px 10px rgba(58, 58, 58, 0.15);
              border-radius: 4px;
              font-weight: bold;
            }
          }
        }
      }
    }

    &_name {

      h3, h4 {
        margin-right: 5px;
      }
    }
  }
}