.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 40px;
  width: fit-content;
}

.title-container {
  display: flex;
  align-items: center;
  color: var(--primary-400);
  margin-bottom: 24px;

  & > .icon-container {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
    align-items: center;

    & > svg {
      width: 24px;
      height: 24px;
    }
  }

  & > .title {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    text-transform: uppercase;
    margin: 0;
  }
}

.expert {
  color: var(--typography-100);
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: var(--secondary-700);
  border-radius: 16px;
  position: relative;
  width: 330px;

  & > .info-wrapper {
    display: flex;

    & > .avatar-wrapper {
      flex-shrink: 0;
      margin-right: 14px;
      position: relative;
      display: flex;
      flex-direction: column;

      & > .avatar {
        object-fit: cover;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 82px;
        width: 82px;
        border-radius: 12px;
      }

      & > .status {
        display: inline-block;
        min-width: 80px;
        text-align: center;
        padding: 2px 8px;
        font-weight: 600;
        font-size: 12px;
        line-height: 16px;
        color: var(--typography-100);
        background-color: var(--typography);
        text-transform: capitalize;
        margin-top: 7px;
        border-radius: 22px;

        &.busy {
          background-color: var(--warning);
          color: var(--typography-900);
        }

        &.online {
          background-color: var(--success-400);
          color: var(--typography-100);
        }
      }
    }

    & > .main-info {
      overflow: hidden;
      flex-grow: 1;

      & > .name-wrapper {
        display: flex;
        overflow: hidden;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        margin-bottom: 3px;

        & > .name {
          font-weight: 600;
          font-size: 18px;
          line-height: 135%;
          padding-right: 10px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }

      & > .reviews-wrapper {
        display: flex;
        align-items: center;
        color: var(--typography-100);

        & > .review {
          display: inline-flex;
          align-items: center;
          font-weight: 600;
          font-size: 22px;
          line-height: 32px;
          color: var(--typography-100);

          & > .star {
            margin-left: 5px;
            margin-right: 1px;
            width: 24px;
            height: 24px;
          }
        }

        & > .reviews {
          font-size: 12px;
          line-height: 130%;
          margin-left: 26px;
          max-width: 85px;
        }
      }

      & > .specializations {
        margin: 7px -2.5px -8px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        & > .item {
          padding-right: 2.5px;
          padding-left: 2.5px;
          padding-bottom: 8px;

          & > .tag {
            color: var(--typography-200);
            padding: 3px 10px;
            cursor: default;
            height: 28px;
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            border-radius: 20px;
            justify-content: center;
            transition: color 0.15s ease-in-out,
              background-color 0.15s ease-in-out, border 0.15s ease-in-out;
            font-size: 12px;
            line-height: 18px;
            background: var(--primary-600);
            border: none;
          }
        }
      }

      & > .experience {
        display: flex;
        align-items: center;
        font-size: 12px;
        line-height: 130%;
        margin-top: 7px;

        & > svg {
          margin-right: 6px;
          fill: var(--primary-200);
          width: 24px;
          height: 24px;
        }
      }
    }
  }

  & > .footer {
    display: flex;
    align-items: center;

    & > .price-wrapper {
      margin-top: auto;
      display: flex;
      justify-content: center;
      width: 88px;
      margin-right: 20px;
      font-size: 12px;
      line-height: 130%;

      & > .price {
        display: inline-block;
        font-size: 14px;
        line-height: 24px;
        color: var(--typography-200);
      }
    }

    & > .button-wrapper {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 2;
      width: 100%;
      margin-top: 20px;

      & > .button {
        font-family: Open Sans, sans-serif;
        color: var(--typography-100);
        cursor: pointer;
        background: var(--gradient-pink-base);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        vertical-align: middle;
        user-select: none;
        padding: 5px 10px;
        align-self: center;
        outline: none;
        border: none;
        font-size: 16px;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
          border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

        height: 40px;
        width: 100%;
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        border-radius: 30px;

        &:disabled {
          opacity: 0.7;
          cursor: not-allowed;
          box-shadow: none;
        }

        &.primary {
          background: var(--gradient-pink-base);

          &:disabled {
            background: none;
            background-color: var(--secondary);
            color: var(--typography-400);
            opacity: 1;
          }
        }
      }
    }
  }
}
